/* ===== CSS Variables ===== */
:root {
    --color-bg: #ffffff;
    --color-surface: rgba(0, 0, 0, 0.03);
    --color-surface-hover: rgba(0, 0, 0, 0.06);
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(94, 92, 230, 0.40);
    --color-text: #1a1a1a;
    --color-text-secondary: rgba(0, 0, 0, 0.55);
    --color-text-tertiary: rgba(0, 0, 0, 0.35);
    --color-accent: #5E5CE6;
    --color-accent-light: #4A48C9;
    --color-warm: #FF6961;
    --font-stack: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --nav-height: 64px;
    --max-width: 1120px;
    --radius: 16px;
    --radius-sm: 10px;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-stack);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-gradient::before,
.hero-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    animation: drift 20s ease-in-out infinite alternate;
}

.hero-gradient::before {
    width: 600px;
    height: 600px;
    background: var(--color-accent);
    top: -10%;
    left: -10%;
}

.hero-gradient::after {
    width: 500px;
    height: 500px;
    background: var(--color-warm);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
    animation-direction: alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 40px) scale(1.1); }
    66% { transform: translate(-40px, 80px) scale(0.95); }
    100% { transform: translate(60px, -30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-accent-light);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
}

.app-store-badge {
    display: inline-block;
    transition: opacity 0.2s;
}

.app-store-badge:hover {
    opacity: 0.85;
}

.app-store-badge img {
    height: 54px;
}

.hero-platforms {
    margin-top: 28px;
    font-size: 14px;
    color: var(--color-text-tertiary);
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* ===== Social Proof Strip ===== */
.social-proof {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 28px 24px;
}

.social-proof .container {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.social-proof-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

/* ===== Section Common ===== */
.section {
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: 0 8px 40px rgba(94, 92, 230, 0.10);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===== How It Works ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* ===== CTA Section ===== */
.cta {
    text-align: center;
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(94, 92, 230, 0.15), rgba(255, 105, 97, 0.10));
    z-index: 0;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 24px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Privacy Policy Page ===== */
.policy-content {
    max-width: 720px;
    margin: 0 auto;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 80px;
}

.policy-content h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.policy-content .policy-updated {
    font-size: 14px;
    color: var(--color-text-tertiary);
    margin-bottom: 48px;
}

.policy-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.policy-content p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.policy-content a {
    color: var(--color-accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.policy-content a:hover {
    color: var(--color-text);
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 48px;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

    .cta h2 {
        font-size: 36px;
    }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 18px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 60px) 24px 60px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-description {
        font-size: 16px;
    }

    .social-proof .container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .section {
        padding: 64px 24px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .policy-content {
        padding-top: calc(var(--nav-height) + 40px);
    }

    .policy-content h1 {
        font-size: 28px;
    }
}
