/* Legacy EA — legacyea.net
   Layout concept: a navy trading desk. Layered panels on a faint chart grid,
   mono ticker labels, green for growth, gold kept only for XAUUSD. */
:root {
  --bg: #071730;
  --bg-deep: #050F22;
  --surface: #0C1F3A;
  --surface-2: #112849;
  --surface-3: #16325A;
  --line: rgba(150, 182, 226, 0.13);
  --line-strong: rgba(150, 182, 226, 0.24);
  --text: #EAF0F8;
  --muted: #9DAEC7;
  --faint: #6F82A0;
  --green: #2EC487;
  --green-deep: #0F8A5F;
  --green-ink: #03150D;
  --green-soft: rgba(46, 196, 135, 0.12);
  --gold: #DDB86B;
  --gold-soft: rgba(221, 184, 107, 0.13);
  --amber: #F3B94D;
  --amber-soft: rgba(243, 185, 77, 0.1);
  --red: #F27D72;
  --red-soft: rgba(242, 125, 114, 0.1);

  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-hero: clamp(2.35rem, 5.4vw, 4.3rem);
  --fs-h1: clamp(2.1rem, 4.6vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 3.3vw, 2.55rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.05rem, 1.5vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;

  --inset: rgba(5, 15, 34, 0.55);
  --hover: rgba(150, 182, 226, 0.07);
  --card-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.75);
  --card-shadow-hover: 0 30px 60px -32px rgba(0, 0, 0, 0.85);
  --accent-fill: #2EC487;
  --accent-ink: #03150D;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  font-weight: 650;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 700; color: var(--text); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: var(--green-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--green-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--line { border-top: 1px solid var(--line); }
.section--deep { background: var(--bg-deep); }

/* ---------- type helpers ---------- */
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.eyebrow--muted { color: var(--muted); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(46, 196, 135, 0.6);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 196, 135, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(46, 196, 135, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 196, 135, 0); }
}
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pos { color: var(--green); }
.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 40px;
}
.section-head--split > div { display: grid; gap: 16px; max-width: 680px; }
@media (max-width: 760px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--primary { --btn-bg: var(--accent-fill); color: var(--accent-ink); box-shadow: 0 10px 30px -12px rgba(46, 196, 135, 0.7); }
.btn--primary:hover { --btn-bg: #45D49A; transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(46, 196, 135, 0.85); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.text-link:hover { border-color: currentColor; }
.text-link svg { width: 16px; height: 16px; }
.prose a, .note a { color: var(--green); text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(7, 23, 48, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(7, 23, 48, 0.92); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
}
.brand-mark img { width: 24px; height: 24px; }
.wordmark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--text);
  white-space: nowrap;
}
.wordmark b { color: var(--green); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; }
.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(150, 182, 226, 0.07); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(150, 182, 226, 0.1); }
.nav-cta { flex: none; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    inset: calc(76px + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter-r) 24px var(--gutter-l);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-links .nav-links-cta { display: block; margin-top: 8px; }
  .nav-links .nav-links-cta a { background: var(--accent-fill); color: var(--accent-ink); text-align: center; }
}
@media (min-width: 961px) { .nav-links .nav-links-cta { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.grid-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 196, 135, 0.18), transparent 62%);
  filter: blur(10px);
}
.hero .glow { right: -180px; top: -260px; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px);
}
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 .accent { color: var(--green); }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  list-style: none;
  color: var(--muted); font-size: var(--fs-sm);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* big decorative mark */
.hero-mark {
  position: absolute; z-index: -1;
  right: -7%; top: 6%;
  width: min(58vw, 720px);
  opacity: 0.28;
  pointer-events: none;
}

/* performance panel */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 40, 73, 0.92), rgba(12, 31, 58, 0.92));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  min-width: 0;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 15, 34, 0.35);
}
.panel-head .dots { display: flex; gap: 6px; }
.panel-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.panel-body { padding: 8px 22px 6px; }
.perf-row { display: grid; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.perf-row:last-child { border-bottom: 0; }
.perf-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.perf-name { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.08em; font-size: 0.9rem; }
.perf-name small { display: block; font-weight: 500; letter-spacing: 0.12em; color: var(--faint); font-size: 0.7rem; margin-top: 4px; }
.perf-big { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.bar { height: 8px; border-radius: 99px; background: rgba(150, 182, 226, 0.1); overflow: hidden; }
.bar span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
  width: var(--w);
  animation: grow 1.4s var(--ease) both 0.3s;
  transform-origin: left;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.perf-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-xs); color: var(--muted); }
