/* ==========================================================================
   WH Telecom — v8
   Carrier-grade dark design. Bloomberg authority + Stripe polish.
   Palette: Navy #0A1628, Signal Blue #2563EB, glassmorphism, particle bg
   ========================================================================== */

/* --- Custom Properties --- */
:root {
    --bg:            #0A1628;
    --bg-alt:        #0E1B32;
    --surface:       #1A2744;
    --surface-glass: rgba(26, 39, 68, 0.6);
    --border:        #1E3A5F;
    --border-hover:  rgba(37, 99, 235, 0.3);
    --blue:          #2563EB;
    --blue-light:    #60A5FA;
    --blue-glow:     rgba(37, 99, 235, 0.15);
    --green:         #10B981;
    --amber:         #F59E0B;
    --red:           #EF4444;
    --text:          #E2E8F0;
    --text-sec:      #94A3B8;
    --text-muted:    #64748B;
    --white:         #FFFFFF;
    --font:          'Inter', system-ui, sans-serif;
    --mono:          'JetBrains Mono', 'Fira Code', monospace;
    --radius-btn:    8px;
    --radius-card:   12px;
    --radius-modal:  16px;
    --container:     1200px;
    --gutter:        24px;
    --nav-h:         72px;
    --ease:          cubic-bezier(0.25, 0.1, 0.25, 1);
    --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md:     0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-glow:   0 0 24px rgba(37, 99, 235, 0.12);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: color 250ms var(--ease); }
a:hover { color: var(--blue-light); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
::selection { background: var(--blue); color: var(--white); }

/* Focus ring */
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* --- Noise Overlay --- */
.noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

/* --- Layout --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.center { text-align: center; }

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--white); line-height: 1.15; }
h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--text-sec); line-height: 1.75; max-width: 680px; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #60A5FA 50%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.caption { font-size: 13px; color: var(--text-sec); }

/* --- Chip --- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-light);
    letter-spacing: 0.02em;
}
.chip-inline { margin-bottom: 16px; }
.chip-sm { padding: 4px 10px; font-size: 12px; }
.chip-live { cursor: default; }

/* --- Status Dot --- */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    box-shadow: 0 0 6px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
}
.status-dot.blue { background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.status-dot.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px currentColor; }
    50% { opacity: 0.5; box-shadow: 0 0 10px currentColor; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 250ms var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
    background: #3B76EF;
    border-color: #3B76EF;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue-light);
    background: rgba(37, 99, 235, 0.05);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all 250ms var(--ease);
}
.nav.scrolled {
    background: rgba(10, 22, 40, 0.92);
    border-bottom-color: var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--white); }
.nav-menu { display: flex; gap: 32px; }
.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sec);
    transition: color 250ms var(--ease);
    position: relative;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    border-radius: 1px;
    transition: width 250ms var(--ease);
}
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 112px 0 80px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
}
.hero-container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; margin-bottom: 56px; }
.hero-content h1 { margin-bottom: 20px; }
.hero-sub {
    font-size: 17px;
    color: var(--text-sec);
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-proof { display: flex; align-items: center; gap: 12px; }
.hero-avatars { display: flex; }
.hero-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-sec);
    margin-left: -8px;
}
.hero-av:first-child { margin-left: 0; }
.hero-proof-text span { font-size: 13px; color: var(--text-sec); }
.hero-stars { display: flex; gap: 2px; color: var(--amber); font-size: 12px; margin-bottom: 2px; }

/* Hero Stats — Glassmorphism */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card.glass {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 58, 95, 0.6);
    border-radius: var(--radius-card);
    padding: 24px;
    text-align: center;
    transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.stat-card.glass:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}
.stat-num {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    margin-bottom: 4px;
}
.stat-num small {
    font-size: 0.4em;
    font-weight: 600;
    color: var(--text-sec);
    margin-left: 2px;
}
.stat-label { font-size: 13px; color: var(--text-sec); }

