:root {
    --bg:           #070809;
    --bg-2:         #0d0f11;
    --bg-3:         #131618;
    --acid:         #a3ff47;
    --acid-dim:     #628f28;
    --white:        #eef0ee;
    --muted:        #8c9da6;
    --border:       #181e22;
    --border-hi:    #2a333a;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
    --font-body:    'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scanline overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.06) 2px,
        rgba(0,0,0,0.06) 4px
    );
    pointer-events: none;
    z-index: 999;
}

/* Dot-grid background */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(163,255,71,0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

* { position: relative; z-index: 1; }

/* ─── NAV ─────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 52px;
    background: rgba(7,8,9,0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--acid);
    letter-spacing: -0.02em;
}
.nav-logo em { color: var(--muted); font-style: normal; font-weight: 300; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-buy {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--bg);
    background: var(--acid);
    padding: 6px 16px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: opacity 0.2s;
}
.nav-buy:hover { opacity: 0.85; }

/* ─── HERO ────────────────────────────────────────── */
.hero {
    min-height: calc(100vh - 52px);
    display: grid;
    grid-template-columns: 1fr 480px;
    align-items: center;
    gap: 60px;
    padding: 80px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--acid);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--acid);
    flex-shrink: 0;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(64px, 8vw, 108px);
    font-weight: 900;
    line-height: 0.90;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 32px;
}
.hero-headline .accent { color: var(--acid); }

.hero-sub {
    font-size: 18px;
    font-weight: 300;
    color: #9aabb5;
    line-height: 1.7;
    max-width: 440px;
    margin-bottom: 48px;
}

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

.btn-primary {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--bg);
    background: var(--acid);
    padding: 14px 36px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(163,255,71,0.22);
}

.btn-ghost {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-hi);
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--muted); }

/* Token meter */
.hero-visual { flex-shrink: 0; }

.token-meter {
    background: var(--bg-2);
    border: 1px solid var(--border-hi);
    padding: 28px;
}

.meter-head {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
}
.meter-head .live {
    color: var(--acid);
    display: flex;
    align-items: center;
    gap: 6px;
}
.live-dot {
    width: 5px; height: 5px;
    background: var(--acid);
    border-radius: 50%;
    animation: blink 1.4s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.meter-bars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.bar-row {
    display: grid;
    grid-template-columns: 72px 1fr 52px;
    align-items: center;
    gap: 10px;
}
.bar-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.bar-track {
    height: 5px;
    background: var(--border);
    overflow: hidden;
}
.bar-fill { height: 100%; transition: width 1.1s cubic-bezier(0.4,0,0.2,1); }
.bar-fill.loaded  { background: var(--border-hi); }
.bar-fill.avoided { background: var(--acid); }
.bar-pct {
    font-family: var(--font-mono);
    font-size: 9px;
    text-align: right;
}

.meter-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    margin-bottom: 16px;
}
.meter-stat {
    background: var(--bg-2);
    padding: 16px 14px;
}
.meter-stat-val {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    color: var(--acid);
    line-height: 1;
    margin-bottom: 4px;
}
.meter-stat-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.phase-strip {
    display: flex;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.ph {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 5px 2px;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all 0.25s;
}
.ph.active {
    border-color: var(--acid);
    color: var(--acid);
    background: rgba(163,255,71,0.07);
}

/* ─── SECTION BASE ────────────────────────────────── */
section { padding: 96px 80px; }

.s-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--acid);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.s-eyebrow::before {
    content: '';
    display: block;
    width: 28px; height: 1px;
    background: var(--acid);
    flex-shrink: 0;
}

.s-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900;
    line-height: 0.93;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.s-sub {
    font-size: 16px;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.75;
}

/* ─── PIPELINE ────────────────────────────────────── */
.pipeline-section {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.pipeline-header { margin-bottom: 60px; max-width: 560px; }

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--border);
}
.p-phase {
    background: var(--bg-2);
    padding: 28px 20px 24px;
    position: relative;
}
.p-phase:not(:last-child)::after {
    content: '›';
    position: absolute;
    right: -10px;
    top: 28px;
    color: var(--border-hi);
    font-size: 14px;
    z-index: 2;
}
.p-num {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--acid-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.p-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}
.p-budget {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--acid);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}
.p-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}

/* ─── CAROUSEL ────────────────────────────────────── */
.carousel-section { padding-bottom: 96px; }
.carousel-header { margin-bottom: 48px; }

.carousel-wrap {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.42s cubic-bezier(0.25,0.46,0.45,0.94);
    will-change: transform;
}

.c-card {
    flex: 0 0 calc(33.33% - 11px);
    min-width: 280px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 32px;
    position: relative;
    transition: border-color 0.3s;
}
.c-card:hover { border-color: var(--border-hi); }

.c-cat {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--acid);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.c-avoid {
    position: absolute;
    top: 28px; right: 28px;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 900;
    color: var(--acid);
    line-height: 1;
}
.c-avoid small {
    font-size: 10px;
    font-weight: 400;
    color: var(--acid-dim);
    display: block;
    text-align: right;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    margin-top: 2px;
}
.c-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 10px;
    padding-right: 72px;
}
.c-desc {
    font-size: 14px;
    color: #8c9da6;
    line-height: 1.65;
}
.c-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
}
.c-dots { display: flex; gap: 6px; }
.c-dot {
    width: 5px; height: 5px;
    background: var(--border-hi);
    transition: all 0.3s;
    cursor: pointer;
}
.c-dot.active { background: var(--acid); width: 20px; }

.c-arrows { display: flex; gap: 6px; }
.c-arrow {
    width: 38px; height: 38px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    font-family: var(--font-mono);
}
.c-arrow:hover {
    border-color: var(--acid);
    color: var(--acid);
    background: rgba(163,255,71,0.05);
}

