:root {
    --bg:       #0B0F1A;
    --surface:  #131929;
    --surface2: #1C2640;
    --border:   #1E2D4A;
    --blue:     #4A90E2;
    --mint:     #64FFDA;
    --text:     #C8D6F0;
    --muted:    #5A6A8A;
    --white:    #EEF2FF;
    --radius:   12px;
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#main-content { flex: 1; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--white);
    line-height: 1.2;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mint); }

p { color: var(--text); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Header ── */
.site-header {
    background: rgba(11,15,26,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar { padding: 1rem 0; }

.navbar-brand {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.navbar-brand .brand-e {
    background: linear-gradient(135deg, var(--blue), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand .brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    display: inline-block;
    margin-bottom: 2px;
}

.nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: .4rem .9rem !important;
    border-radius: 8px;
    transition: all .2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--white) !important;
    background: var(--surface2);
}

.btn-nav-cta {
    background: var(--blue);
    color: #fff !important;
    padding: .4rem 1.2rem !important;
    border-radius: 8px;
    font-weight: 600;
}

.btn-nav-cta:hover {
    background: #3a7bd5;
    color: #fff !important;
}

.navbar-toggler {
    border: 1px solid var(--border);
    color: var(--text);
}

.navbar-toggler-icon {
    filter: invert(.6);
}

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 6rem;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74,144,226,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,144,226,.07) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,144,226,.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
    animation: pulse 6s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100,255,218,.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: .7; }
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(74,144,226,.12);
    border: 1px solid rgba(74,144,226,.3);
    color: var(--blue);
    font-size: .8rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem .85rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -.02em;
}

.hero-title .accent {
    background: linear-gradient(90deg, var(--blue), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text);
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    font-family: var(--font-head);
    padding: .85rem 2rem;
    border-radius: 10px;
    transition: all .2s;
    border: none;
    font-size: 1rem;
}

.btn-primary-cta:hover {
    background: #3a7bd5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,144,226,.35);
}

.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-family: var(--font-head);
    padding: .85rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all .2s;
    font-size: 1rem;
}

.btn-secondary-cta:hover {
    border-color: var(--blue);
    color: var(--white);
    background: rgba(74,144,226,.08);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat-num {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.hero-stat-label {
    font-size: .8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-card-mock {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

.hero-card-bar {
    background: var(--surface2);
    padding: .7rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }

.hero-card-body { padding: 1.5rem; }

.mock-slide {
    background: linear-gradient(135deg, var(--surface2), #0d1930);
    border: 1px solid var(--border);
    border-radius: 8px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .75rem;
    color: var(--muted);
}

.mock-slide i { font-size: 2.5rem; color: var(--blue); opacity: .6; }

/* ── Section base ── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.section-label {
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--mint);
    margin-bottom: .6rem;
    display: block;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -.02em;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 560px;
}

/* ── Cards ── */
.card-surface {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color .25s, transform .25s;
    height: 100%;
}

.card-surface:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(74,144,226,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
}

.card-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: .5rem;
}

.card-text { font-size: .95rem; color: var(--muted); margin: 0; }

/* ── Divider ── */
.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ── Pricing ── */
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: all .25s;
}

.pricing-card.featured {
    border-color: var(--blue);
    background: linear-gradient(160deg, #131929 0%, #0d1d35 100%);
    box-shadow: 0 0 40px rgba(74,144,226,.15);
}

.pricing-card.featured .pricing-badge {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .7rem;
    border-radius: 50px;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.pricing-name {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: .25rem;
}

.pricing-price {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin: .75rem 0 .25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
}

.pricing-desc { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }

.pricing-features { list-style: none; padding: 0; margin: 0 0 1.75rem; }

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .9rem;
    color: var(--text);
    padding: .4rem 0;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li i { color: var(--mint); margin-top: .2rem; flex-shrink: 0; }
.pricing-features li.disabled { color: var(--muted); }
.pricing-features li.disabled i { color: var(--muted); }

.btn-pricing {
    display: block;
    text-align: center;
    padding: .75rem;
    border-radius: 9px;
    font-weight: 600;
    font-family: var(--font-head);
    transition: all .2s;
    font-size: .95rem;
}

.btn-pricing-primary {
    background: var(--blue);
    color: #fff;
}

.btn-pricing-primary:hover {
    background: #3a7bd5;
    color: #fff;
    box-shadow: 0 6px 20px rgba(74,144,226,.35);
}

.btn-pricing-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-pricing-ghost:hover {
    border-color: var(--blue);
    color: var(--white);
}

/* ── CTA Banner ── */
.cta-banner {
    background: linear-gradient(135deg, #0d1d35, #0B0F1A);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74,144,226,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,144,226,.05) 1px, transparent 1px);
    background-size: 36px 36px;
}

.cta-banner > * { position: relative; z-index: 1; }

/* ── Footer ── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.footer-desc { font-size: .9rem; color: var(--muted); max-width: 260px; }

.footer-heading {
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: .5rem; }

.footer-links a {
    font-size: .9rem;
    color: var(--muted);
    transition: color .2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .85rem;
    color: var(--muted);
}

/* ── Prose pages (TOS / Privacy) ── */
.prose-hero {
    background: linear-gradient(180deg, #0d1d35 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0 3rem;
}

.prose-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: .5rem; }
.prose-meta { font-size: .9rem; color: var(--muted); display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: .75rem; }
.prose-meta span { display: flex; align-items: center; gap: .4rem; }

.prose-body { padding: 3.5rem 0 5rem; }

.prose-toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.prose-toc h6 {
    font-family: var(--font-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 1rem;
}

.prose-toc ol {
    list-style: none;
    padding: 0;
    counter-reset: toc;
}

.prose-toc ol li {
    counter-increment: toc;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .6rem;
    font-size: .875rem;
}

.prose-toc ol li::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--muted);
    margin-top: .15rem;
    flex-shrink: 0;
}

.prose-toc ol li a { color: var(--text); font-size: .875rem; }
.prose-toc ol li a:hover { color: var(--blue); }

.prose-content section { margin-bottom: 3rem; }

.prose-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .75rem;
}

.prose-content h2 .section-num {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--muted);
    background: var(--surface2);
    padding: .2rem .55rem;
    border-radius: 6px;
}

.prose-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin: 1.5rem 0 .6rem; }

.prose-content p { font-size: .975rem; color: var(--text); margin-bottom: .9rem; }

.prose-content ul, .prose-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.prose-content li { font-size: .975rem; color: var(--text); margin-bottom: .4rem; }

.scope-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.scope-table th {
    background: var(--surface2);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.scope-table td {
    padding: .85rem 1rem;
    font-size: .9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.scope-table tr:last-child td { border-bottom: none; }
.scope-table tr:nth-child(even) td { background: rgba(255,255,255,.015); }

.scope-badge {
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 600;
    color: var(--mint);
    background: rgba(100,255,218,.08);
    border: 1px solid rgba(100,255,218,.2);
    padding: .2rem .55rem;
    border-radius: 6px;
    white-space: nowrap;
}

.info-box {
    background: rgba(74,144,226,.07);
    border: 1px solid rgba(74,144,226,.25);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    margin: 1.25rem 0;
}

.info-box i { color: var(--blue); margin-top: .15rem; flex-shrink: 0; }
.info-box p { margin: 0; font-size: .9rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { padding: 4rem 0 3rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-visual { margin-top: 2.5rem; }
    .section { padding: 3.5rem 0; }
    .cta-banner { padding: 2.5rem 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .prose-toc { position: static; margin-bottom: 2rem; }
}
