:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5c6878;
  --soft: #eef2f6;
  --paper: #ffffff;
  --field: #f7f8f5;
  --line: #d9e0e7;
  --navy: #101820;
  --teal: #0c7c78;
  --teal-dark: #075e60;
  --coral: #d45c43;
  --gold: #c9922f;
  --shadow: 0 18px 45px rgba(16, 24, 32, 0.14);
  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(--field);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.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: #fff;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(16, 24, 32, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.45) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(255, 255, 255, 0.35) 45% 55%, transparent 55%),
    var(--teal);
  box-shadow: inset -8px -8px 0 rgba(212, 92, 67, 0.85);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.9;
}

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

.hero {
  position: relative;
  min-height: min(760px, 82vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
}

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

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.93), rgba(16, 24, 32, 0.62) 42%, rgba(16, 24, 32, 0.28)),
    linear-gradient(0deg, rgba(16, 24, 32, 0.84), rgba(16, 24, 32, 0.1) 42%);
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 130px 0 80px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: 8.4rem;
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.34rem;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

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

.button.coming-soon {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.metrics-band {
  width: min(1120px, calc(100% - 40px));
  margin: -42px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 112px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2.7rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

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

.section h2 {
  max-width: 860px;
  margin: 0;
  font-size: 3.2rem;
  line-height: 1.03;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  font-size: 1.02rem;
}

.abstract-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.abstract-section .section-kicker,
.abstract-section h2 {
  grid-column: 1;
}

.abstract-section p {
  grid-column: 2;
  margin: 0;
}

.abstract-section p + p {
  margin-top: 18px;
}

.lead {
  color: var(--ink) !important;
  font-size: 1.34rem !important;
  line-height: 1.48;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.section-heading p {
  max-width: 680px;
  margin: 16px 0 0;
}

.compact-stats {
  display: grid;
  min-width: min(320px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.compact-stats span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.compact-stats span:last-child {
  border-bottom: 0;
}

.compact-stats b {
  color: var(--ink);
}

.demo-video {
  width: 100%;
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.feature-card {
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
}

.feature-card:nth-child(2) {
  border-top-color: var(--gold);
}

.feature-card:nth-child(3) {
  border-top-color: var(--coral);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.14rem;
  line-height: 1.25;
}

.feature-card p {
  margin: 0;
  font-size: 0.96rem;
}

.figures-section,
.resources-band {
  background: #e8edf0;
}

.figure-stack {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

figure {
  margin: 0;
}

.figure-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: zoom-in;
  overflow: hidden;
}

.figure-button img {
  width: 100%;
  height: auto;
}

figcaption {
  max-width: 900px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.speedup-grid div {
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background: var(--navy);
}

.speedup-grid div:nth-child(2) {
  background: var(--teal-dark);
}

.speedup-grid div:nth-child(3) {
  background: #4f5d3d;
}

.speedup-grid div:nth-child(4) {
  background: var(--coral);
}

.speedup-grid strong {
  display: block;
  font-size: 3.2rem;
  line-height: 1;
}

.speedup-grid span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.result-figures {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 34px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  font-size: 0.92rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  color: #fff;
  background: var(--navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:nth-child(even) {
  background: #f5f7f8;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.case-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
  margin-top: 28px;
}

.case-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
}

.latency-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.latency-table div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.latency-table div:last-child {
  border-bottom: 0;
}

.latency-table span {
  color: var(--muted);
}

.latency-table b {
  text-align: right;
}

.resources-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  align-items: center;
}

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

.resource-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 760;
  text-decoration: none;
}

.resource-links a.coming-soon {
  color: var(--muted);
  background: #f6f8fa;
}

.resource-links a.available {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.site-footer a {
  color: #fff;
  font-weight: 760;
  text-decoration: none;
}

.footer-links a.coming-soon {
  color: rgba(255, 255, 255, 0.62);
}

.footer-links a.available {
  color: #fff;
}

.lightbox {
  width: min(1180px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 52px 18px 18px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(10, 15, 20, 0.74);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

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

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero h1 {
    font-size: 6rem;
  }

  .hero-subtitle {
    font-size: 1.16rem;
  }

  .hero-inner {
    padding-top: 170px;
    padding-bottom: 64px;
  }

  .metrics-band,
  .method-grid,
  .speedup-grid,
  .result-figures,
  .case-grid,
  .resources-inner,
  .abstract-section {
    grid-template-columns: 1fr;
  }

  .metrics-band {
    margin-top: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .metric {
    min-height: 94px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .abstract-section .section-kicker,
  .abstract-section h2,
  .abstract-section p {
    grid-column: 1;
  }

  .section-heading {
    display: block;
  }

  .section h2 {
    font-size: 2.3rem;
  }

  .lead {
    font-size: 1.16rem !important;
  }

  .speedup-grid strong,
  .metric strong {
    font-size: 2.25rem;
  }

  .compact-stats {
    margin-top: 20px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 4.1rem;
  }

  .hero-actions,
  .site-footer,
  .latency-table div {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 64px 0;
  }

  .latency-table b {
    text-align: left;
  }
}
