@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&display=swap");

:root {
  --bg: #07111f;
  --bg-strong: #0d1728;
  --paper: rgba(13, 23, 40, 0.78);
  --ink: #edf4ff;
  --muted: #91a4c2;
  --accent: #3f8cff;
  --accent-strong: #82b7ff;
  --line: rgba(148, 163, 184, 0.22);
  --shadow: 0 28px 90px rgba(1, 4, 10, 0.48);
  --body-radial-1: rgba(96, 165, 250, 0.3);
  --body-radial-2: rgba(148, 197, 255, 0.16);
  --body-radial-3: rgba(51, 65, 85, 0.52);
  --body-gradient-start: #101b2b;
  --body-gradient-mid: #162235;
  --body-gradient-end: #131f31;
  --shell-bg: linear-gradient(180deg, rgba(12, 18, 31, 0.92) 0%, rgba(8, 14, 25, 0.88) 100%);
  --card-bg: linear-gradient(180deg, rgba(17, 24, 39, 0.94) 0%, rgba(10, 16, 29, 0.9) 100%);
  --card-bg-strong: linear-gradient(180deg, rgba(10, 17, 31, 0.96) 0%, rgba(7, 12, 23, 0.9) 100%);
  --soft-panel-bg: rgba(9, 16, 31, 0.7);
  --mini-card-bg: rgba(11, 18, 33, 0.82);
  --interactive-bg: rgba(15, 23, 42, 0.72);
  --interactive-bg-strong: rgba(15, 23, 42, 0.9);
  --pill-bg: rgba(37, 99, 235, 0.12);
  --pill-border: rgba(125, 211, 252, 0.24);
  --pill-ink: #b9d5ff;
  --toggle-active-bg: rgba(63, 140, 255, 0.18);
  --toggle-active-ink: var(--ink);
  --positive: #69e2c2;
  --negative: #ff8f7a;
  --row-hover-bg: rgba(24, 38, 68, 0.58);
  --row-hover-border: rgba(130, 183, 255, 0.46);
  --row-hover-ring: rgba(130, 183, 255, 0.14);
  --row-active-bg: rgba(17, 27, 48, 0.52);
  --row-active-border: rgba(130, 183, 255, 0.52);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #edf3fb;
  --bg-strong: #d8e2f1;
  --paper: rgba(255, 255, 255, 0.86);
  --ink: #13233b;
  --muted: #5a6c87;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --line: rgba(99, 115, 145, 0.22);
  --shadow: 0 24px 70px rgba(80, 102, 138, 0.14);
  --body-radial-1: rgba(96, 165, 250, 0.18);
  --body-radial-2: rgba(59, 130, 246, 0.1);
  --body-radial-3: rgba(203, 213, 225, 0.42);
  --body-gradient-start: #f3f7fc;
  --body-gradient-mid: #e8eef8;
  --body-gradient-end: #edf3fb;
  --shell-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 249, 255, 0.92) 100%);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
  --card-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 246, 255, 0.96) 100%);
  --soft-panel-bg: rgba(239, 245, 255, 0.92);
  --mini-card-bg: rgba(247, 250, 255, 0.96);
  --interactive-bg: rgba(255, 255, 255, 0.8);
  --interactive-bg-strong: rgba(255, 255, 255, 0.96);
  --pill-bg: rgba(37, 99, 235, 0.1);
  --pill-border: rgba(37, 99, 235, 0.18);
  --pill-ink: #1d4ed8;
  --toggle-active-bg: rgba(37, 99, 235, 0.12);
  --toggle-active-ink: #173c88;
  --positive: #0f9f79;
  --negative: #d4583f;
  --row-hover-bg: rgba(232, 241, 255, 0.9);
  --row-hover-border: rgba(37, 99, 235, 0.26);
  --row-hover-ring: rgba(37, 99, 235, 0.1);
  --row-active-bg: rgba(224, 236, 255, 0.9);
  --row-active-border: rgba(37, 99, 235, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

html[data-font-size="small"] {
  font-size: 15px;
}

html[data-font-size="medium"] {
  font-size: 16px;
}

html[data-font-size="large"] {
  font-size: 17px;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, var(--body-radial-1), transparent 36%),
    radial-gradient(circle at 85% 10%, var(--body-radial-2), transparent 26%),
    radial-gradient(circle at 50% 100%, var(--body-radial-3), transparent 42%),
    linear-gradient(180deg, var(--body-gradient-start) 0%, var(--body-gradient-mid) 44%, var(--body-gradient-end) 100%);
  transition: background-color 180ms ease, color 180ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 16px auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--shell-bg);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero,