/* ===== TRUST BAR / MARQUEE ===== */
.trust-bar {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.trust-label-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    justify-content: center;
}
.trust-divider {
    height: 1px;
    width: 80px;
    background: var(--border);
}
.trust-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-inner {
    display: flex;
    gap: 24px;
    animation: marquee 40s linear infinite;
    width: max-content;
}
.trust-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(26, 39, 68, 0.5);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sec);
    white-space: nowrap;
    flex-shrink: 0;
}
.trust-pill i { font-size: 12px; color: var(--text-muted); }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== COMPARISON ===== */
.comparison {
    display: grid;
    grid-template-columns: 1fr auto 1.12fr;
    gap: 0;
    align-items: stretch;
}
.comparison-col {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 32px;
}
.comparison-bad {
    background: rgba(26, 39, 68, 0.3);
    opacity: 0.85;
}
.comparison-good {
    background: var(--surface);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow), var(--shadow-md);
    position: relative;
}
.comparison-good::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-card);
    background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.comparison-good > * { position: relative; z-index: 1; }
.comparison-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.comparison-head h3 { font-size: 18px; }
.comparison-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.comparison-icon.bad { background: rgba(239, 68, 68, 0.1); color: var(--red); }
.comparison-icon.good { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.comparison-col ul { display: flex; flex-direction: column; gap: 14px; }
.comparison-col li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
}
.comparison-bad li { color: var(--text-muted); }
.comparison-good li { color: var(--text); }
.comparison-bad li i { color: rgba(239, 68, 68, 0.5); margin-top: 4px; font-size: 12px; flex-shrink: 0; }
.comparison-good li i { color: var(--green); margin-top: 4px; font-size: 12px; flex-shrink: 0; }

.comparison-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}
.comparison-vs span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ===== PLATFORM INTRO + DASHBOARD MOCK ===== */
.platform-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}
.platform-intro-text .section-sub { margin-top: 12px; }

.dashboard-mock {
    background: #0C1424;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.dash-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(26, 39, 68, 0.4);
    border-bottom: 1px solid var(--border);
}
.dash-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sec);
    display: flex;
    align-items: center;
    gap: 6px;
}
.dash-title i { color: var(--blue); font-size: 11px; }
.dash-live {
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 6px;
}
.dash-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}
.dash-metric {
    background: #0C1424;
    padding: 16px;
    text-align: center;
}
.dash-metric-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.dash-metric-val small { font-size: 14px; color: var(--text-sec); }
.dash-metric-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}
.dash-metric-trend {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.dash-metric-trend.up { color: var(--green); }
.dash-metric-trend.up i { font-size: 8px; }
.dash-chart {
    padding: 16px 16px 8px;
    position: relative;
}
.dash-chart svg {
    width: 100%;
    height: 48px;
    display: block;
}
.dash-chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== BENTO GRID ===== */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.bento-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blue);
    opacity: 0.5;
}
.bento-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.bento-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bento-card h3 i { color: var(--blue); font-size: 16px; }
.bento-card p { color: var(--text-sec); font-size: 15px; line-height: 1.7; }
.bento-wide { grid-column: span 2; }

/* Bento bars */
.bento-bars { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.bento-bar-row { display: flex; align-items: center; gap: 12px; }
.bento-bar-label { font-size: 13px; font-weight: 500; color: var(--text-sec); width: 48px; flex-shrink: 0; }
.bento-bar { flex: 1; height: 10px; background: rgba(30, 58, 95, 0.5); border-radius: 5px; overflow: hidden; }
.bento-bar-fill { height: 100%; border-radius: 5px; transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.bar-muted { background: var(--text-muted); }
.bar-blue { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.bento-bar-val { font-size: 13px; font-weight: 600; color: var(--text); width: 64px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* Bento metric */
.bento-metric { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.bento-metric-val { display: block; font-size: 36px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.bento-metric-label { font-size: 13px; color: var(--text-sec); }

/* Bento indicators */
.bento-indicators { margin-top: 20px; display: flex; gap: 16px; }
.bento-indicators span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-sec); }

/* Bento chips */
.bento-chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== TIMELINE ===== */
.timeline { max-width: 640px; margin: 0 auto; }
.timeline-step { display: flex; gap: 24px; }
.timeline-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--blue); color: var(--white);
    font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.3);
}
.timeline-line { width: 2px; flex: 1; background: var(--border); margin: 8px 0; }
.timeline-body { padding-bottom: 40px; }
.timeline-time { display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue-light); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; }
.timeline-body h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-body p { color: var(--text-sec); font-size: 15px; line-height: 1.7; }

