:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-soft: #111821;
  --panel: #151f2b;
  --panel-2: #182532;
  --text: #f1f6fb;
  --muted: #9aa9b7;
  --line: #263646;
  --accent: #58d7aa;
  --accent-2: #78a8ff;
  --warn: #ffcf72;
  --code: #0a121a;
  --shadow: 0 24px 80px rgb(0 0 0 / 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 20% -10%,
      rgb(88 215 170 / 0.16),
      transparent 34rem
    ),
    radial-gradient(
      circle at 90% 10%,
      rgb(120 168 255 / 0.12),
      transparent 30rem
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
}

.brand-sup {
  font-size: 0.7rem;
  font-weight: normal;
  position: relative;
  top: -0.3rem;
  left: -0.3rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgb(255 255 255 / 0.06);
  text-decoration: none;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
  overflow-x: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: stretch;
  margin-top: 18px;
}

.hero-copy {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgb(21 31 43 / 0.92),
    rgb(17 24 33 / 0.72)
  );
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.45rem, 7vw, 5.6rem);
}

h2 {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

h3 {
  margin-top: 32px;
  font-size: 1.18rem;
}

p,
li {
  color: var(--muted);
}

.lede {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #c8d5df;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
  font-weight: 680;
}

.button.primary {
  border-color: rgb(88 215 170 / 0.45);
  background: linear-gradient(
    135deg,
    rgb(88 215 170 / 0.26),
    rgb(120 168 255 / 0.16)
  );
}

.button:hover {
  text-decoration: none;
  border-color: rgb(255 255 255 / 0.28);
}

.range-card {
  position: relative;
  align-self: start;
  height: 360px;
  min-height: 360px;
  padding: 18px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgb(36 45 66 / 0.96),
    rgb(32 40 59 / 0.98)
  );
  box-shadow: var(--shadow);
  overflow: hidden;
}

.range-card > .eyebrow {
  margin: 0;
  color: #cfc7ba;
  font-size: 0.92rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  text-transform: none;
}

.range-side {
  position: absolute;
  top: 18px;
  right: 22px;
  margin: 0;
  color: #0edeb5;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.range-line {
  position: absolute;
  top: 48px;
  bottom: 22px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgb(255 255 255 / 0.14);
}

.range-window {
  position: absolute;
  top: 132px;
  bottom: 43px;
  left: 50%;
  width: 96px;
  transform: translateX(-50%);
  border: 1px solid rgb(88 215 170 / 0.28);
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgb(88 215 170 / 0.16),
    rgb(88 215 170 / 0.05)
  );
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.03);
}

.range-dot {
  position: absolute;
  left: 8px;
  right: 8px;
}

.range-dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.range-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border: 2px solid #172131;
}

.range-dot span {
  position: absolute;
  top: -24px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.range-dot.current {
  top: 132px;
}

.range-dot.current::before {
  border-top: 1px dashed rgb(235 232 226 / 0.64);
}

.range-dot.current::after {
  border-radius: 50%;
  background: #d8d8d8;
}

.range-dot.current span {
  left: 8px;
  color: #d6cec2;
}

.range-dot.target {
  bottom: 43px;
}

.range-dot.target::before {
  height: 2px;
  background: #0edeb5;
}

.range-dot.target::after {
  background: #0edeb5;
  transform: translate(-50%, -50%) rotate(45deg);
}

.range-dot.target span {
  right: 8px;
  color: #0edeb5;
}

.range-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.range-header .eyebrow {
  margin: 0;
}

.range-badge {
  padding: 5px 9px;
  border: 1px solid rgb(88 215 170 / 0.28);
  border-radius: 999px;
  background: rgb(88 215 170 / 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.range-stage {
  position: relative;
  height: 220px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.range-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: var(--line);
}

.range-current,
.range-target {
  position: absolute;
  left: 0;
  right: 0;
}

.range-current {
  bottom: 28%;
}

.range-target {
  bottom: 74%;
}

.range-current::before,
.range-target::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.range-current::before {
  border-top: 1px dashed rgb(241 246 251 / 0.58);
}

.range-target::before {
  height: 2px;
  background: var(--accent);
}

.range-current span,
.range-target span {
  position: absolute;
  top: -10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--panel);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
}

.range-current span {
  left: 0;
  color: var(--muted);
}

.range-target span {
  right: 0;
  color: var(--accent);
}

.range-current i,
.range-target i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--panel);
}

.range-current i {
  border-radius: 50%;
  background: var(--text);
}

.range-target i {
  background: var(--accent);
  transform: translate(-50%, -50%) rotate(45deg);
}

.range-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric,
.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.035);
}

.metric strong,
.card strong {
  display: block;
  color: var(--text);
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid rgb(255 207 114 / 0.38);
  border-radius: 10px;
  background: rgb(255 207 114 / 0.09);
}

.callout p {
  margin: 0;
  color: #f5ddb0;
}

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

code {
  padding: 0.14rem 0.34rem;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 6px;
  background: var(--code);
  color: #dce7ef;
}

pre {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--code);
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  background: var(--panel-2);
}

td {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 12px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

  .range-card {
    height: 320px;
    min-height: 320px;
    padding-inline: 18px;
  }

  .range-dot {
    left: 4px;
    right: 4px;
  }

  .range-dot.current {
    top: 122px;
  }

  .site-footer {
    flex-direction: column;
  }
}
