/* =====================================================================
   EdgeQuantX landing — design tokens mirrored from
   src/backtest_dashboard/static/css/backtest_results.css so the two
   surfaces feel like the same product.
   ===================================================================== */

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --card: #21262d;
  --card-hover: #2a313a;
  --border: #30363d;
  --border-strong: #485160;
  --accent: #58a6ff;
  --accent-soft: #8ec2ff;
  --accent-dim: rgba(31, 111, 235, 0.22);
  --text: #f0f6fc;
  --text-muted: #8b949e;
  --green: #3fb950;
  --amber: #d29922;
  --red: #f85149;
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.18s ease;
  --font-sans: "Segoe UI Variable", "IBM Plex Sans", "Inter", "Segoe UI",
               -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
               sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas,
               "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(88, 166, 255, 0.10) 0%, transparent 60%),
    radial-gradient(900px 500px at 95% -20%, rgba(210, 153, 34, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #0b1016 0%, #0d1117 50%, #0a0e14 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

::selection { background: var(--accent-dim); color: var(--text); }

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--accent); }

code, pre { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =====================================================================
   Top navigation
   ===================================================================== */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.02rem;
}
.brand:hover { color: var(--text); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.16), rgba(31, 111, 235, 0.05));
  border: 1px solid rgba(88, 166, 255, 0.35);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.05) inset,
              0 8px 24px rgba(88, 166, 255, 0.15);
}

.brand-word { font-weight: 600; }
.brand-x    { color: var(--accent); font-weight: 800; }

.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.topbar-link {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.topbar-link:hover { color: var(--text); }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition),
              box-shadow var(--transition), border-color var(--transition),
              color var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 7px 13px; font-size: 0.8rem; }
.btn-lg { padding: 13px 22px; font-size: 0.95rem; border-radius: 11px; }
.btn-xl { padding: 16px 28px; font-size: 1rem; border-radius: 12px; }

