:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5d6875;
  --paper: #f7f4ef;
  --paper-soft: #fbfaf7;
  --panel: #ffffff;
  --line: rgba(16, 24, 32, 0.14);
  --blue: #2563eb;
  --cyan: #0e9f9b;
  --green: #2f855a;
  --red: #cf4a3c;
  --gold: #c58a1e;
  --shadow: 0 24px 80px rgba(16, 24, 32, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(14, 159, 155, 0.08), transparent 36%),
    linear-gradient(315deg, rgba(197, 138, 30, 0.08), transparent 32%);
}

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

code,
pre {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: #ffffff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 244, 239, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(16, 24, 32, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: inherit;
  font-size: 0.92rem;
  font-weight: 600;
}

.top-nav a {
  opacity: 0.82;
}

.top-nav a:hover {
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: #101820;
  color: #ffffff;
}

.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  width: 100%;
  height: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.96), rgba(16, 24, 32, 0.72) 42%, rgba(16, 24, 32, 0.34)),
    linear-gradient(180deg, rgba(16, 24, 32, 0.1), rgba(16, 24, 32, 0.92));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 58px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(4rem, 11vw, 9.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-copy code,
.hero-meta code {
  color: #ffffff;
  font-weight: 800;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #ffffff;
  color: var(--ink);
}

.button-secondary {
  background: var(--cyan);
  color: #ffffff;
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.54);
  color: #ffffff;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  max-width: 860px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-meta span {
  display: block;
  padding: 12px 14px;
  border-left: 2px solid rgba(14, 159, 155, 0.72);
  background: rgba(16, 24, 32, 0.26);
  border-radius: 0 10px 10px 0;
  backdrop-filter: blur(12px);
}

.hero-meta strong {
  color: #ffffff;
  font-weight: 800;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 116px) 0;
}

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

.section-heading h2,
.paper-card h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.section-kicker),
.paper-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading p:not(.section-kicker) {
  max-width: 72ch;
}

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

.intro-grid article,
.tool-list article,
.pipeline-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.07);
}

.intro-grid article {
  min-height: 330px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.intro-grid article:hover,
.tool-list article:hover,
.pipeline-step:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 159, 155, 0.34);
  box-shadow: 0 24px 58px rgba(16, 24, 32, 0.1);
}

.card-index {
  color: var(--red);
  font-weight: 800;
  font-size: 0.84rem;
}

.intro-grid h3,
.tool-list h3,
.pipeline-step h3 {
  margin: 18px 0 10px;
  font-size: 1.2rem;
}

.intro-grid p,
.tool-list p,
.pipeline-step p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.benchmark-panel {
  display: grid;
  gap: 16px;
}

.axis-list {
  display: grid;
  gap: 10px;
}

.axis-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.axis-list span {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-board {
  padding: 22px;
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-board::before {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  content: "Benchmark diagnostics";
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
}

.metric-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

meter {
  width: 100%;
  height: 12px;
}

meter::-webkit-meter-bar {
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 999px;
}

meter::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: 999px;
}

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

.pipeline-step {
  position: relative;
  min-height: 240px;
  padding: 24px;
}

.pipeline-step span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
}

.terminal-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.terminal {
  overflow: hidden;
  background: #111827;
  color: #dbeafe;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  background: #0b1120;
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f87171;
}

.terminal-bar span:nth-child(2) {
  background: #fbbf24;
}

.terminal-bar span:nth-child(3) {
  background: #34d399;
}

.terminal pre {
  margin: 0;
  padding: 26px;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.72;
}

.tool-list {
  display: grid;
  gap: 10px;
}

.tool-list article {
  padding: 18px 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-list h3 {
  margin: 0 0 4px;
  color: var(--blue);
}

.paper-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  padding: clamp(28px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(14, 159, 155, 0.08), transparent 44%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.paper-card code {
  color: var(--blue);
  font-weight: 700;
}

.paper-card h2 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
}

.paper-main > p:not(.section-kicker) {
  max-width: 74ch;
}

.paper-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.paper-notes article {
  min-height: 190px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.paper-notes h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
}

.paper-notes p {
  margin: 0;
  font-size: 0.94rem;
}

.paper-side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 92px;
}

.paper-links {
  display: grid;
  gap: 10px;
}

.paper-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.paper-links a::after {
  content: "->";
}

.paper-keys {
  display: grid;
  gap: 1px;
  overflow: hidden;
  padding: 1px;
  background: var(--line);
  border-radius: var(--radius);
}

.paper-keys div {
  padding: 16px;
  background: var(--ink);
  color: #ffffff;
}

.paper-keys span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-keys strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.35;
}

.bibtex {
  margin: 0;
  padding: 26px;
  overflow-x: auto;
  color: #dbeafe;
  background: #111827;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span {
  font-weight: 800;
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

.site-footer nav a:hover,
.paper-links a:hover {
  color: var(--blue);
}

@media (max-width: 900px) {
  .site-header {
    gap: 12px;
  }

  .top-nav {
    display: none;
  }

  .intro-grid,
  .split,
  .pipeline,
  .terminal-layout,
  .paper-notes,
  .paper-card {
    grid-template-columns: 1fr;
  }

  .paper-side {
    position: static;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(16, 24, 32, 0.98), rgba(16, 24, 32, 0.72) 58%, rgba(16, 24, 32, 0.95)),
      linear-gradient(90deg, rgba(16, 24, 32, 0.5), rgba(16, 24, 32, 0.2));
  }

  .metric-row,
  .axis-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

@media (max-width: 520px) {
  .site-header {
    padding: 12px 16px;
  }

  .nav-cta {
    display: none;
  }

  .hero-inner,
  .section,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .hero-inner {
    padding: 108px 0 52px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.3rem);
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .button {
    width: 100%;
  }

  .intro-grid article,
  .paper-notes article,
  .tool-list article,
  .pipeline-step,
  .axis-list div,
  .paper-card {
    padding: 18px;
  }

  .hero-meta {
    margin-top: 20px;
    grid-template-columns: 1fr;
    font-size: 0.84rem;
  }

  .hero-meta span {
    padding: 10px 12px;
  }

  .section-heading h2,
  .paper-card h2 {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
  }

  .section-heading p:not(.section-kicker),
  .paper-card p,
  .intro-grid p,
  .tool-list p,
  .pipeline-step p {
    font-size: 0.98rem;
  }

  .terminal pre {
    padding: 18px;
    font-size: 0.76rem;
  }

  .paper-links a,
  .site-footer nav {
    width: 100%;
  }

  .site-footer nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
