:root {
  --bg: #0d1017;
  --panel: #171c25;
  --line: #313947;
  --text: #f5f6f9;
  --muted: #a5afbd;
  --aqua: #78e2d4;
  --iris: #b7a5ff;
}
body { background: var(--bg); }
nav { background: #141922; border: 1px solid var(--line); border-radius: 32px; gap: 3px; padding: 4px; }
nav a { padding: 7px 15px; border-radius: 22px; }
nav a.active, nav a:hover { background: #293431; color: var(--lime); }
.ticker { background: #10151d; }
.hero {
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0;
  padding-inline: clamp(22px,4vw,64px);
  border: 1px solid #394450;
  border-radius: 26px;
  background: #131822;
}
.hero::before {
  content: '';
  position: absolute; inset: -8%; z-index: -1;
  background:
    radial-gradient(ellipse at 76% 22%, #934aff56, transparent 37%),
    radial-gradient(ellipse at 86% 76%, #26d6c968, transparent 40%),
    radial-gradient(ellipse at 44% 110%, #bded6136, transparent 48%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: aurora-drift 16s ease-in-out infinite alternate; }
  @keyframes aurora-drift { to { transform: translate(-2%,3%) scale(1.06); } }
}
.hero-copy > p { color: #c1c9d3; }
.hero h1 { letter-spacing: -.065em; }
.hero-art { background: none; }
.orbit-label { right: 8%; background: #152227ed; border-color: #649086; }
.primary { box-shadow: 0 3px 16px #adff5514; }
.secondary, .wallet-button { background: #1c2530; border-color: #47545f; }
.stats-strip { background: linear-gradient(105deg,#25302a,#17222b 55%,#211e30); }
.coin-card, .index-card {
  --tone: 124 225 213;
  background: radial-gradient(ellipse at var(--spot-x,0%) var(--spot-y,0%),rgb(var(--tone) / .13),transparent 65%),var(--panel);
  border-color: rgb(var(--tone) / .22);
}
.coin-card:nth-child(3n + 2), .index-card:nth-child(3n + 2) { --tone: 184 164 255; }
.coin-card:nth-child(3n), .index-card:nth-child(3n) { --tone: 201 248 110; }
.coin-card .bar i { background: rgb(var(--tone)); }
.coin-card:hover, .index-card:hover { border-color: rgb(var(--tone) / .58); }
.coin-icon { background: #222c35; border-color: #65747a; }
.builder-callout { background: radial-gradient(ellipse at 90% 20%,#71619560,transparent 55%),linear-gradient(115deg,#20382f,#17262f); border-color: #45675a; }
.page-heading .eyebrow,.chart-caption { color: var(--aqua); }
.terminal-top,.weight-summary { border-color: #394354; }
.order-panel { background: linear-gradient(160deg,#232734,#181d26 45%); }
.chart-toolbar button.active { color: var(--aqua); background: #213734; }
#index-chart { background: linear-gradient(#161f28,#121821); border-radius: 10px; }
dialog { background: #191e28; border-color: #475460; }
@media(max-width:700px){
  nav { width: auto; margin: 0 auto 8px; padding: 3px; }
  header { height: auto; min-height: 105px; }
  header nav { flex-basis: 100%; }
  nav a { padding: 6px 11px; }
  .hero { min-height: 700px; }
  .hero-art { inset: 320px -2% 0; }
  #scene { min-height: 340px; }
  .hero h1 { font-size: clamp(40px,11vw,55px); }
  .scene-label { bottom: 16px; }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .coin-card,.index-card {transition:transform .18s ease-out,box-shadow .2s;}
  .coin-card:hover,.index-card:hover {transform:perspective(850px) translateY(-3px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));box-shadow:0 12px 24px #04091166,inset 0 1px rgb(var(--tone) / .32);}
}
#scene[data-interactive] { cursor: grab; user-select: none; }
#scene[data-dragging] { cursor: grabbing; }
#scene:focus-visible { outline: 2px solid var(--aqua); outline-offset: -6px; border-radius: 18px; }
.orbit-label { pointer-events: none; }