.perf-meta b { font-family: var(--font-mono); color: var(--text); font-weight: 600; }
.panel-foot { padding: 14px 22px 18px; font-size: var(--fs-xs); color: var(--faint); border-top: 1px solid var(--line); line-height: 1.55; }

/* ---------- ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex; gap: 0;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-right: 1px solid var(--line);
}
.ticker-item b { color: var(--text); font-weight: 600; }
.ticker-item .tag-live { color: var(--green); }
.ticker-item .tag-soon { color: var(--amber); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- pair chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}
.chip--gold { color: var(--gold); background: var(--gold-soft); border-color: rgba(221, 184, 107, 0.3); }
.chip--green { color: var(--green); background: var(--green-soft); border-color: rgba(46, 196, 135, 0.3); }
.chip--amber { color: var(--amber); background: var(--amber-soft); border-color: rgba(243, 185, 77, 0.3); }

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature {
  display: grid; gap: 14px; align-content: start;
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s;
}
.feature:hover { background: var(--hover); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-soft);
  color: var(--green);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: var(--fs-h3); }
.feature p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }

/* ---------- strategy cards ---------- */
.strategies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .strategies { grid-template-columns: 1fr; max-width: 640px; } }
.strategy {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  min-width: 0;
}
.strategy::after {
  content: "";
  position: absolute; inset: auto -40% -60% auto;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, var(--tint, rgba(46, 196, 135, 0.14)), transparent 65%);
  pointer-events: none;
  transition: opacity 0.35s;
  opacity: 0.7;
}
.strategy:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--card-shadow-hover); }
.strategy:hover::after { opacity: 1; }
.strategy--gold { --tint: rgba(221, 184, 107, 0.16); }
.strategy-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.strategy-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--green); text-transform: uppercase; }
.strategy h3 { font-size: 1.45rem; }
.strategy h3 span { display: block; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.strategy p { color: var(--muted); font-size: var(--fs-sm); }
.risk-meter { display: grid; gap: 8px; }
.risk-meter .bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.risk-meter .bars i { height: 6px; border-radius: 99px; background: rgba(150, 182, 226, 0.12); display: block; }
.risk-meter .bars i.on { background: var(--meter, var(--green)); }
.risk-meter--med { --meter: var(--amber); }
.strategy-foot { display: grid; gap: 10px; position: relative; z-index: 1; }
.strategy-foot small { color: var(--faint); font-size: var(--fs-xs); text-align: center; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; list-style: none; }
.step {
  position: relative;
  display: grid; gap: 12px; align-content: start;
  padding: 28px 24px 0 0;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--green);
  font-weight: 600;
}
.step::after {
  content: "";
  position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--bg);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; row-gap: 32px; } }

/* ---------- callouts ---------- */
.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 22px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  border: 1px solid rgba(243, 185, 77, 0.28);
  background: linear-gradient(135deg, var(--amber-soft), rgba(243, 185, 77, 0.02));
}
.callout .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(243, 185, 77, 0.14); color: var(--amber); }
.callout .ico svg { width: 22px; height: 22px; }
.callout h3 { font-size: 1.2rem; margin-bottom: 6px; }
.callout p { color: var(--muted); font-size: var(--fs-sm); }
.callout p + p { margin-top: 8px; }
.callout--red { border-color: rgba(242, 125, 114, 0.3); background: linear-gradient(135deg, var(--red-soft), rgba(242, 125, 114, 0.02)); }
.callout--red .ico { background: rgba(242, 125, 114, 0.14); color: var(--red); }
.callout--green { border-color: rgba(46, 196, 135, 0.28); background: linear-gradient(135deg, var(--green-soft), rgba(46, 196, 135, 0.02)); }
.callout--green .ico { background: rgba(46, 196, 135, 0.14); color: var(--green); }
@media (max-width: 520px) { .callout { grid-template-columns: 1fr; } }

