:root {
  color-scheme: dark;
  --surface-base: #0b0618;
  --surface-deep: #070312;
  --surface-card: #171426;
  --surface-raised: #1d1930;
  --surface-muted: #27223b;
  --text-primary: #f4f5f8;
  --text-secondary: #9b9aaa;
  --text-tertiary: #706d80;
  --brand: #945ff9;
  --brand-hover: #a976ff;
  --brand-accent: #00afff;
  --positive: #47d19a;
  --negative: #fc425d;
  --warning: #f4b85f;
  --control: #61eded;
  --primary-level: #d3b6ff;
  --major-level: #d5d7e2;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --gradient-brand: linear-gradient(135deg, #945ff9, #00afff);
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 40% at 78% -5%, rgba(72, 53, 184, 0.42), transparent 68%),
    radial-gradient(ellipse 45% 36% at 8% 30%, rgba(88, 38, 151, 0.14), transparent 72%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(11, 6, 24, .82);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(1480px, calc(100% - 48px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand-word, .footer-brand span {
  margin-left: 10px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .18em;
}
.brand-product, .footer-brand em {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border-strong);
  color: #b89aff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .16em;
}

.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms ease;
}
.site-header nav a:hover { color: var(--text-primary); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.delay-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
}
.delay-badge i, .delay-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 10px rgba(244, 184, 95, .55);
}
.delay-badge.mixed i, .live-dot {
  background: var(--positive);
  box-shadow: 0 0 10px rgba(71, 209, 154, .58);
}

.button {
  min-height: 45px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--brand); color: white; box-shadow: 0 12px 30px rgba(148, 95, 249, .22); }
.button-primary:hover { background: var(--brand-hover); }
.button-secondary { border-color: var(--border-strong); background: rgba(255,255,255,.025); }
.button-secondary:hover { border-color: rgba(148,95,249,.45); background: rgba(148,95,249,.08); }
.button-small { min-height: 38px; padding: 0 15px; font-size: 12px; }

