@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/figtree-latin.woff2") format("woff2");
}

:root {
  --canvas: #f6f8fa;
  --surface: #ffffff;
  --border: #d0d7de;
  --border-muted: #e4e8ec;
  --fg: #1f2328;
  --fg-muted: #59636e;
  --accent: #0969da;
  --accent-hover: #0860c9;
  --accent-soft: #ddf4ff;
  --success: #1a7f37;
  --error: #cf222e;
  --radius: 10px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 720px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--fg); color: #fff; padding: 8px 12px; border-radius: 6px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: #fff;
  border: 0; border-radius: var(--radius);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }

.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border-muted);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 750; font-size: 1.2rem; }

.hero { padding-block: 56px 72px; }
.hero-grid { display: grid; gap: 56px; align-items: center; grid-template-columns: 1fr 1fr; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 4px 12px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; font-size: .875rem; font-weight: 650;
}
.lede { font-size: 1.2rem; color: var(--fg-muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }

.demo { margin: 0; }
.demo video { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); background: #0d1117; box-shadow: 0 24px 60px -24px rgba(31, 35, 40, .35); }

.browser {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 60px -24px rgba(31, 35, 40, .35);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border-muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.url {
  margin-left: 10px; flex: 1; min-width: 0;
  padding: 3px 10px; border-radius: 6px; background: var(--canvas);
  color: var(--fg-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #0d1117; }
.pane svg { width: 100%; height: auto; aspect-ratio: 1; }
.share-card {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  padding: 14px 18px; background: var(--surface);
  font-size: .95rem;
}
.share-card span { color: var(--fg-muted); font-size: .85rem; }

.section { padding-block: 72px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border-muted); }
.section-lede { color: var(--fg-muted); font-size: 1.1rem; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.steps p, .card p { color: var(--fg-muted); margin: 0; }
.step-n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 750;
}

.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--canvas); }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; font-size: 1.1rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) no-repeat center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%230969da' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.waitlist { display: grid; gap: 20px; margin-top: 28px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
label, legend { font-weight: 600; font-size: .95rem; }
legend { padding: 0; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--fg-muted); }

input[type="email"], input[type="text"] {
  width: 100%; min-height: 48px; padding: 0 14px;
  font: inherit; color: var(--fg);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
input[type="email"]:focus, input[type="text"]:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent); outline-offset: 0; }
input[aria-invalid="true"] { border-color: var(--error); }

.choices { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  font-weight: 500; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input, .consent input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--fg-muted); }
.consent input { margin-top: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 0; min-height: 1.6em; font-size: .95rem; }
.form-status.is-error { color: var(--error); }

.success { margin-top: 28px; padding: 28px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); background: color-mix(in srgb, var(--success) 7%, var(--surface)); }
.success h3 { color: var(--success); }
.success p { margin: 0; }

details { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; padding: 18px 0; font-weight: 650; list-style-position: outside; }
details p { color: var(--fg-muted); padding-bottom: 8px; }

.site-footer { padding-block: 32px; border-top: 1px solid var(--border-muted); color: var(--fg-muted); font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-row a { color: inherit; }

.prose { padding-block: 56px 72px; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose p, .prose li { color: var(--fg-muted); }
.prose .updated { font-size: .95rem; }

@media (max-width: 900px) {
  .hero { padding-block: 32px 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .section { padding-block: 56px; }
}

@media (max-width: 560px) {
  .field-row, .choices { grid-template-columns: 1fr; }
  .lede { font-size: 1.1rem; }
}

.hero-copy > *, .demo { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.demo { perspective: 1400px; animation-name: rise-tilted; animation-duration: 1.2s; animation-delay: .2s; }
.browser { transform-origin: 50% 0; will-change: transform; }
.xh-v, .xh-h, .arch { transform-box: view-box; transform-origin: 100px 100px; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-tilted { from { opacity: 0; transform: translateY(48px) rotateX(14deg) scale(.96); } }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition:
    opacity .7s cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms),
    transform .9s cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms);
}
.reveal.is-revealed { opacity: 1; transform: none; }
.checks li::before { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--reveal-delay, 0ms) + .25s); }
.checks li.reveal:not(.is-revealed)::before { transform: scale(0); }

.steps { position: relative; --line: 1; }
.steps::before, .steps::after {
  content: ""; position: absolute; top: 17px; left: 18px; height: 2px;
  width: calc((100% - 56px) * 2 / 3 + 56px);
  background: var(--border-muted);
}
.steps::after { background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--line)); }
.step-n { position: relative; z-index: 1; transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }
.steps.is-scrubbed li:not(.is-lit) .step-n { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 2px var(--border); }

.stage {
  position: relative; z-index: 1;
  background: var(--canvas);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 30px 60px -30px rgba(1, 4, 9, .45);
}

.curtain {
  --cine-bg: #0d1117;
  --cine-fg: #e6edf3;
  --cine-muted: #9198a1;
  --cine-accent: #2f81f7;
  --cine-amber: #d29922;
  position: relative;
  height: 100vh; height: 100svh;
  margin-top: -28px;
  clip-path: inset(0);
}

