:root {
  --bg: #0f1115;
  --bg-2: #151920;
  --panel: #1a1f29;
  --line: #2a303c;
  --ink: #f1f4fa;
  --soft: #a5afc1;
  --ply: #d9b382;
  --ply-2: #c79d68;
  --burn: #5a3d24;
  --laser: #ff3355;
  --engrave: #2ff3ff;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h1 em { font-style: normal; color: var(--laser); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; margin-bottom: 2rem; max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { max-width: 62ch; }
kbd { font-family: var(--mono); font-size: 0.88em; padding: 0.1em 0.4em; border: 1px solid var(--line); border-radius: 5px; background: var(--bg-2); color: var(--engrave); }
:focus-visible { outline: 2px solid var(--engrave); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--panel); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 12px; }
.eyebrow { font: 500 0.78rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--engrave); margin-bottom: 1rem; }
.fine { font-size: 0.85rem; color: var(--soft); }
.center { margin-inline: auto; text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0.6rem 1.4rem; border-radius: 8px; border: 1.5px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--laser); color: #fff; box-shadow: 0 6px 24px rgba(255, 51, 85, 0.28); }
.btn-primary:hover { background: #e62246; }
.btn-ghost { border-color: #4a5364; color: var(--ink); background: rgba(15, 17, 21, 0.4); }
.btn-ghost:hover { border-color: var(--engrave); color: var(--engrave); }
.btn-small { min-height: 40px; padding: 0.35rem 1rem; font-size: 0.92rem; border-color: var(--line); background: var(--panel); }
.btn-small:hover { border-color: var(--engrave); color: var(--engrave); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.center-row { justify-content: center; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; height: 64px; padding-inline: clamp(16px, 4vw, 48px); transition: background-color .2s, border-color .2s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(15, 17, 21, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 0.6rem; font: 600 1.1rem/1 var(--display); text-decoration: none; white-space: nowrap; }
.brand b { color: var(--laser); font-weight: 700; }
.mark { width: 19px; height: 34px; color: var(--ink); --laser: #ff3355; --engrave: #2ff3ff; }
.nav nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav nav a { font-size: 0.94rem; color: var(--soft); text-decoration: none; padding-block: 0.6rem; }
.nav nav a:hover { color: var(--ink); }
.nav .btn-small { margin-left: 0; }
@media (max-width: 760px) { .nav nav { display: none; } .nav .btn-small { margin-left: auto; } }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 65% 55%, #1c2230 0%, var(--bg) 70%); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.hero-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(15,17,21,0.92) 0%, rgba(15,17,21,0.6) 30%, rgba(15,17,21,0) 55%); transition: opacity .4s; }
.hero-copy { position: relative; z-index: 2; max-width: 600px; padding: clamp(110px, 18vh, 190px) 0 0 clamp(16px, 4vw, 48px); display: grid; gap: 1.3rem; pointer-events: none; transition: opacity .4s; }
.hero-copy a { pointer-events: auto; }
.lede, .hero-copy .fine { transition: opacity .4s; }
.hero.flat .lede, .hero.flat .hero-copy .fine { opacity: 0; }
.hero.flat .hero-scrim { opacity: 0.55; }
.lede { font-size: 1.12rem; color: var(--soft); max-width: 50ch; }
.demo-bar { position: absolute; z-index: 3; left: 50%; bottom: clamp(18px, 4vh, 40px); transform: translateX(-50%); width: min(720px, calc(100% - 32px)); display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 0.5rem 0.9rem; padding: 0.8rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(21, 25, 32, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.demo-bar[hidden] { display: none; }
.end-label { font: 500 0.78rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); white-space: nowrap; }
.status { grid-column: 1 / -1; text-align: center; font-size: 0.92rem; color: var(--ink); min-height: 1.4em; }
.play { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.play:hover { border-color: var(--engrave); color: var(--engrave); }
.play svg { width: 14px; height: 14px; }
.demo-note { position: absolute; z-index: 3; right: clamp(16px, 4vw, 48px); bottom: clamp(18px, 4vh, 40px); font: 400 0.75rem/1.3 var(--mono); color: var(--soft); max-width: 22ch; text-align: right; }
@media (max-width: 1250px) { .demo-note { bottom: auto; top: 76px; } }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ply), var(--laser)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ply), var(--laser)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--laser); box-shadow: 0 0 12px rgba(255, 51, 85, 0.7); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--laser); box-shadow: 0 0 12px rgba(255, 51, 85, 0.7); }

@media (max-width: 760px) {
  .hero-scrim { background: linear-gradient(180deg, rgba(15,17,21,0.94) 0%, rgba(15,17,21,0.7) 38%, rgba(15,17,21,0) 60%); }
  .hero-copy { padding: 84px 16px 0; max-width: none; gap: 0.9rem; }
  .lede { font-size: 1rem; }
  .hero-copy .fine { display: none; }
  .demo-note { display: none; }
}

/* strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: var(--bg-2); }
.strip div { padding: 1.6rem 1rem; text-align: center; display: grid; gap: 0.3rem; }
.strip div + div { border-left: 1px solid var(--line); }
.strip b { font: 700 2rem/1 var(--display); color: var(--ply); }
.strip span { font: 400 0.78rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); }
@media (max-width: 640px) { .strip { grid-template-columns: repeat(2, 1fr); } .strip div:nth-child(3) { border-left: 0; } .strip div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* sections */
.section { padding: clamp(64px, 10vw, 120px) clamp(16px, 4vw, 48px); max-width: 1280px; margin-inline: auto; }
.section.alt { max-width: none; background: var(--bg-2); border-block: 1px solid var(--line); }
.section.alt > * { max-width: 1184px; margin-inline: auto; }
.section.alt > h2 { margin-inline: auto; max-width: 1184px; }
.section p + p { margin-top: 1rem; }
.section p { color: var(--soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps article { padding: 1.6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); display: grid; gap: 0.7rem; align-content: start; }
.num { font: 500 0.85rem/1 var(--mono); color: var(--laser); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split h2 { margin-bottom: 1.2rem; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.col { padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.col h3 { margin-bottom: 1rem; color: var(--soft); }
.col.good { border-color: rgba(47, 243, 255, 0.45); box-shadow: 0 0 40px rgba(47, 243, 255, 0.06); }
.col.good h3 { color: var(--engrave); }
.col ul { display: grid; gap: 0.6rem; }
.col li { font-size: 0.95rem; color: var(--soft); padding-left: 1.3em; position: relative; }
.col li::before { content: "×"; position: absolute; left: 0; color: #6b7384; font-family: var(--mono); }
.col.good li { color: var(--ink); }
.col.good li::before { content: "✓"; color: var(--engrave); }

.joint-demo { padding: 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.joint-demo svg { display: block; width: 100%; height: auto; color: var(--soft); }
.joint-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 1rem; font-size: 0.92rem; color: var(--soft); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { min-width: 64px; min-height: 40px; padding: 0 0.9rem; border: 0; background: transparent; color: var(--soft); font: 500 0.88rem/1 var(--mono); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--laser); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid article { padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); display: grid; gap: 0.6rem; align-content: start; }
.grid article p { font-size: 0.95rem; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 1.4rem; justify-content: center; }
.plan { padding: 2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); display: grid; gap: 1rem; align-content: start; }
.plan:first-child { border-color: rgba(255, 51, 85, 0.5); }
.price { font: 700 2.8rem/1 var(--display); color: var(--ink); }
.plan ul { display: grid; gap: 0.55rem; margin-bottom: 0.6rem; }
.plan li { color: var(--soft); font-size: 0.95rem; padding-left: 1.3em; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--engrave); font-family: var(--mono); }
.section > .fine.center { margin-top: 1.6rem; }

.trial { margin-top: 2.5rem; padding: 1.8rem 2rem; border: 1px dashed rgba(47, 243, 255, 0.5); border-radius: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.trial h3 { margin-bottom: 0.5rem; }
.trial p { color: var(--soft); }

.faq { display: grid; gap: 0.7rem; max-width: 820px; }
details { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
summary { padding: 1rem 1.2rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--engrave); }
details[open] summary::after { content: "–"; }
details p { padding: 0 1.2rem 1.1rem; font-size: 0.96rem; }

.final { text-align: center; }
.final h2 { margin-inline: auto; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding: 1.5rem clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--soft); }

@media (max-width: 900px) {
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .steps, .grid, .compare, .plans { grid-template-columns: 1fr; }
  .demo-bar { grid-template-columns: auto auto 1fr auto; padding: 0.7rem 0.8rem; gap: 0.4rem 0.6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* gallery: listing images, cropped to the render by tools/website/make_images.py */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { padding: 1rem 1.2rem 1.2rem; font-size: 0.95rem; color: var(--soft); }
.gallery figcaption b { display: block; font: 600 1.08rem/1.3 var(--display); color: var(--ink); margin-bottom: 0.25rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; max-width: 520px; } }

/* recording of the real run */
.clip-note { margin-top: 0.8rem; font: 400 0.8rem/1.4 var(--mono); color: var(--soft); }

/* hovered / picked part */
.clip { margin: 2.2rem 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0a0c10; }
#clip-video { display: block; width: 100%; height: auto; background: #000; }
.clip-cmd { padding: 0.7rem 0.95rem 0.8rem; border-top: 1px solid var(--line); font: 400 0.8rem/1.6 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--soft); min-height: 7.4em; }
.clip-cmd[hidden] { display: none; }
.clip-cmd div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-cmd div:last-child { color: var(--ink); }
.clip-cmd .typed { color: var(--engrave); }
.clip-cmd .cursor { display: inline-block; width: 0.55em; height: 1em; margin-left: 1px; background: var(--engrave); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
.clip-clock { max-width: none; font-family: var(--mono); display: flex; justify-content: space-between; margin: 0 0 0.35rem; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--laser); }
.clip-clock span:last-child { color: var(--soft); }
@media (max-width: 600px) { .clip-cmd { font-size: 0.68rem; } }
@keyframes blink { 50% { opacity: 0; } }
.part-readout { position: absolute; z-index: 3; left: 50%; bottom: calc(clamp(18px, 4vh, 40px) + 200px); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 0.45rem 0.9rem; border: 1px solid rgba(47, 243, 255, 0.5); border-radius: 999px; background: rgba(15, 17, 21, 0.85); color: var(--ink); font: 500 0.8rem/1.3 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.part-readout[hidden] { display: none; }
.part-readout b { color: var(--engrave); font-weight: 500; }

/* loading placeholder */
.loader { position: absolute; z-index: 1; left: 50%; top: 62%; display: flex; gap: 10px; transform: translate(-50%, -50%); }
.loader span { width: 46px; height: 30px; border: 1.5px solid var(--ply-2); border-radius: 3px; opacity: 0.25; animation: pulse 1.2s ease-in-out infinite; }
.loader span:nth-child(2) { animation-delay: 0.2s; } .loader span:nth-child(3) { animation-delay: 0.4s; }
.loader.gone { display: none; }
@keyframes pulse { 50% { opacity: 0.9; border-color: var(--laser); } }
@media (min-width: 901px) { .loader { left: 72%; top: 52%; } }

.fit-note { margin-top: 1.4rem; max-width: 80ch; }
#fit .col.good li::before { content: "¹3"; }
#fit .col li::before { content: "!"; color: var(--ply); }
