:root {
  color-scheme: dark;
  --bg: #101018;
  --ink: #f8f4dc;
  --muted: #b8b1a0;
  --panel: #181825;
  --panel-2: #202033;
  --line: rgba(248, 244, 220, 0.16);
  --yellow: #f7df1e;
  --orange: #ff9f1c;
  --cyan: #40c9ff;
  --red: #ef476f;
  --green: #7bd88f;
  --paper: #f8f4dc;
  --black: #101018;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(247, 223, 30, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 223, 30, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 16% 12%, rgba(247, 223, 30, 0.18), transparent 28rem),
    radial-gradient(circle at 78% 8%, rgba(64, 201, 255, 0.13), transparent 25rem),
    linear-gradient(135deg, #0c0c14 0%, #151421 58%, #0f111b 100%);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.page {
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: end start;
  width: 42px;
  height: 42px;
  padding: 6px;
  background: var(--yellow);
  color: #171717;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  line-height: 1;
  box-shadow: 7px 7px 0 rgba(247, 223, 30, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--yellow);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 54px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 78px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 44px;
  height: 3px;
  background: var(--yellow);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 136px;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 2px solid var(--yellow);
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 6px 6px 0 rgba(247, 223, 30, 0.19);
  cursor: pointer;
}

.button.primary {
  background: var(--yellow);
  color: #15120a;
}

.button.secondary {
  background: transparent;
  color: var(--yellow);
  box-shadow: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.ticker {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2 + 24px));
  background: var(--yellow);
  color: #171717;
  font-weight: 900;
}

.ticker span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 2px solid currentColor;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.ticker p {
  margin: 0;
}

.methodology {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 14, 23, 0.72);
}

.methodology-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px;
}

.methodology-inner .section-heading {
  margin-bottom: 0;
}

.methodology-title span {
  display: block;
  overflow-wrap: normal;
  word-break: normal;
}

.methodology-copy {
  display: grid;
  gap: 18px;
}

.methodology-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.methodology-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.method-stat {
  min-height: 132px;
  padding: 22px;
  background: var(--panel);
}

.method-stat strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.method-stat span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary,
.snapshots {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric-card {
  min-height: 260px;
  padding: 22px;
  background: var(--panel);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.metric-label {
  display: block;
  min-height: 36px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: var(--yellow);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.metric-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.meter,
.bar-track {
  height: 14px;
  overflow: hidden;
  background: rgba(248, 244, 220, 0.09);
  border: 0;
  border-radius: 0;
}

.meter {
  margin-top: 18px;
}

.meter span,
.bar-track span {
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
}

.meter.warning span {
  background: var(--yellow);
}

.meter.danger span {
  background: var(--red);
}

.meter.calm span {
  background: var(--green);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 70px;
}

.rage-panel,
.chart-panel,
.snapshots-shell,
.verdict {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.rage-panel,
.chart-panel {
  padding: clamp(22px, 4vw, 34px);
}

.rage-panel label {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--yellow);
}

output {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px;
  background: #11111b;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--yellow);
  font-weight: 800;
  text-align: center;
}

.rage-panel p {
  margin: 22px 0 0;
  color: var(--paper);
  font-size: 18px;
  line-height: 1.5;
}

.chart-panel {
  display: grid;
  gap: 22px;
}

.bar-chart {
  display: grid;
  gap: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.bar-track {
  height: 16px;
}

.bar-track span {
  background: linear-gradient(90deg, var(--yellow), var(--orange));
}

.snapshots {
  background: transparent;
}

.snapshots-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: clamp(18px, 4vw, 30px);
}

.terminal {
  overflow: hidden;
  background: #080810;
  border: 1px solid var(--line);
  border-radius: 0;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #181825;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
}

.terminal-bar span:nth-child(2) {
  background: var(--yellow);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

pre {
  min-height: 132px;
  margin: 0;
  padding: 18px;
  color: #dce7ed;
  white-space: pre-wrap;
  line-height: 1.55;
}

.verdict {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: end;
  max-width: 1132px;
  margin: 0 auto 72px;
  padding: clamp(28px, 5vw, 46px);
  background: var(--paper);
  color: #15120f;
}

.verdict .kicker {
  color: #9b2324;
}

.verdict p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.python-tag {
  display: inline-block;
  padding: 0.05em 0.1em 0.12em;
  color: #131313;
  background: var(--yellow);
  box-shadow: 12px 12px 0 rgba(247, 223, 30, 0.18);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero-panel {
  position: relative;
  min-height: 520px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(32, 32, 51, 0.88), rgba(17, 17, 27, 0.92));
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto;
  border: 2px solid var(--yellow);
  pointer-events: none;
}

.hero-panel::before {
  top: -15px;
  right: -15px;
  width: 90px;
  height: 90px;
  border-left: 0;
  border-bottom: 0;
}

.hero-panel::after {
  bottom: -15px;
  left: -15px;
  width: 115px;
  height: 115px;
  border-right: 0;
  border-top: 0;
}

.chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.year {
  color: var(--yellow);
}

.bars {
  display: grid;
  gap: 16px;
}

.bar {
  display: grid;
  grid-template-columns: 92px 1fr 42px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}

.bar-fill {
  display: block;
  height: 100%;
}

.danger-fill {
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.red-fill {
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.matrix {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 7px;
  margin-top: 38px;
}

.cell {
  aspect-ratio: 1;
  background: rgba(248, 244, 220, 0.08);
}

.cell:nth-child(3n) {
  background: rgba(247, 223, 30, 0.78);
}

.cell:nth-child(4n) {
  background: rgba(64, 201, 255, 0.62);
}

.cell:nth-child(7n) {
  background: rgba(239, 71, 111, 0.7);
}

.cell:nth-child(11n) {
  background: rgba(123, 216, 143, 0.68);
}

@media (max-width: 980px) {
  .metrics-grid,
  .split-section,
  .verdict,
  .methodology-inner {
    grid-template-columns: 1fr 1fr;
  }

  .split-section,
  .verdict,
  .methodology-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  h1 {
    font-size: 112px;
  }

  .hero-panel {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
  }

  h1 {
    font-size: 72px;
    line-height: 0.84;
  }

  h2 {
    font-size: 40px;
  }

  .metrics-grid,
  .snapshots-shell,
  .methodology-stats {
    grid-template-columns: 1fr;
  }

  .slider-row,
  .bar-row {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .ticker {
    align-items: flex-start;
    flex-direction: column;
  }

  .matrix {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 34px;
  }
}
