:root {
  --ink: #07100f;
  --panel: #101817;
  --paper: #f6f2e8;
  --muted: #66706b;
  --line: rgba(7, 16, 15, 0.14);
  --mint: #4ee6a7;
  --cyan: #6bc9ff;
  --amber: #ffc45c;
  --coral: #ff6b57;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 16, 15, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(7, 16, 15, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(7, 16, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--mint), var(--amber), var(--coral));
}

.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(7, 16, 15, 0.72);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

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

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--mint);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(78, 230, 167, 0.16), 0 0 22px rgba(78, 230, 167, 0.44);
}

.topbar nav {
  display: flex;
  gap: 6px;
}

.topbar nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  transition: 0.2s ease;
}

.topbar nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: end start;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.05) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 15, 0.94) 0%, rgba(7, 16, 15, 0.7) 44%, rgba(7, 16, 15, 0.16) 100%),
    linear-gradient(0deg, rgba(7, 16, 15, 0.96) 0%, rgba(7, 16, 15, 0.08) 56%, rgba(7, 16, 15, 0.54) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 40px));
  margin: 0 auto 176px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(60px, 13vw, 156px);
  line-height: 0.86;
  letter-spacing: 0;
}

.subtitle {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(20px, 3.2vw, 36px);
  line-height: 1.12;
  font-weight: 750;
}

.authors {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.button.primary {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--mint);
}

.hero-stats {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  width: min(540px, calc(100% - 48px));
}

.hero-stats div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.metric,
.unit {
  color: var(--amber);
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.hero-stats p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

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

.section-heading h2,
.copy h2 {
  margin: 0;
  font-size: clamp(32px, 6vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.copy p,
.lead {
  color: var(--muted);
  font-size: 18px;
}

.lead {
  max-width: 930px;
  margin: 0;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.feature-strip span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  font-weight: 800;
}

.visual-band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1120px) / 2));
  padding-right: max(16px, calc((100vw - 1120px) / 2));
  background: #fdfaf1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 16, 15, 0.14);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
}

.media-frame figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 14px;
}

.wide {
  max-width: 1120px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 42px;
  align-items: center;
}

.copy p {
  margin: 20px 0 0;
}

.mini-grid,
.score-row {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.mini-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mini-grid div,
.score-row div {
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.mini-grid strong,
.score-row strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.mini-grid span,
.score-row span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.results {
  width: min(1180px, calc(100% - 32px));
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(7, 16, 15, 0.1);
  text-align: left;
}

th {
  color: var(--ink);
  background: #efe8d8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr.highlight td {
  color: var(--ink);
  background: rgba(78, 230, 167, 0.16);
  font-weight: 900;
}

.results .media-frame {
  margin-top: 34px;
}

.real {
  border-top: 1px solid var(--line);
}

.score-row {
  grid-template-columns: repeat(3, 1fr);
}

.score-row strong {
  color: var(--coral);
  font-size: 30px;
}

.compact {
  padding-top: 42px;
}

.bibtex {
  padding-top: 48px;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e5fff6;
  background: #07100f;
  box-shadow: var(--shadow);
}

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

.footer {
  padding: 32px 16px 46px;
  color: rgba(255, 255, 255, 0.68);
  background: var(--ink);
  text-align: center;
}

.footer a {
  color: var(--mint);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .topbar {
    top: 10px;
  }

  .topbar nav {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    margin-bottom: 280px;
  }

  .hero-stats {
    left: 20px;
    right: 20px;
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-height: 92px;
  }

  .split,
  .mini-grid,
  .score-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .visual-band {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}
