:root {
  color-scheme: dark;
  --bg: #07090f;
  --surface: #10131c;
  --surface-2: #151925;
  --ink: #f5f5f2;
  --muted: #a6aab6;
  --line: rgba(255, 255, 255, 0.11);
  --red: #ff4e62;
  --violet: #9b83ff;
  --cyan: #6bd9d5;
  --content: 1220px;
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 78, 98, 0.09), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(155, 131, 255, 0.08), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, video { display: block; width: 100%; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
}

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

.site-header,
.hero,
.authors,
.section,
footer {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand, .footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 760; }

.brand-mark-image { width: 78px; height: 38px; object-fit: contain; }

nav { display: flex; gap: 30px; color: var(--muted); font-size: 14px; }
nav a { transition: color .2s ease; }
nav a:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 58px;
  align-items: center;
  min-height: 690px;
  padding: 76px 0 68px;
}

.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: #d9dbe2;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 18px var(--red); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(50px, 6.7vw, 92px);
  font-weight: 790;
  letter-spacing: -.065em;
  line-height: .96;
}

h1 em { color: var(--muted); font-style: normal; font-weight: 520; }

.hero-lede {
  max-width: 640px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 730;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--bg); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.035); }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.hero-metrics div { display: grid; gap: 1px; }
.hero-metrics strong { font-size: 18px; }
.hero-metrics span { color: var(--muted); font-size: 12px; }

.hero-media {
  position: relative;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 4 / 3;
  max-height: 610px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 38px 90px rgba(0,0,0,.36);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(145deg, rgba(255,78,98,.5), transparent 40%, rgba(155,131,255,.42));
  filter: blur(30px);
}

.media-launch {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #090b12;
  color: var(--ink);
  cursor: pointer;
}

.media-launch img {
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .3s ease;
}

.media-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,6,10,.92), transparent 55%);
  pointer-events: none;
}

.media-launch:hover img { transform: scale(1.025); filter: brightness(.84); }
.media-launch-hero, .media-launch-hero img, .hero-media video { height: 100%; }
.hero-media video { object-fit: contain; background: #000; }

.hero-carousel-stage { height: 100%; }
.hero-carousel-stage .media-launch { animation: hero-reveal .42s ease both; }

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: rgba(8,10,16,.55);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.carousel-control:hover { transform: translateY(-50%) scale(1.06); border-color: rgba(255,255,255,.62); background: rgba(8,10,16,.78); }
.carousel-control-prev { left: 16px; }
.carousel-control-next { right: 16px; }

.carousel-dots {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(8,10,16,.48);
  backdrop-filter: blur(12px);
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.carousel-dot[aria-current="true"] { width: 24px; background: var(--ink); }

@keyframes hero-reveal {
  from { opacity: .3; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(8,10,16,.58);
  backdrop-filter: blur(12px);
  font-size: 19px;
  text-indent: 3px;
}

.media-overlay {
  position: absolute;
  right: 26px;
  bottom: 25px;
  left: 26px;
  z-index: 2;
  display: grid;
  gap: 2px;
  text-align: left;
}

.media-overlay strong { font-size: 22px; }
.media-overlay small, .media-kicker { color: rgba(255,255,255,.68); }
.media-kicker { font-size: 10px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }

.authors {
  padding: 31px 10px 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.author-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 26px; font-size: 17px; font-weight: 650; }
.authors p { margin: 13px 0 2px; color: var(--muted); font-size: 13px; }
.authors small { color: #747987; }
.authors i { margin: 0 6px; font-style: normal; }

.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 72px;
  align-items: end;
  margin-bottom: 45px;
}

.section-heading h2, .framework-copy h2, .release-banner h2 {
  margin-bottom: 0;
  font-size: clamp(37px, 4.6vw, 64px);
  letter-spacing: -.045em;
  line-height: 1.03;
}

.section-heading > p, .framework-copy > p, .release-banner p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 16px;
}

.category-tabs, .case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs { margin-bottom: 26px; }

.tab-button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.tab-button:hover { color: var(--ink); border-color: rgba(255,255,255,.26); }
.tab-button[aria-selected="true"] { border-color: rgba(255,78,98,.5); background: rgba(255,78,98,.13); color: var(--ink); }
.tab-count { margin-left: 5px; color: #777d8a; font-variant-numeric: tabular-nums; }

.general-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid rgba(107,217,213,.25);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(107,217,213,.08), rgba(155,131,255,.05));
}

.general-note[hidden] { display: none; }
.general-note h3 { margin-bottom: 5px; }
.general-note p { max-width: 860px; margin-bottom: 0; color: var(--muted); }
.note-mark { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; background: rgba(107,217,213,.14); color: var(--cyan); }

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

.video-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 18px 35px rgba(0,0,0,.13);
}