main { overflow: clip; }
.hero {
  width: min(1240px, calc(100% - 48px));
  min-height: 520px;
  margin: 0 auto;
  padding: 96px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 80px;
}
.section-badge {
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(148,95,249,.3);
  border-radius: 999px;
  background: rgba(148,95,249,.08);
  color: #bba4ec;
  font-size: 11px;
  font-weight: 650;
}
.section-badge span { margin-right: 6px; color: var(--brand-accent); }
.hero h1 {
  max-width: 820px;
  margin: 24px 0 0;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.hero h1 span, .platform-cta h2 span {
  color: transparent;
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-copy > p {
  max-width: 680px;
  margin: 25px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}
.hero-actions { margin-top: 34px; display: flex; gap: 12px; }
.hero-note {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(23, 20, 38, .62);
  display: flex;
  gap: 16px;
  box-shadow: 0 20px 55px rgba(0,0,0,.18);
}
.hero-note strong { font-size: 13px; }
.hero-note p { margin: 6px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.pulse-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: rgba(148,95,249,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.pulse-icon span { width: 3px; border-radius: 4px; background: var(--brand); }
.pulse-icon span:nth-child(1) { height: 9px; }
.pulse-icon span:nth-child(2) { height: 18px; background: var(--brand-accent); }
.pulse-icon span:nth-child(3) { height: 12px; }

.product-shell {
  width: min(1540px, calc(100% - 32px));
  margin: 0 auto 112px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgba(12, 8, 28, .94);
  overflow: hidden;
  box-shadow: 0 44px 110px rgba(0, 0, 0, .38), 0 0 80px rgba(148,95,249,.08);
  scroll-margin-top: 90px;
}
.product-header {
  min-height: 70px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto auto minmax(260px, 420px) auto;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,.018);
}
.analysis-toolbar {
  min-height: 76px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(90deg, rgba(148,95,249,.045), rgba(0,175,255,.018));
}
.exposure-control { display: flex; align-items: center; gap: 14px; }
.control-label { color: var(--text-tertiary); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.exposure-segmented {
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 3px;
  background: var(--surface-deep);
}
.exposure-segmented button {
  min-height: 43px;
  padding: 5px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: 150ms ease;
}
.exposure-segmented button:hover { color: var(--text-primary); background: rgba(255,255,255,.035); }
.exposure-segmented button.active { border-color: rgba(148,95,249,.28); color: white; background: linear-gradient(135deg, rgba(148,95,249,.2), rgba(0,175,255,.08)); }
.exposure-segmented b { font: 650 10px var(--font-mono); }
.exposure-segmented small { color: inherit; font-size: 8px; opacity: .68; }
.analysis-context { display: flex; align-items: center; gap: 22px; }
.analysis-context > div { min-width: 92px; }
.analysis-context > div + div { padding-left: 22px; border-left: 1px solid var(--border); }
.analysis-context span { display: block; color: var(--text-tertiary); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.analysis-context strong { display: block; margin-top: 5px; color: var(--text-secondary); font: 600 9px var(--font-mono); }
.analysis-context a { color: #b999fb; text-decoration: none; font-size: 9px; font-weight: 650; white-space: nowrap; }
.analysis-context a:hover { color: white; }
.product-title { display: flex; align-items: center; gap: 11px; }
.status-light { width: 9px; height: 9px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 12px rgba(244,184,95,.55); }
.status-light.open { background: var(--positive); box-shadow: 0 0 12px rgba(71,209,154,.6); }
.product-title strong { display: block; font-size: 13px; }
.product-title small { display: block; margin-top: 3px; color: var(--text-tertiary); font-size: 10px; }
.product-tabs {
  height: 40px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  background: rgba(255,255,255,.025);
}
.product-tabs button {
  min-width: 112px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.product-tabs button.active { background: var(--surface-muted); color: var(--text-primary); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.instrument-search {
  height: 40px;
  min-width: 0;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  background: var(--surface-deep);
}
.instrument-search:focus-within { border-color: rgba(148,95,249,.58); box-shadow: 0 0 0 3px rgba(148,95,249,.08); }
.instrument-search > span { margin-left: 13px; color: var(--text-tertiary); font-size: 17px; }
.instrument-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: 500 11px var(--font-sans);
}
.instrument-search input::placeholder { color: var(--text-tertiary); }
.instrument-search kbd {
  min-width: 21px;
  height: 21px;
  margin-right: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  background: rgba(255,255,255,.035);
  font: 600 9px var(--font-mono);
}
.search-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 330px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  overflow-y: auto;
  background: #110d20;
  box-shadow: 0 22px 55px rgba(0,0,0,.55);
}
.search-result {
  width: 100%;
  min-height: 46px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.search-result:hover, .search-result.active { background: var(--surface-muted); }
.search-result strong { font: 600 11px var(--font-mono); }
.search-result span { min-width: 0; color: var(--text-secondary); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result small { padding: 4px 6px; border-radius: 5px; font-size: 7px; font-weight: 700; }
.search-result small.live { color: #8de8b8; background: rgba(71,209,154,.1); }
.search-result small.delayed { color: #e8bf7f; background: rgba(244,184,95,.1); }
.search-empty { padding: 18px 12px; color: var(--text-secondary); font-size: 10px; text-align: center; }
.product-meta { justify-self: end; display: flex; align-items: center; gap: 14px; color: var(--text-secondary); font-size: 10px; }
.product-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255,255,255,.02);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: 160ms ease;
}
.icon-button:hover { color: white; border-color: rgba(148,95,249,.42); background: rgba(148,95,249,.08); }
.icon-button.loading { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.product-panel { padding: 28px; }
.view-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.toolbar-kicker { margin: 0 0 8px !important; color: #9c82d4 !important; font-size: 9px !important; font-weight: 700; letter-spacing: .17em; }
.view-toolbar h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.view-toolbar > div:first-child > p:last-child { margin: 7px 0 0; color: var(--text-secondary); font-size: 12px; }
.market-controls { display: flex; align-items: end; gap: 12px; }
.control-block { display: block; }
.control-block > span { display: block; margin: 0 0 7px 2px; color: var(--text-tertiary); font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.segmented {
  height: 38px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  background: var(--surface-deep);
}
.segmented button {
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}
.segmented button.active { background: var(--surface-muted); color: white; }
.control-block select {
  height: 38px;
  min-width: 185px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: 0;
  background: var(--surface-deep);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.control-block select:focus { border-color: rgba(148,95,249,.65); }

.market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.market-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.market-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-card);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}
.market-card:hover { transform: translateY(-2px); border-color: rgba(148,95,249,.3); }
.market-card-head { padding: 17px 17px 15px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.market-identity { display: flex; align-items: center; gap: 10px; }
.ticker-tile {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148,95,249,.28);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(148,95,249,.09);
  color: #d8c9fb;
  font: 600 10px var(--font-mono);
}
.market-identity strong { display: block; font-size: 13px; }
.market-identity small { display: block; max-width: 105px; margin-top: 4px; color: var(--text-tertiary); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.regime-badge { padding: 5px 7px; border-radius: 6px; color: var(--text-secondary); background: rgba(255,255,255,.045); font-size: 8px; font-weight: 650; white-space: nowrap; text-transform: uppercase; }
.regime-badge.positive { color: #8de8b8; background: rgba(71,209,154,.09); }
.regime-badge.negative { color: #ff8a9b; background: rgba(252,66,93,.09); }
.card-badges { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; }
.freshness-badge { padding: 4px 6px; border-radius: 5px; font-size: 7px; font-weight: 750; letter-spacing: .06em; }
.freshness-badge.live { color: #8de8b8; background: rgba(71,209,154,.1); }
.freshness-badge.delayed { color: #e8bf7f; background: rgba(244,184,95,.1); }
.market-price { padding: 18px 17px 16px; }
.market-price strong { display: block; font: 600 clamp(23px, 2vw, 30px) var(--font-mono); letter-spacing: -.05em; }
.market-price span { display: block; margin-top: 7px; font: 600 10px var(--font-mono); }
.up { color: var(--positive) !important; }
.down { color: var(--negative) !important; }
.muted { color: var(--text-tertiary) !important; }
.mini-section { padding: 0 17px 16px; }
.mini-section-head { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; color: var(--text-tertiary); font-size: 8px; font-weight: 650; letter-spacing: .1em; }
.mini-section-head b { color: var(--text-secondary); font: 500 8px var(--font-mono); letter-spacing: 0; }
.mini-profile { display: grid; gap: 5px; }
.mini-profile > .muted { min-height: 86px; display: grid; place-items: center; font-size: 9px; text-align: center; }
.mini-row { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 7px; }
.mini-row > span { color: var(--text-tertiary); font: 500 7px var(--font-mono); text-align: right; }
.mini-row.spot > span { color: var(--text-primary); }
.mini-track { height: 8px; position: relative; border-radius: 2px; background: rgba(255,255,255,.025); overflow: hidden; }
.mini-track::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.16); }
.mini-track i { position: absolute; top: 1px; bottom: 1px; border-radius: 2px; }
.mini-track i.positive { left: 50%; background: linear-gradient(90deg, rgba(71,209,154,.5), var(--positive)); }
.mini-track i.negative { right: 50%; background: linear-gradient(270deg, rgba(252,66,93,.55), var(--negative)); }
.market-levels { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.market-levels div { min-width: 0; padding: 12px 9px; text-align: center; }
.market-levels div + div { border-left: 1px solid var(--border); }
.market-levels span { display: block; color: var(--text-tertiary); font-size: 7px; letter-spacing: .08em; }
.market-levels strong { display: block; margin-top: 5px; overflow: hidden; color: var(--major-level); font: 600 9px var(--font-mono); text-overflow: ellipsis; }
.market-levels div:first-child strong { color: var(--primary-level); }
.market-levels div:last-child strong { color: var(--control); }
.market-card-foot { padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; }
.market-card-foot span { color: var(--text-tertiary); font: 500 8px var(--font-mono); }
.open-field {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b999fb;
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
}
.open-field:hover { color: white; }
.market-card.loading-card { min-height: 408px; padding: 18px; }
.skeleton { border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.075), rgba(255,255,255,.035)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.skeleton.head { width: 64%; height: 38px; }
.skeleton.price { width: 45%; height: 33px; margin-top: 28px; }
.skeleton.chart { width: 100%; height: 106px; margin-top: 25px; }
.skeleton.levels { width: 100%; height: 50px; margin-top: 25px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card-error { min-height: 408px; padding: 24px; display: flex; flex-direction: column; justify-content: center; align-items: start; }
.card-error strong { font-size: 13px; }
.card-error p { margin: 8px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }

.market-read {
  min-height: 68px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(148,95,249,.08), rgba(0,175,255,.025));
}
.read-icon { width: 34px; height: 34px; border: 1px solid rgba(148,95,249,.36); border-radius: 9px; display: grid; place-items: center; color: #c9b2ff; font-weight: 700; }
.market-read strong { font-size: 11px; }
.market-read p { margin: 4px 0 0; color: var(--text-secondary); font-size: 10px; }
.market-read .as-of { color: var(--text-tertiary); font: 500 8px var(--font-mono); text-align: right; }

.field-toolbar { align-items: center; }
.field-actions { max-width: 720px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.value-toggle {
  height: 32px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  background: var(--surface-deep);
}
.value-toggle button {
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 8px;
  font-weight: 650;
  cursor: pointer;
}
.value-toggle button.active { color: white; background: var(--surface-muted); }
.detail-freshness { margin-left: 7px; padding: 5px 7px; border-radius: 6px; vertical-align: middle; font-size: 7px; font-style: normal; font-weight: 750; letter-spacing: .07em; }
.detail-freshness.live { color: #8de8b8; background: rgba(71,209,154,.1); }
.detail-freshness.delayed { color: #e8bf7f; background: rgba(244,184,95,.1); }
.symbol-picker { max-width: 660px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.symbol-picker button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  color: var(--text-secondary);
  font: 600 9px var(--font-mono);
  cursor: pointer;
}
.symbol-picker button:hover { border-color: rgba(148,95,249,.45); }
.symbol-picker button.active { border-color: rgba(148,95,249,.65); background: rgba(148,95,249,.13); color: white; }
.detail-stats { margin-bottom: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat-card { min-height: 94px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-card); }
.stat-card span { display: block; color: var(--text-tertiary); font-size: 8px; font-weight: 650; letter-spacing: .1em; }
.stat-card strong { display: block; margin-top: 10px; font: 600 18px var(--font-mono); }
.stat-card small { display: block; margin-top: 6px; color: var(--text-secondary); font-size: 9px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); gap: 12px; }
.detail-card { min-width: 0; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-card); overflow: hidden; }
.card-heading { min-height: 66px; padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.card-heading span { color: var(--text-tertiary); font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.card-heading h3 { margin: 5px 0 0; font-size: 12px; }
.heat-legend { display: flex; align-items: center; gap: 7px; color: var(--text-tertiary); font-size: 7px; }
.heat-legend i { width: 72px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--negative), rgba(255,255,255,.1), var(--positive)); }
.heatmap-scroll { padding: 14px; overflow-x: auto; }
.heatmap { min-width: 720px; display: grid; gap: 3px; }
.heat-cell, .heat-axis { min-height: 25px; border-radius: 3px; display: grid; place-items: center; }
.heat-axis { color: var(--text-tertiary); font: 500 7px var(--font-mono); white-space: pre-line; text-align: center; }
.heat-axis.strike { justify-content: end; padding-right: 7px; color: var(--text-secondary); }
.heat-cell { border: 0; color: rgba(255,255,255,.88); font: 500 7px var(--font-mono); cursor: help; }
.heat-cell.spot-row { box-shadow: inset 0 0 0 1px rgba(255,255,255,.34); }
.profile-chart { padding: 14px 16px 18px; display: grid; gap: 8px; }
.profile-row { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 8px; }
.profile-row > span { color: var(--text-secondary); font: 500 8px var(--font-mono); text-align: right; }
.profile-row.spot > span { color: white; }
.profile-track { height: 14px; position: relative; border-radius: 3px; background: rgba(255,255,255,.025); overflow: hidden; }
.profile-track::after { content: ""; position: absolute; left: 50%; inset-block: 0; width: 1px; background: rgba(255,255,255,.18); }
.profile-track i { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; }
.profile-track i.positive { left: 50%; background: var(--positive); }
.profile-track i.negative { right: 50%; background: var(--negative); }
.profile-row.dominant .profile-track { box-shadow: inset 0 0 0 1px rgba(244,184,95,.72), 0 0 12px rgba(244,184,95,.12); }
.profile-row.dominant > span { color: var(--warning); }
.data-state { min-height: 260px; display: grid; place-items: center; color: var(--text-secondary); font-size: 12px; text-align: center; }

.structure-strip {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 18px;
  background: var(--surface-card);
}
.structure-strip > .data-state { grid-column: 1 / -1; min-height: 54px; }
.structure-label span { color: var(--text-tertiary); font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.structure-label strong { display: block; margin-top: 6px; font-size: 11px; }
.structure-label small { display: block; margin-top: 5px; color: var(--text-tertiary); font-size: 8px; }
.level-rail { min-height: 52px; position: relative; margin: 0 18px; }
.level-rail::before { content: ""; position: absolute; inset: 25px 0 auto; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(252,66,93,.32), rgba(255,255,255,.1), rgba(71,209,154,.32)); }
.level-marker { position: absolute; top: 4px; transform: translateX(-50%); text-align: center; }
.level-marker::after { content: ""; width: 1px; height: 28px; margin: 3px auto 0; display: block; background: var(--text-tertiary); }
.level-marker span { display: block; color: var(--text-secondary); font: 600 7px var(--font-mono); white-space: nowrap; }
.level-marker small { display: block; margin-top: 2px; color: var(--text-tertiary); font-size: 6px; letter-spacing: .08em; }
.level-marker.spot::after { width: 2px; background: white; box-shadow: 0 0 9px rgba(255,255,255,.45); }
.level-marker.spot span { color: white; }
.level-marker.primary::after { background: var(--primary-level); }
.level-marker.primary span { color: var(--primary-level); }
.level-marker.control::after { background: var(--control); }
.level-marker.control span { color: var(--control); }

.methodology {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 110px;
  scroll-margin-top: 90px;
}
.methodology-heading { margin-bottom: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); align-items: end; gap: 70px; }
.methodology-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
.methodology-heading h2 span { color: #b99ff3; }
.methodology-heading > p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.greek-guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.greek-guide article {
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(145deg, rgba(29,25,48,.88), rgba(15,10,31,.9));
}
.greek-guide article.active { border-color: rgba(148,95,249,.48); box-shadow: 0 18px 55px rgba(62,35,125,.16), inset 0 1px 0 rgba(255,255,255,.04); }
.greek-guide article.active > span { border-color: rgba(0,175,255,.5); background: linear-gradient(135deg, rgba(148,95,249,.22), rgba(0,175,255,.12)); }
.greek-guide article > span { width: 42px; height: 42px; border: 1px solid rgba(148,95,249,.35); border-radius: 11px; display: grid; place-items: center; color: #d2c0fc; background: rgba(148,95,249,.11); font: 600 18px var(--font-mono); }
.greek-guide small { color: #a88bdf; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.greek-guide h3 { margin: 10px 0 0; font-size: 15px; line-height: 1.35; }
.greek-guide p { margin: 12px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.65; }
.greek-guide b { margin-top: 15px; display: block; color: var(--text-tertiary); font: 500 8px var(--font-mono); }
.methodology-note { margin-top: 12px; padding: 16px 18px; border: 1px solid rgba(148,95,249,.22); border-radius: 12px; display: flex; align-items: center; gap: 14px; background: rgba(148,95,249,.055); }
.methodology-note strong { color: #c9b4f7; font-size: 10px; white-space: nowrap; }
.methodology-note span { color: var(--text-secondary); font-size: 10px; line-height: 1.55; }

.platform-cta {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 110px;
  padding: 52px;
  border: 1px solid rgba(148,95,249,.26);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 80px;
  background: radial-gradient(circle at 92% 10%, rgba(0,175,255,.12), transparent 28%), linear-gradient(135deg, rgba(148,95,249,.13), rgba(23,20,38,.8));
  box-shadow: 0 0 80px rgba(148,95,249,.09);
}
.platform-cta h2 { margin: 22px 0 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.platform-cta p { max-width: 730px; margin: 20px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-actions .button { min-width: 210px; }
.cta-actions small { color: var(--text-tertiary); font-size: 9px; }

footer {
  width: min(1240px, calc(100% - 48px));
  min-height: 108px;
  margin: 0 auto;
  padding: 26px 0 38px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.footer-brand img { width: 26px; height: 26px; }
.footer-brand span { font-size: 12px; }
.footer-brand em { font-size: 9px; }
footer > p { max-width: 690px; margin: 0; color: var(--text-tertiary); font-size: 9px; line-height: 1.55; }
footer > div:last-child { display: flex; gap: 18px; }
footer > div:last-child a { color: var(--text-secondary); text-decoration: none; font-size: 10px; }
footer > div:last-child a:hover { color: white; }

@media (max-width: 1230px) {
  .site-header nav { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-stats { grid-template-columns: repeat(3, 1fr); }
  .greek-guide { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .market-grid, .market-grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 40px; padding: 72px 0; }
  .hero-note { max-width: 520px; }
  .product-header { grid-template-columns: 1fr auto; }
  .product-title { grid-column: 1; grid-row: 1; }
  .product-meta { grid-column: 2; grid-row: 1; }
  .product-tabs { grid-row: 2; grid-column: 1 / -1; margin: 0 auto 12px; }
  .instrument-search { width: 100%; grid-row: 3; grid-column: 1 / -1; margin-bottom: 12px; }
  .product-meta { justify-self: end; }
  .analysis-toolbar { align-items: stretch; flex-direction: column; }
  .analysis-context { justify-content: space-between; }
  .view-toolbar { align-items: start; flex-direction: column; }
  .market-controls { width: 100%; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .field-toolbar { align-items: start; }
  .field-actions { justify-content: flex-start; }
  .symbol-picker { justify-content: flex-start; }
  .structure-strip { grid-template-columns: 1fr; }
  .methodology-heading { grid-template-columns: 1fr; gap: 24px; }
  .platform-cta { grid-template-columns: 1fr; gap: 34px; padding: 38px; }
  .cta-actions { align-items: start; }
  footer { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 680px) {
  .header-inner { width: calc(100% - 28px); }
  .brand-product, .delay-badge { display: none; }
  .header-actions .button { display: none; }
  .header-actions { gap: 8px; }
  .hero { width: calc(100% - 32px); padding: 58px 0; }
  .hero h1 { font-size: 44px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .product-shell { width: calc(100% - 16px); border-radius: 14px; }
  .product-panel { padding: 18px 12px; }
  .product-header { padding: 10px 12px; }
  .product-meta > span { display: none; }
  .analysis-toolbar { padding: 12px; gap: 14px; }
  .exposure-control { align-items: stretch; flex-direction: column; gap: 7px; }
  .exposure-segmented { width: 100%; grid-template-columns: repeat(4, 1fr); }
  .exposure-segmented button { min-width: 0; padding: 7px 4px; justify-content: center; }
  .exposure-segmented button small { display: none; }
  .analysis-context { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .analysis-context > div + div { padding-left: 12px; }
  .analysis-context a { width: 100%; }
  .product-tabs { width: 100%; }
  .product-tabs button { min-width: 0; flex: 1; }
  .market-controls { align-items: stretch; flex-direction: column; }
  .control-block select { width: 100%; }
  .segmented button { flex: 1; }
  .market-grid, .market-grid[data-count="3"] { grid-template-columns: 1fr; }
  .market-read { grid-template-columns: 36px 1fr; }
  .market-read .as-of { display: none; }
  .detail-stats { grid-template-columns: 1fr 1fr; gap: 7px; }
  .stat-card { padding: 13px; }
  .stat-card strong { font-size: 15px; }
  .card-heading { align-items: start; flex-direction: column; }
  .field-actions { width: 100%; }
  .symbol-picker { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .greek-guide { grid-template-columns: 1fr; }
  .methodology { width: calc(100% - 32px); margin-bottom: 78px; }
  .methodology-note { align-items: flex-start; flex-direction: column; }
  .platform-cta { width: calc(100% - 32px); padding: 28px 22px; }
  .platform-cta h2 { font-size: 34px; }
  footer { width: calc(100% - 32px); }
}

@media (max-width: 480px) {
  .header-inner { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