.btn-primary {
  background: var(--accent);
  color: #06080c;
  border-color: var(--accent);
  box-shadow:
    0 10px 30px rgba(88, 166, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  color: #06080c;
  background: #79beff;
  transform: translateY(-1px);
  box-shadow:
    0 14px 36px rgba(88, 166, 255, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(88, 166, 255, 0.08);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 110px 28px 80px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(80% 60% at 50% 45%, transparent 0%, rgba(11, 16, 22, 0.55) 65%, rgba(11, 16, 22, 0.95) 100%),
    linear-gradient(180deg, rgba(13, 17, 23, 0.4) 0%, transparent 30%, transparent 70%, rgba(11, 16, 22, 0.95) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(88, 166, 255, 0.28);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 28px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(63, 185, 80, 0.05); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
  color: var(--text);
}
.hero-title .grad {
  background: linear-gradient(120deg, #58a6ff 0%, #8ec2ff 40%, #f0f6fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-specs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 14px 6px;
  margin: 0 auto;
  list-style: none;
  border-top: 1px solid rgba(48, 54, 61, 0.6);
  border-bottom: 1px solid rgba(48, 54, 61, 0.6);
}
.hero-specs li {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 22px;
  border-right: 1px solid rgba(48, 54, 61, 0.6);
}
.hero-specs li:last-child { border-right: none; }
.spec-k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.spec-v {
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 600;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(48, 54, 61, 0.6);
  background: rgba(13, 17, 23, 0.5);
  backdrop-filter: blur(6px);
  animation: bob 2.6s ease-in-out infinite;
  transition: color var(--transition), border-color var(--transition);
}
.hero-scroll:hover { color: var(--accent); border-color: var(--accent); }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* =====================================================================
   Section "band" pattern (re-used by features, split, code, pricing)
   ===================================================================== */
.band {
  padding: 120px 0;
  position: relative;
}

.band-header {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.band-title {
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}

.band-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.65;
}

/* ----- 3-col feature grid ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  background: linear-gradient(180deg, rgba(33, 38, 45, 0.55) 0%, rgba(22, 27, 34, 0.55) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.55), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.feature:hover::before { opacity: 1; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--accent-dim);
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.feature p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}
.feature code {
  background: rgba(88, 166, 255, 0.08);
  color: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.84rem;
}

/* ----- Split (copy + mock) ----- */
.band-split { padding-top: 80px; padding-bottom: 80px; }
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-copy .band-title { text-align: left; }
.split-copy .band-sub   { text-align: left; margin: 0 0 24px; }
.split .band-header     { text-align: left; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.check-list strong { color: var(--text); font-weight: 600; }

/* ----- Stats band (under feature grid) ----- */
.stat-band {
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 36px;
  padding: 26px 36px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 200% at 50% 0%, rgba(88, 166, 255, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(33, 38, 45, 0.55) 0%, rgba(22, 27, 34, 0.55) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-band::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.6), transparent);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
}
.stat-plus {
  color: var(--accent);
  margin-left: 1px;
  font-weight: 700;
}
.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.stat-sep {
  color: var(--border-strong);
  font-size: 1.6rem;
  user-select: none;
}

/* ----- Trade carousel (auto-cycling) ----- */
.trade-carousel {
  position: relative;
}
.trade-carousel-frame {
  position: relative;
  background: linear-gradient(180deg, var(--card) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  /* Reserve space so slides stack cleanly without layout jumps. */
  min-height: 312px;
}
.trade-carousel-frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.35), transparent 40%, rgba(63, 185, 80, 0.18) 100%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
}
.trade-slide {
  position: absolute;
  inset: 18px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}
.trade-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.trade-carousel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 4px;
}
.tc-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.trade-carousel-dots {
  display: inline-flex;
  gap: 6px;
}
.tc-dot {
  width: 26px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}
.tc-dot:hover { background: var(--border-strong); }
.tc-dot.is-active {
  background: var(--accent);
  width: 38px;
}

.pill-red  { background: rgba(248, 81, 73, 0.15); color: var(--red); }
.pill-blue { background: rgba(88, 166, 255, 0.16); color: var(--accent-soft); }

.r-pos { color: var(--green); }
.r-neg { color: var(--red);   }

/* =====================================================================
   Big trades gallery (sub-block in §2)
   ===================================================================== */
.big-trades-wrap {
  margin-top: 80px;
}
.sub-header {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}
.sub-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.sub-title {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--text);
}
.sub-sub {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 56ch;
  line-height: 1.6;
}

.big-trades-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.big-trade {
  background: linear-gradient(180deg, var(--card) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
.big-trade::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(63, 185, 80, 0.45), transparent 35%, rgba(88, 166, 255, 0.30) 100%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.big-trade:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}
.big-trade:hover::after { opacity: 1; }

.bt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bt-r {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 0 30px rgba(63, 185, 80, 0.45);
}
.bt-chart {
  width: 100%;
  height: 200px;
  background: rgba(13, 17, 23, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(48, 54, 61, 0.5);
}
.bt-chart line { stroke-width: 1; }
.bt-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}
.bt-foot strong { color: var(--text); }

/* =====================================================================
   Concierge section — managed-service value props
   ===================================================================== */
.band-concierge {
  position: relative;
}
.band-concierge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(88, 166, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.band-concierge > .container { position: relative; z-index: 1; }

.concierge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.concierge-card {
  background: linear-gradient(180deg, rgba(33, 38, 45, 0.55) 0%, rgba(22, 27, 34, 0.55) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
  position: relative;
}
.concierge-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.45), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.concierge-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.concierge-card:hover::before { opacity: 1; }
.concierge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent-dim);
  color: var(--accent-soft);
  margin-bottom: 16px;
}
.concierge-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.concierge-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.concierge-cta {
  margin-top: 44px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(60% 200% at 50% 0%, rgba(88, 166, 255, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, var(--card) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.concierge-cta-copy {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
}
.concierge-cta-copy strong {
  color: var(--accent-soft);
  font-weight: 700;
}

/* ----- Trade card mock (shared by every carousel slide) ----- */
.trade-mock {
  background: linear-gradient(180deg, var(--card) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}
.trade-mock::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.35), transparent 40%, rgba(63, 185, 80, 0.18) 100%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
}
.trade-mock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.84rem;
}
.trade-mock-id   { color: var(--text-muted); font-family: var(--font-mono); }
.trade-mock-r    { margin-left: auto; color: var(--green); font-weight: 700; font-family: var(--font-mono); }
.trade-mock-chart {
  width: 100%;
  height: 220px;
  background: rgba(13, 17, 23, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(48, 54, 61, 0.4);
}
.trade-mock-foot {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-family: var(--font-mono);
}
.trade-mock-foot strong { color: var(--text); }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill-green { background: rgba(63, 185, 80, 0.15); color: var(--green); }

/* =====================================================================
   Orderflow section — footprint cards + side-by-side code aside
   ===================================================================== */
.band-orderflow {
  padding-top: 80px;
  padding-bottom: 80px;
}

.footprint-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.footprint-card {
  margin: 0;
  background: linear-gradient(180deg, var(--card) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition), border-color var(--transition);
}
.footprint-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.footprint-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.84rem;
}
.footprint-px {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.footprint-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: rgba(13, 17, 23, 0.5);
  border-radius: 6px;
  padding: 4px;
}
.fp-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background var(--transition);
}
.fp-bid, .fp-ask, .fp-px {
  font-variant-numeric: tabular-nums;
  white-space: pre;
}
.fp-bid { text-align: right; color: var(--red);   }
.fp-ask { text-align: left;  color: var(--green); }
.fp-px  { text-align: center; color: var(--text-muted); font-weight: 600; letter-spacing: 0.04em; }

/* Delta tint: ask-heavy (positive delta) = green halo; bid-heavy = red halo. */
.fp-row.pos-1 { background: rgba(63, 185, 80, 0.06); }
.fp-row.pos-2 { background: rgba(63, 185, 80, 0.10); }
.fp-row.pos-3 { background: rgba(63, 185, 80, 0.16); }
.fp-row.pos-4 { background: rgba(63, 185, 80, 0.24); }
.fp-row.neg-1 { background: rgba(248, 81, 73, 0.06); }
.fp-row.neg-2 { background: rgba(248, 81, 73, 0.12); }
.fp-row.neg-3 { background: rgba(248, 81, 73, 0.20); }
.fp-row.is-poc {
  border: 1px solid rgba(88, 166, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(88, 166, 255, 0.18);
}
.fp-row.is-imb {
  position: relative;
}
.fp-row.is-imb::after {
  content: "▶";
  position: absolute;
  right: -4px;
  font-size: 8px;
  color: var(--green);
}

.footprint-foot {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}
.footprint-foot strong { font-weight: 700; }

.orderflow-aside {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
}
.orderflow-aside-copy .of-h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text);
}
.orderflow-aside-copy p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 18px;
}