/* ---------- launch band ---------- */
.launch {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 26px;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(46, 196, 135, 0.16), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.launch h2 { font-size: var(--fs-h2); }
.launch-copy { display: grid; gap: 18px; min-width: 0; }
.launch-list { list-style: none; display: grid; gap: 12px; }
.launch-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); font-size: var(--fs-sm); }
.launch-list svg { width: 20px; height: 20px; color: var(--green); margin-top: 3px; }
.mt5-card {
  justify-self: end;
  width: min(100%, 340px);
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.mt5-card img { width: 46%; }
.mt5-card .label { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; }
.mt5-card .soon { position: absolute; top: 18px; right: 18px; }
@media (max-width: 820px) { .launch { grid-template-columns: 1fr; } .mt5-card { justify-self: start; width: min(100%, 260px); } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.portrait { position: relative; max-width: 440px; width: 100%; }
.portrait img { border-radius: 22px; width: 100%; aspect-ratio: 900 / 1080; object-fit: cover; object-position: center 20%; border: 1px solid var(--line-strong); }
.portrait-tag {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(5, 15, 34, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
}
.portrait-tag strong { font-family: var(--font-display); font-size: 1rem; display: block; line-height: 1.2; }
.portrait-tag span { font-size: var(--fs-xs); color: var(--muted); }
.portrait-tag img { width: 34px; height: 34px; border: 0; border-radius: 9px; aspect-ratio: 1; }
.about-copy { display: grid; gap: 20px; min-width: 0; }
.about-copy h2 { font-size: var(--fs-h2); }
.about-copy p { color: var(--muted); max-width: 60ch; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.social {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.93rem;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.social svg { width: 20px; height: 20px; color: var(--muted); transition: color 0.2s; }
.social:hover { border-color: var(--green); background: var(--green-soft); }
.social:hover svg { color: var(--green); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* ---------- risk band ---------- */
.risk-band { background: var(--bg-deep); border-top: 1px solid var(--line); }
.risk-band .wrap { padding-block: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 28px; align-items: start; }
.risk-band .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.risk-band .ico svg { width: 24px; height: 24px; }
.risk-band h2 { font-size: 1.25rem; margin-bottom: 10px; }
.risk-band p { color: var(--muted); font-size: var(--fs-sm); max-width: 90ch; }
.risk-band p + p { margin-top: 8px; }
@media (max-width: 560px) { .risk-band .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: 64px 40px;
}
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand p { color: var(--muted); font-size: var(--fs-sm); max-width: 38ch; }
.footer-col h3 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: var(--fs-sm); transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.code-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  font-size: var(--fs-xs);
  color: var(--muted);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.code-pill .num { color: var(--text); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-block: 22px 32px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: var(--fs-xs);
}
.footer-bottom p { max-width: 80ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- copy button ---------- */
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font: 600 0.78rem var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { border-color: var(--green); color: var(--green); }
.copy-btn.is-done { border-color: var(--green); background: var(--green-soft); color: var(--green); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .glow { right: -220px; top: -320px; }
.page-hero-inner { display: grid; gap: 22px; padding-block: clamp(56px, 8vw, 96px) clamp(48px, 6vw, 72px); max-width: 820px; }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.03em; }
.crumbs { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

/* ---------- settings grid (copy page) ---------- */
.settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .settings { grid-template-columns: 1fr; } }
.setting {
  display: grid; gap: 10px; align-content: start;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.setting-value { font-family: var(--font-mono); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.2; color: var(--text); }
.setting-note { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.setting-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.setting-note--bad { color: var(--red); }
.setting-note--warn { color: var(--amber); }
.setting-note--good { color: var(--green); }

/* ---------- multiplier ---------- */
.multiplier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .multiplier { grid-template-columns: 1fr; } }
.calc {
  display: grid; gap: 22px; align-content: start;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 22px;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  min-width: 0;
}
.formula {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  font-family: var(--font-mono);
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--line);
}
.formula .op { color: var(--green); font-weight: 700; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.tier-btn {
  min-height: 42px; padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font: 600 0.92rem var(--font-mono);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: all 0.2s;
}
.tier-btn:hover { color: var(--text); border-color: var(--muted); }
.tier-btn[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
.calc-result {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.calc-result .big { font-family: var(--font-mono); font-weight: 700; font-size: clamp(3rem, 7vw, 4.4rem); line-height: 0.95; color: var(--green); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc-result .risk { text-align: right; display: grid; gap: 8px; justify-items: end; }
.calc-hint { font-size: var(--fs-xs); color: var(--faint); }

.table-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.mult-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mult-table th, .mult-table td { padding: 13px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.mult-table th { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; background: var(--inset); }
.mult-table td { font-family: var(--font-mono); font-size: 0.98rem; color: var(--muted); transition: background-color 0.25s, color 0.25s; }
.mult-table td:last-child, .mult-table th:last-child { text-align: right; }
.mult-table tr:last-child td { border-bottom: 0; }
.mult-table tr.is-active td { background: var(--green-soft); color: var(--text); }
.mult-table tr.is-active td:last-child { color: var(--green); font-weight: 700; }

/* ---------- snapshots ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; max-width: 420px; } }
.shot { display: grid; gap: 14px; margin: 0; min-width: 0; }
.shot-btn {
  display: block; width: 100%; padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 18px; overflow: hidden;
  background: #000;
  cursor: zoom-in;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.shot-btn:hover { transform: translateY(-4px); border-color: var(--green); }
.shot-btn img { width: 100%; aspect-ratio: 881 / 1077; object-fit: cover; }
.shot figcaption { display: grid; gap: 4px; }
.shot figcaption strong { font-family: var(--font-mono); font-size: 0.88rem; letter-spacing: 0.08em; }
.shot figcaption span { font-size: var(--fs-xs); color: var(--muted); }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; overflow: visible;
  max-width: min(92vw, 520px); width: 100%;
  max-height: 92vh;
}
dialog.lightbox::backdrop { background: rgba(3, 9, 20, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 16px; }
dialog.lightbox .close {
  position: absolute; top: -16px; right: -16px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(5, 15, 34, 0.85); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
}
dialog.lightbox .close svg { width: 18px; height: 18px; }

/* ---------- join block ---------- */
.join {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px;
}
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } }
.join-card {
  display: grid; gap: 16px; align-content: start;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.join-card h3 { font-size: 1.35rem; }
.join-card p { color: var(--muted); font-size: var(--fs-sm); }
.join-card--accent { background: linear-gradient(160deg, rgba(46, 196, 135, 0.12), var(--surface) 60%); border-color: rgba(46, 196, 135, 0.3); }
.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 14px 14px 18px;
  border-radius: 14px;
  background: var(--inset);
  border: 1px dashed var(--line-strong);
}
.code-box .num { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.12em; }

/* ---------- guide ---------- */
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(100px + env(safe-area-inset-top, 0px)); display: grid; gap: 4px; }
.toc .label { margin-bottom: 10px; }
.toc a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: var(--fs-sm); font-weight: 600;
  transition: color 0.2s, background-color 0.2s;
}
.toc a span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint); }
.toc a:hover, .toc a.is-active { color: var(--text); background: var(--hover); }
.toc a.is-active span { color: var(--green); }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.timeline { list-style: none; display: grid; gap: 0; position: relative; }
.g-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 24px; padding-bottom: 48px; }
.g-step:last-child { padding-bottom: 0; }
.g-step::before {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: 0;
  width: 2px; background: linear-gradient(var(--line-strong), var(--line));
}
.g-step:last-child::before { display: none; }
.g-num {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--green);
  position: relative; z-index: 1;
}
.g-body { display: grid; gap: 14px; padding-top: 10px; min-width: 0; }
.g-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.g-body > p { color: var(--muted); }
.g-body ul.checks { list-style: none; display: grid; gap: 10px; }
.g-body ul.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; color: var(--muted); font-size: var(--fs-sm); }
.g-body ul.checks svg { width: 18px; height: 18px; color: var(--green); margin-top: 3px; }
.path {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--line);
}
.path .label { margin-right: 4px; }
.path b { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--text); padding: 5px 10px; border-radius: 7px; background: var(--surface-3); white-space: nowrap; }
.path svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.kv { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.kv > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: var(--fs-sm); }
.kv dd { margin: 0; font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; text-align: right; }
.kv dd.bad { color: var(--red); }
.kv dd.good { color: var(--green); }
.note {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--amber-soft);
  border: 1px solid rgba(243, 185, 77, 0.22);
  color: var(--muted); font-size: var(--fs-sm);
}
.note svg { width: 18px; height: 18px; color: var(--amber); margin-top: 3px; }
.note--green { background: var(--green-soft); border-color: rgba(46, 196, 135, 0.22); }
.note--green svg { color: var(--green); }
.note--red { background: var(--red-soft); border-color: rgba(242, 125, 114, 0.24); }
.note--red svg { color: var(--red); }
.mini-links { display: grid; gap: 10px; }
.mini-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-weight: 700; font-size: var(--fs-sm);
  transition: border-color 0.2s, transform 0.2s;
}
.mini-link:hover { border-color: var(--green); transform: translateX(2px); }
.mini-link .chip { margin-left: auto; }
.mini-link svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform 0.25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--green); }
.faq .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: var(--fs-sm); }
.faq .faq-a p + p { margin-top: 8px; }

