:root {
  --bg: #07080c;
  --panel: rgba(18, 20, 28, 0.82);
  --panel-strong: rgba(14, 16, 22, 0.96);
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --text: #eef2ff;
  --muted: #9aa4bb;
  --accent: #8b7cff;
  --accent-2: #59d6ff;
  --good: #4fd1a5;
  --bad: #ff6b81;
  --warn: #ffcf66;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139,124,255,0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(89,214,255,0.08), transparent 22%),
    linear-gradient(180deg, #07080c 0%, #0a0d12 100%);
}
.backdrop {
  position: fixed; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 85%);
  opacity: 0.3;
}
.site-header, .site-footer, .layout { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0 16px; position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px);
}
.brand-block { display: flex; gap: 16px; align-items: center; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(139,124,255,0.25), rgba(255,255,255,0.06));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-weight: 800;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; color: var(--muted); }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 22px; margin-top: 4px; }
h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; max-width: 780px; }
h3 { font-size: 28px; }
h4 { font-size: 18px; }
nav { display: flex; gap: 20px; }
nav a, .button {
  color: var(--text); text-decoration: none; font-size: 14px;
}
nav a { opacity: 0.86; }
.layout { padding: 22px 0 50px; display: grid; gap: 22px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: 28px;
}
.hero { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; min-height: 360px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.hero-copy p { color: var(--muted); font-size: 16px; max-width: 760px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03);
}
.button.primary { background: linear-gradient(135deg, rgba(139,124,255,0.24), rgba(89,214,255,0.16)); }
.hero-metrics { display: grid; gap: 14px; }
.metric-card, .design-card {
  border-radius: 22px; padding: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}
.metric-card span, .metric-card small { color: var(--muted); }
.metric-card strong { display: block; font-size: 36px; margin: 10px 0 6px; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.section-head.split { align-items: center; }
.section-note { max-width: 520px; color: var(--muted); line-height: 1.7; }
.table-wrap { overflow: auto; border-radius: 18px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 880px; }
th, td { padding: 14px 16px; text-align: left; }
thead { background: rgba(255,255,255,0.03); }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: rgba(255,255,255,0.025); }
.asset-cell { display: flex; align-items: center; gap: 12px; }
.asset-badge {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(139,124,255,0.14);
  border: 1px solid var(--line);
  font-weight: 700; font-size: 12px;
}
.muted { color: var(--muted); }
.positive { color: var(--good); }
.negative { color: var(--bad); }
.grid.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.chart-card {
  border-radius: 22px; padding: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  min-height: 420px;
}
.chart-card.compact { min-height: 340px; }
.chart-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.chart-head p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.chart-card canvas { width: 100%; height: 310px !important; }
.legend-inline { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.dot-primary { background: var(--accent-2); }
.dot-accent { background: var(--accent); }
.sentiment-grid { display: grid; grid-template-columns: 360px 1fr; gap: 18px; }
.gauge-card {
  border-radius: 22px; padding: 20px; background: var(--panel-strong);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.gauge-shell {
  width: 250px; height: 250px; border-radius: 50%; position: relative;
  background: conic-gradient(from 180deg, var(--bad), #f19f67, var(--warn), var(--good));
  display: grid; place-items: center;
}
.gauge-fill {
  position: absolute; inset: 18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,13,18,0.98) 58%, transparent 59%), conic-gradient(from 180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  mask: radial-gradient(circle at center, transparent 58%, black 60%);
}
.gauge-center {
  width: 164px; height: 164px; border-radius: 50%;
  background: #0a0d12; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  box-shadow: inset 0 0 30px rgba(255,255,255,0.03);
}
.gauge-center strong { font-size: 46px; }
.gauge-center span { color: var(--muted); margin-top: 4px; }
.cycle-cards { display: grid; gap: 12px; }
.cycle-card {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  align-items: center; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
.cycle-card small { color: var(--muted); }
.heatmap-wrap { overflow: auto; max-height: 320px; }
.heatmap {
  display: grid; gap: 8px; min-width: 680px;
}
.heatmap-row { display: grid; grid-template-columns: 72px repeat(12, minmax(44px,1fr)); gap: 8px; align-items: center; }
.heatmap-cell, .heatmap-label {
  padding: 10px 6px; border-radius: 12px; text-align: center; font-size: 12px;
  border: 1px solid var(--line);
}
.heatmap-label { background: rgba(255,255,255,0.03); color: var(--muted); font-weight: 600; }
.design-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.design-card p { color: var(--muted); line-height: 1.7; margin-top: 8px; }
.site-footer {
  display: flex; justify-content: space-between; gap: 18px; padding: 0 0 30px;
  color: var(--muted); font-size: 13px;
}
@media (max-width: 1080px) {
  .hero, .grid.two-col, .sentiment-grid, .design-grid { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; align-items: start; gap: 16px; }
}
@media (max-width: 720px) {
  .site-header, .site-footer, .layout { width: min(100% - 20px, 1280px); }
  .panel { padding: 20px; border-radius: 22px; }
  nav { flex-wrap: wrap; gap: 12px; }
  .section-head { flex-direction: column; align-items: start; }
  .gauge-shell { width: 220px; height: 220px; }
}
