:root {
    /* Color Palette */
    --bg-base: #08090d;
    --bg-surface: rgba(20, 21, 28, 0.6);
    --bg-surface-hover: rgba(30, 32, 43, 0.75);
    --text-primary: #f5f6f8;
    --text-secondary: #a3a8b5;
    --text-gold: #e5c07b;
    --accent-gold: #d4af37;
    --accent-purple: #7a5c96;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(229, 192, 123, 0.3);
    
    /* Typography */
    --font-sans: 'Outfit', 'Pretendard', sans-serif;
    --font-serif: 'Noto Serif KR', serif;
    
    /* Effects */
    --glass-blur: blur(16px);
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glow: 0 0 20px rgba(212, 175, 55, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.dark-theme {
    color: var(--text-primary);
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Typography Classes */
.title-serif {
    font-family: var(--font-serif);
    font-weight: 800;
}
.text-gold {
    color: var(--accent-gold);
}
.text-center {
    text-center;
}

/* --- Ambient Background Effects --- */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #10111a 0%, var(--bg-base) 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(122, 92, 150, 0.15);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(212, 175, 55, 0.1);
    top: 40%;
    right: -15%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(43, 82, 120, 0.15);
    bottom: -10%;
    left: 20%;
    animation-delay: -10s;
}

.noise-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 60px) scale(0.9); }
}

/* --- Glassmorphism Utils --- */
.glass {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
}

.glass-inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.glass-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-soft);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 4rem;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.header-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hover-glow:hover {
    color: var(--text-gold);
    text-shadow: 0 0 10px rgba(229, 192, 123, 0.5);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding: 8rem 4rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.icon-wrapper {
    padding: 12px;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    box-shadow: var(--glow);
}

.hero-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 16px;
    object-fit: cover;
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.hero-copy h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a3a8b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-highlight);
}

/* --- App Screenshots --- */
.hero-device {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    position: relative;
}

.app-screenshot-wrapper {
    position: relative;
    width: 320px;
    height: auto;
}

.app-screenshot {
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.1);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-shot {
    width: 100%;
    position: relative;
    z-index: 2;
    transform: rotateX(5deg) rotateY(-5deg);
}

.sub-shot {
    position: absolute;
    width: 85%;
    right: -30%;
    bottom: -5%;
    z-index: 1;
    opacity: 0.6;
    transform: rotateX(5deg) rotateY(-5deg) translateZ(-50px) rotate(5deg);
    filter: blur(2px);
}

.hero-device:hover .main-shot {
    transform: rotateX(0deg) rotateY(0deg) translateY(-10px);
}

.hero-device:hover .sub-shot {
    transform: rotateX(0deg) rotateY(0deg) translateZ(-20px) rotate(8deg) translateY(-5px);
    opacity: 0.9;
    filter: blur(0px);
}

/* --- Intro Strip --- */
.intro-strip-container {
    padding: 0 4rem;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.intro-strip {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 2rem;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.strip-text b {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    font-family: var(--font-serif);
}

.strip-text span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.strip-divider {
    width: 1px;
    height: 50px;
    background: var(--border-light);
}

/* --- Sections Common --- */
.section {
    padding: 8rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    margin-bottom: 4rem;
}
.section-heading.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-heading h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* --- Features --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hover-lift:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--border-highlight);
}

.feature-icon {
    font-size: 2rem;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
}

.feature-grid h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.feature-grid p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Flow Section --- */
.flow-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem;
}

.flow-number {
    font-size: 4rem;
    font-family: var(--font-serif);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    margin-bottom: 1.5rem;
    -webkit-text-stroke: 1px var(--accent-gold);
}

.flow-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
}

.flow-content p {
    color: var(--text-secondary);
}

/* --- Support --- */
.support-section {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 4rem;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.support-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.support-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.glass-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-highlight);
    transform: translateX(5px);
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border-light);
    padding: 2rem 4rem;
    background: rgba(10, 11, 16, 0.8);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.separator {
    color: var(--border-light);
}

/* --- Animations --- */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-copy {
        align-items: center;
    }
    
    .hero-copy h1 {
        font-size: 4.5rem;
    }
    
    .lead {
        margin: 0 auto 2.5rem;
    }

    .intro-strip {
        flex-direction: column;
        gap: 2rem;
        padding: 3rem;
    }

    .strip-divider {
        width: 100%;
        height: 1px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem 1.5rem;
    }

    .header-nav {
        display: none; /* Can be replaced with a hamburger menu later */
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-copy h1 {
        font-size: 3.5rem;
    }

    .intro-strip-container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .feature-grid, .flow-list {
        grid-template-columns: 1fr;
    }

    .support-section {
        grid-template-columns: 1fr;
        margin: 0 1.5rem 4rem;
        padding: 2.5rem 1.5rem;
        gap: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Legal Pages Specific --- */
.legal-main {
    padding-top: 10rem;
    padding-bottom: 5rem;
}

.legal-content {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    font-family: var(--font-serif);
}

.legal-content p, .legal-content li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content .last-updated {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 3rem;
    display: block;
}

.legal-content a {
    color: var(--accent-gold);
}
.legal-content a:hover {
    text-decoration: underline;
}
