:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --card: #141416;
  --line: #242428;
  --text: #f5f5f6;
  --muted: #a1a1aa;
  --dim: #6b6b74;
  --accent: #ffc300;
  --accent-ink: #141414;
  --err: #f87171;
  --max: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: 999px; padding: 14px 24px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 8px 30px rgba(255, 195, 0, .2);
}
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 38px rgba(255, 195, 0, .32); }
.button.ghost { background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.button.ghost:hover { border-color: #3a3a40; }
.button:disabled { opacity: .6; cursor: progress; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  transition: max-width .35s ease, padding .35s ease;
}
.nav::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid transparent; border-radius: 0;
  transition: inset .35s ease, border-radius .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.nav.scrolled { max-width: 1000px; padding: 18px 26px 18px 38px; }
.nav.scrolled::before {
  inset: 8px 16px; border-radius: 999px; border-color: var(--line);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.nav .brand { transition: font-size .35s ease; }
.nav.scrolled .brand { font-size: 17px; }
.nav.scrolled .brand svg { width: 22px; height: 22px; }
.nav.scrolled .nav-cta { padding: 6px 13px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; color: var(--muted); }
.nav nav a { text-decoration: none; transition: color .15s; }
.nav nav a:hover { color: var(--text); }
.nav nav .social { display: inline-flex; margin-right: -12px; }
.nav .nav-cta { color: var(--accent-ink); background: var(--accent); padding: 8px 15px; border-radius: 999px; font-weight: 700; }
.nav .nav-cta:hover { color: var(--accent-ink); }

/* Hero */
.hero { position: relative; max-width: var(--max); margin: 0 auto; padding: 56px 24px 40px; text-align: center; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 380px;
  width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 195, 0, .13), rgba(255, 195, 0, 0));
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(44px, 7vw, 88px); line-height: .98; font-weight: 900; letter-spacing: -0.045em; margin-top: 22px; }
.hl { background: linear-gradient(90deg, #ffe066, #ffb000); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--muted); font-size: 19px; max-width: 34em; margin: 22px auto 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.rise:nth-child(2) { animation-delay: .06s; }
.rise:nth-child(3) { animation-delay: .12s; }
.rise:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* The device stage: the web app, the phone in front, real panels floating. */
.stage {
  position: relative; margin: 64px auto 0; width: min(1040px, 100%);
  aspect-ratio: 1040 / 700;
  animation: rise 1.1s .25s cubic-bezier(.2, .7, .2, 1) both;
}
.stage > * { will-change: transform; }
.browser {
  position: absolute; left: 0; top: 0; width: 86%;
  border-radius: 14px; overflow: hidden; background: #000;
  border: 1px solid #2a2a2f;
  box-shadow: 0 50px 120px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.browser .bar {
  height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: #18181b; border-bottom: 1px solid #26262a;
}
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a40; }
.browser .bar span {
  margin: 0 auto; transform: translateX(-24px); font-size: 12px; color: var(--dim);
  background: #0f0f11; padding: 3px 40px; border-radius: 6px;
}
.browser video { display: block; width: 100%; aspect-ratio: 1280 / 800; object-fit: cover; }

.phone {
  position: relative; aspect-ratio: 780 / 1688;
  padding: 9px; border-radius: 40px; box-sizing: content-box;
  background: linear-gradient(155deg, #2e2e33 0%, #141416 45%, #242428 100%);
  box-shadow: 0 0 0 1px #3a3a40 inset, 0 0 0 2px #0d0d0f, 0 40px 90px rgba(0, 0, 0, .7);
}
.phone video { display: block; width: 100%; height: 100%; border-radius: 32px; background: #000; object-fit: cover; }
.stage .phone { position: absolute; right: 0; bottom: 0; width: 25%; }

.float {
  position: absolute; margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid #2e2e33; background: #232323;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.float.f1 { width: 30%; left: -6%; top: 58%; }
.float.f2 { width: 27%; left: 58%; top: -7%; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 140px 24px 0; }
.head { max-width: 760px; }
.head h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.02; font-weight: 900; letter-spacing: -0.04em; }
.head p { color: var(--muted); font-size: 19px; margin-top: 18px; }
.head strong { color: var(--text); }

/* Bento of real panels */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; margin-top: 48px; }
.tile {
  position: relative; overflow: hidden; border-radius: 22px;
  background: linear-gradient(180deg, #17171a, #111113); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.tile.in { transition: border-color .25s, transform .35s cubic-bezier(.2, .7, .2, 1); }
.tile:hover { border-color: #36363c; transform: translateY(-3px); }
.tile .txt { padding: 22px 24px 0; position: relative; z-index: 1; }
.tile h3 { font-size: 19px; }
.tile p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.tile img {
  margin: 20px 0 0 24px; width: min(calc(100% - 24px), 420px); border-radius: 12px 0 0 0;
  background: #232323;
  border-top: 1px solid #2e2e33; border-left: 1px solid #2e2e33;
  box-shadow: -20px -10px 50px rgba(0, 0, 0, .35);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover img { transform: translate(-4px, -6px); }
.tile.wide { grid-column: span 2; }
.tile.wide img { width: min(calc(100% - 48px), 560px); align-self: flex-end; margin-right: 0; border-radius: 12px 0 0 0; }
.tile.tall { grid-row: span 2; }
.tile::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(transparent, rgba(10, 10, 11, .9)); pointer-events: none;
}

/* Brand fan */
.brandsec { display: block; }
.fan { position: relative; height: 620px; }
.fan img {
  position: absolute; left: 50%; top: 50%; width: 240px;
  border-radius: 34px; border: 8px solid #1f1f22;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6);
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.fan.open img:nth-child(1) { transform: translate(calc(-50% - 210px), calc(-50% + 30px)) rotate(-9deg); }
.fan.open img:nth-child(2) { transform: translate(-50%, -50%); z-index: 1; }
.fan.open img:nth-child(3) { transform: translate(calc(-50% + 210px), calc(-50% + 30px)) rotate(9deg); }

/* Ship */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 30px 0 28px; }
.stats strong { display: block; font-size: clamp(44px, 6vw, 80px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--accent); }
.stats span { color: var(--muted); font-size: 14.5px; }
.devs { margin-top: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); min-width: 0; overflow: hidden; }
.devs summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.devs summary::-webkit-details-marker { display: none; }
.devs summary span { color: var(--dim); font-weight: 500; font-size: 14px; }
.devs[open] summary { border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; padding: 16px 22px 0; }
.tabs button { font: inherit; cursor: pointer; background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; }
.tabs button[aria-selected=true] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.code { margin: 16px 22px 22px; overflow-x: auto; background: #08080a; border: 1px solid var(--line); border-radius: 14px; padding: 20px; font: 13.5px/1.75 "JetBrains Mono", ui-monospace, Menlo, monospace; color: #d4d4d8; }
.code .k { color: #c084fc; } .code .s { color: #86efac; } .code .n { color: #fbbf24; } .code .t { color: #7dd3fc; } .code .c { color: #71717a; }
.soon { margin-top: 28px; color: var(--dim); font-size: 15px; }
.soon span { color: var(--muted); font-weight: 700; border: 1px dashed var(--line); padding: 3px 10px; border-radius: 999px; margin-right: 10px; font-size: 12.5px; }

/* Access */
.access { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; padding-bottom: 140px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: grid; gap: 18px; position: relative; }
.form label { display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.form em { font-style: normal; color: var(--dim); font-size: 12.5px; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select { width: 100%; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .15s; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus { border-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.chip { display: inline-flex !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 14px; color: var(--text); transition: all .15s; }
.chip input:checked + span { background: rgba(255, 195, 0, .12); border-color: var(--accent); color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .button { justify-self: start; }
.fine { color: var(--dim); font-size: 13px; margin-top: -6px; }
.form-error { color: var(--err); font-size: 14px; min-height: 1em; }
.done { position: absolute; inset: 0; border-radius: 24px; background: var(--card); display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 40px; }
.done svg { width: 56px; height: 56px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: draw .6s ease-out forwards; }
.done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s .45s ease-out forwards; }
.done h3 { font-size: 26px; }
.done p { color: var(--muted); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.footer { max-width: var(--max); margin: 0 auto; padding: 32px 24px 44px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.footer nav { display: flex; gap: 22px; color: var(--dim); font-size: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

.watch { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5, 5, 6, .88); backdrop-filter: blur(10px); animation: fade .25s ease-out; }
.watch[hidden] { display: none; }
.watch .phone { width: min(380px, 80vw, calc((100vh - 90px) * 780 / 1688)); }
.watch .close { position: absolute; top: 20px; right: 24px; font-size: 22px; color: var(--text); background: none; border: 0; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .tile.wide { grid-column: span 2; }
.tile.wide img { width: min(calc(100% - 48px), 560px); align-self: flex-end; margin-right: 0; border-radius: 12px 0 0 0; }
  .access { grid-template-columns: 1fr; }
  .fan { height: 540px; }
  .nav nav a:not(.nav-cta):not(.social) { display: none; }
  .nav.scrolled { padding: 16px 18px 16px 28px; }
  .nav.scrolled::before { inset: 6px 10px; }
}
@media (max-width: 640px) {
  .section { padding-top: 96px; }
  .stage { aspect-ratio: auto; height: 520px; }
  .browser { width: 100%; }
  .stage .phone { width: 44%; right: 4%; bottom: 0; }
  .float.f1 { width: 64%; left: -2%; top: auto; bottom: 34%; }
  .float.f2 { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .tile.tall { grid-row: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .row.two { grid-template-columns: 1fr; }
  .fan { height: 440px; }
  .fan img { width: 170px; border-width: 6px; border-radius: 26px; }
  .fan.open img:nth-child(1) { transform: translate(calc(-50% - 110px), calc(-50% + 24px)) rotate(-9deg); }
  .fan.open img:nth-child(3) { transform: translate(calc(-50% + 110px), calc(-50% + 24px)) rotate(9deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .stage { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fan img { transition: none; }
}
.brandsec .head h2 { font-size: clamp(34px, 4.2vw, 54px); }
.done[hidden] { display: none; }

/* Platform logos, in the page's tone. */
.platforms { list-style: none; padding: 0; margin: 34px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px; color: var(--muted); }
.platforms li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; }
.platforms svg { width: 20px; height: 20px; opacity: .85; }
.rise:nth-child(5) { animation-delay: .24s; }

/* Three apps, one editor */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; align-items: start; }
.app { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.app:nth-child(2) { margin-top: 48px; }
.app img {
  width: min(100%, 290px); border-radius: 38px; border: 9px solid #1f1f22;
  box-shadow: 0 0 0 1px #34343a, 0 40px 80px rgba(0, 0, 0, .55);
}
.app.in { transition-delay: 0s; }
.app:nth-child(2).reveal { transition-delay: .1s; }
.app:nth-child(3).reveal { transition-delay: .2s; }
.app figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 300px; }
.app figcaption strong { width: 100%; text-align: center; font-size: 17px; margin-bottom: 4px; }
.app figcaption span { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 760px) {
  .apps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: -24px; padding-inline: 24px; scrollbar-width: none; }
  .app { scroll-snap-align: center; }
  .app:nth-child(2) { margin-top: 0; }
}

/* Developers: the code, in full view, steps lighting up its lines. */
.devgrid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 36px; margin-top: 52px; align-items: center; }
.dsteps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dsteps li {
  display: flex; gap: 16px; padding: 18px 20px; border-radius: 16px; cursor: pointer;
  border: 1px solid transparent; transition: background .3s, border-color .3s;
}
.dsteps li b {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-size: 14px; background: #1c1c1f; color: var(--muted); transition: all .3s;
}
.dsteps h3 { font-size: 18px; }
.dsteps p { color: var(--dim); font-size: 14.5px; margin-top: 2px; transition: color .3s; }
.dsteps li.on { background: var(--card); border-color: var(--line); }
.dsteps li.on b { background: var(--accent); color: var(--accent-ink); }
.dsteps li.on p { color: var(--muted); }
.ide {
  border-radius: 18px; overflow: hidden; background: #0b0b0d; border: 1px solid #2a2a2f;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 120px rgba(255, 195, 0, .05);
  min-width: 0;
}
.ide-bar { display: flex; align-items: center; gap: 7px; padding: 0 0 0 16px; height: 46px; background: #141416; border-bottom: 1px solid #222226; }
.ide-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a40; }
.ide .tabs { display: flex; gap: 0; margin-left: 14px; padding: 0; height: 100%; }
.ide .tabs button {
  font: 500 13px/1 "JetBrains Mono", monospace; cursor: pointer; color: var(--dim); background: none;
  border: 0; border-radius: 0; padding: 0 16px; height: 100%; border-right: 1px solid #222226;
}
.ide .tabs button[aria-selected=true] { color: var(--text); background: #0b0b0d; box-shadow: inset 0 2px 0 var(--accent); }
.ide .code { margin: 0; border: 0; border-radius: 0; background: none; padding: 24px 0; font-size: 15px; line-height: 1.85; overflow-x: auto; counter-reset: line; }
.ln { display: block; padding: 0 26px 0 0; transition: background .3s, opacity .3s; white-space: pre; }
.ln::before { counter-increment: line; content: counter(line); display: inline-block; width: 46px; padding-right: 18px; text-align: right; color: #3a3a40; }
.ide.focus .ln { opacity: .5; }
.ide.focus .ln.on { opacity: 1; background: rgba(255, 195, 0, .07); box-shadow: inset 2px 0 0 var(--accent); }
.code .f { color: #fde68a; }
@media (max-width: 980px) {
  .devgrid { grid-template-columns: 1fr; }
  .dsteps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .dsteps { grid-template-columns: 1fr; gap: 2px; }
  .dsteps li { padding: 12px 14px; }
  .ide .code { font-size: 12.5px; }
  .ln::before { width: 34px; padding-right: 12px; }
}