.section,
.footer {
  padding: 28px 8px;
}

.section-note {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}

.topbar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.brand {
  font-family: "Cinzel Decorative", "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 8px 22px rgba(37, 99, 235, 0.16);
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-strong);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--interactive-bg-strong);
  color: var(--ink);
  font: inherit;
}

.lang-switch,
.theme-switch,
.font-size-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--interactive-bg);
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.84rem;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--accent-strong);
}

.theme-switch,
.font-size-switch {
  gap: 4px;
  padding: 4px;
}

.theme-button,
.font-size-button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.font-size-button[data-font-size-value="small"] {
  font-size: 0.74rem;
}

.font-size-button[data-font-size-value="medium"] {
  font-size: 0.82rem;
}

.font-size-button[data-font-size-value="large"] {
  font-size: 0.9rem;
}

.theme-button:hover,
.theme-button:focus-visible,
.font-size-button:hover,
.font-size-button:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

.theme-button.is-active,
.font-size-button.is-active {
  background: var(--toggle-active-bg);
  color: var(--toggle-active-ink);
  font-weight: 700;
}

.lang-link.is-active {
  color: var(--ink);
  font-weight: 700;
}

.lang-separator {
  color: rgba(145, 164, 194, 0.7);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-copy > .eyebrow,
.market-card .card-kicker,
#desktop-chart-kicker {
  font-size: 0.9rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.1rem);
}

h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.28rem;
}

.lede,
.feature-card p,
.insight-copy p,
.timeline-item p,
.panel-note p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.news-feed {
  display: grid;
  gap: 14px;
}

.news-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: 0 18px 42px rgba(2, 6, 16, 0.24);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.news-source {
  color: var(--accent-strong);
  text-transform: uppercase;
  font-weight: 700;
}

.news-item h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.news-link {
  display: inline-flex;
  margin-top: 12px;
  color: #b9d5ff;
  font-size: 0.9rem;
}

.news-item h3 .news-link {
  display: inline;
  margin-top: 0;
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

.news-item h3 .news-link:hover {
  color: var(--accent-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #63a4ff 0%, #2563eb 100%);
  color: #eef6ff;
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.34);
}

.button-secondary {
  border-color: var(--line);
  background: var(--interactive-bg);
  color: var(--ink);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-metrics li,
.panel-card,
.dashboard-card,
.feature-card,
.stat-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: 0 18px 42px rgba(2, 6, 16, 0.34);
}

.hero-metrics li {
  padding: 18px;
}

.hero-metrics strong,
.stat-card strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.hero-metrics span,
.stat-card span {
  color: var(--muted);
}

.hero-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
}

.panel-card {
  padding: 22px;
}

.panel-main {
  position: relative;
  overflow: hidden;
}

.panel-main::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% 40%;
  height: 180px;
  background: radial-gradient(circle, rgba(63, 140, 255, 0.34), transparent 60%);
}

.panel-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.event-feed {
  display: grid;
  gap: 2px;
}

.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.event-row:last-child {
  border-bottom: 0;
}

.event-main,
.event-side {
  display: grid;
  gap: 6px;
}

.event-title {
  margin: 0;
  font-size: 1rem;
}

.event-source,
.event-date {
  color: var(--muted);
  font-size: 0.84rem;
}

.impact-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(99, 164, 255, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.18);
  color: #d6e8ff;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-up {
  color: #69e2c2;
}

.signal-down {
  color: #ff8f7a;
}

.section {
  border-top: 1px solid var(--line);
}