/* ─── BENCHMARKS ──────────────────────────────────── */
.bench-section {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.bench-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

.bench-table { width: 100%; border-collapse: collapse; }
.bench-table th {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
    padding: 0 12px 12px;
    border-bottom: 1px solid var(--border);
}
.bench-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    vertical-align: top;
}
.bench-table td:first-child {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
}
.bench-pct {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    color: var(--acid);
    line-height: 1;
}
.bench-bar {
    height: 2px;
    background: var(--border);
    margin-top: 5px;
}
.bench-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--acid-dim), var(--acid));
    transition: width 1.3s ease;
}

.bench-aside { display: flex; flex-direction: column; gap: 32px; }
.big-stat .num {
    font-family: var(--font-display);
    font-size: 88px;
    font-weight: 900;
    color: var(--acid);
    line-height: 1;
    letter-spacing: -0.02em;
}
.big-stat .lbl {
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.5;
    max-width: 260px;
}
.aside-rule { width: 36px; height: 1px; background: var(--border-hi); }

/* ─── PRICING ─────────────────────────────────────── */
.pricing-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

.price-card {
    background: var(--bg-2);
    border: 1px solid var(--border-hi);
    padding: 44px;
    position: relative;
}
.price-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 2px;
    background: var(--acid);
}

.price-amt {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}
.price-amt .dollar {
    font-size: 36px;
    color: var(--acid);
    vertical-align: top;
    line-height: 1.4;
}
.price-per {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 36px;
}

.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.price-features li {
    font-size: 14px;
    color: #9aabb5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.price-features li::before {
    content: '+';
    font-family: var(--font-mono);
    color: var(--acid);
    font-weight: 600;
    flex-shrink: 0;
}

.btn-buy {
    width: 100%;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--bg);
    background: var(--acid);
    border: none;
    padding: 17px;
    cursor: pointer;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: opacity 0.2s, transform 0.15s;
}
.btn-buy:hover { opacity: 0.88; transform: translateY(-1px); }

.price-note {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.06em;
}

.price-info { display: flex; flex-direction: column; gap: 28px; padding-top: 4px; }
.pi-block h3 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.pi-block p { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ─── LICENSE ─────────────────────────────────────── */
.license-section {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 80px;
}
.license-box {
    border: 1px solid var(--border);
    padding: 32px 36px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    line-height: 1.9;
    background: var(--bg);
    max-width: 840px;
    margin-top: 36px;
}
.license-box strong {
    color: var(--white);
    display: block;
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.license-box .l-section { margin-top: 16px; }
.license-box .l-section b {
    color: #9aa3a8;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

/* ─── INSTALL ─────────────────────────────────────── */
.install-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 60px;
}

.code-block {
    background: var(--bg-2);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.85;
}
.code-head {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.copy-btn {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted);
    background: var(--border);
    border: none;
    padding: 3px 8px;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s;
}
.copy-btn:hover { color: var(--white); background: var(--border-hi); }
.code-body { padding: 20px; overflow-x: auto; }
.code-body pre { white-space: pre; }

.cc  { color: #607a88; }
.ck  { color: #c792ea; }
.cs  { color: #c3e88d; }
.cf  { color: #82aaff; }
.cn  { color: var(--acid); }
.cmd { color: var(--acid); }

/* ─── FOOTER ──────────────────────────────────────── */
footer {
    padding: 36px 80px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-logo { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--acid); }
.footer-copy { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }

/* ─── DOWNLOAD SECTION ────────────────────────────── */
.platform-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.platform-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 8px 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s;
}
.platform-tab:hover { color: var(--white); }
.platform-tab.active {
    color: var(--acid);
    border-bottom-color: var(--acid);
}

.platform-pane { display: none; }
.platform-pane.active { display: block; }

.download-direct {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 0 4px;
}
.download-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.download-link {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--acid-dim);
    text-decoration: none;
    border: 1px solid var(--border-hi);
    padding: 3px 10px;
    border-radius: 3px;
    transition: color 0.2s, border-color 0.2s;
}
.download-link:hover {
    color: var(--acid);
    border-color: var(--acid-dim);
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.install-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--acid-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--acid);
}
.step-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    padding-top: 4px;
}
.step-text code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--acid);
    background: rgba(163,255,71,0.08);
    padding: 1px 6px;
    border-radius: 3px;
}

.nav-download {
    color: var(--acid) !important;
    border: 1px solid var(--acid-dim);
    padding: 4px 12px !important;
    border-radius: 4px;
    transition: background 0.2s !important;
}
.nav-download:hover { background: rgba(163,255,71,0.08) !important; }

.footer-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }

/* ─── ANIMATIONS ──────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.vis { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; padding: 60px 48px; min-height: auto; }
    .hero-visual { display: none; }
    .pipeline-grid { grid-template-columns: repeat(3,1fr); }
    .bench-layout, .pricing-layout, .install-layout { grid-template-columns: 1fr; }
    .c-card { flex: 0 0 calc(50% - 8px); }
    section, .license-section, footer { padding-left: 48px; padding-right: 48px; }
    nav { padding: 0 28px; }
}

@media (max-width: 640px) {
    .hero { padding: 48px 24px; }
    section, .license-section, footer { padding-left: 24px; padding-right: 24px; }
    nav { padding: 0 20px; }
    .nav-links li:not(:last-child) { display: none; }
    .pipeline-grid { grid-template-columns: repeat(2,1fr); }
    .p-phase:not(:last-child)::after { display: none; }
    .c-card { flex: 0 0 calc(85% - 8px); }
    .big-stat .num { font-size: 64px; }
}