/* ===== SPLIT LAYOUT ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-reverse > :first-child { order: 2; }
.split-reverse > :last-child { order: 1; }

/* ===== CHECK LIST ===== */
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text); line-height: 1.6; }
.check-list li i { color: var(--green); margin-top: 4px; font-size: 12px; flex-shrink: 0; }
.check-list-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}
.check-list-horizontal li { font-size: 14px; color: var(--text-sec); }

/* ===== NETWORK MAP ===== */
.network-map-section { margin-bottom: 40px; }
.map-container {
    position: relative;
    background: rgba(14, 27, 50, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    padding: 24px;
}
.world-map { width: 100%; height: auto; display: block; }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.map-label {
    position: absolute;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-sec);
    letter-spacing: 0.03em;
    white-space: nowrap;
    transform: translate(-50%, 14px);
}
.map-lines { animation: dash-scroll 20s linear infinite; }
@keyframes dash-scroll {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 100; }
}

/* PoP Grid */
.pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pop-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 250ms var(--ease), transform 200ms var(--ease);
}
.pop-card:hover { border-color: rgba(37, 99, 235, 0.2); transform: translateY(-2px); }
.pop-region { font-size: 15px; font-weight: 600; color: var(--white); }
.pop-cities { font-size: 13px; color: var(--text-sec); }
.pop-count { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 4px; }
.pop-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--green); margin-top: 4px; }

/* ===== CODE WINDOW ===== */
.code-window {
    background: #0B111E;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.code-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(26, 39, 68, 0.4);
    border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #EF4444; }
.code-dots span:nth-child(2) { background: #F59E0B; }
.code-dots span:nth-child(3) { background: #10B981; }

.code-tabs { display: flex; gap: 0; margin-left: 12px; }
.code-tab {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 4px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 200ms var(--ease);
}
.code-tab:hover { color: var(--text-sec); }
.code-tab.active { color: var(--white); background: rgba(37, 99, 235, 0.15); }

.code-copy {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(30, 58, 95, 0.4);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 10px;
    cursor: pointer;
    transition: all 200ms var(--ease);
}
.code-copy:hover { color: var(--text); border-color: var(--blue); }

.code-body {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.8;
    padding: 20px;
    overflow-x: auto;
    color: var(--text-sec);
    margin: 0;
    display: none;
}
.code-pane.active { display: block; }

/* Syntax highlighting — VS Code dark inspired */
.ck { color: #C586C0; font-weight: 500; } /* keywords */
.cs { color: #CE9178; } /* strings */
.cn { color: #9CDCFE; } /* names/properties */
.cv { color: #DCDCAA; } /* values/functions */
.cc { color: #6A9955; font-style: italic; } /* comments */

/* ===== PRICING ===== */
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.plan-card:hover { transform: translateY(-2px); border-color: rgba(30, 58, 95, 0.8); }
.plan-featured {
    border-color: var(--blue);
    box-shadow: var(--shadow-glow), var(--shadow-md);
    z-index: 2;
    transform: scale(1.02);
}
.plan-featured:hover { transform: scale(1.02) translateY(-2px); }
.plan-featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-card);
    background: radial-gradient(ellipse 60% 30% at 50% 0%, rgba(37, 99, 235, 0.08), transparent 60%);
    pointer-events: none;
}
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.plan-header { margin-bottom: 24px; }
.plan-header h3 { font-size: 20px; margin-bottom: 8px; }
.plan-price {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.plan-price span { font-size: 15px; font-weight: 500; color: var(--text-sec); }
.plan-header p { font-size: 14px; color: var(--text-sec); line-height: 1.6; }
.plan-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); line-height: 1.5; }
.plan-list li i { color: var(--green); margin-top: 3px; font-size: 12px; flex-shrink: 0; }
.plan-card .btn { width: 100%; justify-content: center; }

.pricing-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 32px;
    font-weight: 500;
}

/* ===== REVIEWS ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.review-card:hover { transform: translateY(-2px); border-color: rgba(30, 58, 95, 0.8); }

.review-quote {
    position: absolute;
    top: -4px;
    left: 16px;
    font-size: 80px;
    font-weight: 700;
    line-height: 1;
    color: var(--blue);
    opacity: 0.08;
    pointer-events: none;
    font-family: Georgia, serif;
}

.review-stars { display: flex; gap: 2px; color: var(--amber); font-size: 14px; margin-bottom: 16px; position: relative; }
.review-card blockquote {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
    flex: 1;
    border: 0;
    padding: 0;
    font-style: normal;
    position: relative;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}
.review-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    border: 2px solid rgba(37, 99, 235, 0.2);
}
.review-name { font-size: 14px; font-weight: 600; color: var(--white); }
.review-role { font-size: 13px; color: var(--text-sec); }
.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-btn);
    padding: 6px 12px;
    align-self: flex-start;
    position: relative;
}

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: color 250ms var(--ease);
}
.faq-q:hover { color: var(--blue-light); }
.faq-q span { flex: 1; }
.faq-q i { font-size: 14px; color: var(--text-sec); transition: transform 300ms var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 300ms var(--ease); }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 24px 20px; font-size: 15px; color: var(--text-sec); line-height: 1.7; }

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 96px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 60%);
    pointer-events: none;
}
.final-cta-inner { text-align: center; max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.final-cta-inner h2 { margin-bottom: 16px; }
.final-cta-inner p { font-size: 17px; color: var(--text-sec); line-height: 1.7; margin-bottom: 32px; }
.final-cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.final-cta-checks { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.final-cta-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sec);
    padding: 6px 14px;
    background: rgba(26, 39, 68, 0.5);
    border: 1px solid var(--border);
    border-radius: 100px;
}
.final-cta-pill i { color: var(--green); font-size: 11px; }

/* ===== FOOTER ===== */
.footer { padding: 64px 0 0; border-top: 1px solid var(--border); }
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
    padding-bottom: 48px;
}
.footer-logo { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-sec); line-height: 1.7; margin-bottom: 20px; max-width: 320px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-sec); font-size: 15px;
    transition: color 250ms var(--ease), border-color 250ms var(--ease);
}
.footer-socials a:hover { color: var(--blue); border-color: var(--blue); }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-sec); padding: 4px 0; transition: color 250ms var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--text-sec); }

