:root {
  --bg: #07110f;
  --bg-deep: #040a09;
  --panel: rgba(15, 28, 25, 0.76);
  --panel-solid: #0d1b18;
  --line: rgba(181, 224, 207, 0.14);
  --text: #eef8f3;
  --muted: #8ea69d;
  --green: #5ee7a3;
  --green-soft: rgba(94, 231, 163, 0.13);
  --yellow: #f2c66d;
  --red: #ff7d75;
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 54px 54px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.14;
  pointer-events: none;
}
.ambient-one { top: -220px; right: -130px; background: var(--green); }
.ambient-two { bottom: -260px; left: -200px; background: #2e8f73; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; letter-spacing: -0.02em; }
.brand b { color: var(--green); font-weight: 650; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(94, 231, 163, 0.5);
  border-radius: 9px;
  color: var(--green);
  background: var(--green-soft);
  font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
nav { display: flex; gap: 32px; color: var(--muted); font-size: 13px; }
nav a { transition: color .2s ease; }
nav a:hover { color: var(--text); }
.system-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 11px;
  letter-spacing: .04em;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(242, 198, 109, .08); }
.system-pill.is-live .pulse { background: var(--green); box-shadow: 0 0 0 5px rgba(94, 231, 163, .09); }
.system-pill.is-error .pulse { background: var(--red); box-shadow: 0 0 0 5px rgba(255, 125, 117, .08); }

main, footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(46px, 8vw, 110px);
  align-items: center;
  padding: 76px 0 88px;
}
.eyebrow { margin: 0 0 22px; color: var(--green); font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 27px;
  max-width: 720px;
  font-size: clamp(48px, 6.3vw, 84px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 590;
}
h1 em { color: var(--green); font-style: normal; }
.hero-lead { max-width: 610px; color: #acc0b8; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin: 37px 0 38px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border-radius: 12px; font-size: 13px; font-weight: 650; transition: transform .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #06100d; }
.button-ghost { border: 1px solid var(--line); color: #c8d9d2; }
.button-ghost:hover { border-color: rgba(94, 231, 163, .45); }
.hero-note { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: 12px; }
.hero-note span { color: var(--green); }
.hero-note p { margin-bottom: 0; }

.market-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(126, 189, 164, .2);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18, 36, 31, .95), rgba(8, 18, 16, .92));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}
.market-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 55%, rgba(94, 231, 163, .05)); pointer-events: none; }
.market-card-head, .signal-panel, .fold-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.market-card h2 { margin: 8px 0 0; font: 600 17px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.micro-label { color: #718b81; font: 600 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.timeframe { padding: 8px 10px; color: var(--green); background: var(--green-soft); border: 1px solid rgba(94, 231, 163, .18); border-radius: 9px; font: 650 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.price-block { padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.price-block strong { display: block; margin: 10px 0 4px; font-size: clamp(38px, 5vw, 56px); line-height: 1; letter-spacing: -.05em; }
.muted { color: var(--muted); font-size: 11px; }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 0; }
.market-grid div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .015); }
.market-grid span, .signal-price span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.market-grid b { font: 600 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.signal-panel { padding: 19px; border-radius: 15px; background: var(--green-soft); border: 1px solid rgba(94, 231, 163, .18); }
.signal-panel strong { display: block; margin-top: 7px; color: var(--green); font-size: 22px; }
.signal-panel.is-short { background: rgba(255, 125, 117, .09); border-color: rgba(255, 125, 117, .2); }
.signal-panel.is-short strong { color: var(--red); }
.signal-price { text-align: right; }
.signal-price b { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.ticker-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker-strip div { min-width: 0; padding: 23px 20px; border-right: 1px solid var(--line); }
.ticker-strip div:first-child { padding-left: 0; }
.ticker-strip div:last-child { border-right: 0; }
.ticker-strip span { display: block; margin-bottom: 7px; color: #718b81; font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.ticker-strip b { display: block; overflow: hidden; text-overflow: ellipsis; color: #d4e5de; font: 600 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }

.section { padding: 130px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 54px; }
.section-heading h2, .validation-copy h2 { margin-bottom: 0; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.06; letter-spacing: -.05em; font-weight: 560; }
.section-heading > p { max-width: 450px; margin-bottom: 4px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.section-heading.compact { margin-bottom: 45px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { position: relative; min-height: 218px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.metric-index { position: absolute; top: 22px; right: 22px; color: #4f675e; font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.metric-card p { color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin: 42px 0 10px; font-size: 36px; letter-spacing: -.04em; }
.metric-card small { color: #718b81; font-size: 10px; line-height: 1.5; }
.accent-card { background: linear-gradient(145deg, rgba(94, 231, 163, .15), rgba(12, 29, 24, .9)); border-color: rgba(94, 231, 163, .2); }
.metric-card.is-negative strong { color: var(--red); }
.metric-card.is-positive strong { color: var(--green); }

.validation-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(55px, 9vw, 130px); align-items: center; }
.validation-copy > p:not(.eyebrow) { max-width: 540px; margin: 28px 0; color: var(--muted); line-height: 1.75; }
.validation-state { display: flex; gap: 14px; padding: 18px; border: 1px solid rgba(242, 198, 109, .22); border-radius: 15px; background: rgba(242, 198, 109, .07); }
.state-icon { display: grid; flex: 0 0 auto; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: rgba(242, 198, 109, .16); color: var(--yellow); font-weight: 800; }
.validation-state b { font-size: 13px; }
.validation-state p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.validation-state.is-pass { border-color: rgba(94, 231, 163, .22); background: rgba(94, 231, 163, .07); }
.validation-state.is-pass .state-icon { color: var(--green); background: rgba(94, 231, 163, .14); }
.fold-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.fold-head span { font-size: 12px; font-weight: 650; }
.fold-head small { color: var(--muted); font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.fold-chart { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: center; height: 260px; margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, transparent 49.7%, rgba(255,255,255,.12) 50%, transparent 50.3%); }
.fold-column { height: 100%; display: grid; grid-template-rows: 1fr 1fr; position: relative; }
.fold-bar { width: min(38px, 70%); justify-self: center; border-radius: 7px; min-height: 2px; }
.fold-bar.level-1 { height: 10%; }
.fold-bar.level-2 { height: 20%; }
.fold-bar.level-3 { height: 30%; }
.fold-bar.level-4 { height: 40%; }
.fold-bar.level-5 { height: 50%; }
.fold-bar.level-6 { height: 60%; }
.fold-bar.level-7 { height: 70%; }
.fold-bar.level-8 { height: 80%; }
.fold-bar.level-9 { height: 90%; }
.fold-bar.level-10 { height: 100%; }
.fold-bar.positive { align-self: end; background: linear-gradient(var(--green), rgba(94,231,163,.25)); border-radius: 7px 7px 2px 2px; }
.fold-bar.negative { align-self: start; background: linear-gradient(rgba(255,125,117,.25), var(--red)); border-radius: 2px 2px 7px 7px; }
.fold-name { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; color: #718b81; font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.fold-value { position: absolute; left: 0; right: 0; text-align: center; font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.fold-value.above { bottom: calc(50% + 9px); color: var(--green); }
.fold-value.below { top: calc(50% + 9px); color: var(--red); }
.fold-axis { display: flex; justify-content: space-between; margin-top: 34px; color: #587067; font-size: 9px; }

.backtest-section { position: relative; }
.backtest-heading { align-items: center; }
.backtest-scope { text-align: right; }
.backtest-scope p { margin: 12px 0 0; color: var(--muted); font: 500 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.scope-badge { display: inline-block; padding: 9px 11px; border: 1px solid rgba(242, 198, 109, .24); border-radius: 9px; color: var(--yellow); background: rgba(242, 198, 109, .07); font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.backtest-warning { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; padding: 16px 18px; border: 1px solid rgba(242, 198, 109, .2); border-radius: 14px; background: rgba(242, 198, 109, .055); }
.backtest-warning > span { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border: 1px solid rgba(242, 198, 109, .26); border-radius: 50%; color: var(--yellow); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.backtest-warning p { margin: 1px 0 0; color: #9eb1aa; font-size: 11px; line-height: 1.65; }
.backtest-warning b { color: #e6d2a5; font-weight: 650; }
.backtest-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--line); }
.backtest-kpis article { min-width: 0; padding: 21px 18px; background: var(--panel-solid); }
.backtest-kpis span { display: block; color: var(--muted); font-size: 10px; }
.backtest-kpis strong { display: block; margin: 17px 0 8px; font-size: clamp(22px, 2.4vw, 31px); letter-spacing: -.04em; }
.backtest-kpis small { display: block; min-height: 28px; color: #637b72; font-size: 9px; line-height: 1.5; }
.backtest-kpis .negative { color: var(--red); }
.backtest-kpis .positive { color: var(--green); }
.backtest-visual-grid { display: grid; grid-template-columns: 1.5fr .5fr; gap: 14px; }
.equity-card, .side-card, .monthly-block, .assumption-block, .trade-log { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.equity-card, .side-card { min-height: 430px; padding: 25px; }
.card-title-row, .subsection-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-title-row h3, .subsection-title h3, .trade-log-head h3 { margin: 8px 0 0; font-size: 18px; font-weight: 580; }
.chart-legend { display: flex; gap: 15px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 12px; height: 2px; }
.legend-strategy { background: var(--green); }
.legend-base { background: #627970; }
.equity-chart-wrap { height: 300px; margin-top: 26px; }
#equity-chart { width: 100%; height: 100%; overflow: visible; }
#equity-baseline { stroke: rgba(255, 255, 255, .18); stroke-width: 1; stroke-dasharray: 6 8; }
#equity-area { fill: url(#equity-fill); }
#equity-area.negative-chart { fill: rgba(255, 125, 117, .08); }
#equity-line { fill: none; stroke: var(--green); stroke-width: 3; vector-effect: non-scaling-stroke; }
#equity-line.negative-chart { stroke: var(--red); }
.chart-footer { display: flex; justify-content: space-between; margin-top: 2px; color: #637b72; font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.chart-footer b { color: var(--text); font-weight: 600; }
.side-card { display: flex; flex-direction: column; }
.side-result { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.side-result > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.side-result span { font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.side-result b { color: var(--muted); font-size: 9px; }
.side-result strong { display: block; margin: 22px 0 6px; font-size: 27px; letter-spacing: -.04em; }
.side-result small { color: #718b81; font-size: 10px; }
.long-result span { color: var(--green); }
.short-result span { color: var(--red); }
.side-result .negative { color: var(--red); }
.side-result .positive { color: var(--green); }
.cost-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 16px 4px 2px; color: #718b81; font-size: 9px; }
.cost-note b { color: #b8cbc3; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.monthly-block, .assumption-block, .trade-log { margin-top: 14px; padding: 25px; }
.subsection-title small { color: #637b72; font-size: 9px; }
.monthly-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.month-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .012); }
.month-card-head { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.month-card-head b { color: #c4d5ce; font-weight: 600; }
.month-card strong { display: block; margin: 26px 0 9px; font-size: 25px; }
.month-card strong.negative { color: var(--red); }
.month-card strong.positive { color: var(--green); }
.month-card small { color: #637b72; font-size: 9px; }
.month-meter { height: 3px; margin-top: 18px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.05); }
.month-meter i { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.month-meter i.positive { background: var(--green); }
.month-meter i.level-1 { width: 10%; }
.month-meter i.level-2 { width: 20%; }
.month-meter i.level-3 { width: 30%; }
.month-meter i.level-4 { width: 40%; }
.month-meter i.level-5 { width: 50%; }
.month-meter i.level-6 { width: 60%; }
.month-meter i.level-7 { width: 70%; }
.month-meter i.level-8 { width: 80%; }
.month-meter i.level-9 { width: 90%; }
.month-meter i.level-10 { width: 100%; }
.assumption-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.assumption-chip { padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; color: #8fa69d; background: rgba(255,255,255,.012); font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.assumption-chip b { color: #d0dfd9; font-weight: 600; }
.trade-log { padding-bottom: 18px; }
.trade-log-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.trade-filters { display: flex; gap: 9px; }
.trade-filters label { color: #718b81; font-size: 9px; }
.trade-filters select { display: block; min-width: 120px; margin-top: 6px; padding: 9px 28px 9px 10px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: #c9d9d3; background: var(--panel-solid); font: 500 10px/1 system-ui, sans-serif; }
.trade-filters select:focus { border-color: rgba(94, 231, 163, .4); }
.table-scroll { overflow-x: auto; margin-top: 23px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th { padding: 13px 12px; color: #61786f; font: 600 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-align: left; }
td { padding: 13px 12px; border-top: 1px solid rgba(181, 224, 207, .075); color: #a8bcb4; font: 500 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }
td:first-child { color: #546a62; }
.trade-side { display: inline-flex; min-width: 47px; justify-content: center; padding: 5px 7px; border-radius: 6px; font-size: 8px; font-weight: 700; }
.trade-side.long { color: var(--green); background: rgba(94,231,163,.09); }
.trade-side.short { color: var(--red); background: rgba(255,125,117,.08); }
.trade-return.positive { color: var(--green); }
.trade-return.negative { color: var(--red); }
.table-loading { padding: 35px; text-align: center; color: #637b72; }
.table-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; color: #637b72; font-size: 9px; }
.table-pagination > div { display: flex; align-items: center; gap: 12px; }
.table-pagination button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: #a9bcb5; background: transparent; font-size: 9px; cursor: pointer; }
.table-pagination button:hover:not(:disabled) { border-color: rgba(94,231,163,.35); color: var(--green); }
.table-pagination button:disabled { opacity: .35; cursor: default; }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.method-grid article { padding: 30px; border-top: 1px solid rgba(94, 231, 163, .35); background: linear-gradient(180deg, rgba(94,231,163,.05), transparent); }
.method-grid span { color: var(--green); font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.method-grid h3 { margin: 50px 0 15px; font-size: 21px; font-weight: 590; }
.method-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.disclaimer { display: grid; grid-template-columns: 180px 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.disclaimer span { color: var(--yellow); font: 600 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.disclaimer p { max-width: 850px; margin: 0; color: #718b81; font-size: 11px; line-height: 1.7; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 150px; color: #718b81; font-size: 11px; }
.footer-brand { color: var(--text); }
footer p { margin: 0; }
footer > a { transition: color .2s ease; }
footer > a:hover { color: var(--green); }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .market-card { max-width: 660px; }
  .ticker-strip { grid-template-columns: repeat(2, 1fr); }
  .ticker-strip div:nth-child(2) { border-right: 0; }
  .ticker-strip div:first-child, .ticker-strip div:nth-child(3) { padding-left: 0; }
  .ticker-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .validation-section { grid-template-columns: 1fr; }
  .backtest-kpis { grid-template-columns: repeat(3, 1fr); }
  .backtest-visual-grid { grid-template-columns: 1fr; }
  .side-card { min-height: auto; }
  .monthly-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header, main, footer { width: min(calc(100% - 28px), var(--max)); }
  .site-header { height: 70px; }
  .system-pill { padding: 8px 10px; }
  #system-label { display: none; }
  .hero { min-height: auto; padding: 68px 0 70px; gap: 52px; }
  h1 { font-size: 47px; }
  .hero-actions { flex-direction: column; }
  .market-card { padding: 20px; border-radius: 22px; }
  .price-block { padding: 38px 0 28px; }
  .ticker-strip div { padding: 20px 14px; }
  .section { padding: 90px 0; }
  .metric-grid, .method-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 190px; }
  .validation-copy h2, .section-heading h2 { font-size: 39px; }
  .fold-card { padding: 18px; }
  .fold-chart { gap: 6px; height: 230px; }
  .disclaimer { grid-template-columns: 1fr; gap: 15px; }
  .backtest-scope { text-align: left; }
  .backtest-kpis { grid-template-columns: repeat(2, 1fr); }
  .backtest-kpis article { padding: 18px 15px; }
  .backtest-kpis strong { font-size: 24px; }
  .equity-card, .side-card, .monthly-block, .assumption-block, .trade-log { padding: 19px; }
  .equity-card { min-height: auto; }
  .equity-chart-wrap { height: 230px; }
  .chart-legend { display: none; }
  .monthly-grid { grid-template-columns: 1fr; }
  .trade-log-head { align-items: flex-start; flex-direction: column; }
  .trade-filters { width: 100%; }
  .trade-filters label { flex: 1; }
  .trade-filters select { width: 100%; min-width: 0; }
  .table-pagination { align-items: flex-start; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