/* legal text */
.prose { max-width: 760px; display: grid; gap: 18px; }
.prose h2 { font-size: 1.35rem; margin-top: 18px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }

/* CTA band */
.cta-band {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(500px 220px at 0% 0%, rgba(46, 196, 135, 0.14), transparent 70%), var(--surface);
}
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { color: var(--muted); margin-top: 8px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .num { font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--green); line-height: 1; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.hero .panel { animation: rise 1s var(--ease) both 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-mark .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) forwards 0.2s; }
.hero-mark .draw--2 { animation-delay: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker-track [aria-hidden="true"] { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero .panel { max-width: 560px; }
}
@media (max-width: 520px) {
  .btn-row .btn { flex: 1 1 100%; }
  .nav { min-height: 68px; }
  .wordmark { font-size: 0.85rem; letter-spacing: 0.24em; }
  .panel-body { padding: 4px 18px; }
  .panel-head, .panel-foot { padding-inline: 18px; }
  .strategy { padding: 22px; }
}
@media (max-width: 960px) and (max-width: 520px) {
  .nav-links { inset: calc(68px + env(safe-area-inset-top, 0px)) 0 auto 0; }
}

/* ---------- additions ---------- */
.risk-band a { color: var(--green); text-underline-offset: 3px; }
.risk-meter .perf-meta { justify-content: space-between; }
.risk-meter .perf-meta b { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.kv--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kv--grid > div { grid-template-columns: minmax(0, 1fr) auto; border-right: 1px solid var(--line); gap: 8px; }
.kv--grid > div:nth-child(3n) { border-right: 0; }
.kv--grid > div:nth-last-child(-n + 3) { border-bottom: 0; }
.kv--grid dt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.kv--grid dd { color: var(--green); }
@media (max-width: 520px) {
  .kv > div { padding: 12px 14px; gap: 12px; }
  .kv--grid > div { padding: 12px; grid-template-columns: 1fr; gap: 2px; }
  .kv--grid dd { text-align: left; }
}
.note .copy-btn { margin-left: 6px; vertical-align: middle; }
.g-body .btn-row { margin-top: 2px; }

.g-num svg { width: 22px; height: 22px; }
.mini-link { flex-wrap: wrap; }
.mini-link > span:first-child { flex: 1 1 150px; min-width: 0; }
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; padding-block: 12px; line-height: 1.3; }
  .g-step { grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; }
  .g-num { width: 40px; height: 40px; border-radius: 12px; font-size: 0.9rem; }
  .g-step::before { left: 19px; top: 40px; }
  .g-body { padding-top: 4px; }
  .path { flex-direction: column; align-items: flex-start; gap: 6px; }
  .path svg { transform: rotate(90deg); margin-left: 10px; }
  .path b { white-space: normal; }
  .hero-mark { display: none; }
  .ticker-item { padding: 14px 20px; }
}