.video-card.is-ours { border-color: rgba(255,78,98,.36); background: linear-gradient(180deg, rgba(255,78,98,.08), var(--surface) 52%); }
.video-card .media-launch, .video-card video { aspect-ratio: 3 / 2; object-fit: contain; background: #030406; }
.video-card .media-launch img { aspect-ratio: 3 / 2; object-fit: cover; }
.video-card .play-button { width: 48px; height: 48px; font-size: 14px; }

.video-caption { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 16px 16px; }
.video-caption h3 { margin-bottom: 2px; font-size: 15px; line-height: 1.35; }
.video-caption p { margin-bottom: 0; color: var(--muted); font-size: 12px; }

.method-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.is-ours .method-badge { border-color: rgba(255,78,98,.4); background: rgba(255,78,98,.1); color: #ffcbd1; }
.gallery-status { margin: 22px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.comparisons-section { padding-top: 100px; }
.comparison-block { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.022); }
.comparison-block + .comparison-block { margin-top: 28px; }
.comparison-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.comparison-header > div:first-child { display: flex; align-items: center; gap: 14px; }
.comparison-header h3 { margin-bottom: 0; font-size: 23px; }
.index-label { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .08em; }

.extended-video {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.extended-video .media-launch { aspect-ratio: 16 / 8.5; }
.extended-video .media-launch img { aspect-ratio: 16 / 8.5; }
.extended-video video { aspect-ratio: 16 / 8.5; object-fit: contain; background: #000; }
.extended-video .media-overlay strong { font-size: clamp(20px, 3vw, 34px); }

.method-section { padding-top: 105px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.method-card { position: relative; min-height: 300px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.method-card.featured { background: linear-gradient(145deg, rgba(155,131,255,.12), var(--surface)); }
.method-number { color: #6d7280; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.method-icon { width: 52px; height: 52px; margin: 48px 0 22px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(circle, rgba(255,78,98,.55) 0 5px, transparent 6px), rgba(255,78,98,.07); }
.method-icon.robustness { background: radial-gradient(circle, rgba(155,131,255,.65) 0 5px, transparent 6px), rgba(155,131,255,.08); }
.method-icon.cache { background: radial-gradient(circle, rgba(107,217,213,.65) 0 5px, transparent 6px), rgba(107,217,213,.08); }
.method-card h3 { margin-bottom: 12px; font-size: 20px; }
.method-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.framework-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: 65px; align-items: center; }
.framework-copy h2 { margin-bottom: 24px; }
.framework-figure { margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.framework-figure img { border-radius: 12px; }
.framework-figure figcaption { padding: 12px 6px 0; color: #616570; font-size: 11px; text-align: center; }

.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.result-card { display: grid; min-height: 160px; place-content: center; gap: 5px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); text-align: center; }
.result-card strong { font-size: clamp(28px, 3.5vw, 48px); letter-spacing: -.04em; }
.result-card span, .results-note { color: var(--muted); font-size: 12px; }
.results-note { margin: 18px 0 0; text-align: right; }

.release-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin: 0 max(20px, calc((100vw - var(--content)) / 2));
  padding: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #f1f0ea 0%, #dfe0ee 62%, #cfc9ff 100%);
  color: #11131a;
}

.release-banner h2 { margin-bottom: 12px; }
.release-banner p { max-width: 680px; color: #555a65; }
.release-copy { min-width: 0; }
.release-logo { width: min(330px, 72vw); height: auto; margin: 0 0 28px; }
.button-light { flex: 0 0 auto; border-color: rgba(0,0,0,.18); color: #11131a; }

footer { padding: 60px 0 34px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.footer-brand div { display: grid; }
.footer-brand span { color: var(--muted); font-size: 12px; font-weight: 400; }
.footer-main > p { margin: 0; color: var(--muted); font-size: 13px; }
.audio-credit { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); color: #858a97; font-size: 12px; }
.audio-credit a { color: #ced0d8; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.error-card { grid-column: 1 / -1; padding: 28px; border: 1px solid rgba(255,78,98,.25); border-radius: var(--radius-md); color: var(--muted); text-align: center; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 62px; }
  .hero-media { width: min(100%, 700px); aspect-ratio: 16 / 10; max-height: none; }
  .section-heading, .framework-section { grid-template-columns: 1fr; gap: 25px; }
  .showcase-grid, .comparison-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .method-grid { grid-template-columns: 1fr; }
  .method-card { min-height: 240px; }
  .method-icon { margin-top: 32px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { min-height: 70px; }
  nav { display: none; }
  .hero { min-height: auto; padding: 58px 0 48px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3; }
  .carousel-control { width: 38px; height: 38px; }
  .carousel-control-prev { left: 10px; }
  .carousel-control-next { right: 10px; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 32px; }
  .showcase-grid, .comparison-grid { grid-template-columns: 1fr; }
  .comparison-block { padding: 20px; }
  .comparison-header { align-items: flex-start; flex-direction: column; }
  .comparison-header > div:first-child { align-items: flex-start; }
  .extended-video .media-launch, .extended-video .media-launch img, .extended-video video { aspect-ratio: 3 / 2; }
  .release-banner { align-items: flex-start; flex-direction: column; padding: 38px 26px; }
  .footer-main { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
