/* ============================================================
   ZENITH — landing page styles
   Dark terminal aesthetic. Inter + JetBrains Mono.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg:        #0F1117;
  --bg-2:      #0B0D12;   /* darker band */
  --bg-3:      #0A0C10;
  --card:      #14181F;
  --card-2:    #181D26;
  --border:    #232934;
  --border-2:  #2E3642;
  --green:     #00C896;
  --green-2:   #19E0A9;
  --green-dim: rgba(0,200,150,.10);
  --green-line:rgba(0,200,150,.32);
  --green-glow:rgba(0,200,150,.45);
  --red:       #FF5C5C;
  --amber:     #F5A623;
  --text:      #E6E8EB;
  --text-2:    #AAB1BB;
  --muted:     #79808B;
  --faint:     #4F5662;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(0,200,150,.24); }
a { color: inherit; text-decoration: none; }

*::-webkit-scrollbar { width: 11px; }
*::-webkit-scrollbar-thumb { background: #20262f; border-radius: 6px; border: 3px solid var(--bg); }

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -.5px; }
.green { color: var(--green); }
.muted { color: var(--muted); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); font-family: var(--mono);
}
section { position: relative; }

/* reveal-on-scroll: transform-only slide-up so content is NEVER hidden
   (some embedded/print render contexts freeze transitions). Subtle
   enhancement in real browsers; fully visible everywhere regardless. */
.js .reveal { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal:not(.in) { transform: translateY(18px); }
.js .reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in) { transform: none; } }

/* ============================================================ NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 64px; display: flex; align-items: center;
  border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.nav.scrolled { background: rgba(11,13,18,.82); backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; width: 100%; }
/* ZENITH wordmark — full "ZENITH." is the logo (Inter 700, .16em tracking, green dot) */
.logo { display: inline-flex; align-items: baseline; font-weight: 700; font-size: 18px; letter-spacing: 0.16em; line-height: 1; white-space: nowrap; color: var(--text); }
.logo .dot { color: var(--green); letter-spacing: 0; }
.nav-links { display: flex; gap: 32px; margin-left: 48px; }
.nav-links a { font-size: 14px; color: var(--text-2); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn {
  font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 8px; transition: all .15s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--green); color: #052b20; }
.btn-primary:hover { background: var(--green-2); box-shadow: 0 0 24px rgba(0,200,150,.35); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.03); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 9px; }

/* ============================================================ HERO */
.hero { padding: 150px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(120% 80% at 70% 0%, #000 0%, transparent 70%);
}
.hero-glow {
  position: absolute; top: -160px; right: -80px; width: 720px; height: 620px;
  background: radial-gradient(circle, rgba(0,200,150,.16), transparent 62%);
  filter: blur(8px);
}
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; opacity: .55; }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500;
  color: var(--text-2); background: rgba(255,255,255,.03); border: 1px solid var(--border);
  padding: 6px 12px 6px 8px; border-radius: 999px; margin-bottom: 26px;
}
.hero-badge .led { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero-badge b { color: var(--text); font-weight: 600; }
h1.hero-title { font-size: 56px; line-height: 1.04; font-weight: 700; letter-spacing: -1.5px; margin: 0 0 22px; text-wrap: balance; }
h1.hero-title .accent { color: var(--green); }
.hero-sub { font-size: 18px; color: var(--text-2); margin: 0 0 34px; max-width: 520px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; align-items: center; }
.hero-fine { margin-top: 22px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-fine svg { width: 15px; height: 15px; color: var(--green); }

/* hero terminal card */
.term {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden;
}
.term-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-title { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.term-body { padding: 16px; }
.term-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13px; }
.term-row .k { color: var(--muted); font-size: 12.5px; }
.term-row .v { font-family: var(--mono); font-weight: 600; }
.term-chart { margin: 10px 0 4px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); padding: 8px; }
.pos { color: var(--green); } .neg { color: var(--red); }
.tag-long { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--green); background: var(--green-dim); padding: 2px 7px; border-radius: 4px; letter-spacing: .5px; }