/* ---------- hero photo (v4) ---------- */
.hero-inner { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); }
.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 440px; min-width: 0; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% -12% -6% 8%; z-index: -1;
  background: radial-gradient(closest-side, rgba(46, 196, 135, 0.22), transparent);
  filter: blur(20px);
}
.hero-photo {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.85);
  animation: rise 1s var(--ease) both 0.15s;
}
.hero-photo picture { display: block; width: 100%; height: 100%; }
.hero-photo .hero-photo-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 15, 34, 0.7), transparent 38%);
}
.hero-photo .portrait-tag { z-index: 1; }
.float-stat {
  position: absolute; left: -44px; top: 12%;
  display: grid; gap: 6px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(12, 31, 58, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
  animation: rise 1s var(--ease) both 0.5s;
}
.float-stat .label { font-size: 0.68rem; }
.float-stat .perf-big { font-size: 1.6rem; }
.hero-stats { padding-bottom: clamp(56px, 7vw, 88px); }
.panel--wide .panel-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 4px; }
.panel--wide .perf-row { border-bottom: 0; padding-block: 22px; }
.panel--wide .perf-row:first-child { padding-right: 32px; }
.panel--wide .perf-row + .perf-row { padding-left: 32px; border-left: 1px solid var(--line); }
.hero .panel--wide { animation: rise 1s var(--ease) both 0.35s; }

.about--text { align-items: start; }
.about-intro { display: grid; gap: 22px; align-content: start; }
.about-intro h2 { font-size: var(--fs-h2); }
.about-sign { display: flex; align-items: center; gap: 14px; }
.about-sign img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--green); object-fit: cover; }
.about-sign strong { display: block; font-family: var(--font-display); line-height: 1.2; }
.about-sign span { font-size: var(--fs-xs); color: var(--muted); }

