:root {
  color-scheme: dark;
  --bg: #101415;
  --surface: #181e20;
  --surface-deep: #0c1011;
  --text: #f3f5f1;
  --muted: #adbab9;
  --line: #303b3d;
  --accent: #a4f0d8;
  --accent-ink: #142722;
  --shell: 1280px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 26px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
code,
pre {
  font-family: var(--mono);
}

pre {
  margin: 0 0 12px;
  padding: 12px 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-deep);
  font-size: 0.88rem;
}

.shell {
  width: min(var(--shell), calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 9px 14px;
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #111617;
}

.navigation {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 740;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.brand img {
  object-fit: contain;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(68px, 8vw, 116px);
}

.eyebrow {
  margin-bottom: 13px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

h1,
h2 {
  font-weight: 680;
  line-height: 1.03;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.25rem, 5.3vw, 5.35rem);
}
h1 span {
  color: var(--accent);
}
h2 {
  font-size: clamp(2.15rem, 3.8vw, 3.65rem);
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lede {
  max-width: 38ch;
  margin-block: 23px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 15px;
  color: var(--text);
  font-size: 0.87rem;
  font-weight: 690;
  text-align: center;
  text-decoration: none;
}

.button-small {
  min-height: 38px;
}
.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.button-primary:hover {
  background: #cbf9e9;
}
.button-outline {
  border-color: #455254;
  background: #1b2223;
}
.button-outline:hover {
  border-color: var(--accent);
}

.hero-note {
  max-width: 46ch;
  margin-top: 19px;
  color: var(--muted);
  font-size: 0.81rem;
}

.hero-note a {
  color: inherit;
  text-underline-offset: 3px;
}

.product-frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #364446;
  border-radius: 13px;
  background: var(--surface-deep);
}

.hero-frame {
  box-shadow:
    0 0 70px #63dcbb13,
    0 26px 55px #0005;
}

.product-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #070909;
}

.product-frame figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 14px;
  min-height: 43px;
  border-top: 1px solid var(--line);
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.product-frame figcaption a,
.text-link {
  font-weight: 640;
  text-decoration: none;
  text-underline-offset: 4px;
}

.product-frame figcaption a:hover,
.text-link:hover {
  text-decoration: underline;
}

.section {
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 6.5vw, 89px);
}

.section-heading {
  max-width: 710px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.viewer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
  margin-top: 32px;
}

.feature-list > * {
  padding-block: 14px;
}
.feature-list > :first-child {
  padding-top: 0;
}
.feature-list > * + * {
  border-top: 1px solid var(--line);
}
.feature-list p,
.card p,
.benchmark p {
  margin-top: 7px;
  color: var(--muted);
}
.feature-list p,
.card p {
  font-size: 0.95rem;
}

.streaming {
  background: #141a1b;
  border-bottom: 1px solid var(--line);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 27px;
}

.card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.benchmark {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 19px 22px;
  border: 1px solid #396257;
  border-radius: 10px;
  background: #172722;
}

.benchmark strong {
  color: var(--accent);
  font-size: clamp(2.1rem, 4.1vw, 3.25rem);
  letter-spacing: -0.085em;
  line-height: 1;
  white-space: nowrap;
}

.benchmark p {
  font-size: 0.87rem;
}
.benchmark .text-link,
.split-section .text-link,
.release-link {
  font-size: 0.92rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(30px, 8vw, 128px);
}

.reading-rooms,
.teaching {
  row-gap: 30px;
}
.reading-rooms {
  border-top: 0;
}
.room-benefits {
  margin-top: 25px;
}
.room-benefits > :last-child {
  padding-bottom: 0;
}
.section-illustration {
  align-self: start;
}
.section-illustration img {
  aspect-ratio: 3 / 2;
}
.teaching-features {
  grid-column: 1 / -1;
  margin-top: 0;
}

.split-section .text-link {
  display: inline-block;
  margin-top: 19px;
}

.room-workflow {
  grid-column: 1 / -1;
  padding: clamp(18px, 3vw, 29px);
  border: 1px solid #396257;
  border-radius: 10px;
  background: #172722;
}

.room-workflow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 0;
  padding-inline-start: 1.25rem;
}

.room-workflow li {
  padding: 0 0 0 0.35rem;
  border: 0;
}
.room-workflow li::marker {
  color: var(--accent);
  font-family: var(--mono);
}

.research {
  background: #141a1b;
}

.code-example {
  align-self: start;
  min-width: 0;
  padding: clamp(15px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.code-example figcaption {
  margin-bottom: 12px;
  font-weight: 640;
}

.code-example p {
  color: var(--muted);
  font-size: 0.83rem;
}
.code-keyword {
  color: #b3b9fa;
}
.code-string {
  color: var(--accent);
}

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 17px;
}

.download-card details {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.83rem;
}

.download-card details p {
  font-size: inherit;
}
.download-card summary {
  width: fit-content;
  cursor: pointer;
}
.download-card .text-link {
  font-size: 0.84rem;
}
.release-link {
  margin-top: 19px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 27px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.site-footer p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.8rem;
}

.legal-page {
  width: min(960px, calc(100% - 48px));
  margin: 32px auto;
}

.legal-page h2 {
  margin-block: 16px 22px;
}
.legal-page pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 1030px) {
  .shell {
    width: calc(100% - 56px);
  }
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 25px;
  }
  .benchmark {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .benchmark .text-link {
    grid-column: 2;
  }
}

@media (max-width: 880px) {
  .navigation {
    flex-wrap: wrap;
    gap: 4px 12px;
    padding-block: 9px 11px;
  }
  .nav-links {
    order: 1;
    width: 100%;
    gap: 5px 16px;
  }
  .nav-links a {
    padding-block: 4px;
    font-size: 0.82rem;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 36px);
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 29px;
    padding-block: 49px 44px;
  }
  h1 {
    font-size: clamp(2.9rem, 9vw, 4.35rem);
  }
  .viewer-grid,
  .split-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .viewer-grid {
    margin-top: 23px;
  }
  .workflow-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .room-workflow ol {
    grid-template-columns: minmax(0, 1fr);
  }
  .room-workflow li + li {
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
  .benchmark {
    gap: 12px 15px;
    padding: 16px;
  }
}

@media (max-width: 410px) {
  .benchmark {
    grid-template-columns: minmax(0, 1fr);
  }
  .benchmark .text-link {
    grid-column: 1;
  }
}
