@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

/* ── Reset & tokens ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:     #6C63FF;
  --accent:    #00D4AA;
  --bg:        #0D0D12;
  --surface:   #14141C;
  --card:      #1C1C28;
  --border:    rgba(255,255,255,0.12);
  --text:      #F2F2F5;
  --muted:     #8888A0;
  --radius:    16px;
  --radius-sm: 10px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv01', 'ss01';
}

a { color: inherit; text-decoration: none; }

/* ── Layout helpers ─────────────────────────────────────────────────── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 72px 0; }

/* ── Nav ────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,18,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.wordmark-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
  font-family: var(--font-sans);
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius);
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 48px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
  transform-origin: center center;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-weight: 400;
}

/* ── Pipeline tagline animation ──────────────────────────────────── */
.pipeline-tagline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  flex-wrap: wrap;
  line-height: 1.4;
}

.pl-stage {
  font-size: clamp(17px, 2.1vw, 21px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  letter-spacing: -0.01em;
  opacity: 0; /* set by JS, declared here so no flash before script runs */
}

.pl-arrow {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--muted);
  display: inline-block;
  opacity: 0;
  line-height: 1;
}

.pl-tail {
  font-size: clamp(17px, 2.1vw, 21px);
  font-weight: 800;
  color: var(--text);
  display: inline-block;
  opacity: 0;
  letter-spacing: -0.01em;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item .check { color: var(--accent); }

/* ── Pipeline diagram ───────────────────────────────────────────────── */
.container-xl { max-width: 1300px; margin: 0 auto; padding: 0 32px; }

.pipeline-intro { text-align: center; margin-bottom: 60px; }
.pipeline-headline {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  margin: 12px 0 14px;
  letter-spacing: -0.03em;
}
.pipeline-sub { font-size: 17px; color: var(--muted); }

.pipeline {
  display: grid;
  grid-template-columns: 1fr 88px 1fr 88px 1fr;
  align-items: stretch;
  gap: 0;
  margin: 0 0 56px;
  position: relative;
  overflow: visible;
}

.pipeline-stage {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  text-align: center;
  position: relative;
  opacity: 0;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pipeline-stage:hover { border-color: rgba(108,99,255,0.4); }

/* Stage active glow states */
.s-glow-brand  { border-color: rgba(108,99,255,.7) !important; box-shadow: 0 0 60px rgba(108,99,255,.22), inset 0 0 40px rgba(108,99,255,.07); }
.s-glow-accent { border-color: rgba(0,212,170,.7)  !important; box-shadow: 0 0 60px rgba(0,212,170,.18),  inset 0 0 40px rgba(0,212,170,.06); }
.s-glow-orange { border-color: rgba(255,166,0,.7)  !important; box-shadow: 0 0 60px rgba(255,166,0,.18),  inset 0 0 40px rgba(255,166,0,.06); }

.stage-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  opacity: .5;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.stage-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 32px;
}

.stage-icon.conv  { background: rgba(108,99,255,0.16); color: #6C63FF; }
.stage-icon.comp  { background: rgba(0,212,170,0.13);  color: #00D4AA; }
.stage-icon.cloud { background: rgba(255,166,0,0.13);  color: #FFA600; }

.stage-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.stage-anim {
  width: 100%;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 20px 16px;
  margin-bottom: 20px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.stage-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: auto;
}

.stage-badge {
  position: absolute;
  top: -11px;
  right: 14px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: .06em;
  font-family: var(--font-mono);
}

.badge-free { background: rgba(0,212,170,0.16); color: var(--accent); }
.badge-paid { background: rgba(108,99,255,0.16); color: var(--brand); }

/* ── Conversion animation ─────────────── */
.conv-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.conv-chip {
  background: rgba(108,99,255,.18);
  color: #9B95FF;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 10px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  min-width: 62px;
  text-align: center;
  transition: background .3s, color .3s;
}

.conv-chip-to {
  background: rgba(0,212,170,.15);
  color: #00D4AA;
}

.conv-flow {
  flex: 1;
  position: relative;
  height: 14px;
  max-width: 64px;
}

.conv-flow svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  opacity: .6;
}

.conv-dot {
  position: absolute;
  top: 50%; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6C63FF;
  box-shadow: 0 0 8px rgba(108,99,255,.8);
  transform: translateY(-50%);
  will-change: transform;
}

.conv-ops-cycle {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .03em;
  transition: opacity .3s;
  font-family: var(--font-mono);
}

/* ── Compression animation ─────────────── */
.comp-visual { width: 100%; display: flex; flex-direction: column; gap: 9px; }

.comp-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.comp-row-lbl {
  font-size: 10px;
  color: var(--muted);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.comp-track {
  flex: 1;
  height: 14px;
  background: rgba(255,255,255,.06);
  border-radius: 7px;
  overflow: hidden;
}

.comp-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.05s linear;
}

.comp-bar-before {
  background: linear-gradient(90deg, rgba(108,99,255,.6), rgba(108,99,255,.4));
}

.comp-bar-after {
  background: linear-gradient(90deg, #00D4AA, #00FFB2);
  box-shadow: 0 0 8px rgba(0,212,170,.5);
}

.comp-row-val {
  font-size: 11px;
  font-weight: 700;
  width: 44px;
  flex-shrink: 0;
  color: var(--muted);
  font-family: var(--font-mono);
}

.comp-after-val { color: #00D4AA; }

.comp-ratio-pill {
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #6C63FF, #00D4AA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ── Cloud animation ─────────────── */
.cloud-providers {
  display: flex;
  gap: 7px;
  justify-content: center;
}

.cloud-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(255,166,0,.12);
  color: rgba(255,166,0,.6);
  letter-spacing: .04em;
  transition: background .3s, color .3s, box-shadow .3s;
  font-family: var(--font-mono);
}

.cloud-chip.active {
  background: rgba(255,166,0,.22);
  color: #FFA600;
  box-shadow: 0 0 12px rgba(255,166,0,.35);
}

.cloud-upload-wrap { width: 100%; display: flex; flex-direction: column; gap: 7px; }

.cloud-upload-track {
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.cloud-upload-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #FFA600, #FFD166);
  box-shadow: 0 0 10px rgba(255,166,0,.5);
  width: 0%;
  will-change: width;
}

.cloud-upload-head {
  position: absolute;
  top: -3px;
  width: 14px; height: 14px;
  background: #FFA600;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255,166,0,.8);
  left: 0;
  will-change: left;
}

.cloud-status {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  transition: color .3s;
  font-family: var(--font-mono);
}
.cloud-status.done { color: #00D4AA; }

/* ── Pipe arrows (connector) ─────────────── */
.pipe-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform-origin: left center;
  padding: 0 8px;
}

.pipe-arrow-track {
  width: 100%;
  height: 6px;
  background: rgba(108,99,255,.12);
  border-radius: 3px;
  position: relative;
  overflow: visible;
}

.pipe-arrow-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #6C63FF, #00D4AA);
  width: 0;
  will-change: width;
}

.pipe-dot {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: #6C63FF;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(108,99,255,.9), 0 0 24px rgba(108,99,255,.4);
  will-change: left;
}

.pipe-arrow-label {
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--muted);
  opacity: .45;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* Traveling particle dot (legacy, keep for JS compat) */
.pipe-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  will-change: transform;
}

/* ── Stats strip (removed, keep class for safety) ─────────────── */
.stats { display: none; }
.stat-cell { display: none; }
.stat-num { display: none; }

/* ── Pipeline responsive ─────────────── */
@media (max-width: 900px) {
  .pipeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pipe-arrow {
    flex-direction: row;
    width: 100%;
    height: 40px;
    padding: 0;
    justify-content: center;
    opacity: 1 !important;
  }
  .pipe-arrow-track { width: 80px; height: 4px; }
  .pipe-arrow-label { display: none; }
  .container-xl { padding: 0 20px; }
  .pipeline-headline { font-size: 26px; }
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Calculator ─────────────────────────────────────────────────────── */
#calculator {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 720px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.calc-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.seg-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seg-btn {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  transition: all .15s;
  font-family: var(--font-sans);
}

.seg-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.slider-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
}

input[type=range] {
  width: 100%;
  accent-color: var(--brand);
  height: 4px;
}

.result-card {
  background: linear-gradient(135deg,
    rgba(108,99,255,0.1) 0%,
    rgba(0,212,170,0.06) 100%);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.result-big {
  font-size: 44px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.03em;
}

.result-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 24px;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.result-tile {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
}

.result-tile-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.result-tile-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  font-family: var(--font-mono);
}

/* ── Features ───────────────────────────────────────────────────────── */
#features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child { border-bottom: none; }

.feature-row-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.feature-row-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .feature-row { gap: 18px; padding: 28px 0; }
  .feature-row-title { font-size: 18px; }
  .feature-row-desc { font-size: 14px; }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s;
}

.feature-card:hover { border-color: rgba(108,99,255,0.35); }

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: rgba(108,99,255,0.12);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Pricing ────────────────────────────────────────────────────────── */
#pricing {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

@media (max-width: 840px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; } }

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.pricing-card.featured {
  border-color: var(--brand);
  background: linear-gradient(160deg,
    rgba(108,99,255,0.08) 0%,
    var(--card) 60%);
  position: relative;
}