.dashboard-section {
  padding-top: 0;
  border-top: 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(380px, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.dashboard-card {
  padding: 24px;
}

.card-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.chart-tools {
  display: flex;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-range-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--interactive-bg);
}

.chart-range-button {
  min-width: 48px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.chart-range-button.is-active {
  background: var(--toggle-active-bg);
  color: var(--toggle-active-ink);
}

.chart-reset-button {
  cursor: pointer;
}

.card-kicker {
  margin: 0 0 6px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  white-space: nowrap;
  font-size: 0.84rem;
}

.curve-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.curve-meta > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft-panel-bg);
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.curve-shell {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: stretch;
}

.curve-yaxis,
.curve-xaxis {
  color: var(--muted);
  font-size: 0.84rem;
}

.curve-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0 42px;
}

.curve-chart {
  width: 100%;
  min-height: 340px;
  overflow: visible;
}

.grid-lines line {
  stroke: rgba(148, 163, 184, 0.16);
  stroke-width: 1;
}

.curve-area {
  fill: url(#curveFill);
}

.curve-line {
  fill: none;
  stroke: url(#curveStroke);
  stroke-width: 3;
  stroke-linecap: round;
}

.curve-points circle {
  fill: #d7ecff;
  stroke: #2563eb;
  stroke-width: 4;
}

.candle-wicks line {
  stroke-width: 2;
}

.candle-bodies rect {
  rx: 2;
}

.candle-up {
  fill: #69e2c2;
  stroke: #69e2c2;
}

.candle-down {
  fill: #ff8f7a;
  stroke: #ff8f7a;
}

.curve-xaxis {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 0 14px;
}

.curve-xaxis span {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  font-size: 0.76rem;
}

.iv-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 20px;
  background: var(--card-bg-strong);
}

.iv-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.iv-panel-head .card-kicker {
  margin-bottom: 0;
}

.iv-panel-note {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

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

.iv-card {
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: var(--mini-card-bg);
}

.iv-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.iv-card strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.1;
}

.market-card {
  display: flex;
  flex-direction: column;
}

.spot-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.spot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.spot-row:hover,
.spot-row:focus-visible {
  outline: none;
  border-color: var(--row-hover-border);
  background: var(--row-hover-bg);
  box-shadow: inset 0 0 0 1px var(--row-hover-ring);
}

.spot-row.is-active {
  border-color: var(--row-active-border);
  background: var(--row-active-bg);
}

.spot-row:first-child {
  padding-top: 0;
}

.spot-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spot-change-value.positive {
  color: var(--positive);
}

.spot-change-value.negative {
  color: var(--negative);
}

.spot-name,
.spot-symbol {
  display: block;
}

.spot-name {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 1rem;
}

.spot-symbol {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.spot-price-block {
  text-align: right;
}

.spot-price-block strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.12rem;
}

.market-footnote {
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.feature-card,
.stat-card {
  padding: 22px;
}

.accent-section {
  position: relative;
}

.accent-section::before {
  content: "";
  position: absolute;
  top: 38px;
  right: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 140, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.insight-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 20px;
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(63, 140, 255, 0.14);
  color: var(--accent-strong);
  font-weight: 700;
}

.footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.legal-hero {
  padding-bottom: 12px;
}

.legal-intro {
  max-width: 720px;
}

.legal-intro h1 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  max-width: none;
}

.legal-card h2,
.legal-footer h2 {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  max-width: none;
}

.legal-links {
  display: flex;
}

.legal-section {
  display: grid;
  gap: 18px;
}

.legal-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: 0 18px 42px rgba(2, 6, 16, 0.34);
}

.legal-block + .legal-block {
  margin-top: 20px;
}

.legal-block p,
.legal-note {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-block p:last-child,
.legal-note:last-child {
  margin-bottom: 0;
}

.legal-placeholder {
  color: #ffd08a;
}

.legal-footer {
  margin-top: 12px;
}

.strategy-intro {
  max-width: 1120px;
}

.strategy-intro h1 {
  max-width: 34ch;
  font-size: clamp(1.65rem, 2.7vw, 2.55rem);
}

.strategy-intro-wide {
  max-width: 980px;
}

.strategy-intro-wide h1 {
  max-width: none;
}

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

.strategy-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: 0 18px 42px rgba(2, 6, 16, 0.34);
}