@media (max-width: 980px) {
  .hero-visual { justify-self: start; max-width: 460px; }
  .float-stat { left: 14px; top: 14px; }
}
@media (max-width: 760px) {
  .panel--wide .panel-body { grid-template-columns: 1fr; }
  .panel--wide .perf-row:first-child { padding-right: 0; }
  .panel--wide .perf-row + .perf-row { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .hero-photo { aspect-ratio: 1 / 1; }
  .hero-photo .hero-photo-img { object-position: 50% 14%; }
  .float-stat { display: none; }
}
.hero .panel--wide { max-width: none; }

/* ---------- v6: live strategy data ---------- */
[hidden] { display: none !important; }
:root { --chart-pos: #1FA574; --chart-neg: #B9478F; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vname, .strategy .vname, .sheet .vname {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint); margin-top: 8px;
}
.strategy--v2 { display: flex; flex-direction: column; gap: 20px; }
.strategy--v2 h3 { font-size: 1.4rem; }
.strategy-ret { display: grid; gap: 8px; padding-block: 18px; border-block: 1px solid var(--line); position: relative; z-index: 1; }
.ret { font-family: var(--font-mono); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--green); letter-spacing: -0.03em; line-height: 1; }
.strategy .strategy-desc { flex: 1; }
.spec { display: grid; margin: 0; position: relative; z-index: 1; }
.spec > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-family: var(--font-mono); font-weight: 600; font-size: 0.86rem; text-align: right; color: var(--text); }

