:root {
  --bg: #0b0c0e;
  --surface: #121316;
  --surface-2: #181a1e;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .2);
  --text: #f3f3f1;
  --muted: #a1a4ab;
  --amber: #f2b441;
  --red: #e5484d;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main:focus { outline: none; }

.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 20px; border-radius: 11px;
  font: 600 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-line { color: var(--text); border-color: var(--line-2); background: transparent; }
.btn-line:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 15px; font-size: 14.5px; border-radius: 9px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 12, 14, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.mark .tld { color: var(--muted); }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.top nav a:not(.btn):hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 92px; border-bottom: 1px solid var(--line); background: radial-gradient(820px 460px at 78% 44%, rgba(255, 255, 255, .05), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
h1 { margin: 20px 0 22px; font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.lede { max-width: 33em; color: var(--muted); font-size: 1.1rem; }
.cta { margin-top: 34px; max-width: 440px; }
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta-pair .btn { padding: 0 12px; }
.cta-note { margin-top: 14px; color: var(--muted); font-size: 14.5px; }

.scene svg { width: 100%; height: auto; overflow: visible; }
.dev { filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .7)); }
.scene figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Blocks ---------- */
.block { padding: 92px 0; border-bottom: 1px solid var(--line); }
.head { max-width: 640px; margin-bottom: 40px; }
h2 { margin-top: 14px; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.head p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

/* App cards */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.app-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.app-art { display: grid; place-items: center; padding: 40px 36px; background: #0e0f11; border-bottom: 1px solid var(--line); }
.app-art svg { width: 100%; max-width: 400px; height: auto; overflow: visible; }
.app-wide .app-art { order: 2; border-bottom: 0; border-left: 1px solid var(--line); padding: 44px 40px; }
.app-wide .app-art svg { max-width: 500px; }
@media (min-width: 721px) { .app:not(.app-wide) .app-art { height: 340px; } }
.app-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex: 1; padding: 32px; }
.app-wide .app-body { padding: 44px 40px; justify-content: center; }
.tag { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.app h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.app-body > p:not(.tag):not(.note) { color: var(--muted); max-width: 34em; }
.note { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 11px; border: 1px solid rgba(242, 180, 65, .28); background: rgba(242, 180, 65, .07); font-size: 15px; }
.note b { flex: none; padding: 3px 8px; border-radius: 6px; font: 500 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #17130a; background: var(--amber); }
.specs { display: flex; flex-wrap: wrap; align-self: stretch; margin: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs div { padding: 12px 24px 12px 0; margin-right: 24px; border-right: 1px solid var(--line); }
.specs div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.specs dt { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin-top: 2px; font-size: 15px; font-weight: 500; }
.app-body .btn { margin-top: auto; }
.app-wide .app-body .btn { margin-top: 6px; }

/* Try */
.try-form { display: flex; gap: 10px; max-width: 760px; }
.try-form input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; font: 400 15px var(--mono);
  color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px;
}
.try-form input::placeholder { color: #777a81; }
.try-form input:hover { border-color: rgba(255, 255, 255, .32); }
.try-form input[aria-invalid="true"] { border-color: var(--red); }
.hint { margin-top: 12px; max-width: 760px; color: var(--muted); font-size: 14px; }
.hint.err { color: #ff9b94; }
.adv { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.adv .hint { flex: 1 1 280px; margin: 0; }
.embed-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; margin-top: 32px; align-items: start; }
.player { aspect-ratio: 16/9; overflow: hidden; display: grid; place-items: center; background: #000; border: 1px solid var(--line); border-radius: var(--r); }
.player iframe { width: 100%; height: 100%; border: 0; }
.player-empty { color: #777a81; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.code { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.copy { min-height: 34px; padding: 0 14px; font: 600 13px var(--sans); color: var(--text); background: transparent; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
.copy:hover { border-color: var(--text); }
.copy.done { color: var(--amber); border-color: var(--amber); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font: 400 13px/1.75 var(--mono); color: #d7d8d5; }
.code pre code { padding: 0; background: none; border: 0; font-size: inherit; }

/* Beta */
.beta { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.steps { margin-top: 28px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps span:first-child { font: 500 13px var(--mono); color: var(--amber); }
.steps a { color: var(--text); }
.beta-links { display: grid; gap: 12px; }
.tf { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 14px; background: var(--text); color: var(--bg); text-decoration: none; font-size: 1.2rem; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; transition: background-color .15s ease; }
.tf:hover { background: #fff; }
.tf .ico { width: 30px; height: 30px; }
.tf small { display: block; font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .68; }
.beta-web { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.beta-web:hover { color: var(--text); }

/* Footer */
.foot { padding: 32px 0 44px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.foot .mark { font-size: 15px; }
.foot p { color: var(--muted); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--text, #fff); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .scene { max-width: 620px; }
  .block { padding: 68px 0; }
  .app-wide { grid-template-columns: 1fr; }
  .app-wide .app-art { order: 0; border-left: 0; border-bottom: 1px solid var(--line); padding: 36px 28px; }
  .app-wide .app-body { padding: 32px; }
  .embed-grid { grid-template-columns: 1fr; }
  .beta { grid-template-columns: 1fr; gap: 36px; padding: 40px 32px; }
}
@media (max-width: 720px) {
  .apps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .top nav a:not(.btn) { display: none; }
  .hero { padding: 40px 0 52px; }
  .block { padding: 52px 0; }
  .head { margin-bottom: 28px; }
  .app-art, .app-wide .app-art { padding: 28px 20px; }
  .app-body, .app-wide .app-body { padding: 24px 20px; }
  .app-body .btn { align-self: stretch; }
  .specs { gap: 0 22px; }
  .specs div { padding-right: 0; margin-right: 0; border-right: 0; }
  .try-form { flex-direction: column; }
  .beta { padding: 28px 20px; border-radius: 18px; }
  .tf { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