.strategy-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  max-width: none;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.strategy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.strategy-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.strategy-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-panel-bg);
  color: var(--muted);
  line-height: 1.6;
}

.strategy-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.95rem;
}

.strategy-card-actions {
  margin-top: 18px;
}

.strategy-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.strategy-source {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.strategy-inline-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.strategy-diagram-card {
  margin-top: 18px;
}

.payoff-chart {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft-panel-bg);
}

.payoff-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.payoff-chart-compact {
  margin-top: 14px;
  padding: 14px;
}

.strategy-example {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft-panel-bg);
}

.strategy-example h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.strategy-example p {
  margin: 0 0 12px;
}

.strategy-example p:last-child {
  margin-bottom: 0;
}

.strategy-heatmap {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(9, 16, 28, 0.72);
}

.strategy-heatmap-image {
  display: block;
  width: 100%;
  height: auto;
}

.lede,
.strategy-card p:not(.card-kicker),
.basics-card p:not(.card-kicker),
.tools-card p:not(.card-kicker),
.legal-stack p,
.strategy-example p {
  margin-bottom: 12px;
}

.lede:last-child,
.strategy-card p:not(.card-kicker):last-child,
.basics-card p:not(.card-kicker):last-child,
.tools-card p:not(.card-kicker):last-child,
.legal-stack p:last-child,
.strategy-example p:last-child {
  margin-bottom: 0;
}

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

.basics-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: 0 18px 42px rgba(2, 6, 16, 0.34);
}

.basics-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  max-width: none;
}

.basics-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.basics-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.basics-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-panel-bg);
  color: var(--muted);
  line-height: 1.6;
}

.basics-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.95rem;
}

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

.tools-grid-single {
  grid-template-columns: 1fr;
}

.tools-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: 0 18px 42px rgba(2, 6, 16, 0.34);
}

.tools-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  max-width: none;
}

.tools-preview {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(9, 16, 28, 0.72);
  box-shadow: 0 18px 42px rgba(2, 6, 16, 0.22);
  max-width: 1120px;
}

.tools-preview-image {
  display: block;
  width: 100%;
  height: auto;
}

.tools-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tools-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tools-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-panel-bg);
  color: var(--muted);
  line-height: 1.6;
}

.tools-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.95rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms ease, transform 480ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .dashboard-grid,
  .insight-layout,
  .feature-grid,
  .insight-stats,
  .basics-grid,
  .strategy-detail-layout,
  .tools-grid,
  .strategy-grid,
  .hero-metrics,
  .footer {
    grid-template-columns: 1fr;
  }

  .footer {
    display: grid;
    align-items: start;
  }

  .curve-meta {
    grid-template-columns: 1fr;
  }

  .iv-grid {
    grid-template-columns: 1fr;
  }

  .event-row {
    align-items: start;
  }

}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 16px, 100%);
    padding: 16px;
    border-radius: 22px;
  }

  .topbar {
    align-items: start;
    flex-wrap: wrap;
  }

  .topbar-controls {
    width: 100%;
    flex-direction: column;
    align-items: start;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding-top: 6px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .lang-switch {
    min-height: 34px;
  }

  h1 {
    max-width: none;
  }

  .dashboard-card {
    padding: 18px;
  }

  .chart-tools {
    justify-content: start;
  }

  .curve-shell {
    grid-template-columns: 1fr;
  }

  .curve-yaxis {
    display: none;
  }

  .curve-chart {
    min-height: 260px;
  }

  .curve-xaxis {
    grid-column: auto;
    padding: 0;
  }

  .iv-panel {
    padding: 16px;
  }

  .iv-panel-head {
    flex-direction: column;
  }

  .iv-panel-note {
    text-align: left;
  }

  .card-topline,
  .spot-row,
  .event-row {
    flex-direction: column;
    align-items: start;
  }

  .spot-price-block {
    text-align: left;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