.code-frame-tight { max-width: 100%; margin: 0; }
.code-frame-tight .code-block { font-size: 0.78rem; padding: 18px 20px; }
.code-block .cm { color: #8b949e; font-style: italic; }

/* ----- Code frame ----- */
.code-frame {
  max-width: 980px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: linear-gradient(180deg, rgba(88, 166, 255, 0.06), rgba(22, 27, 34, 0.8));
  border-bottom: 1px solid var(--border);
}
.code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.code-dot-red    { background: #ff5f57; }
.code-dot-amber  { background: #febc2e; }
.code-dot-green  { background: #28c840; }
.code-path {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.code-block {
  margin: 0;
  padding: 22px 26px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: #c9d1d9;
  white-space: pre;
  overflow-x: auto;
}
.code-block .k     { color: #ff7b72; }   /* keyword */
.code-block .cls   { color: #ffa657; }   /* class name */
.code-block .s     { color: #a5d6ff; }   /* string */
.code-block .n     { color: #79c0ff; }   /* number */
.code-block .fn    { color: #d2a8ff; }   /* function */
.code-block .self  { color: #ff7b72; font-style: italic; }

.caption {
  text-align: center;
  margin: 24px auto 0;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.caption code {
  background: rgba(88, 166, 255, 0.08);
  color: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ----- Pricing card ----- */
.price-card {
  max-width: 780px;
  margin: 0 auto;
  background:
    radial-gradient(80% 130% at 50% -20%, rgba(88, 166, 255, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--card) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.55), transparent);
}

.price-formula {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto 28px;
  font-family: var(--font-mono);
  font-size: clamp(0.92rem, 1.4vw, 1.1rem);
  color: var(--text);
}
.pf-token {
  background: rgba(88, 166, 255, 0.10);
  border: 1px solid var(--accent-dim);
  color: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 8px;
}
.pf-op { color: var(--text-muted); }

.price-bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.price-bullets li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}
.price-bullets li strong { color: var(--text); font-weight: 600; }
.price-bullets li code {
  background: rgba(88, 166, 255, 0.08);
  color: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.86rem;
}
.check {
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

/* =====================================================================
   FINAL CTA + FOOT
   ===================================================================== */
.finale {
  padding: 100px 28px 120px;
  text-align: center;
  position: relative;
}
.finale::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.4), transparent);
}
.finale-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}
.finale-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 56ch;
}

.site-foot {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(48, 54, 61, 0.6);
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.foot-brand { font-family: var(--font-mono); letter-spacing: 0.04em; }
.foot-links {
  display: inline-flex;
  gap: 22px;
}
.foot-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.foot-links a:hover { color: var(--text); }

/* =====================================================================
   Scroll reveal (controlled by app.js via .is-visible)
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footprint-row { grid-template-columns: 1fr; }
  .orderflow-aside { grid-template-columns: 1fr; gap: 24px; }
  .big-trades-grid { grid-template-columns: 1fr; }
  .concierge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .concierge-cta { flex-direction: column; text-align: center; }
  .topbar { padding: 18px 22px; }
  .topbar-link { display: none; }
  .topbar-right { gap: 10px; }
  .band { padding: 80px 0; }
  .stat-band { padding: 22px 24px; gap: 14px 20px; }
  .stat-sep { display: none; }
}

@media (max-width: 640px) {
  .concierge-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding: 96px 20px 60px; }
  .hero-specs { flex-direction: column; padding: 8px 0; }
  .hero-specs li {
    flex-direction: row;
    gap: 16px;
    padding: 8px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
    align-items: center;
  }
  .hero-specs li:last-child { border-bottom: none; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .topbar { padding: 16px 18px; }
  .code-block { font-size: 0.74rem; padding: 16px; }
  .price-formula { font-size: 0.86rem; }
  .container { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-scroll, .hero-eyebrow .dot { animation: none; }
}

/* =====================================================================
   Rework additions — topbar IG, export cards, compact concierge,
   Instagram feature, waiting-list + contact forms, privacy page.
   All built from the existing design tokens above.
   ===================================================================== */

/* ----- Topbar Instagram glyph ----- */
.topbar-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: color var(--transition), border-color var(--transition),
              background var(--transition);
}
.topbar-ig:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(88, 166, 255, 0.08);
}

/* ----- Sweeps caption inside the code frame ----- */
.sweep-caption {
  margin: 16px 2px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
}
.sweep-caption strong { color: var(--text); }

/* ----- Export to live ----- */
.export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.export-card {
  background: linear-gradient(180deg, rgba(33, 38, 45, 0.6) 0%, rgba(22, 27, 34, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
.export-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.export-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.export-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent-soft);
  flex-shrink: 0;
}
.export-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.export-tag {
  display: inline-block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.export-card > p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0 0 18px;
}
.export-list { gap: 10px; }
.export-list li { font-size: 0.9rem; }

/* ----- Compact band + concierge mention ----- */
.band-compact { padding: 64px 0; }
.concierge-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(33, 38, 45, 0.5) 0%, rgba(22, 27, 34, 0.5) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.concierge-mini-copy { flex: 1 1 380px; }
.concierge-mini-copy .kicker { margin-bottom: 8px; }
.concierge-mini-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}
.concierge-mini-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 60ch;
}
.concierge-mini .btn { flex-shrink: 0; }

/* ----- Instagram power-user feature ----- */
.ig-feature {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
  background:
    radial-gradient(900px 380px at 100% -40%, rgba(220, 39, 67, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(33, 38, 45, 0.6) 0%, rgba(22, 27, 34, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.ig-feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #f09433, #dc2743 45%, #bc1888 90%);
  opacity: 0.85;
}
.ig-feature-avatar {
  flex-shrink: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ig-monogram {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ig-feature-body { flex: 1; min-width: 0; }
.ig-feature-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 6px 0 14px;
  color: var(--text);
}
.ig-feature-title a {
  color: var(--accent-soft);
  border-bottom: 1px dashed rgba(142, 194, 255, 0.4);
}
.ig-feature-title a:hover { color: var(--accent); }
.ig-feature-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 60ch;
}
.ig-btn {
  background: linear-gradient(135deg, #f09433, #dc2743 55%, #bc1888);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px rgba(220, 39, 67, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.ig-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(220, 39, 67, 0.36),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ----- Waiting-list + contact forms ----- */
.split-forms { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 24px; }
.form-card {
  background: linear-gradient(180deg, rgba(33, 38, 45, 0.6) 0%, rgba(22, 27, 34, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-card .kicker { text-align: left; }
.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}
.form-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 22px;
}

.signup-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label,
.field .field-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.field-hint { color: var(--text-muted); font-weight: 400; }

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.signup-form textarea { resize: vertical; min-height: 96px; }
.signup-form input:focus,
.signup-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

/* Honeypot — present in the DOM for bots, off-screen for humans. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Interest chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition),
              background var(--transition);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-on {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(88, 166, 255, 0.12);
}
.chip-other { margin-top: 10px; }

/* Consent + submit */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.consent input {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.consent a { color: var(--accent-soft); text-decoration: underline; }
.consent a:hover { color: var(--accent); }

.form-submit { width: 100%; margin-top: 4px; }
.form-submit:disabled { opacity: 0.6; cursor: progress; }

.form-status {
  margin: 4px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  min-height: 1.2em;
}
.form-status.is-ok { color: var(--green); }
.form-status.is-err { color: var(--red); }

/* ----- Privacy page ----- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 28px 100px;
}
.legal h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
}
.legal .legal-updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 36px;
}
.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 34px 0 10px;
  letter-spacing: -0.01em;
}
.legal p, .legal li {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-soft); }
.legal a:hover { color: var(--accent); }
.legal .legal-back {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ----- Responsive for the rework additions ----- */
@media (max-width: 980px) {
  .export-grid { grid-template-columns: 1fr; }
  .split-forms { grid-template-columns: 1fr; }
  .ig-feature { flex-direction: column; text-align: center; gap: 24px; padding: 32px 24px; }
  .ig-feature-sub { margin-left: auto; margin-right: auto; }
  .concierge-mini { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .topbar-ig { display: none; }
  .form-card { padding: 24px; }
}