/* ============================================================ STATS BAR */
.statsbar { border-block: 1px solid var(--border); background: var(--bg-2); }
.statsbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 34px 24px; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: none; }
.stat-cell .num { font-family: var(--mono); font-size: 38px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
.stat-cell .lbl { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ============================================================ SECTION SCAFFOLD */
.sec { padding: 100px 0; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: 40px; font-weight: 700; letter-spacing: -1px; margin: 14px 0 16px; line-height: 1.1; text-wrap: balance; }
.sec-head h2 .accent { color: var(--green); }
.sec-head p { font-size: 17px; color: var(--text-2); margin: 0; line-height: 1.6; }

/* ============================================================ HOW IT WORKS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px;
  position: relative; transition: border-color .2s, transform .2s;
}
.step-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.step-card .sn { font-family: var(--mono); font-size: 12px; color: var(--green); font-weight: 600; letter-spacing: 1px; }
.step-card .diag { height: 132px; margin: 14px 0 16px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.step-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 7px; }
.step-card p { font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.55; }
.step-arrow { position: absolute; top: 64px; right: -13px; z-index: 3; color: var(--border-2); width: 20px; height: 20px; }
.steps .step-card:last-child .step-arrow { display: none; }

.filters { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2);
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
}
.filter-chip svg { width: 14px; height: 14px; color: var(--green); }

/* ============================================================ DASHBOARD PREVIEW */
.dashprev { background: var(--bg-2); border-block: 1px solid var(--border); }
.browser {
  border-radius: 12px; border: 1px solid var(--border-2); overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.55); background: var(--bg);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #0c0e13; border-bottom: 1px solid var(--border); }
.browser-url {
  margin-left: 10px; flex: 1; max-width: 320px; font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px 12px;
  display: flex; align-items: center; gap: 7px;
}
.browser-url svg { width: 12px; height: 12px; color: var(--green); }
.dash-feats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 30px; }
/* dashboard preview mock */
.dash-mock { padding: 20px; background: var(--bg); }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.dash-stat { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px; min-width: 0; }
.dash-stat .dl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.dash-stat .dv { font-size: 22px; font-weight: 700; margin-top: 6px; }
.dash-body { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; align-items: start; }
.dash-body .panel { padding: 16px; min-width: 0; }
.dash-trades { margin-top: 6px; font-family: var(--mono); font-size: 12px; }
.dash-trades .tr { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dash-trades .tr:last-child { border-bottom: none; }
.dash-trades .tr .pair { color: var(--text-2); }
.dash-feat { display: flex; gap: 11px; align-items: flex-start; }
.dash-feat .fi { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }
.dash-feat .ft { font-size: 14.5px; font-weight: 600; }
.dash-feat .fd { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* ============================================================ FEATURES */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 26px 24px;
  transition: border-color .2s, transform .2s, background .2s;
}
.feat-card:hover { border-color: var(--green-line); transform: translateY(-3px); background: var(--card-2); }
.feat-ic {
  width: 42px; height: 42px; border-radius: 10px; background: var(--green-dim); color: var(--green);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feat-ic svg { width: 21px; height: 21px; }
.feat-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.feat-card p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.55; }

/* ============================================================ PERFORMANCE */
.perf-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: stretch; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.panel-title { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 600; margin: 0 0 4px; display: flex; justify-content: space-between; align-items: center; }
.perf-big { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 14px; }
.perf-big .v { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: -1.5px; }
.perf-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.perf-mini .m .v { font-family: var(--mono); font-size: 22px; font-weight: 700; }
.perf-mini .m .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.year-row { display: grid; grid-template-columns: 46px 1fr 64px; gap: 12px; align-items: center; margin-bottom: 11px; font-size: 13px; }
.year-row .yr { font-family: var(--mono); color: var(--text-2); }
.year-track { height: 22px; background: var(--bg-2); border-radius: 4px; overflow: hidden; position: relative; }
.year-fill { height: 100%; background: linear-gradient(90deg, rgba(0,200,150,.5), var(--green)); border-radius: 4px; }
.year-row .yv { font-family: var(--mono); font-size: 12.5px; text-align: right; color: var(--green); }

/* ============================================================ FAQ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: border-color .2s;
}
.faq-item[open] { border-color: var(--border-2); }
.faq-item:hover { border-color: var(--border-2); }
.faq-q {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-size: 16.5px; font-weight: 600; color: var(--text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-ic { width: 20px; height: 20px; color: var(--muted); flex: none; transition: transform .25s ease, color .2s; }
.faq-item[open] .faq-ic { transform: rotate(180deg); color: var(--green); }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0 0 12px; font-size: 14.5px; color: var(--text-2); line-height: 1.65; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a b { color: var(--text); font-weight: 600; }
/* gentle open animation (collapsed by default in JS-enabled browsers) */
.js .faq-item:not([open]) .faq-a { display: none; }
.faq-item[open] .faq-a { animation: faqIn .25s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .faq-item[open] .faq-a { animation: none; } .faq-ic { transition: none; } }

/* ============================================================ RISK */
.risk { background: var(--bg-2); border-block: 1px solid var(--border); }
.risk .wrap { padding-block: 26px; display: flex; gap: 14px; align-items: flex-start; }
.risk svg { width: 20px; height: 20px; color: var(--amber); flex: none; margin-top: 2px; }
.risk p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.risk b { color: var(--text-2); font-weight: 600; }

/* ============================================================ FINAL CTA */
.cta { padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.cta-glow { position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%); width: 700px; height: 480px; background: radial-gradient(circle, rgba(0,200,150,.12), transparent 65%); pointer-events: none; }
.cta h2 { font-size: 44px; font-weight: 700; letter-spacing: -1.2px; margin: 0 0 16px; position: relative; }
.cta p { font-size: 18px; color: var(--text-2); margin: 0 0 32px; position: relative; }
.cta-form { display: inline-flex; gap: 10px; position: relative; }
.cta-form input {
  width: 300px; background: var(--card); border: 1px solid var(--border-2); border-radius: 9px;
  padding: 14px 16px; color: var(--text); font-size: 15px; font-family: var(--sans); outline: none;
}
.cta-form input:focus { border-color: var(--green-line); }
.cta-note { margin-top: 18px; font-size: 13px; color: var(--muted); position: relative; }

/* ============================================================ INSTALL */
/* Wider head + no wrap so the title stays on one line on desktop. */
#install .sec-head { max-width: 860px; }
#install .sec-head h2 { white-space: nowrap; }
.install-sub-text { font-size: 14px !important; }
.install-block { max-width: 640px; margin: 0 auto; }
.install-hint-line { text-align: center; font-size: 13px; color: var(--muted); margin: 20px 0 14px; }
.install-tabs { display: flex; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 22px; }
.install-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 12px; border-radius: 7px; border: 1px solid transparent; cursor: pointer;
  background: transparent; color: var(--muted); font-family: var(--sans); font-size: 14px; font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}
.install-tab svg { width: 16px; height: 16px; }
.install-tab:hover { color: var(--text-2); }
.install-tab.active { background: var(--card-2); color: var(--text); border-color: var(--border-2); }
.install-steps { list-style: none; counter-reset: step; margin: 0; padding: 0 4px; }
.install-steps li { counter-increment: step; position: relative; padding: 11px 0 11px 40px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.install-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 9px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--green-dim); color: var(--green);
  font-family: var(--mono); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.install-steps b { color: var(--text); font-weight: 600; }

/* ============================================================ FOOTER */
footer { border-top: 1px solid var(--border); padding: 56px 0 36px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .logo { margin-bottom: 14px; }
.foot-brand p { font-size: 13.5px; color: var(--muted); max-width: 260px; line-height: 1.6; margin: 0; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-2); margin: 0 0 16px; }
.foot-col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 11px; transition: color .15s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-bottom .cp { font-size: 13px; color: var(--faint); }
.foot-bottom .dis { font-size: 12px; color: var(--faint); max-width: 560px; line-height: 1.5; }

/* ============================================================ RESPONSIVE */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  h1.hero-title { font-size: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none !important; }
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .perf-grid { grid-template-columns: 1fr; }
  .dash-feats { grid-template-columns: 1fr; }
  .dash-body { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero { padding-top: 120px; }
  h1.hero-title { font-size: 36px; letter-spacing: -1px; }
  .hero-sub { font-size: 16px; }
  .statsbar .wrap { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-cell:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-cell .num { font-size: 30px; }
  .sec { padding: 72px 0; }
  .sec-head h2, .cta h2 { font-size: 30px; }
  .steps, .feat-grid { grid-template-columns: 1fr; }
  #install .sec-head h2 { white-space: normal; }
  .install-tab { font-size: 13px; padding: 10px 8px; gap: 6px; }
  .cta-form { flex-direction: column; width: 100%; }
  .cta-form input { width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .wrap { padding: 0 20px; }
  .dash-mock { padding: 12px; }
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dash-stat { padding: 11px 12px; }
  .dash-stat .dv { font-size: 18px; }
  .browser-url { max-width: none; }
}

/* ============================================================ HOW IT WORKS — pinned scroll
   Paste this block at the end of bot/landing-page/landing-page.css.
   Uses your existing tokens (--green, --bg-2, --mono, etc.) — nothing else to change.
   ============================================================ */
.amd { position: relative; background: var(--bg-2); border-block: 1px solid var(--border); }
.amd-track { height: 380vh; }                 /* total scroll the section consumes — raise to slow it down */
.amd-stick { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.amd-stick::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(120% 90% at 50% 28%, #000, transparent 75%); mask-image: radial-gradient(120% 90% at 50% 28%, #000, transparent 75%); pointer-events: none; }
.amd-inner { width: 100%; position: relative; z-index: 1; }
.amd-top { margin-bottom: 26px; }
.amd-top .eyebrow { margin-bottom: 8px; }
.amd-top h2 { font-size: 34px; font-weight: 700; letter-spacing: -1px; margin: 0; line-height: 1.1; }
.amd-top h2 .accent { color: var(--green); }
.amd-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 40px; align-items: center; }
.amd-steps { display: flex; flex-direction: column; gap: 10px; }
.amd-step { padding: 15px 18px; border: 1px solid var(--border); border-radius: 12px; background: rgba(20,24,31,.45); opacity: .45; transition: opacity .35s, border-color .35s, background .35s, transform .35s; }
.amd-step.done { opacity: .72; }
.amd-step.on { opacity: 1; border-color: var(--green-line); background: var(--card); transform: translateX(4px); }
.amd-sn { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.amd-step.on .amd-sn { color: var(--green); }
.led-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; transition: background .3s, box-shadow .3s; }
.amd-step.on .led-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.amd-step.done .led-dot { background: var(--green); }
.amd-step h3 { font-size: 17px; font-weight: 600; margin: 9px 0 5px; }
.amd-step p { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.5; }
.amd-bar { height: 2px; background: rgba(255,255,255,.06); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.amd-bar > span { display: block; height: 100%; background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .12s linear; }
.amd-stage { position: relative; }
.amd-chartcard { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.amd-chart-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.amd-pair { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.amd-readout { font-family: var(--mono); font-size: 12px; display: flex; gap: 14px; align-items: center; }
.amd-readout .r-phase { color: var(--text-2); }
.amd-readout .r-val { font-weight: 700; color: var(--green); }
.amd-readout .r-val.muted { color: var(--muted); font-weight: 600; }
#amd-chart { display: block; width: 100%; height: 404px; }
.amd-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; letter-spacing: .3px; }
/* ===== Mobile: card-deck reflow — deck on top, chart below ===== */
@media (max-width: 980px) {
  .amd-track { height: 420vh; }
  .amd-stick { position: sticky; top: 0; height: 100vh; padding: 0; }
  .amd-inner { display: flex; flex-direction: column; height: 100%; padding-top: 16px; padding-bottom: 18px; }
  .amd-top { margin-bottom: 14px; }
  .amd-top h2 { font-size: 23px; letter-spacing: -.6px; }
  .amd-grid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; flex: 1; min-height: 0; }

  /* the deck */
  .amd-steps { position: relative; width: 100%; height: 196px; flex: none; }
  .amd-step {
    position: absolute; left: 0; right: 0; top: 0; margin: 0;
    background: var(--card); border-color: var(--border);
    transform: translateY(calc(var(--depth, 0) * 16px)) scale(calc(1 - var(--depth, 0) * 0.04));
    transform-origin: top center;
    opacity: calc(1 - var(--depth, 0) * 0.24);
    transition: transform .55s cubic-bezier(.45,0,.2,1), opacity .45s ease, border-color .3s, background .3s;
    will-change: transform, opacity;
    box-shadow: 0 -1px 0 rgba(0,0,0,.4), 0 14px 30px rgba(0,0,0,.4);
  }
  .amd-step.on { transform: translateY(0) scale(1); opacity: 1; border-color: var(--green-line); }
  .amd-step .amd-bar { transition: opacity .3s; }
  .amd-step:not(.on) .amd-bar { opacity: 0; }

  /* the chart, under the deck, filling remaining height */
  .amd-stage { flex: 1; width: 100%; min-height: 0; display: flex; flex-direction: column; }
  .amd-chartcard { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  #amd-chart { flex: 1; height: 100%; min-height: 200px; }
  .amd-hint { display: none; }
}

/* reduced motion: plain static stack, no pin */
@media (prefers-reduced-motion: reduce) {
  .amd-track { height: auto; }
  .amd-stick { position: static; height: auto; padding: 72px 0; }
  .amd-inner { display: block; height: auto; }
  .amd-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .amd-steps { position: static; height: auto; }
  .amd-step { position: static; transform: none; opacity: 1; margin-bottom: 10px; box-shadow: none; }
  #amd-chart { height: 300px; }
}

/* ============================================================
   TRACK RECORD — interactive equity replay (pin wrapper)
   The #performance section pins and replays all 886 trades on scroll.
   Reuses .sec / .sec-head / .perf-grid / .panel / .perf-big / .perf-mini.
   ============================================================ */
.perf-pin { position: relative; }
.perf-track { height: 340vh; }              /* scroll runway — raise to slow the replay */
.perf-stick { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding: 56px 0; box-sizing: border-box; }
.perf-canvas-wrap { height: clamp(240px, 38vh, 320px); margin-top: 12px; }
#bt-chart { display: block; width: 100%; height: 100%; }
.perf-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 16px; letter-spacing: .3px; transition: opacity .4s; }

/* Mobile: stay pinned + interactive, but reflow to card-on-top / chart-on-bottom,
   clamp the description, and clear the fixed 64px nav. */
@media (max-width: 980px) {
  .perf-track { height: 320vh; }
  .perf-stick { min-height: 100vh; padding: 76px 0 16px; align-items: flex-start; }  /* clears the fixed 64px nav */
  #performance .sec-head { margin-bottom: 10px; }
  #performance .sec-head h2 { font-size: 20px; }
  #performance .sec-head p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.5; }
  .perf-grid { gap: 10px; }
  /* card on top, chart on the bottom */
  #performance .perf-grid > .panel:nth-child(1) { order: 2; }
  #performance .perf-grid > .panel:nth-child(2) { order: 1; }
  #performance .panel { padding: 13px; }
  .perf-canvas-wrap { height: clamp(120px, 17vh, 150px); margin-top: 8px; }
  #performance .perf-big { margin-bottom: 4px; }
  #performance .perf-big .v { font-size: 26px; }
  .perf-mini { gap: 6px; }
  #performance .perf-mini .m { padding: 7px 9px; }
  #performance .perf-mini .v { font-size: 17px; }
  #performance .perf-mini .l { font-size: 11px; }
  /* keep the methodology note visible on mobile too */
  #performance .perf-grid .panel:last-child > div:last-child { margin-top: 11px; padding-top: 11px; }
  #performance .perf-grid .panel:last-child > div:last-child .panel-title { margin-bottom: 8px !important; }
  #performance .perf-grid .panel:last-child > div:last-child p { font-size: 12px; line-height: 1.45; }
  .perf-hint { margin-top: 8px; }
  #performance .pt-sub { display: none; }   /* mobile: just "Equity curve" + PnL */
}
@media (prefers-reduced-motion: reduce) {
  .perf-track { height: auto; }
  .perf-stick { position: static; min-height: 0; padding: 72px 0; }
}

/* ============================================================
   FORWARD-TEST INVITE (uses the standard .sec-head scaffold)
   ============================================================ */
#forward-test { position: relative; overflow: hidden; }
#forward-test .wrap { position: relative; }   /* sit above the glow */
.ft-glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 680px; height: 460px; background: radial-gradient(circle, rgba(0,200,150,.10), transparent 65%); pointer-events: none; }
#forward-test .sec-head { margin-bottom: 22px; }
.ft-free { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 16px; padding: 6px 14px 6px 12px; border: 1px solid var(--border); background: rgba(255,255,255,.03); border-radius: 999px; font-size: 13px; color: var(--text-2); }
.ft-free .led { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.ft-free b { color: var(--text); font-weight: 600; }
.ft-schedule { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; }
.ft-sch-or { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.ft-sch-note { width: 100%; text-align: center; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ft-actions { display: flex; justify-content: center; }
.ft-note { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
