:root {
  --ink: #080101;
  --ink-soft: #100303;
  --panel: #160505;
  --panel-hi: #210707;
  --paper: #f7f0eb;
  --text: #cbc0bc;
  --muted: #948784;
  --line: rgba(255, 240, 235, .12);
  --line-hot: rgba(255, 54, 31, .42);
  --red: #f21f12;
  --red-hot: #ff4929;
  --ember: #ff8458;
  --gold: #ffc267;
  --green: #a9ffbd;
  --max: 1240px;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 4%, rgba(242, 31, 18, .14), transparent 31rem),
    radial-gradient(circle at 7% 76%, rgba(255, 132, 88, .055), transparent 28rem),
    var(--ink);
  font: 16px/1.56 "Avenir Next", "Segoe UI", Inter, system-ui, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
::selection { color: var(--ink); background: var(--red-hot); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: min(var(--max), calc(100% - var(--pad) * 2)); margin-inline: auto; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 88px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}
.topbar.sticky {
  position: sticky;
  top: 0;
  height: 64px;
  border-bottom-color: var(--line);
  background: rgba(8, 1, 1, .86);
  backdrop-filter: blur(15px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.045em;
}
.brand-mark { width: 31px; height: 31px; border-radius: 4px; box-shadow: 0 0 24px rgba(242, 31, 18, .2); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { color: #b9aeaa; text-decoration: none; font-size: 13px; font-weight: 720; letter-spacing: .035em; }
.nav-link:hover, .nav-link[aria-current="page"] { color: white; }
.mini-cta { padding: 10px 16px; color: #180202; background: var(--paper); border-radius: 5px; }
.mini-cta:hover { color: #180202; }

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-art { position: absolute; z-index: -2; inset: 0 0 0 29%; }
.hero-art::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(8, 1, 1, .78) 20%, transparent 54%),
    linear-gradient(0deg, var(--ink) 0%, transparent 24%),
    linear-gradient(180deg, rgba(8, 1, 1, .64), transparent 24%);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-content { padding: 118px 0 78px; }
.hero-copy { width: min(690px, 59%); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 25px;
  color: #d5c9c5;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.hero h1 {
  max-width: 790px;
  margin-bottom: 26px;
  font-size: clamp(58px, 7.5vw, 108px);
  font-weight: 760;
  line-height: .89;
  letter-spacing: -.078em;
}
.hero-gradient {
  color: transparent;
  background: linear-gradient(100deg, #fff2ec 4%, var(--red-hot) 52%, var(--ember));
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-lede { max-width: 610px; margin-bottom: 35px; color: #c7bbb7; font-size: clamp(18px, 2vw, 22px); letter-spacing: -.015em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 23px;
  border-radius: 6px;
  color: #1a0201;
  background: linear-gradient(110deg, var(--red), var(--red-hot));
  box-shadow: 0 13px 42px rgba(242, 31, 18, .24);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  transition: transform .22s ease, box-shadow .22s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 17px 50px rgba(242, 31, 18, .34); }
.button-light { color: #160303; background: var(--paper); box-shadow: none; }
.arrow { font-size: 20px; transition: transform .22s ease; }
.button:hover .arrow { transform: translateX(4px); }
.text-link { color: #d0c4c0; font-size: 14px; font-weight: 740; text-underline-offset: 5px; }
.text-link:hover { color: white; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 45px; color: #9f918e; font-size: 12px; font-weight: 650; }
.hero-facts span::before { content: "·"; margin-right: 10px; color: var(--red-hot); }
.version-stamp {
  position: absolute;
  right: var(--pad);
  bottom: 32px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 12px;
  padding: 13px 16px;
  border-left: 2px solid var(--red);
  background: rgba(8, 1, 1, .7);
  backdrop-filter: blur(12px);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.version-stamp span { color: #968885; }
.dev-row.is-hidden { display: none; }
.channel-tag {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 6px;
  border: 1px solid var(--red);
  border-radius: 3px;
  color: var(--red-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  vertical-align: 1px;
}

.marquee { overflow: hidden; padding: 14px 0; border-bottom: 1px solid var(--line); background: #0d0202; white-space: nowrap; }
.marquee-track { display: inline-block; min-width: 200%; color: #e6dad6; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; animation: ticker 25s linear infinite; }
.marquee i { padding: 0 25px; color: var(--red-hot); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

section.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; border-bottom: 1px solid var(--line); }
.section-num { color: var(--red-hot); font: 750 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.display { max-width: 900px; margin: 18px 0 0; font-size: clamp(40px, 5.5vw, 74px); font-weight: 720; line-height: .98; letter-spacing: -.062em; }
.section-intro { display: grid; grid-template-columns: 1fr minmax(260px, 430px); gap: 46px; align-items: end; }
.section-intro p { margin: 0; color: var(--muted); font-size: 17px; }

section.video-section { padding: clamp(64px, 8vw, 112px) 0; scroll-margin-top: 24px; }
.video-intro { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.video-intro .display { font-size: clamp(38px, 5vw, 64px); }
.video-intro p { margin: 22px 0 0; color: var(--text); font-size: 17px; }
.video-demo { max-width: 1100px; margin: 0 auto; }
.video-frame { overflow: hidden; border: 1px solid var(--line-hot); border-radius: 10px; background: #080101; box-shadow: 0 20px 70px rgba(0, 0, 0, .28); }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 1216 / 822; object-fit: contain; }
.video-frame video:focus-visible { outline: 2px solid var(--ember); outline-offset: -3px; }
.video-demo figcaption { max-width: 720px; margin: 18px auto 0; color: var(--text); font-size: 13px; text-align: center; }

.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 52px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.problem-card { min-height: 260px; padding: clamp(30px, 5vw, 56px); background: var(--panel); }
.problem-card.hot { background: linear-gradient(145deg, rgba(242, 31, 18, .13), var(--panel) 67%); }
.problem-card .tag { color: var(--red-hot); font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.problem-card h3 { margin: 50px 0 13px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.problem-card p { max-width: 480px; margin: 0; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 50px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.feature-card { min-height: 280px; padding: clamp(28px, 4vw, 47px); background: rgba(22, 5, 5, .92); transition: background .25s ease, transform .25s ease; }
.feature-card:hover { background: var(--panel-hi); }
.feature-card.wide { grid-column: span 2; }
.feature-card.full { grid-column: 1 / -1; min-height: 240px; }
.feature-icon { width: 40px; height: 40px; margin-bottom: 52px; color: var(--red-hot); }
.feature-card h3 { margin-bottom: 11px; font-size: 22px; letter-spacing: -.035em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-card small { display: block; margin-top: 18px; color: #716461; font-size: 11px; }

.project-demo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; margin-top: 54px; }
.library-node { padding: 30px; border: 1px solid var(--line-hot); border-radius: 8px; background: radial-gradient(circle at 80% 10%, rgba(242,31,18,.17), transparent 14rem), var(--panel); }
.library-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.library-head img { width: 44px; height: 44px; border-radius: 5px; }
.library-head h3 { margin: 0; font-size: 24px; }
.pose-list { display: grid; gap: 7px; }
.pose { display: flex; justify-content: space-between; padding: 11px 13px; color: #d6c9c5; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; background: rgba(255,255,255,.025); font-size: 13px; }
.pose b { color: var(--red-hot); font: 750 10px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.flow-arrow { color: var(--red-hot); font-size: 34px; animation: pulse-arrow 1.8s ease-in-out infinite; }
@keyframes pulse-arrow { 50% { transform: translateX(6px); opacity: .6; } }
.blend-stack { display: grid; gap: 11px; }
.blend-file { position: relative; padding: 18px 18px 18px 54px; border: 1px solid var(--line); border-radius: 7px; background: rgba(22,5,5,.7); }
.blend-file::before { content: "B"; position: absolute; left: 17px; top: 16px; display: grid; place-items: center; width: 25px; height: 25px; color: #160202; border-radius: 4px; background: var(--red-hot); font-size: 12px; font-weight: 900; }
.blend-file b { display: block; font-size: 14px; }
.blend-file span { color: var(--muted); font-size: 12px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 50px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.step { position: relative; min-height: 270px; padding: 38px; background: var(--panel); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 72px; color: var(--red-hot); font: 850 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.step h3 { margin-bottom: 10px; font-size: 22px; letter-spacing: -.035em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.truth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 46px; }
.truth-card { padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: rgba(22,5,5,.68); }
.truth-card.yes { border-color: var(--line-hot); }
.truth-card .tag { display: inline-block; margin-bottom: 30px; color: var(--red-hot); font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.truth-card h3 { font-size: 26px; letter-spacing: -.04em; }
.truth-card p { margin: 0; color: var(--muted); }

.compat { padding: 54px 0; border-bottom: 1px solid var(--line); background: #0d0202; }
.compat-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; }
.compat-badge { display: grid; place-items: center; width: 56px; height: 56px; color: var(--red-hot); border: 1px solid var(--line-hot); border-radius: 50%; font-weight: 900; }
.compat h3 { margin: 0 0 3px; font-size: 18px; }
.compat p { margin: 0; color: var(--muted); font-size: 13px; }
.compat-meta { color: #c9bbb7; font-size: 11px; text-align: right; text-transform: uppercase; letter-spacing: .1em; }

.final-cta { position: relative; padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; text-align: center; }
.final-cta::before { content: ""; position: absolute; left: 50%; bottom: -13rem; width: 50rem; height: 35rem; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(242,31,18,.2), transparent 66%); pointer-events: none; }
.final-cta .shell { position: relative; }
.final-cta .eyebrow { justify-content: center; }
.final-cta .display { margin-inline: auto; }
.final-cta p { max-width: 570px; margin: 28px auto 34px; color: var(--muted); font-size: 18px; }

.footer { padding: 32px 0 38px; color: #766966; border-top: 1px solid var(--line); font-size: 11px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; }
.footer b { color: #c9bbb7; }
.footer a { color: #c9bbb7; text-underline-offset: 4px; }
.footer a:hover { color: white; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .72s ease, transform .72s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Documentation and release notes */
.docs-page .topbar { position: sticky; top: 0; height: 64px; border-bottom-color: var(--line); background: rgba(8,1,1,.88); backdrop-filter: blur(15px); }
.docs-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(38px, 6vw, 82px); padding: 35px 0 78px; }
.sidebar { position: sticky; top: 94px; align-self: start; }
.side-label { margin: 0 0 10px; color: #665956; font: 800 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.toc { padding: 3px 0 19px 14px; border-left: 1px solid var(--line); }
.toc a { display: block; margin: 7px 0; color: #9c8f8c; text-decoration: none; font-size: 13px; }
.toc a:hover { color: var(--red-hot); }
.side-meta { padding-top: 17px; color: #746764; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.55; }
.side-meta b { display: block; color: #b8aaa6; }
.doc-content { min-width: 0; max-width: 870px; }
.doc-head { padding: 2px 0 35px; border-bottom: 1px solid var(--line); }
.breadcrumb { margin: 0 0 12px; color: #766966; font-size: 12px; }
.breadcrumb span { color: var(--red-hot); }
.doc-head h1, .notes-head h1 { margin-bottom: 10px; font-size: clamp(39px, 5vw, 56px); line-height: 1.04; letter-spacing: -.056em; }
.lede { max-width: 730px; margin-bottom: 18px; color: var(--text); font-size: 17px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 7px 16px; color: #807370; font-size: 11px; }
.meta-line strong { color: #ddd0cc; }
.doc-content section { scroll-margin-top: 90px; margin-top: 54px; }
.section-label { margin: 0 0 8px; color: var(--red-hot); font: 800 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.doc-content h2 { margin-bottom: 13px; font-size: clamp(25px, 3vw, 33px); line-height: 1.12; letter-spacing: -.038em; }
.doc-content h3 { margin-bottom: 5px; color: white; font-size: 16px; line-height: 1.3; }
.copy { max-width: 770px; color: var(--text); }
.copy strong { color: var(--paper); }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.doc-card { padding: 18px 19px; border: 1px solid var(--line); border-radius: 6px; background: rgba(22,5,5,.7); }
.doc-card .tag { display: block; margin-bottom: 8px; color: var(--red-hot); font: 800 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.doc-card p { margin: 0; color: #9e908d; font-size: 13px; }
.doc-steps { counter-reset: step; display: grid; gap: 1px; margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.doc-step { position: relative; min-height: 74px; padding: 16px 18px 15px 62px; background: var(--panel); }
.doc-step::before { counter-increment: step; content: "0" counter(step); position: absolute; left: 20px; top: 21px; color: var(--red-hot); font: 850 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.doc-step h3 { margin-bottom: 2px; font-size: 14px; }
.doc-step p { margin: 0; color: #9e908d; font-size: 13px; }
kbd { display: inline-block; padding: 1px 5px; color: #ffd8cf; border: 1px solid rgba(255,73,41,.34); border-radius: 4px; background: rgba(242,31,18,.09); font: 720 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.note { margin: 19px 0 0; padding: 15px 17px; color: #bdb0ac; border-left: 2px solid var(--red); background: linear-gradient(90deg, rgba(242,31,18,.09), transparent); font-size: 13px; }
.note strong { color: var(--paper); }
.table-scroll { overflow-x: auto; margin-top: 18px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-table th { padding: 9px 11px; color: #766966; border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.doc-table td { padding: 11px; color: #a99b98; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table td:first-child { width: 31%; color: #eee2de; font-weight: 720; }
.checklist { margin: 15px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 8px 0 8px 25px; color: #a99b98; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 8px; height: 8px; border: 1px solid var(--red-hot); border-radius: 50%; }
.release-entry { padding: 25px 0; border-top: 1px solid var(--line); }
.release-entry:first-child { border-top: 0; }
.release-entry h2, .release-entry h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.025em; }
.release-entry time { color: var(--muted); font-size: 12px; }
.release-entry ul { max-width: 780px; margin: 14px 0 0; padding-left: 18px; }
.release-entry li { margin-bottom: 8px; color: var(--text); }
.notes-head { padding: 70px 0 34px; }
.notes-list { padding-bottom: 96px; }
.back-link { display: inline-block; margin-top: 12px; color: var(--paper); font-size: 14px; font-weight: 720; text-underline-offset: 5px; }

@media (max-width: 880px) {
  .hero { min-height: 880px; }
  .hero-art { inset: 0; opacity: .65; }
  .hero-art::before { background: linear-gradient(0deg, var(--ink) 1%, rgba(8,1,1,.45) 55%, rgba(8,1,1,.62)), linear-gradient(90deg, rgba(8,1,1,.7), transparent); }
  .hero-copy { width: min(680px, 100%); padding-top: 310px; }
  .version-stamp { display: none; }
  .section-intro { grid-template-columns: 1fr; align-items: start; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.wide { grid-column: span 1; }
  .project-demo { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  @keyframes pulse-arrow { 50% { transform: rotate(90deg) translateX(6px); opacity: .6; } }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 180px; }
  .step::before { margin-bottom: 42px; }
  .compat-inner { grid-template-columns: auto 1fr; }
  .compat-meta { grid-column: 2; text-align: left; }
  .docs-layout { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { position: static; }
  .toc { display: flex; flex-wrap: wrap; gap: 5px 17px; padding: 0 0 15px; border-left: 0; border-bottom: 1px solid var(--line); }
  .toc a { margin: 0; }
  .side-meta { display: none; }
  .doc-content { max-width: none; }
}

@media (max-width: 600px) {
  :root { --pad: 20px; }
  .topbar { height: 72px; }
  .nav-links { gap: 14px; }
  .nav-links .nav-link:not(.mini-cta):not([aria-current="page"]) { display: none; }
  .brand { font-size: 17px; }
  .brand-mark { width: 28px; height: 28px; }
  .hero { min-height: 820px; }
  .hero-content { padding-top: 92px; }
  .hero-copy { padding-top: 275px; }
  .hero h1 { font-size: clamp(50px, 16vw, 72px); }
  .problem-grid, .feature-grid, .truth-grid, .doc-grid { grid-template-columns: 1fr; }
  .problem-card { min-height: 230px; }
  .feature-card { min-height: 240px; }
  .footer-inner { display: block; }
  .footer-inner span { display: block; margin-top: 7px; }
  .doc-table { font-size: 12px; }
  .doc-table th, .doc-table td { padding: 9px 6px; }
  .doc-table td:first-child { width: 39%; }
}

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