.pricing-badge-top {
  display: inline-block;
  background: linear-gradient(90deg, #6C63FF, #00D4AA);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.pricing-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.pricing-price {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  display: flex;
  gap: 8px;
}

.pricing-features li .check { color: var(--accent); flex-shrink: 0; }
.pricing-features li .lock  { color: var(--brand);  flex-shrink: 0; }

/* ── Download ───────────────────────────────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.dl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  transition: border-color .2s, transform .15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.dl-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-2px);
}

.dl-os { font-size: 32px; margin-bottom: 8px; color: var(--text); }

.dl-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.dl-family {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.dl-btn {
  width: 100%;
  justify-content: center;
  font-size: 12px;
  padding: 7px 12px;
}

/* ── Section headings ───────────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq-list { }

details {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  line-height: 1.4;
}

summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s;
  font-family: var(--font-mono);
}

details[open] summary::after { content: '−'; }

details p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.8;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .trust-bar { gap: 16px; flex-wrap: wrap; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
  .pipeline { gap: 0; }
  .pipe-arrow {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0;
    opacity: 1 !important;
  }
  .pipe-arrow-track {
    width: 4px;
    height: 32px;
    background: linear-gradient(180deg, #6C63FF, #00D4AA);
    border-radius: 2px;
    overflow: visible;
  }
  .pipe-arrow-fill { display: none; }
  .pipe-dot { display: none; }
  .pipe-arrow-label { display: none; }
}

/* ── Interactive Demo ────────────────────────────────────────────────── */
.demo-wrap {
  display: grid;
  grid-template-columns: 1fr 270px 1fr;
  align-items: center;
  min-height: 420px;
  margin: 32px -8% 72px;
  position: relative;
}

.demo-wrap::before {
  content: '';
  position: absolute;
  inset: -28px -48px;
  background-image:
    linear-gradient(rgba(108,99,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  border-radius: 32px;
  pointer-events: none;
}

/* Left: floating file cards */
.demo-col-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding-right: 0;
  position: relative;
  z-index: 2;
}

.demo-col-hint {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: right;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.fcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: grab;
  user-select: none;
  width: 230px;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  will-change: transform;
  touch-action: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.fcard:hover {
  border-color: rgba(108,99,255,.55);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(108,99,255,.2);
  transform: translateY(-2px) scale(1.01);
}
.fcard.src-faded { opacity: .18; pointer-events: none; }

.fcard-dot {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800;
  font-family: var(--font-mono);
  flex-shrink: 0;
  letter-spacing: 0;
}

.fcard-dot.t-json    { background: rgba(108,99,255,.22); color: #6C63FF; }
.fcard-dot.t-csv     { background: rgba(0,212,170,.18);  color: #00D4AA; }
.fcard-dot.t-parquet { background: rgba(255,166,0,.18);   color: #FFA600; }
.fcard-dot.t-binary  { background: rgba(255,107,107,.18); color: #FF6B6B; }

.fcard-info { flex: 1; min-width: 0; }
.fcard-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard-size { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: var(--font-mono); }
.fcard-grip { color: var(--muted); opacity: .4; font-size: 16px; flex-shrink: 0; }

/* Center: Zippy drop zone */
.demo-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.zdrop {
  width: 270px; height: 270px;
  background: linear-gradient(145deg, rgba(108,99,255,.06) 0%, var(--card) 100%);
  border: 2.5px dashed rgba(108,99,255,.38);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, background .2s, box-shadow .2s;
  box-shadow: 0 4px 40px rgba(108,99,255,.1), inset 0 1px 0 rgba(255,255,255,.06);
}

.zdrop.z-hover {
  border-color: var(--brand);
  border-style: solid;
  background: rgba(108,99,255,.09);
  box-shadow: 0 8px 60px rgba(108,99,255,.25), inset 0 1px 0 rgba(255,255,255,.08);
}

.zdrop-glow {
  position: absolute;
  inset: -48px;
  background: radial-gradient(circle at center, rgba(108,99,255,.28) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

.zdrop-bolt { font-size: 58px; line-height: 1; filter: drop-shadow(0 0 18px rgba(108,99,255,.55)); }
.zdrop-label { font-size: 15px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.4; }
.zdrop-sub { font-size: 11px; color: rgba(136,136,160,.55); text-align: center; letter-spacing: .05em; font-family: var(--font-mono); }

/* Progress ring */
.zdrop-ring {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}

.zdrop-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.zring-bg { fill: none; stroke: rgba(108,99,255,.08); stroke-width: 4; }
.zring-fill {
  fill: none; stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 478; stroke-dashoffset: 478;
  transform-origin: center; transform: rotate(-90deg);
}

.zdrop-pct {
  position: relative;
  font-size: 30px; font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: -0.03em;
}

/* Right: Results */
.demo-col-right {
  padding-left: 36px;
  display: flex; align-items: center;
  position: relative; z-index: 2;
}

.rp-wrap { width: 100%; opacity: 0; transform: translateX(18px); pointer-events: none; }

.rp-box {
  padding: 24px;
}

.rp-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }

.rp-badge {
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  font-family: var(--font-mono);
}

.rp-done { font-size: 12px; color: var(--accent); font-weight: 600; }

.rp-ratio {
  font-size: 60px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 4px;
  letter-spacing: -0.04em;
}

.rp-ratio-lbl { font-size: 13px; color: var(--muted); margin-bottom: 18px; font-family: var(--font-mono); }

.rp-sizes { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }

.rp-sz {
  flex: 1; background: rgba(255,255,255,.04);
  border-radius: var(--radius-sm); padding: 9px 11px; text-align: center;
}

.rp-sz-val { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.rp-sz-val.after { color: var(--accent); }
.rp-sz-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; font-family: var(--font-mono); }
.rp-arrow { color: var(--muted); font-size: 15px; flex-shrink: 0; }

.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.rp-metric { background: rgba(255,255,255,.03); border-radius: var(--radius-sm); padding: 9px 11px; }
.rp-m-ico  { font-size: 18px; margin-bottom: 5px; }
.rp-m-val  { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.rp-m-lbl  { font-size: 10px; color: var(--muted); margin-top: 1px; font-family: var(--font-mono); }

/* Drag clone */
.dragclone {
  position: fixed; pointer-events: none; z-index: 9999;
  background: var(--card);
  border: 1px solid rgba(108,99,255,.6);
  border-radius: var(--radius);
  padding: 15px 17px;
  display: flex; align-items: center; gap: 13px;
  width: 230px;
  box-shadow: 0 24px 64px rgba(0,0,0,.7), 0 0 0 1px rgba(108,99,255,.2);
  will-change: transform;
}

/* Particles */
.bzp { position: fixed; pointer-events: none; z-index: 9998; border-radius: 50%; }

/* Demo responsive */
@media (max-width: 960px) {
  .demo-wrap { grid-template-columns: 1fr 220px 1fr; }
  .zdrop { width: 220px; height: 220px; }
  .fcard { width: 196px; }
  .zdrop-bolt { font-size: 46px; }
}

@media (max-width: 760px) {
  .demo-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    margin: 32px 0 48px; /* reset negative margins — no overflow on mobile */
  }
  .demo-col-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-right: 0;
    width: 100%;
  }
  .demo-col-center {
    display: flex;
    justify-content: center;
  }
  .demo-col-right {
    display: flex;
    justify-content: center;
    padding-left: 0;
  }
  .demo-col-hint { display: none; }
  .fcard { width: 100%; }
  .rp-wrap { max-width: 360px; width: 100%; }
  .zdrop { width: 220px; height: 220px; }
}

/* ═══════════════════════════════════════════════════════════════════
   Benchmark Comparison Section
═══════════════════════════════════════════════════════════════════ */

/* ── Tab bar ─────────────────────────────────────────────────────── */
.cmp-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cmp-tab {
  padding: 7px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.cmp-tab:hover { color: var(--text); border-color: rgba(108,99,255,.4); }
.cmp-tab.active {
  background: rgba(108,99,255,.15);
  border-color: rgba(108,99,255,.6);
  color: var(--brand);
}

/* ── File label ──────────────────────────────────────────────────── */
.cmp-filelabel {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 24px;
  letter-spacing: .02em;
  min-height: 16px;
}

/* ── Metric toggle ───────────────────────────────────────────────── */
.cmp-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.cmp-metric-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.cmp-metric-btn {
  padding: 5px 14px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.cmp-metric-btn:hover { color: var(--text); }
.cmp-metric-btn.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.cmp-metric-hint {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

/* ── Chart container ─────────────────────────────────────────────── */
.cmp-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* ── Individual row ──────────────────────────────────────────────── */
.cmp-row {
  display: grid;
  grid-template-columns: 130px 1fr 64px 180px;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s;
}

.cmp-row-winner {
  border-color: rgba(108,99,255,.45);
  background: linear-gradient(135deg, rgba(108,99,255,.06) 0%, rgba(0,212,170,.04) 100%);
}
.cmp-row-winner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(108,99,255,.0);
  pointer-events: none;
}

.cmp-row-fallback {
  opacity: .7;
}

/* ── Codec name column ───────────────────────────────────────────── */
.cmp-codec {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex-shrink: 0;
}

.cmp-codec-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: -.02em;
}

.cmp-codec-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(108,99,255,.18);
  color: var(--brand);
  border: 1px solid rgba(108,99,255,.3);
  white-space: nowrap;
}

.cmp-codec-tag-meta { /* OpenZL is Meta */
  background: rgba(108,99,255,.18);
  color: var(--brand);
  border-color: rgba(108,99,255,.3);
}

.cmp-codec-tag-fallback {
  background: rgba(255,166,0,.12);
  color: #FFA600;
  border-color: rgba(255,166,0,.3);
}

/* ── Bar track ───────────────────────────────────────────────────── */
.cmp-bar-track {
  height: 18px;
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.cmp-bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  position: relative;
  transition: none; /* driven by anime.js */
}

.cmp-bar-fill-winner {
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  box-shadow: 0 0 12px rgba(108,99,255,.4);
}

.cmp-bar-fill-generic {
  background: rgba(255,255,255,.18);
}

/* ── Value pill ──────────────────────────────────────────────────── */
.cmp-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: -.03em;
  text-align: right;
  white-space: nowrap;
}

.cmp-value-winner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Speed / vs-badge column ─────────────────────────────────────── */
.cmp-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
}

.cmp-speeds {
  font-size: 10.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.cmp-vs-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,212,170,.12);
  color: var(--accent);
  border: 1px solid rgba(0,212,170,.28);
  white-space: nowrap;
  animation: badge-glow 2.4s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0px rgba(0,212,170,0); }
  50%       { box-shadow: 0 0 10px rgba(0,212,170,.35); }
}

/* ── Note (binary fallback) ──────────────────────────────────────── */
.cmp-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255,166,0,.07);
  border: 1px solid rgba(255,166,0,.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #FFA600;
  margin-bottom: 16px;
  line-height: 1.5;
}
.cmp-note i { margin-top: 1px; flex-shrink: 0; }

/* ── Source line ─────────────────────────────────────────────────── */
.cmp-source {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  margin-top: 4px;
}
.cmp-source a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .cmp-row {
    grid-template-columns: 100px 1fr 52px;
    grid-template-rows: auto auto;
  }
  .cmp-meta {
    display: none; /* hide speed column on small screens */
  }
  .cmp-metric-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cmp-metric-hint { display: none; }
}

@media (max-width: 480px) {
  .cmp-row {
    grid-template-columns: 88px 1fr 48px;
    padding: 10px 12px;
    gap: 10px;
  }
  .cmp-codec-name { font-size: 12px; }
  .cmp-value { font-size: 13px; }
  .cmp-codec-tag { display: none; }
}