.cine {
  position: fixed; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  width: 100%; height: 100vh; height: 100svh;
  padding-top: 64px;
  overflow: hidden;
  background: var(--cine-bg); color: var(--cine-fg);
}

.cine-aurora {
  position: absolute; left: 50%; top: 50%; width: 80vw; height: 60vh;
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--cine-accent) 28%, transparent) 0%,
    color-mix(in srgb, var(--cine-amber) 10%, transparent) 45%,
    transparent 70%);
  filter: blur(70px);
  transform: translate(-50%, -50%);
  animation: breathe 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes breathe { to { transform: translate(-50%, -50%) scale(1.12); opacity: .75; } }

.cine-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-size: 56px 56px;
  background-image:
    linear-gradient(to right, rgba(230, 237, 243, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(230, 237, 243, .045) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

.cine-giant {
  position: absolute; left: 0; right: 0; bottom: -4vh;
  text-align: center; white-space: nowrap;
  font-size: 21vw; line-height: .8; font-weight: 800; letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230, 237, 243, .07);
  background: linear-gradient(180deg, rgba(230, 237, 243, .13) 0%, transparent 65%);
  -webkit-background-clip: text; background-clip: text;
  transform-origin: 50% 100%;
  pointer-events: none; user-select: none;
}

.cine-marquee {
  position: relative; z-index: 1;
  margin-top: 28px;
  padding-block: 14px;
  overflow: hidden;
  background: rgba(13, 17, 23, .6);
  border-block: 1px solid rgba(230, 237, 243, .1);
  backdrop-filter: blur(10px);
  transform: rotate(-2deg) scale(1.1);
  color: var(--cine-muted);
  font-size: .8rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase;
}
.cine-marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.cine-marquee-set { display: flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap; }
.cine-sep { color: var(--cine-accent); }
.cine-sep:nth-of-type(4n) { color: var(--cine-amber); }
@keyframes marquee { to { transform: translateX(-50%); } }

.cine-main {
  position: relative; z-index: 1;
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 36px; padding: 24px 20px;
}
.cine-title {
  margin: 0; max-width: 14em; text-align: center; text-wrap: balance;
  font-size: clamp(2.3rem, 7vw, 5.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em;
  background: linear-gradient(180deg, var(--cine-fg) 0%, rgba(230, 237, 243, .45) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cine-links { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cine-secondary { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(230, 237, 243, .1);
  background: linear-gradient(145deg, rgba(230, 237, 243, .06), rgba(230, 237, 243, .015));
  box-shadow: 0 10px 30px -10px rgba(1, 4, 9, .6), inset 0 1px 1px rgba(230, 237, 243, .1);
  backdrop-filter: blur(16px);
  color: var(--cine-muted); font-size: .95rem; font-weight: 600; text-decoration: none;
  transition: background .4s ease, border-color .4s ease, color .4s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1);
}
.pill:hover { color: var(--cine-fg); border-color: rgba(230, 237, 243, .22); background: linear-gradient(145deg, rgba(230, 237, 243, .12), rgba(230, 237, 243, .03)); }
.pill-primary {
  min-height: 60px; padding: 0 34px; font-size: 1.1rem; font-weight: 700;
  color: #fff; border-color: color-mix(in srgb, var(--cine-accent) 60%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--cine-accent) 55%, transparent), color-mix(in srgb, var(--cine-accent) 25%, transparent));
}
.pill-primary:hover { color: #fff; border-color: var(--cine-accent); background: linear-gradient(145deg, color-mix(in srgb, var(--cine-accent) 75%, transparent), color-mix(in srgb, var(--cine-accent) 40%, transparent)); }
.pill-round { width: 48px; min-height: 48px; padding: 0; }
.pill-round svg { transition: transform .3s ease; }
.pill-round:hover svg { transform: translateY(-3px); }

.magnetic { transition-timing-function: ease, ease, ease, linear(0, .646, 1.25, 1.354, 1.125, .912, .875, .956, 1.031, 1.044, 1.016, .989, .984, .994, 1.004, 1.006, 1.002, .999, .998, .999, 1); }
.magnetic.is-pulled { transition-duration: .4s, .4s, .4s, .35s; transition-timing-function: ease, ease, ease, cubic-bezier(.33, 1, .68, 1); }

.cine-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px 24px;
  color: var(--cine-muted); font-size: .8rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
}
.cine .pill:focus-visible { outline-color: color-mix(in srgb, var(--cine-accent) 70%, transparent); }

.curtain.is-idle .cine-aurora, .curtain.is-idle .cine-marquee-track { animation-play-state: paused; }

@media (min-width: 900px) {
  .cine-bar { padding: 0 48px 32px; }
}

@media (max-width: 900px) {
  .steps::before, .steps::after { display: none; }
}

@media (max-width: 560px) {
  .cine-marquee { font-size: .7rem; }
  .cine-secondary .pill { min-height: 40px; padding: 0 16px; font-size: .85rem; }
}

@media (max-height: 540px) {
  .curtain { height: auto; clip-path: none; }
  .cine { position: relative; height: auto; padding-block: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .demo, .cine-aurora, .cine-marquee-track { animation: none; }
}
