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

:root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-2: #1c2128;
    --surface-3: #21262d;
    --border: #30363d;
    --accent: #5865f2;
    --accent-hover: #4752c4;
    --royal-purple: #7c3aed;
    --royal-purple-dim: rgba(124,58,237,0.15);
    --text: #e6edf3;
    --text-muted: #8b949e;
    --text-subtle: #6e7681;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    scrollbar-color: var(--royal-purple-dim) var(--surface);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--royal-purple-dim); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--royal-purple); }

a { color: inherit; }
a.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a.inline-link:hover { color: var(--accent-hover); }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Nav ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,17,23,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(88,101,242,0.35);
    flex-shrink: 0;
}

.nav-logo img { width: 100%; height: 100%; object-fit: contain; }

.nav-brand span { font-weight: 700; font-size: 16px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

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

.nav-links a.btn, .nav-links a.btn:hover { color: #fff; font-weight: 600; text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
}

.menu-btn svg { width: 24px; height: 24px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(88,101,242,0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(88,101,242,0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--surface-3); border-color: var(--royal-purple); }

.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ── Badge ── */
.badge {
    display: inline-block;
    background: rgba(88,101,242,0.12);
    border: 1px solid rgba(88,101,242,0.25);
    color: #7c8cf8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 20px;
}

/* ── Hero ── */
.hero {
    position: relative;
    padding: 96px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 480px;
    background: radial-gradient(circle, rgba(124,58,237,0.28), rgba(88,101,242,0.12) 45%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }

.hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin: 20px 0 16px;
}

.hero .accent-text {
    background: linear-gradient(135deg, #7c8cf8, var(--royal-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.subtitle {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── Sections ── */
section.features { padding: 72px 24px; }

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}

.section-head .badge { margin-bottom: 16px; }

.section-head h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }

.section-head p { color: var(--text-muted); font-size: 16px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover { border-color: var(--royal-purple); transform: translateY(-2px); }

.feature-card.featured {
    grid-column: span 2;
    background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
    border-color: rgba(124,58,237,0.4);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--royal-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
    flex-shrink: 0;
}

.feature-icon svg { width: 20px; height: 20px; stroke: #fff; }

.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }

.feature-card p { color: var(--text-muted); font-size: 14px; }

/* ── Comparison grid ── */
section.comparison { padding: 72px 24px 0; }

.compare-grid-wrap {
    max-width: 1040px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 14px;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr 0.9fr 0.9fr 0.9fr;
    min-width: 760px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.compare-grid > div {
    padding: 15px 18px;
    font-size: 14px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

/* Last row = 5 cells, drop their bottom border. */
.compare-grid > div:nth-last-child(-n+5) { border-bottom: none; }

.compare-grid-label {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
}

.compare-grid-head {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 2px;
}

.compare-grid-head .compare-price {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255,255,255,0.75);
}

.compare-grid-head.grey .compare-price { color: var(--text-subtle); }

.compare-grid-cell {
    justify-content: center;
    text-align: center;
}

.compare-grid .grey {
    background: var(--surface-2);
    color: var(--text-muted);
}

.compare-grid .purple {
    background: linear-gradient(160deg, rgba(124,58,237,0.4), rgba(88,101,242,0.22));
    color: #fff;
}

/* The top (recommended) tier gets a slightly warmer highlight. */
.compare-grid .purple-hot {
    background: linear-gradient(160deg, rgba(124,58,237,0.6), rgba(88,101,242,0.32));
    color: #fff;
}

.compare-grid .compare-grid-cell.purple,
.compare-grid .compare-grid-cell.purple-hot { font-weight: 600; }

.compare-check { color: #7c8cf8; font-weight: 700; }

.compare-dash { color: var(--text-subtle); }

/* ── Tier pricing cards ── */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
}

@media (max-width: 860px) { .tier-grid { grid-template-columns: 1fr; max-width: 460px; } }

.tier-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tier-card.featured {
    border-color: var(--royal-purple);
    box-shadow: 0 0 0 1px var(--royal-purple), 0 18px 50px rgba(124,58,237,0.22);
}

.tier-card .tier-tag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--royal-purple);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}

.tier-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }

.tier-card .tier-price { font-size: 34px; font-weight: 800; line-height: 1; }
.tier-card .tier-price span { font-size: 15px; font-weight: 500; color: var(--text-muted); }

.tier-card .tier-blurb { color: var(--text-muted); font-size: 14px; margin: 14px 0 18px; }

.tier-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.tier-card li { font-size: 14px; color: var(--text); display: flex; gap: 9px; align-items: flex-start; }
.tier-card li::before { content: '\2713'; color: #7c8cf8; font-weight: 700; flex-shrink: 0; }

.tier-card .btn { margin-top: auto; width: 100%; text-align: center; }

/* ── Launch gate (temporary blur over the whole page) ── */
.pro-page.is-gated {
    filter: blur(7px);
    pointer-events: none;
    user-select: none;
}

.launch-gate {
    position: fixed;
    inset: 63px 0 0 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(13,17,23,0.55);
    backdrop-filter: blur(3px);
    text-align: center;
}

.launch-gate-card {
    max-width: 460px;
    background: rgba(22,27,34,0.9);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px 32px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}

.launch-gate-card h2 { font-size: 28px; font-weight: 700; margin: 18px 0 12px; }
.launch-gate-card p { color: var(--text-muted); font-size: 16px; }

/* ── Callout band ── */
.callout {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 24px;
    text-align: center;
}

.callout-inner { max-width: 640px; margin: 0 auto; }

.callout h2 { font-size: 28px; font-weight: 700; margin-bottom: 14px; }

.callout p { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }

.callout-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.callout-pills span {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
}

/* ── Footer ── */
footer {
    padding: 40px 24px 32px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-brand .nav-logo { width: 28px; height: 28px; }

.footer-brand span { font-weight: 700; font-size: 15px; }

footer nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

footer nav a { text-decoration: none; color: var(--text-muted); font-size: 14px; }

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

.footer-copy { color: var(--text-subtle); font-size: 13px; }

/* ── Coming soon page ── */
.coming-soon {
    min-height: calc(100vh - 63px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.coming-soon::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 420px;
    background: radial-gradient(circle, rgba(124,58,237,0.3), rgba(88,101,242,0.12) 45%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.coming-soon-inner { position: relative; max-width: 560px; }

.coming-soon .badge { margin-bottom: 20px; }

.coming-soon h1 { font-size: 40px; font-weight: 700; margin-bottom: 18px; }

.coming-soon p { color: var(--text-muted); font-size: 17px; margin-bottom: 30px; }

/* ── Legal pages ── */
.legal {
    padding: 56px 24px 80px;
    position: relative;
}

.legal-inner {
    max-width: 780px;
    margin: 0 auto;
}

.legal-head {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.legal-head .badge { margin-bottom: 16px; }

.legal-head h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }

.legal-updated { color: var(--text-subtle); font-size: 14px; }

.legal-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 14px;
    scroll-margin-top: 90px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 10px;
}

.legal-body p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-body ul {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px;
    padding-left: 22px;
}

.legal-body li { margin-bottom: 8px; }

.legal-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-body a:hover { color: var(--accent-hover); }

.legal-body strong { color: var(--text); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-btn { display: inline-flex; }

    .nav.open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 18px;
    }

    .nav.open .nav-links a { padding: 8px 0; width: 100%; }

    .nav.open .nav-links a.btn {
        width: 100%;
        text-align: center;
        padding: 10px 18px;
        margin-top: 8px;
    }

    .hero h1 { font-size: 32px; }
    .hero p.subtitle { font-size: 16px; }

    .feature-grid { grid-template-columns: 1fr; }
    .feature-card.featured { grid-column: span 1; }

    .coming-soon h1 { font-size: 30px; }

    .legal-head h1 { font-size: 28px; }
}

/* ── Pro "coming soon" overlay (temporary, while the Pro page is reworked) ── */
.pro-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    background: rgba(13, 17, 23, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pro-overlay-inner { position: relative; max-width: 520px; }

.pro-overlay .badge { margin-bottom: 20px; }

.pro-overlay h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #7c8cf8, var(--royal-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pro-overlay p {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 30px;
}

/* Lock scrolling while the overlay is up */
body:has(.pro-overlay) { overflow: hidden; }

@media (max-width: 768px) {
    .pro-overlay h1 { font-size: 36px; }
}
