:root {
  --bg: #0d0d0d;
  --surface: #151515;
  --surface-2: #1a1a1a;
  --ink: #f1eee8;
  --muted: #8d887e;
  --taupe: #b7ab98;
  --coral: #eb5939;
  --line: rgba(118, 118, 118, 0.12);
  --good: #89d59a;
  --bad: #ff725f;
  --warn: #e7bd69;
  --curve: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  cursor: none;
  font-family: "Satoshi", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 6%, rgba(183, 171, 152, 0.08), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(235, 89, 57, 0.055), transparent 30%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image:
    repeating-radial-gradient(circle at 0 0, #fff 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

button, a { cursor: none; }
a { color: inherit; text-decoration: none; position: relative; }
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--curve);
}
a:hover::after { transform: scaleX(1); }

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 999px;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 8px; height: 8px; background: var(--coral); }
.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(183, 171, 152, .75);
  transition: width .35s var(--curve), height .35s var(--curve), border-color .35s var(--curve), background .35s var(--curve);
}
.cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  border-color: var(--coral);
  background: rgba(235, 89, 57, .06);
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 30px;
}

.sitebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 13, .78);
  backdrop-filter: blur(18px);
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--coral);
  font-family: "Clash Grotesk", "Arial Black", sans-serif;
  font-weight: 900;
}
.brand-title {
  font-family: "Clash Grotesk", "Arial Black", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.brand-subtitle {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--taupe);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .4s var(--curve), transform .4s var(--curve);
}
.nav a:hover, .nav a.active { color: var(--ink); transform: translateY(-2px); }
.refresh, button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: border-color .45s var(--curve), background .45s var(--curve), color .45s var(--curve), transform .45s var(--curve);
}
.refresh:hover, button:hover {
  color: #0d0d0d;
  background: var(--taupe);
  border-color: var(--taupe);
  transform: translateY(-3px);
}

.main { padding-top: 0; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  align-items: end;
  gap: 24px;
  min-height: 168px;
  padding: 20px clamp(18px, 3vw, 40px) 18px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--taupe);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 86px;
  height: 1px;
  background: var(--line);
}
h1 {
  margin: 0;
  font-family: "Clash Grotesk", "Arial Black", sans-serif;
  font-size: clamp(36px, 6.5vw, 72px);
  line-height: .92;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}
.line-mask {
  overflow: hidden;
}
.line-mask span {
  display: inline-block;
  transform: translateY(115%);
  animation: lineUp 1.15s var(--curve) forwards;
}
.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.55;
  margin: 12px 0 0;
}
.actions {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.freshness {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
.spin-badge {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
}
.spin-badge svg {
  position: absolute;
  inset: 0;
  animation: spin 22s linear infinite;
}
.spin-badge text {
  fill: var(--taupe);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 4px;
}
.badge-core {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0d0d0d;
  background: var(--taupe);
  font-size: 20px;
  transition: background .45s var(--curve), transform .45s var(--curve);
}
.spin-badge:hover .badge-core { background: var(--coral); transform: rotate(45deg); }

.marquee {
  width: 100%;
  margin-left: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 20px;
  padding: 10px 0;
  animation: marquee 30s linear infinite;
  color: rgba(241, 238, 232, .16);
  font-family: "Clash Grotesk", "Arial Black", sans-serif;
  font-size: clamp(20px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee b { color: var(--coral); font-size: .65em; align-self: center; }

.content { padding: 16px clamp(18px, 3vw, 40px) 0; }
.stack { display: grid; gap: 14px; }
.grid { display: grid; gap: 14px; }
.grid.overview-layout { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); align-items: stretch; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); }
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
  background: var(--surface);
  opacity: 0;
  transform: translateY(26px);
  animation: reveal 1s var(--curve) forwards;
  transition: border-color .5s var(--curve), background .5s var(--curve), transform .5s var(--curve);
}
.card:hover {
  border-color: rgba(183, 171, 152, .34);
  background: #191919;
  transform: translateY(-6px);
}
.card:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3) { animation-delay: .16s; }
.card:nth-child(4) { animation-delay: .24s; }
.card::before {
  content: attr(data-num);
  position: absolute;
  top: 10px;
  right: 16px;
  color: rgba(241, 238, 232, .05);
  font-family: "Clash Grotesk", "Arial Black", sans-serif;
  font-size: 48px;
  font-weight: 900;
  pointer-events: none;
}
.card h2, .card h3 {
  margin: 0 0 12px;
  font-family: "Clash Grotesk", "Arial Black", sans-serif;
  font-size: clamp(15px, 1.55vw, 22px);
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.metric {
  min-height: 116px;
  display: grid;
  align-content: end;
  gap: 10px;
}
.metric.feature {
  min-height: 205px;
  padding: clamp(16px, 2vw, 22px);
}
.metric .label {
  color: var(--taupe);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}
.metric .value {
  font-family: "Clash Grotesk", "Arial Black", sans-serif;
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -0.08em;
}
.metric.feature .value {
  font-size: clamp(56px, 7.6vw, 96px);
}
.metric .sub { color: var(--muted); font-weight: 800; font-size: 12px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table th {
  color: var(--taupe);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.table td { color: rgba(241, 238, 232, .82); font-size: 13px; }
.pill {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--taupe);
  background: var(--surface-2);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.chart { width: 100%; min-height: 200px; }
.chart-card {
  min-height: 285px;
  display: grid;
  align-content: stretch;
}
.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}
.tab {
  border: 0;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  letter-spacing: .14em;
}
.tab.active,
.tab:hover {
  color: #0d0d0d;
  background: var(--taupe);
}
.card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.small-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bar-list { display: grid; gap: 11px; }
.bar-row {
  display: grid;
  grid-template-columns: 122px 1fr 48px;
  gap: 10px;
  align-items: center;
  color: var(--taupe);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .1em;
}
.bar-track {
  height: 10px;
  background: rgba(241, 238, 232, .08);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--taupe), var(--coral));
}
.empty {
  color: var(--muted);
  padding: 30px;
  text-align: center;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,.015);
}

@keyframes lineUp { to { transform: translateY(0); } }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  body { cursor: auto; }
  button, a { cursor: pointer; }
  .cursor-dot, .cursor-ring { display: none; }
  .shell { padding: 0 0 28px; }
  .sitebar { grid-template-columns: 1fr auto; gap: 18px; }
  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .actions { justify-items: start; }
  .grid.overview-layout, .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 110px 1fr 48px; }
  .metric.feature { min-height: 220px; }
  .metric.feature .value { font-size: clamp(64px, 18vw, 110px); }
  .sitebar { position: static; }
}
