/* ==========================================================================
   Entry Landing Page – Design Tokens (synced with _tokens.scss)
   ========================================================================== */

:root {
    /* Base Colors */
    --bg: #f1eff6;
    --bg-secondary: #ffffff;
    --surface: #ffffff;
    --border: #e2e4e7;

    --text: #534a80;
    --text-muted: #5f6368;
    --text-inverse: #ffffff;

    /* Brand */
    --primary: #3e2770;
    --primary-hover: #5b21b6;
    --primary-light: #815DC3;
    --accent: #f2b705;
    --accent-hover: #d79e00;

    --primary-weak: #dfdceb;

    /* Spacing */
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-8: 32px;
    --s-12: 48px;
    --s-16: 64px;

    /* Border Radius */
    --r-sm: 14px;
    --r-md: 18px;

    /* Typography */
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    --fs-sm: 14px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 22px;
    --fs-2xl: 28px;
    --fs-3xl: 42px;
    --lh: 1.5;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: var(--fs-md);
    line-height: var(--lh);
    color: var(--text);
    background: var(--bg);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--s-3) var(--s-6);
    background: var(--primary);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.nav__brand {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    text-decoration: none;
}

.nav__logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1); /* Make white */
}

.nav__icon {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    margin: -12px;
    top: 4px;
    position: relative;
}

.nav__links {
    position: absolute;
    right: var(--s-6);
    display: flex;
    gap: var(--s-6);
}

.nav__links a {
    color: var(--text-inverse);
    text-decoration: none;
    font-size: var(--fs-sm);
    opacity: 0.85;
    transition: opacity 0.2s;
}

.nav__links a:hover {
    opacity: 1;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    color: var(--text-inverse);
    text-align: center;
    padding: var(--s-16) var(--s-4);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Two gradients like in the app */
    background: 
        linear-gradient(to bottom, rgba(62, 39, 112, 0.3) 0%, rgba(0, 0, 0, 0.75) 100%),
        linear-gradient(to right, var(--primary) 0%, var(--primary-light) 100%);
}

.hero__content {
    max-width: 600px;
}

.hero__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
}

.hero__icon {
    width: 80px;
    height: 80px;
    /* border-radius: var(--r-sm); */
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); */
}

.hero__logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1); /* Make white */
}

.hero__title {
    font-size: var(--fs-3xl);
    font-weight: 800;
    margin-bottom: var(--s-2);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: var(--fs-xl);
    opacity: 0.9;
    margin-bottom: var(--s-8);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: var(--s-4) var(--s-8);
    font-size: var(--fs-lg);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
    background: var(--accent);
    color: var(--primary);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Sections
   ========================================================================== */

section {
    padding: var(--s-16) var(--s-4);
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: var(--fs-2xl);
    text-align: center;
    margin-bottom: var(--s-12);
    color: var(--primary);
}

/* ==========================================================================
   Features
   ========================================================================== */

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s-6);
}

.feature {
    background: var(--surface);
    padding: var(--s-6);
    border-radius: var(--r-md);
    text-align: center;
    border: 1px solid var(--border);
}

.feature__icon {
    font-size: 32px;
    margin-bottom: var(--s-3);
}

.feature__title {
    font-size: var(--fs-lg);
    margin-bottom: var(--s-2);
    color: var(--primary);
}

.feature__text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* ==========================================================================
   Steps
   ========================================================================== */

.steps {
    background: var(--surface);
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s-8);
    text-align: center;
}

.step__number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--text-inverse);
    font-size: var(--fs-xl);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--s-4);
}

.step__title {
    font-size: var(--fs-lg);
    margin-bottom: var(--s-2);
    color: var(--primary);
}

.step__text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* ==========================================================================
   QR Section
   ========================================================================== */

.qr-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-section__text {
    color: var(--text-muted);
    margin-bottom: var(--s-6);
}

.qr-section__code {
    background: var(--surface);
    padding: var(--s-6);
    border-radius: var(--r-md);
    display: inline-block;
    margin-bottom: var(--s-6);
    border: 1px solid var(--border);
}

.qr-section__code img {
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--primary);
    color: var(--text-inverse);
    text-align: center;
    padding: var(--s-8) var(--s-4);
    margin-top: var(--s-16);
}

.footer__links {
    margin-bottom: var(--s-3);
}

.footer__links a {
    color: var(--text-inverse);
    opacity: 0.8;
    text-decoration: none;
    font-size: var(--fs-sm);
}

.footer__links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer__divider {
    margin: 0 var(--s-2);
    opacity: 0.5;
}

.footer__copy {
    font-size: var(--fs-sm);
    opacity: 0.6;
}

/* ==========================================================================
   Coming Soon
   ========================================================================== */

.coming-soon {
    background: var(--primary-weak);
}

.coming-soon__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-4);
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon__item {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    background: var(--surface);
    padding: var(--s-3) var(--s-5);
    border-radius: var(--r-sm);
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.coming-soon__icon {
    font-size: var(--fs-lg);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
    .nav__links {
        display: none;
    }

    .nav__logo {
        height: 20px;
    }

    .hero {
        min-height: 100vh;
        padding: var(--s-12) var(--s-4);
    }

    .hero__logo {
        max-width: 200px;
    }

    .hero__subtitle {
        font-size: var(--fs-lg);
    }

    section {
        padding: var(--s-12) var(--s-4);
    }

    .section-title {
        font-size: var(--fs-xl);
        margin-bottom: var(--s-8);
    }
}