/* hero panel: three strategies */
.panel--wide .panel-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel--wide .perf-row:first-child { padding-left: 0; padding-right: 28px; }
.panel--wide .perf-row + .perf-row { padding-left: 28px; padding-right: 28px; border-left: 1px solid var(--line); border-top: 0; }
.panel--wide .perf-row:last-child { padding-right: 0; }
@media (max-width: 980px) {
  .panel--wide .panel-body { grid-template-columns: 1fr; }
  .panel--wide .perf-row:first-child { padding-right: 0; }
  .panel--wide .perf-row + .perf-row { padding-left: 0; padding-right: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* monthly returns chart */
.sheets { display: grid; gap: 20px; }
.sheet {
  display: grid; gap: 26px; min-width: 0;
  padding: clamp(22px, 3.2vw, 36px);
  border-radius: 22px;
  background: linear-gradient(170deg, var(--surface-2), var(--surface) 55%);
  border: 1px solid var(--line);
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sheet-title { display: grid; gap: 10px; min-width: 0; }
.sheet-title h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.sheet-title .vname { margin-top: 0; }
.sheet-ret { display: grid; gap: 8px; justify-items: end; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.sheet-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.sheet-stats > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.sheet-stats > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.sheet-stats dt { font-size: var(--fs-xs); color: var(--muted); }
.sheet-stats dd { margin: 0; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--text); }
.sheet-stats dd.muted { color: var(--faint); font-weight: 500; font-size: 0.95rem; }
.sheet-foot { border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 860px) {
  .sheet-body { grid-template-columns: 1fr; }
  .sheet-ret { justify-items: start; }
}

.mchart { margin: 0; display: grid; gap: 12px; min-width: 0; }
.mchart-plot { position: relative; height: 190px; margin-left: 52px; margin-top: 8px; }
.mchart-grid span { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.mchart-grid span.zero { border-top-color: var(--line-strong); }
.mchart-grid i {
  position: absolute; right: calc(100% + 10px); top: -0.62em;
  font: 500 0.7rem var(--font-mono); font-style: normal; color: var(--faint);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.mchart-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.mcol { position: relative; outline: none; cursor: default; }
.mcol::before { content: ""; position: absolute; inset: -6px 3px; border-radius: 10px; transition: background-color 0.2s; }
.mcol:hover::before, .mcol:focus-visible::before { background: var(--hover); }
.mcol:focus-visible::before { box-shadow: inset 0 0 0 2px var(--green); }
.mbar { position: absolute; left: 50%; width: min(24px, 56%); transform: translateX(-50%); min-height: 2px; background: var(--chart-pos); transition: filter 0.2s; }
.mbar.pos { border-radius: 4px 4px 0 0; }
.mbar.neg { background: var(--chart-neg); border-radius: 0 0 4px 4px; }
.mcol:hover .mbar, .mcol:focus-visible .mbar { filter: brightness(1.2); }
.mchart-x { margin-left: 52px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.mchart-x span { display: grid; justify-items: center; gap: 3px; text-align: center; min-width: 0; }
.mchart-x b { font: 600 0.72rem var(--font-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.mchart-x em { font: 600 0.74rem var(--font-mono); font-style: normal; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mchart-note { font-size: var(--fs-xs); color: var(--faint); }
.mtip {
  position: absolute; z-index: 5; pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  display: grid; gap: 2px; white-space: nowrap;
  padding: 8px 12px; border-radius: 10px;
  background: var(--bg-deep); border: 1px solid var(--line-strong);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
}
.mtip strong { font: 700 0.95rem var(--font-mono); color: var(--text); }
.mtip span { font-size: 0.72rem; color: var(--muted); }
@media (max-width: 520px) {
  .mchart-plot, .mchart-x { margin-left: 40px; }
  .mchart-plot { height: 170px; }
  .mchart-x em { font-size: 0.56rem; letter-spacing: -0.02em; }
  .mchart-x b { font-size: 0.64rem; }
  .sheet-stats > div:nth-child(even) { padding-left: 12px; }
  .sheet-stats dd { font-size: 0.95rem; }
}

/* settings comparison */
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp-table thead th { background: var(--inset); font-weight: 600; vertical-align: bottom; }
.cmp-table thead th:first-child { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.cmp-table thead th .chip { margin-bottom: 10px; }
.cmp-h { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
.cmp-h small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--muted); font-weight: 500; margin-top: 2px; }
.cmp-table tbody th { font-weight: 500; color: var(--muted); font-size: var(--fs-sm); width: 30%; }
.cmp-table td { font-family: var(--font-mono); font-weight: 700; font-size: 0.96rem; color: var(--text); width: 35%; }
.cmp-table td + td, .cmp-table th + th { border-left: 1px solid var(--line); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tr.warn td { color: var(--amber); }
.cmp-table tr.good td { color: var(--green); }
.cmp-table tr.bad td { color: var(--red); }
@media (max-width: 640px) {
  .cmp-table thead { display: none; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: auto; }
  .cmp-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .cmp-table tbody tr:last-child { border-bottom: 0; }
  .cmp-table tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
  .cmp-table td { padding: 0; border: 0 !important; font-size: 0.88rem; }
  .cmp-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 500 0.66rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
}

/* multiplier mode switch */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.seg-btn { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 700 0.9rem var(--font-body); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* guide grids */
.kv--grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kv--grid4 > div:nth-child(3n) { border-right: 1px solid var(--line); }
.kv--grid4 > div:nth-child(4n) { border-right: 0; }
.kv--grid4 > div:nth-last-child(-n + 4) { border-bottom: 0; }
@media (max-width: 520px) {
  .kv--grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv--grid4 > div:nth-child(4n) { border-right: 1px solid var(--line); }
  .kv--grid4 > div:nth-child(2n) { border-right: 0; }
  .kv--grid4 > div:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .kv--grid4 > div:nth-last-child(-n + 2) { border-bottom: 0; }
}
.mini-link > span:first-child small { display: block; margin-top: 3px; font: 500 0.68rem var(--font-mono); letter-spacing: 0.08em; color: var(--faint); }
.mini-link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.mini-link .chip { margin-left: 0; }


/* ---------- v7: light / dark section tones ---------- */
.is-light, .is-white {
  --bg: #F2F5F9;
  --bg-deep: #E8EDF4;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --surface-3: #E7EDF5;
  --line: rgba(11, 31, 58, 0.1);
  --line-strong: rgba(11, 31, 58, 0.18);
  --text: #0B1F3A;
  --muted: #4A5E7B;
  --faint: #6F819C;
  --green: #0F8A5F;
  --green-soft: rgba(15, 138, 95, 0.1);
  --gold: #8F5F0E;
  --gold-soft: rgba(201, 146, 40, 0.14);
  --amber: #9C6206;
  --amber-soft: rgba(232, 160, 40, 0.12);
  --red: #B8352B;
  --red-soft: rgba(192, 57, 43, 0.07);
  --inset: #F2F5F9;
  --hover: rgba(11, 31, 58, 0.04);
  --card-shadow: 0 1px 2px rgba(11, 31, 58, 0.05), 0 18px 40px -26px rgba(11, 31, 58, 0.28);
  --card-shadow-hover: 0 2px 4px rgba(11, 31, 58, 0.06), 0 28px 56px -28px rgba(11, 31, 58, 0.35);
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}
.is-white { --bg: #FFFFFF; --surface: #F7F9FC; --surface-2: #F7F9FC; --inset: #EEF2F7; }
.is-dark {
  --bg: #071730;
  --bg-deep: #050F22;
  --surface: #0C1F3A;
  --surface-2: #112849;
  --surface-3: #16325A;
  --line: rgba(150, 182, 226, 0.13);
  --line-strong: rgba(150, 182, 226, 0.24);
  --text: #EAF0F8;
  --muted: #9DAEC7;
  --faint: #6F82A0;
  --green: #2EC487;
  --green-soft: rgba(46, 196, 135, 0.12);
  --gold: #DDB86B;
  --gold-soft: rgba(221, 184, 107, 0.13);
  --amber: #F3B94D;
  --amber-soft: rgba(243, 185, 77, 0.1);
  --red: #F27D72;
  --red-soft: rgba(242, 125, 114, 0.1);
  --inset: rgba(5, 15, 34, 0.55);
  --hover: rgba(150, 182, 226, 0.07);
  --card-shadow: 0 30px 60px -30px rgba(11, 31, 58, 0.55);
  color-scheme: dark;
  color: var(--text);
}
.is-light h1, .is-light h2, .is-light h3, .is-white h1, .is-white h2, .is-white h3 { color: var(--text); }

/* cards: clear edges + shadow everywhere */
.strategy, .sheet, .table-wrap, .join-card, .kv, .mini-link, .faq details, .setting, .shot-btn { box-shadow: var(--card-shadow); }
.features { border: 0; gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--card-shadow); }
.feature:hover { background: var(--surface); border-color: var(--line-strong); }
.is-light .strategy::after { opacity: 0.45; }
.mtip { background: #0B1F3A; border-color: rgba(150, 182, 226, 0.24); }
.mtip strong { color: #FFFFFF; }
.mtip span { color: #9DAEC7; }
.is-light .live-dot, .is-white .live-dot { background: #1FA574; }

/* home: share cards under the hero, snapshot lower */
.hero-inner { padding-block-end: clamp(64px, 8vw, 104px); }
.results-band .shot-btn { border-color: rgba(11, 31, 58, 0.14); }
.snapshot-wrap { margin-top: clamp(28px, 4vw, 44px); }
.panel.is-dark { color: var(--text); }

/* ticker in brand green */
.ticker { background: #2EC487; border-block: 0; }
.ticker-item { color: rgba(11, 31, 58, 0.72); border-right-color: rgba(11, 31, 58, 0.16); }
.ticker-item b { color: #0B1F3A; }
.ticker-item .tag-live, .ticker-item .tag-soon { color: #0B1F3A; }

/* share cards: swipe row on phones */
@media (max-width: 560px) {
  .shots { display: flex; gap: 14px; max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
  .shot { flex: 0 0 80%; scroll-snap-align: start; }
}

/* ---------- v8: tutorial video ---------- */
.eyebrow svg { width: 14px; height: 14px; }
.vid { margin: 0; display: grid; gap: 12px; min-width: 0; }
.vid-frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%;
  border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.vid-frame video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.vid-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--fs-xs); color: var(--muted); }
.vid-cap > svg { width: 14px; height: 14px; color: var(--green); flex: none; }
.vid-cap strong { color: var(--text); }
.vid-cap .text-link { margin-left: auto; font-size: var(--fs-xs); }
.hero-copy .vid { animation-delay: 0.08s; }

.tutorial { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.chapters { display: grid; gap: 10px; padding: 18px; min-width: 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.chapters ol { list-style: none; display: grid; gap: 2px; max-height: 430px; overflow-y: auto; }
.chapters button {
  width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: baseline;
  padding: 9px 10px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text); font: 600 0.9rem/1.35 var(--font-body); text-align: left; cursor: pointer;
  transition: background-color 0.2s;
}
.chapters button span { font: 600 0.76rem var(--font-mono); color: var(--green); font-variant-numeric: tabular-nums; }
.chapters button:hover { background: var(--hover); }
.chapters button.is-active { background: var(--green-soft); }
@media (max-width: 900px) { .tutorial { grid-template-columns: 1fr; } .chapters ol { max-height: none; } }

.transcript { margin-top: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.transcript summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform 0.25s var(--ease); }
.transcript[open] summary svg { transform: rotate(45deg); color: var(--green); }
.transcript-body { display: grid; gap: 18px; max-width: 82ch; padding: 0 22px 24px; }
.transcript-body h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1rem; }
.transcript-body .ts { flex: none; padding: 3px 8px; border: 0; border-radius: 6px; background: var(--green-soft); color: var(--green); font: 600 0.74rem var(--font-mono); cursor: pointer; }
.transcript-body p { margin-top: 6px; color: var(--muted); font-size: var(--fs-sm); }
