:root {
    --cobalt-deep:     #1a2050;
    --cobalt:          #3b4a8c;
    --periwinkle:      #5e7ce6;
    --periwinkle-soft: #7e8fd6;
    --lavender:        #b8b8e8;
    --silver:          #e8e8f2;
    --blush:           #e8c2c2;

    --bg-app: #0a0a0e;
    --bg-app-soft: #0d0d12;
    --bg-surface: #14141b;
    --bg-surface-hover: #1c1c26;
    --border: #1f1f2a;
    --border-strong: #2c2c3a;

    --text-primary: #eaeaef;
    --text-secondary: #a0a0b0;
    --text-muted: #5a5a6a;

    --accent: var(--periwinkle);
    --accent-hover: #7088e8;
    --teal: #5dcaa5;
    --coral: #f0997b;
    --red: #e06572;

    --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 999px;

    --wrap: 940px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    background: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(94, 124, 230, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(22px, 6vw, 56px); }

.night {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 50% -8%, rgba(94, 124, 230, 0.14), transparent 60%),
        radial-gradient(ellipse 50% 40% at 88% 18%, rgba(184, 184, 232, 0.07), transparent 60%),
        radial-gradient(ellipse 60% 45% at 8% 95%,  rgba(59, 74, 140, 0.10), transparent 60%);
}
.night::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 12% 22%, rgba(232, 232, 242, 0.5), transparent),
        radial-gradient(1px 1px at 78% 14%, rgba(232, 232, 242, 0.4), transparent),
        radial-gradient(1px 1px at 33% 64%, rgba(232, 232, 242, 0.35), transparent),
        radial-gradient(1px 1px at 62% 48%, rgba(232, 232, 242, 0.4), transparent),
        radial-gradient(1px 1px at 90% 70%, rgba(232, 232, 242, 0.3), transparent),
        radial-gradient(1px 1px at 47% 8%,  rgba(232, 232, 242, 0.45), transparent);
    opacity: 0.6;
}

.page { position: relative; z-index: 1; }

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(10, 10, 14, 0.72);
    border-bottom: 0.5px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 28px; height: 28px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.nav-links a { font-size: 0.92rem; color: var(--text-secondary); transition: color 160ms; }
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; padding: 4px; line-height: 1; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 0.5px solid transparent;
    cursor: pointer;
    transition: transform 160ms, box-shadow 200ms, background 160ms, border-color 160ms, color 160ms;
    white-space: nowrap;
}
.btn i { font-size: 1.05em; }
.btn-primary {
    background: linear-gradient(135deg, var(--periwinkle) 0%, var(--lavender) 100%);
    color: #0a0a0e;
    font-weight: 600;
    box-shadow: 0 6px 22px rgba(94, 124, 230, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(94, 124, 230, 0.42); }
.btn-ghost { background: rgba(255, 255, 255, 0.02); border-color: var(--border-strong); color: var(--text-primary); }
.btn-ghost:hover { background: var(--bg-surface-hover); border-color: var(--periwinkle-soft); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }

.free-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--teal);
    background: rgba(93, 202, 165, 0.1);
    border: 0.5px solid color-mix(in srgb, var(--teal) 45%, transparent);
    border-radius: var(--radius-pill);
    padding: 5px 14px;
    margin-bottom: 22px;
}
.free-pill i { font-size: 0.95rem; }

.free-pill.is-alpha { color: var(--red); background: color-mix(in srgb, var(--red) 11%, transparent); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.section { padding: 70px 0; }

.final { position: relative; text-align: center; padding: 104px 0 116px; overflow: hidden; }
.final .moon-sm {
    position: absolute;
    bottom: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 34%, #c4ccf6, #5e7ce6 45%, #1a1f3d 100%);
    box-shadow: 0 0 120px 40px rgba(94, 124, 230, 0.22);
    z-index: 0;
}
.final-content { position: relative; z-index: 1; }
.final h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.03em; margin: 0 0 16px; }
.final p { font-size: 1.1rem; color: var(--text-secondary); margin: 0 auto 32px; max-width: 44ch; }
.final-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.footer { border-top: 0.5px solid var(--border); padding: 48px 0 38px; position: relative; z-index: 1; background: var(--bg-app-soft); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 34px; }
.footer-brand { max-width: 300px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.footer-cols { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin: 0 0 14px; font-weight: 600; }
.footer-col a { display: block; font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 10px; transition: color 150ms; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 0.5px solid var(--border); font-size: 0.84rem; color: var(--text-muted); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

.subhero { position: relative; text-align: center; padding: 92px 0 20px; }
.subhero-eyebrow { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--periwinkle); }
.subhero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; margin: 14px 0 16px; }
.subhero p { font-size: 1.08rem; color: var(--text-secondary); max-width: 60ch; margin: 0 auto; }
.subhero .hero-cta { margin-top: 30px; }

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

@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-actions .btn-ghost { display: none; }
    .nav-toggle { display: block; }
    .nav.open .nav-links {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 14px 24px 18px;
        margin: 0;
        background: rgba(10, 10, 14, 0.96);
        border-bottom: 0.5px solid var(--border);
    }
    .nav.open .nav-links a { padding: 8px 0; width: 100%; }
    .hero-cta .btn { flex: 1; }
    .section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { transition: none; opacity: 1; transform: none; }
    .btn { transition: none; }
}