/* ===== ANIMATIONS ===== */
.anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.anim.visible { opacity: 1; transform: translateY(0); }
.anim-d1 { transition-delay: 120ms; }

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 960px) {
    :root { --gutter: 20px; }

    .platform-intro { grid-template-columns: 1fr; gap: 32px; }
    .pop-grid { grid-template-columns: repeat(2, 1fr); }
    .bento { grid-template-columns: 1fr 1fr; }
    .plans { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .plan-featured { transform: none; order: -1; }
    .plan-featured:hover { transform: translateY(-2px); }
    .reviews { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }

    .nav-menu {
        position: fixed; inset: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column; align-items: center; justify-content: center; gap: 28px;
        opacity: 0; pointer-events: none;
        transition: opacity 250ms var(--ease);
        z-index: 999;
    }
    .nav-menu.open { opacity: 1; pointer-events: all; }
    .nav-menu a { font-size: 20px; color: var(--text); }
    .nav-menu a::after { display: none; }
    .nav-right { display: none; }
    .nav-toggle { display: block; z-index: 1001; }

    .hero { padding: 100px 0 64px; min-height: auto; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .comparison { grid-template-columns: 1fr; gap: 0; }
    .comparison-vs {
        padding: 12px 0;
    }
    .comparison-good { border-color: var(--border-hover); }

    .bento { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }

    .split, .split-reverse { grid-template-columns: 1fr; gap: 40px; }
    .split-reverse > :first-child { order: 1; }
    .split-reverse > :last-child { order: 2; }

    .pop-grid { grid-template-columns: 1fr; }
    .check-list-horizontal { gap: 12px; }

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

    .trust-divider { width: 40px; }

    .final-cta-checks { flex-direction: column; align-items: center; gap: 8px; }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 480px) {
    .section { padding: 56px 0; }
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .hero { padding: 96px 0 48px; }
    .hero-content { margin-bottom: 32px; }
    .stat-num { font-size: 28px; }
    .stat-card.glass { padding: 16px; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .hero-proof { flex-direction: column; align-items: flex-start; gap: 8px; }
    .comparison-col { padding: 24px; }
    .bento-card { padding: 24px; }
    .timeline-step { gap: 16px; }
    .footer-links-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .plan-featured { transform: none; }
    .plan-featured:hover { transform: translateY(-2px); }
    .dash-metric-val { font-size: 20px; }
}
