:root {
  color-scheme: dark;
  --bg: #000;
  --panel: rgba(18, 18, 22, 0.78);
  --panel-strong: rgba(26, 26, 31, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f7f7f8;
  --muted: rgba(247, 247, 248, 0.68);
  --soft: rgba(247, 247, 248, 0.45);
  --blue: #0a84ff;
  --cyan: #64d2ff;
  --green: #30d158;
  --pink: #ff375f;
  --orange: #ff9f0a;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

#aurora {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.78;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.13), transparent 20rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), #000 82%);
}

.shell {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.hero {
  min-height: min(500px, 72vh);
  display: grid;
  align-content: center;
  gap: 30px;
}

.hero-copy {
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: 0.9;
  font-weight: 900;
}

.team {
  margin-bottom: 18px;
  color: rgba(247, 247, 248, 0.82);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 800;
}

.lede {
  width: min(620px, 100%);
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.45;
}

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

.hero-metrics > div,
.control-panel,
.question-card,
.insight-card,
.data-stage {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(145%);
}

.hero-metrics > div {
  min-height: 106px;
  border-radius: var(--radius);
  padding: 20px;
  animation: rise 700ms both;
}

.metric-value {
  display: block;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
}

.metric-label,
.insight-label,
.question-meta,
.question-card p {
  color: var(--muted);
}

.control-panel {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: block;
  margin-top: 28px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
}

.question-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.question-tabs::-webkit-scrollbar {
  display: none;
}

button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
}

.q-tab {
  flex: 0 0 auto;
  min-width: 74px;
  height: 42px;
}

.q-tab.active,
.q-tab.active {
  border-color: rgba(100, 210, 255, 0.66);
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.88), rgba(100, 210, 255, 0.34));
}

.spotlight {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px;
  margin: 14px 0;
}

.question-card,
.insight-card,
.data-stage {
  border-radius: var(--radius);
}

.question-card {
  padding: 24px;
}

.question-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.question-card h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.05;
}

.question-card p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.5;
}

.insight-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}

.insight-card strong {
  display: block;
  margin: 12px 0;
  font-size: 23px;
  line-height: 1.1;
}

.insight-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.insight-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.data-stage {
  min-height: 380px;
  padding: 20px;
  background: var(--panel);
}

.bar-list {
  display: grid;
  gap: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 285px) 1fr 82px;
  gap: 16px;
  align-items: center;
  min-height: 46px;
}

.bar-label {
  font-size: clamp(14px, 1.55vw, 19px);
  font-weight: 800;
}

.bar-fill {
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bar-fill span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), rgba(255, 255, 255, 0.95));
  box-shadow: 0 0 30px rgba(10, 132, 255, 0.45);
  animation: grow 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.bar-percent {
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}

@keyframes grow {
  from {
    width: 0;
  }
  to {
    width: var(--w);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 24px, 1040px);
    padding-top: 30px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-metrics,
  .spotlight {
    grid-template-columns: 1fr;
  }

  .q-tab {
    min-width: 0;
  }

  .data-stage {
    padding: 14px;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bar-percent {
    text-align: left;
  }
}
