@font-face { font-family: Geist; src: url(/fonts/Geist-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-SemiBold.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/GeistMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/GeistMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Caveat; src: url(/fonts/Caveat.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #070a14;
  --panel: #0f1528;
  --line: #1a2340;
  --line-2: #26315a;
  --text: #eceff7;
  --muted: #9ea7c1;
  --subtle: #6d7696;
  --faint: #465071;
  --amber: #ffb547;
  --ink: #ffd08a;
  --green: #4ade80;
  --red: #f87171;
  --blue: #7aa2ff;
  --violet: #b69cff;
  --mono: "Geist Mono", ui-monospace, monospace;
  --sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: Caveat, "Comic Sans MS", cursive;
  --r: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
code { font-family: var(--mono); font-size: .86em; color: var(--ink); background: rgba(255,181,71,.09); padding: .12em .38em; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.amber { color: var(--amber); }
.muted { color: var(--subtle); }
.mono { font-family: var(--mono); font-size: 13px; }
.add { color: var(--green); font-style: normal; }
.del { color: var(--red); font-style: normal; }
::selection { background: rgba(255,181,71,.35); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ───── nav ───── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(20px, 4vw, 48px);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7,10,20,.74); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: rgba(38,49,90,.5); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-block;
  position: relative; overflow: hidden;
  appearance: none; border: 0; cursor: pointer; text-align: center;
  font: 600 15px/1 var(--sans); color: #1a1004;
  background: linear-gradient(180deg, #ffc56b, var(--amber) 55%, #f5a531);
  padding: 14px 20px; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255,200,120,.5) inset, 0 8px 30px -8px rgba(255,181,71,.6);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s;
  white-space: nowrap;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,220,160,.6) inset, 0 14px 40px -8px rgba(255,181,71,.8); }
.btn:active { transform: translateY(0); }
.btn:disabled { filter: grayscale(.4) brightness(.85); cursor: default; }
.btn-sm { font-size: 13.5px; padding: 9px 14px; border-radius: 10px; }

/* ───── handwritten notes ───── */
.note { position: absolute; margin: 0; font: 700 26px/1 var(--hand); color: var(--ink); white-space: nowrap; pointer-events: none; z-index: 3; text-shadow: 0 2px 14px rgba(0,0,0,.9); opacity: 0; transform: rotate(-4deg) translateY(6px); transition: opacity .6s ease, transform .6s ease; }
.note svg { position: absolute; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.note path { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1s ease .4s; }
.note.in { opacity: 1; transform: rotate(-4deg); }
.note.in path { stroke-dashoffset: 0; }

/* ───── hero ───── */
.hero { position: relative; overflow: hidden; padding-top: 128px; isolation: isolate; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(900px 420px at 50% 12%, rgba(255,181,71,.12), transparent 70%),
    radial-gradient(1200px 700px at 50% -10%, rgba(64,86,190,.3), transparent 70%),
    linear-gradient(180deg, #0a0f22 0%, #080b18 60%, var(--bg));
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; }
.mascot { width: 96px; margin-bottom: 26px; filter: drop-shadow(0 10px 40px rgba(255,181,71,.45)); cursor: pointer; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) } }
.mascot svg { display: block; width: 100%; overflow: visible; }
.m-head, .m-eye { fill: var(--amber); }
.m-eyes { transition: transform .12s ease-out; }
.mascot .m-eye { transform-box: fill-box; transform-origin: center; transition: transform .09s ease; }
.mascot.blink .m-eye { transform: scaleY(.08); }
.mascot.happy .m-eye { transform: scaleY(.3) translateY(-6px); }
.mascot.bump { animation: bump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 40% { transform: scale(1.14) rotate(-5deg) } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 13px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px solid var(--line-2); background: rgba(19,26,48,.55); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4 } }

.hero-title { margin: 0; font-size: clamp(44px, 8vw, 104px); line-height: .98; letter-spacing: -.05em; font-weight: 600; }
.hero-title .line { display: block; padding-bottom: .05em; background: linear-gradient(180deg, #fff 30%, #c4cbe0); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(20px); filter: blur(8px); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-title .line + .line { animation-delay: .12s; }
.hero-title .amber { background: linear-gradient(180deg, #ffd99c, var(--amber) 55%, #ff9a1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.hero-sub { max-width: 620px; margin: 26px 0 32px; font-size: clamp(16px, 1.9vw, 19px); color: var(--muted); opacity: 0; animation: rise .9s .25s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-copy .waitlist, .hero-copy .works-with { opacity: 0; animation: rise .9s .38s cubic-bezier(.2,.8,.2,1) forwards; }

.waitlist { position: relative; display: flex; gap: 8px; width: min(460px, 100%); padding: 6px; border-radius: 16px; background: rgba(13,19,38,.85); border: 1px solid var(--line-2); box-shadow: 0 20px 60px -20px rgba(0,0,0,.7); transition: border-color .2s, box-shadow .2s; }
.waitlist input[type=email] { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 15px var(--sans); padding: 0 12px; }
.waitlist input::placeholder { color: var(--faint); }
.waitlist:focus-within { border-color: rgba(255,181,71,.55); box-shadow: 0 0 0 4px rgba(255,181,71,.12), 0 20px 60px -20px rgba(0,0,0,.7); }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-msg { position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0; font-size: 14px; color: var(--muted); }
.waitlist-msg.ok { color: var(--green); }
.waitlist-msg.err { color: var(--red); }
.waitlist.done { border-color: rgba(74,222,128,.45); }

.works-with { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin-top: 54px; font-size: 14px; color: var(--muted); }
.ww-item { display: inline-flex; align-items: center; gap: 7px; }
.ww-sep { width: 1px; height: 16px; background: var(--line-2); }
.ww-item.mono { color: var(--subtle); }

/* the alley: the lamp flickers, and with it off only the eyes are left */
.alley { position: relative; margin-top: clamp(-150px, -9vw, -40px); z-index: 1; }
.alley-img { position: relative; }
.alley-img img { width: 100%; }
.alley-img .lit, .alley-img .dark { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 82%, transparent); transition: opacity .08s linear; }
.alley-img .dark { position: absolute; inset: 0; opacity: 0; }
.alley.off .lit { opacity: 0; }
.alley.off .dark { opacity: 1; }
.lamp-glow { position: absolute; left: 7.5%; top: 24%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -38%); background: radial-gradient(circle, rgba(255,190,90,.28), rgba(255,170,60,.08) 40%, transparent 68%); mix-blend-mode: screen; pointer-events: none; transition: opacity .08s; }
.alley.off .lamp-glow { opacity: 0; }
.note-alley { left: 13%; top: 36%; }
.note-alley svg { width: 90px; height: 46px; left: 58%; top: 26px; }

/* ───── product window ───── */
.stage { position: relative; display: flex; justify-content: center; padding: 76px clamp(12px, 3vw, 40px) 40px; z-index: 2; }
.note-tabs { left: max(24px, calc(50% - 560px)); top: 4px; }
.note-tabs svg { width: 46px; height: 40px; left: calc(100% + 6px); top: 6px; }
.note-browser { right: max(24px, calc(50% - 470px)); top: 4px; }
.note-browser svg { width: 46px; height: 40px; right: calc(100% + 6px); top: 6px; }
.window {
  width: min(var(--wrap), 100%); border-radius: 14px; overflow: hidden;
  background: #0c111f; border: 1px solid #222c4e;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 60px 140px -30px rgba(0,0,0,.95), 0 0 160px -30px rgba(255,181,71,.22);
  font-size: 12.5px; line-height: 1.45; user-select: none;
}
.w-titlebar { display: flex; align-items: center; height: 40px; padding: 0 10px; border-bottom: 1px solid #19213d; background: #0a0f1c; }
.w-tabs { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
.w-tab { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; color: var(--subtle); white-space: nowrap; transition: background .2s, color .2s; }
.w-tab:hover { color: var(--muted); background: #121a30; }
.w-tab.active { background: #172040; color: var(--text); box-shadow: 0 0 0 1px #26315a inset; }
.w-tab-add { color: var(--faint); padding: 0 10px; }
.w-title { margin: 0 auto; color: var(--faint); font-size: 12px; white-space: nowrap; padding: 0 16px; }
.w-ctrls { display: flex; gap: 14px; }
.w-ctrls i { width: 10px; height: 10px; border: 1.5px solid var(--faint); border-radius: 2px; }
.w-ctrls i:first-child { border-width: 0 0 1.5px; border-radius: 0; }

.w-body { display: grid; grid-template-columns: 212px 1fr; grid-template-rows: minmax(0, 1fr); height: 620px; }
.w-rail { border-right: 1px solid #19213d; background: #0a0f1c; padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; color: var(--muted); overflow: hidden; }
.r-search { display: flex; justify-content: space-between; padding: 6px 9px; margin-bottom: 6px; border-radius: 8px; background: #121a30; color: var(--faint); }
.r-search kbd { font: 10.5px var(--mono); color: var(--faint); background: none; border: 0; min-width: 0; height: auto; padding: 0; }
.r-item, .r-env, .r-proj { display: flex; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 7px; white-space: nowrap; width: 100%; }
.r-badge { margin-left: auto; font-weight: 500; font-size: 11px; color: #1a1004; background: var(--amber); border-radius: 99px; padding: 0 6px; }
.r-head { margin: 14px 9px 4px; font-size: 11px; font-weight: 500; color: var(--faint); }
.r-proj { color: var(--text); font-weight: 500; }
.r-proj em { font-size: 11px; font-weight: 400; }
.r-proj em.add { margin-left: auto; }
.r-logo { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; background: #3b82f6; color: #fff; font-size: 11px; font-weight: 600; }
.r-logo.b { background: #a855f7; }
.r-env { padding-left: 20px; color: var(--muted); transition: background .2s; }
button.r-env:hover { background: #121a30; }
.r-env.active { background: #172040; color: var(--text); }
.r-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; }
.r-dot.working { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: pulse 1.2s infinite; }
.r-dot.working.droid { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.r-dot.done { background: var(--green); }
.r-dot.stuck { background: var(--red); box-shadow: 0 0 8px var(--red); animation: pulse .6s infinite; }
.r-usage { margin-top: auto; }
.meter { display: grid; grid-template-columns: 52px 1fr 30px; align-items: center; gap: 8px; padding: 2px 9px; font-size: 11px; color: var(--subtle); }
.meter b { height: 4px; border-radius: 9px; background: #1c2542; position: relative; overflow: hidden; }
.meter b::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: var(--amber); border-radius: inherit; }
.meter b.hot::after { background: linear-gradient(90deg, var(--amber), var(--red)); }
.meter em { font-style: normal; text-align: right; }

.w-main { display: grid; grid-template-rows: minmax(0, 1fr) 170px; min-width: 0; min-height: 0; }
.w-split { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 0; }
.chat { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #19213d; }
.chat-scroll { flex: 1; min-height: 0; overflow: hidden; padding: 18px 20px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; }
.msg-user { align-self: flex-end; max-width: 85%; background: #18213c; border: 1px solid #222c4e; padding: 8px 12px; border-radius: 12px 12px 4px 12px; color: var(--text); }
.msg-note { align-self: center; font-size: 11.5px; color: var(--ink); padding: 3px 10px; border-radius: 99px; background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.25); }
.msg-agent { color: #c9cfe0; }
.msg-agent b { color: var(--text); font-weight: 600; }
.tool { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: 12px; white-space: nowrap; min-width: 0; }
.tool b { color: var(--muted); font-weight: 500; }
.tool code { background: none; padding: 0; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.tool .st { width: 12px; text-align: center; color: var(--green); flex: none; }
.tool .st.x { color: var(--red); }
.tool .res { color: var(--red); font-size: 11.5px; }
.tool .res.ok { color: var(--green); }
.tool .spin { width: 10px; height: 10px; flex: none; border: 1.5px solid var(--faint); border-top-color: var(--amber); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.worked { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: 12px; }
.chip-files { padding: 2px 8px; border-radius: 7px; border: 1px solid #263256; background: #121a30; color: var(--muted); white-space: nowrap; }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px) } }

.composer { position: relative; z-index: 1; margin: 8px 14px 14px; border: 1px solid #222c4e; border-radius: 12px; background: #0f1528; }
.composer-input { position: relative; min-height: 40px; padding: 10px 12px 4px; color: var(--text); }
.composer-input .ph { position: absolute; left: 12px; top: 10px; color: var(--faint); pointer-events: none; }
.composer-input .caret { display: inline-block; width: 1.5px; height: 14px; vertical-align: -2px; background: var(--amber); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }
.composer-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 7px; background: #161e36; color: var(--muted); font-size: 11.5px; }
.chip.muted { color: var(--faint); background: none; }
.send { margin-left: auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #222c4e; color: var(--subtle); font-weight: 600; transition: background .2s; }
.send.hot { background: var(--amber); color: #1a1004; }

.loop-strip { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin: 0 14px -9px; padding: 8px 10px 16px; border-radius: 10px 10px 0 0; border: 1px solid rgba(255,181,71,.35); border-bottom: 0; background: #1c1a1e; font-size: 11.5px; color: #ffd9a0; animation: fadeIn .3s ease both; }
.ls-btns { display: flex; gap: 6px; }
.ls-btns b { font-weight: 500; padding: 3px 9px; border-radius: 7px; background: var(--amber); color: #1a1004; font-size: 11.5px; white-space: nowrap; transition: transform .1s, filter .1s; }
.ls-btns b.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line-2); }
.ls-btns b.pressed { transform: scale(.9); filter: brightness(.8); }
.warn { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-right: 6px; }

.browser { display: flex; flex-direction: column; min-width: 0; background: #0c111f; }
.b-bar { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid #19213d; }
.b-nav { color: var(--faint); letter-spacing: 4px; }
.b-url { flex: 1; padding: 4px 10px; border-radius: 7px; background: #121a30; color: var(--muted); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.b-page {
  --pg: #f7f5f0; --ink2: #1d2433; --soft: #e4e0d6; --acc: #2563eb;
  flex: 1; margin: 10px; border-radius: 10px; padding: 16px; background: var(--pg); color: var(--ink2);
  transition: background .6s ease, color .6s ease; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.b-page.dark { --pg: #12151d; --ink2: #e8eaf0; --soft: #262b38; --acc: #ffb547; }
.b-page.gh { --pg: #0d1117; --ink2: #e6edf3; --soft: #21262d; }
.b-page.flash { animation: flash .8s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px rgba(255,181,71,.6) } }
.bp-nav { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.bp-nav span { height: 6px; width: 36px; border-radius: 4px; background: var(--soft); transition: background .6s; }
.bp-nav .bp-logo { width: 16px; height: 16px; border-radius: 5px; background: var(--acc); margin-right: auto; }
.bp-h { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.bp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--soft); font-size: 12px; transition: border-color .6s; }
.bp-line { width: 60px; height: 6px; border-radius: 4px; background: var(--soft); }
.bp-line.s { width: 34px; }
.bp-toggle { width: 30px; height: 17px; border-radius: 99px; background: var(--soft); position: relative; transition: background .4s, opacity .4s; opacity: 0; }
.bp-toggle i { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .3s; }
.b-page.has-toggle .bp-toggle { opacity: 1; }
.b-page.dark .bp-toggle { background: var(--acc); }
.b-page.dark .bp-toggle i { left: 15px; }
.bp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.bp-cards span { border-radius: 9px; background: var(--soft); transition: background .6s; min-height: 40px; }
.bp-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--soft); font-size: 12px; }
.bp-item i { width: 34px; height: 34px; border-radius: 8px; background: var(--soft); }
.bp-item span { flex: 1; }
.bp-total { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; padding-top: 6px; }
.bp-total b { transition: color .4s; }
.bp-total b.wrong { color: #dc2626; }
.bp-btn { margin-top: auto; padding: 10px; text-align: center; border-radius: 9px; background: var(--acc); color: #fff; font-weight: 600; font-size: 12.5px; }
.bp-pr { font-size: 15px; font-weight: 600; }
.bp-pr em { font-style: normal; opacity: .5; font-weight: 400; }
.bp-badge { align-self: flex-start; font-size: 11px; padding: 3px 10px; border-radius: 99px; background: #238636; color: #fff; font-weight: 600; }
.bp-check { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--soft); border-radius: 8px; font-size: 12px; }
.bp-check i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #d29922; border-top-color: transparent; animation: spin .8s linear infinite; }
.bp-check.ok i { border: 0; background: #3fb950; animation: none; }
.bp-check em { margin-left: auto; font-style: normal; opacity: .5; }

.dock { border-top: 1px solid #19213d; background: #0a0e1a; display: flex; flex-direction: column; min-height: 0; }
.dock-tabs { display: flex; gap: 2px; padding: 5px 8px; border-bottom: 1px solid #151c33; font-size: 11.5px; color: var(--faint); }
.dock-tabs span { padding: 3px 10px; border-radius: 6px; }
.dock-tabs .active { background: #161e36; color: var(--muted); }
.dock-body { flex: 1; min-height: 0; padding: 8px 14px; font: 11.5px/1.6 var(--mono); color: #b6bdd3; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.dock-body > div { white-space: pre; min-height: 1.6em; }
.dock-body .p, .dock-body .ok { color: var(--green); }
.dock-body .d { color: var(--faint); }
.dock-body .a { color: var(--amber); }
.dock-body .x { color: var(--red); }

.w-status { display: flex; align-items: center; gap: 18px; height: 26px; padding: 0 12px; border-top: 1px solid #19213d; background: #0a0f1c; font-size: 11px; color: var(--subtle); }
.w-status i { margin-right: 6px; }
.w-status .ok { color: var(--green); font-size: 9px; }
.w-status .run { color: var(--amber); font-size: 9px; }
.w-status .grow { flex: 1; }

/* tiny icons */
[class^="ic-"] { display: inline-block; width: 12px; height: 12px; flex: none; border-radius: 3px; border: 1.5px solid currentColor; opacity: .75; }
.ic-agent { border: 0; border-radius: 50%; opacity: 1; }
.ic-agent.claude { background: radial-gradient(circle, #d97757 45%, transparent 47%); }
.ic-agent.droid { background: radial-gradient(circle, var(--violet) 45%, transparent 47%); }
.ic-folder { border-radius: 2px 4px 2px 2px; height: 10px; }
.ic-runs { border-radius: 50%; border-style: dashed; }
.ic-branch { width: 6px; border-width: 0 1.5px; border-radius: 0; }
.ic-mem { border-radius: 50% 50% 3px 3px; }

/* ───── real screenshots ───── */
.real { padding: 90px clamp(16px, 4vw, 48px) 40px; }
.real-tabs { display: flex; justify-content: center; gap: 6px; margin: -30px auto 26px; flex-wrap: wrap; }
.real-tabs button { padding: 8px 14px; border-radius: 10px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); background: rgba(15,21,40,.6); transition: color .2s, border-color .2s, background .2s; }
.real-tabs button:hover { color: var(--text); }
.real-tabs button.active { color: var(--text); border-color: rgba(255,181,71,.5); background: rgba(255,181,71,.08); }
.real-frame { position: relative; max-width: var(--wrap); margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 50px 120px -40px rgba(0,0,0,.95); aspect-ratio: 16 / 9; background: #0b0f1c; }
.real-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.real-frame img.active { opacity: 1; }
.real-cap { max-width: var(--wrap); margin: 16px auto 0; text-align: center; color: var(--subtle); font-size: 14px; }

/* ───── sections ───── */
section { scroll-margin-top: 70px; }
.section-head { max-width: 780px; margin: 0 auto 64px; text-align: center; padding: 0 20px; position: relative; }
.kicker { margin: 0 0 16px; font: 500 12.5px var(--mono); color: var(--amber); letter-spacing: .1em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; background: linear-gradient(180deg, #fff 40%, #b9c1d9); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
.lede { margin: 22px 0 0; font-size: 18px; color: var(--muted); }

/* ───── one night ───── */
.night { position: relative; padding: 140px clamp(16px, 4vw, 48px) 100px; isolation: isolate; --dawn: 0; }
.night-bg { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent); background: radial-gradient(1000px 600px at 50% 0%, rgba(50,66,150,.18), transparent 70%); }
.night-bg .dawn { position: absolute; inset: 0; opacity: var(--dawn); transition: opacity 1.2s ease; background: linear-gradient(180deg, transparent 0%, rgba(255,140,80,.05) 35%, rgba(255,170,90,.13) 78%, rgba(255,200,120,.06) 100%), radial-gradient(900px 500px at 30% 85%, rgba(255,160,90,.16), transparent 70%); }
.night-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); max-width: var(--wrap); margin: 0 auto; }
.night-sticky { position: sticky; top: 15vh; align-self: start; height: min(530px, 72vh); display: flex; flex-direction: column; gap: 18px; }
.clock { display: flex; align-items: baseline; gap: 10px; font: 500 clamp(48px, 6vw, 78px)/1 var(--mono); letter-spacing: -.06em; color: var(--text); font-variant-numeric: tabular-nums; }
.clock em { font-style: normal; font-size: .34em; letter-spacing: 0; color: var(--amber); }
.panel-frame { position: relative; flex: 1; border-radius: var(--r); border: 1px solid var(--line-2); background: linear-gradient(180deg, #10172d, #0b1022); box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); overflow: hidden; }
.panel { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; gap: 9px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; font-size: 13.5px; }
.panel.active { opacity: 1; transform: none; }
.p-title { font: 500 12px var(--mono); color: var(--subtle); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.p-env, .p-br, .p-inbox { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #121a32; border: 1px solid var(--line); white-space: nowrap; }
.p-code { margin: auto 0 0; padding: 14px; border-radius: 12px; background: #080c18; border: 1px solid var(--line); font: 12.5px/1.75 var(--mono); color: #c3c9dc; white-space: pre; overflow: hidden; }
.p-code .p, .p-code .ok { color: var(--green); }
.p-code .d { color: var(--subtle); }
.p-code .a { color: var(--amber); }
.p-shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.ps-bar { padding: 7px 12px; background: #121a30; font: 11.5px var(--mono); color: var(--muted); }
.ps-page { background: #12151d; padding: 16px; display: flex; flex-direction: column; gap: 8px; color: #e8eaf0; font-size: 12.5px; }
.ps-page b { font-size: 17px; }
.ps-page span { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1px solid #262b38; border-radius: 8px; }
.ps-page .t { width: 28px; height: 16px; border-radius: 99px; background: var(--amber); position: relative; }
.ps-page .t::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.ps-page .l { width: 54px; height: 6px; border-radius: 4px; background: #262b38; }
.ps-page .l.s { width: 30px; }
.p-tool { display: flex; gap: 10px; align-items: center; font: 12.5px var(--mono); color: var(--muted); padding: 2px 0; white-space: nowrap; }
.p-tool b { font: 500 13px var(--sans); color: var(--text); }
.p-tool em { margin-left: auto; font-style: normal; color: var(--red); }
.p-loop { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,181,71,.07); border: 1px solid rgba(255,181,71,.32); color: #ffd9a0; font-size: 13px; margin-top: 6px; }
.p-loop .ls-btns b { font-size: 12.5px; padding: 5px 11px; }
.p-agent { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: #121a32; border-left: 3px solid var(--violet); color: #d2d7e7; }
.p-br em { font-style: normal; color: var(--faint); font-size: 12px; }
.p-checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: auto; }
.p-checks span { padding: 14px 6px; text-align: center; border-radius: 10px; background: rgba(74,222,128,.06); border: 1px solid rgba(74,222,128,.25); color: var(--muted); font-size: 12.5px; }
.p-checks b { display: block; color: var(--green); font-size: 20px; }
.p-inbox b { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.p-diff { margin-top: auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); font: 12px/1.7 var(--mono); background: #080c18; padding: 8px 0; }

.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-left: 30px; border-left: 1px solid var(--line); opacity: .28; transition: opacity .5s ease; }
.step::before { content: ""; position: absolute; left: -5px; top: calc(50% - 70px); width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: background .4s, box-shadow .4s; }
.step.active { opacity: 1; }
.step.active::before { background: var(--amber); box-shadow: 0 0 0 5px rgba(255,181,71,.16), 0 0 16px var(--amber); }
.step:first-child { min-height: 64vh; }
.step:last-child { min-height: 70vh; }
.step h3 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.1; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 17px; max-width: 470px; }
.step .step-time { font: 500 13px var(--mono); color: var(--amber); margin-bottom: 10px; letter-spacing: .04em; }
.sticker { width: 84px; height: 84px; border-radius: 22px; margin-bottom: 18px; border: 3px solid #f3e6c9; box-shadow: 0 12px 30px -8px rgba(0,0,0,.7); transform: rotate(-6deg) scale(.9); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.step:nth-child(even) .sticker { transform: rotate(5deg) scale(.9); }
.step.active .sticker { transform: rotate(-3deg) scale(1); }
.step-panel { display: none; }

/* ───── toolbox ───── */
.toolbox { padding: 120px clamp(16px, 4vw, 48px); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--wrap); margin: 0 auto; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: 26px;
  border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19,26,48,.92), rgba(11,16,31,.92));
  overflow: hidden; transition: border-color .3s, transform .4s cubic-bezier(.2,.8,.2,1), opacity .8s ease;
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(380px 220px at var(--mx, 50%) var(--my, -20%), rgba(255,181,71,.11), transparent 60%); opacity: 0; transition: opacity .3s; }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card.c-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 30px; }
.card.c-wide .card-text { flex: 1; }
.card.c-wide .viz { flex: 1.2; margin: 0; }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.015em; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.viz { margin: auto 0 0; border-radius: 12px; border: 1px solid var(--line); background: #090d1a; padding: 14px; font-size: 13px; }
.viz-code { font: 12.5px/1.75 var(--mono); color: #c3c9dc; white-space: pre; overflow: hidden; }
.viz-code .p, .viz-code .ok { color: var(--green); }
.viz-code .d { color: var(--faint); }
.viz-code .a { color: var(--amber); }
.viz-code .t { color: var(--blue); }
.viz-list { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.row { display: grid; grid-template-columns: 1fr auto 34px; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; }
.row:hover { background: #111831; }
.row b { font-weight: 500; white-space: nowrap; }
.row span { color: var(--subtle); font-size: 12px; white-space: nowrap; }
.row .err-t { color: var(--red); }
.row .fix { font-style: normal; font-size: 11.5px; font-weight: 600; color: #1a1004; background: var(--amber); padding: 2px 0; border-radius: 6px; text-align: center; }
.sw { width: 30px; height: 17px; border-radius: 99px; background: #222c4e; position: relative; cursor: pointer; transition: background .25s; border: 0; padding: 0; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #8d96b3; transition: left .25s, background .25s; }
.sw.on { background: var(--amber); }
.sw.on::after { left: 15px; background: #fff; }
.viz-usage { display: flex; flex-direction: column; gap: 12px; padding: 18px 10px; }
.meter.big { grid-template-columns: 76px 1fr 36px; font-size: 12.5px; }
.meter.big b { height: 6px; }
.meter.big b::after { width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1) .2s; }
.reveal.in .meter.big b::after { width: calc(var(--v) * 100%); }
.viz-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; padding: 18px; color: var(--muted); font-size: 13px; }
.viz-keys span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.viz-keys kbd:last-of-type { margin-right: 8px; }
kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; font: 500 11.5px var(--mono); color: var(--text); background: linear-gradient(180deg, #1c2546, #141b33); border: 1px solid #2c3864; border-bottom-width: 2px; border-radius: 6px; }
.dl { padding: 0 12px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.dl.add { background: rgba(74,222,128,.08); color: #b9f0c9; }
.dl.del { background: rgba(248,113,113,.08); color: #f6c1c1; }

.pill { margin-left: auto; font-size: 11.5px; padding: 2px 9px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.pill.working { color: var(--amber); border-color: rgba(255,181,71,.35); background: rgba(255,181,71,.08); }
.pill.droid { color: var(--violet); border-color: rgba(182,156,255,.35); background: rgba(182,156,255,.08); }
.br-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.br-dot.ok, .ci.ok { --c: var(--green); }
.ci { margin-left: auto; font-size: 11.5px; padding: 2px 9px; border-radius: 99px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }

/* ───── CLI ───── */
.cli { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 150px; }
.cli h2 { font-size: clamp(30px, 4vw, 48px); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: var(--muted); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.term { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #070b16; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 90px -30px rgba(255,181,71,.28); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #0c111f; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #222c4e; }
.term-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--subtle); }
.term-body { margin: 0; padding: 18px 20px; height: 400px; overflow: hidden; font: 13px/1.75 var(--mono); color: #c3c9dc; white-space: pre-wrap; }
.term-body .p, .term-body .ok { color: var(--green); }
.term-body .c { color: var(--text); }
.term-body .d { color: var(--subtle); }
.term-body .a { color: var(--amber); }
.term-body .cur { display: inline-block; width: 8px; height: 15px; vertical-align: -3px; background: var(--amber); animation: blink 1s steps(1) infinite; }

/* ───── speed ───── */
.speed { padding: 40px clamp(16px, 4vw, 48px) 150px; position: relative; }
.speed::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 460px at 50% 45%, rgba(64,86,190,.16), transparent 70%); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.stat { text-align: center; padding: 36px 20px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(15,21,40,.6); }
.stat b { font-size: clamp(58px, 8vw, 96px); font-weight: 600; letter-spacing: -.055em; line-height: 1; background: linear-gradient(180deg, #ffd99c, var(--amber) 60%, #ff9a1f); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { font-size: 26px; font-weight: 600; color: var(--amber); margin-left: 4px; }
.stat p { margin: 10px 0 0; color: var(--muted); }
.overnight { max-width: 1000px; margin: 16px auto 0; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(15,21,40,.6); }
.on-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.on-head p { margin: 0; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.on-head p span { color: var(--subtle); font: 12.5px var(--mono); }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.lg-a::before { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.lg-b::before { background: #5b6795; }
.on-plot { position: relative; height: 200px; padding-left: 44px; }
.on-chart { width: 100%; height: 100%; overflow: visible; }
.on-chart .grid line { stroke: #1a2340; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ln-b, .ln-a { fill: none; vector-effect: non-scaling-stroke; clip-path: inset(0 100% 0 0); transition: clip-path 2.4s cubic-bezier(.4,0,.2,1); }
.ln-b { stroke: #6a77a8; stroke-width: 2; }
.ln-a { stroke: var(--amber); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255,181,71,.8)); }
.ln-b-fill { fill: rgba(91,103,149,.13); opacity: 0; transition: opacity 1s ease 1.8s; }
.overnight.in .ln-b, .overnight.in .ln-a { clip-path: inset(0 0 0 0); }
.overnight.in .ln-b-fill { opacity: 1; }
.on-y { position: absolute; left: 0; top: -7px; bottom: -7px; display: flex; flex-direction: column; justify-content: space-between; font: 11px var(--mono); color: var(--faint); }
.on-axis { display: flex; justify-content: space-between; padding: 10px 0 0 44px; font: 11px var(--mono); color: var(--faint); }
.on-foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.mem-bar { display: grid; grid-template-columns: 70px 1fr 220px; align-items: center; gap: 16px; font-size: 13.5px; color: var(--muted); }
.mem-bar b { height: 10px; border-radius: 99px; background: #141b33; position: relative; overflow: hidden; }
.mem-bar b::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: inherit; background: #3b4670; transition: width 1.4s cubic-bezier(.2,.8,.2,1) .3s; }
.mem-bar b.mine::after { background: linear-gradient(90deg, #ffd08a, var(--amber)); box-shadow: 0 0 20px rgba(255,181,71,.5); }
.overnight.in .mem-bar b::after { width: calc(var(--w) * 100%); }
.mem-bar em { font-style: normal; font-variant-numeric: tabular-nums; }
.mem-bar:first-child em { color: var(--text); }
.tiny { margin: 6px 0 0; font-size: 12px; color: var(--faint); }

/* ───── memes ───── */
.memes { padding: 20px clamp(16px, 4vw, 48px) 170px; overflow: hidden; }
.meme-row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: var(--wrap); margin: 0 auto; align-items: start; }
.meme { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -25px rgba(0,0,0,.85); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.meme:nth-child(1) { transform: rotate(-2.5deg); }
.meme:nth-child(2) { transform: rotate(1.5deg) translateY(34px); }
.meme:nth-child(3) { transform: rotate(-1deg); }
.meme:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.rx { position: absolute; width: 104px; height: 104px; border-radius: 26px; border: 4px solid #f3e6c9; box-shadow: 0 18px 40px -10px rgba(0,0,0,.8); z-index: 3; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.rx:hover { transform: rotate(0) scale(1.15) !important; }
.rx-1 { left: -30px; top: 42%; transform: rotate(-12deg); }
.rx-2 { right: 31%; bottom: -70px; transform: rotate(8deg); }
.rx-3 { right: -30px; top: -40px; transform: rotate(10deg); }

/* ───── FAQ ───── */
.faq { padding: 0 clamp(16px, 4vw, 48px) 140px; }
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; position: relative; transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 24px var(--mono); color: var(--amber); transition: transform .3s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
summary:hover { color: var(--ink); }
details p { margin: 0; padding: 0 40px 24px 0; color: var(--muted); }

/* ───── join ───── */
.join { padding: 0 clamp(16px, 4vw, 48px) 60px; }
.join-card {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 30px;
  max-width: var(--wrap); margin: 0 auto; padding: 0 0 0 clamp(26px, 5vw, 70px);
  border-radius: 28px; border: 1px solid var(--line-2); overflow: hidden;
  background: radial-gradient(600px 400px at 85% 100%, rgba(34,197,94,.12), transparent 70%), radial-gradient(700px 400px at 0% 0%, rgba(255,181,71,.12), transparent 60%), #0c1226;
}
.join-copy { padding: 76px 0; }
.join-copy h2 { font-size: clamp(38px, 5.4vw, 64px); }
.join-copy .waitlist { margin-top: 32px; }
.fine { margin: 54px 0 0; font-size: 13px; color: var(--subtle); }
.join-art { width: 100%; max-height: 560px; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%); mask-image: linear-gradient(90deg, transparent, #000 25%); }

/* ───── footer ───── */
.footer { padding: 0 0 40px; background: linear-gradient(180deg, var(--bg) 0, #10151f 26%); }
.footer-art { width: 100%; max-width: 1600px; margin: 0 auto; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); font-size: 14px; }
.footer-links { display: flex; gap: 20px; color: var(--muted); margin-right: auto; }
.footer-links a:hover { color: var(--text); }


/* ───── jokes ───── */
.lightswitch { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s, transform .3s; }
.lightswitch:hover { color: var(--ink); border-color: var(--line-2); background: rgba(19,26,48,.6); transform: rotate(30deg); }
.lightswitch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-links + .lightswitch { margin-left: 6px; }
@media (max-width: 760px) { .lightswitch { margin-left: auto; } .nav .lightswitch + .btn-sm { margin-left: 0; } }

.flashbang { position: fixed; inset: 0; z-index: 200; background: #fffdf5; pointer-events: none; animation: flashbang .9s ease forwards; }
@keyframes flashbang { 0% { opacity: 0 } 8% { opacity: 1 } 30% { opacity: .95 } 100% { opacity: 0 } }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 210; display: flex; align-items: center; gap: 14px; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px 12px 12px; border-radius: 16px; background: rgba(15,21,40,.96); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.3,1.4,.5,1); }
.toast.show { transform: translate(-50%, 0); }
.toast img { width: 56px; height: 56px; border-radius: 14px; border: 3px solid #f3e6c9; flex: none; transform: rotate(-5deg); }
.toast b { display: block; font-weight: 600; margin-bottom: 2px; }
.toast span { color: var(--muted); font-size: 14px; }

.lights-out { position: fixed; inset: 0; z-index: 150; background: rgba(2,3,8,.94); opacity: 0; transition: opacity .6s ease; cursor: pointer; }
.lights-out.on { opacity: 1; }
.lights-out .pair { position: absolute; display: flex; gap: var(--g, 14px); opacity: 0; transition: opacity .5s ease; }
.lights-out .pair.on { opacity: 1; }
.lights-out .pair i { width: var(--w, 9px); height: calc(var(--w, 9px) * 1.9); border-radius: 99px; background: #ffc35a; box-shadow: 0 0 12px #ffb547, 0 0 30px rgba(255,181,71,.55); animation: eyeblink var(--b, 4s) infinite; }
@keyframes eyeblink { 0%, 92%, 100% { transform: scaleY(1) } 95% { transform: scaleY(.1) } }
.lights-out p { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; margin: 0; font: 700 34px var(--hand); color: var(--ink); }

/* footnotes */
.footnotes { list-style: none; max-width: 1000px; margin: 18px auto 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: center; font-size: 13px; color: var(--subtle); }
.stat sup, .footnotes sup { color: var(--amber); font-weight: 600; }
.stat sup { font-size: .8em; margin-left: 1px; }

/* comparison */
.versus { padding: 40px clamp(16px, 4vw, 48px) 130px; }
.vs-wrap { max-width: var(--wrap); margin: 0 auto; overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: rgba(13,19,38,.7); }
.vs { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
.vs th, .vs td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vs tr:last-child th, .vs tr:last-child td { border-bottom: 0; }
.vs thead th { font-size: 14px; font-weight: 500; color: var(--muted); background: rgba(19,26,48,.6); }
.vs thead th.us { color: var(--text); font-weight: 600; }
.vs thead th.us img { display: inline-block; vertical-align: -5px; margin-right: 8px; }
.vs tbody th { font-weight: 500; color: var(--text); width: 26%; }
.vs td { color: var(--muted); }
.vs td.us { color: var(--text); background: rgba(255,181,71,.05); }
.vs thead th.us { background: rgba(255,181,71,.09); box-shadow: inset 0 2px 0 var(--amber); }
.vs b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 6px; font-size: 12px; }
.vs b.y { color: var(--green); background: rgba(74,222,128,.12); }
.vs b.n { color: var(--red); background: rgba(248,113,113,.1); }
.vs b.m { color: var(--amber); background: rgba(255,181,71,.1); }
.vs tbody tr { transition: background .2s; }
.vs tbody tr:hover { background: rgba(19,26,48,.5); }

/* bad at */
.badat { position: relative; padding: 20px clamp(16px, 4vw, 48px) 140px; }
.bad-list { list-style: none; max-width: 860px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bad-list li { position: relative; padding: 20px 22px 20px 58px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 15px; background: rgba(13,19,38,.5); }
.bad-list li::before { content: "✗"; position: absolute; left: 20px; top: 19px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; font-size: 13px; color: var(--red); background: rgba(248,113,113,.1); }
.bad-list b { display: block; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.bad-sticker { position: absolute; width: 120px; height: 120px; right: max(20px, calc(50% - 560px)); top: 10px; border-radius: 28px; border: 4px solid #f3e6c9; transform: rotate(9deg); box-shadow: 0 18px 40px -10px rgba(0,0,0,.8); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.bad-sticker:hover { transform: rotate(-4deg) scale(1.12); }

/* confess */
.confess { margin-top: 30px; display: grid; gap: 10px; max-width: 460px; animation: fadeIn .4s ease both; }
.confess label { font: 700 23px/1.15 var(--hand); color: var(--ink); }
.confess textarea { width: 100%; resize: vertical; min-height: 84px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(13,19,38,.85); color: var(--text); font: 15px/1.5 var(--sans); outline: 0; }
.confess textarea:focus { border-color: rgba(255,181,71,.55); box-shadow: 0 0 0 4px rgba(255,181,71,.12); }
.confess textarea::placeholder { color: var(--faint); }
.confess-row { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.confess.sent label { color: var(--green); }

.legal { max-width: var(--wrap); margin: 22px auto 0; padding: 0 clamp(16px, 4vw, 48px); font-size: 11.5px; line-height: 1.6; color: var(--faint); }

@media (max-width: 760px) {
  .bad-list { grid-template-columns: 1fr; }
  .bad-sticker { width: 80px; height: 80px; top: -20px; }
}


/* ───── the raccoon, everywhere ───── */
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: 10px; background: var(--amber); color: #1a1004; font-weight: 600; transition: top .2s; }
.skip:focus { top: 14px; }
[translate="no"] { }

.hero-pet { position: relative; margin-bottom: 18px; opacity: 0; animation: rise .9s .05s cubic-bezier(.2,.8,.2,1) forwards; }
.raccoon-host { display: block; width: 150px; height: 132px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 12px 44px rgba(255,181,71,.38)); }
.raccoon-host svg, .composer-pet svg, .night-pet svg, #pet-raccoon svg { overflow: visible; }
.bubble {
  position: absolute; z-index: 5; margin: 0; padding: 8px 14px 9px; border-radius: 16px;
  background: #f6ead0; color: #2a1d10; font: 700 23px/1.05 var(--hand); white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.8); pointer-events: none;
  opacity: 0; transform: translateY(6px) scale(.92); transform-origin: 0 100%; transition: opacity .2s ease, transform .3s cubic-bezier(.3,1.5,.5,1);
}
.bubble.show { opacity: 1; transform: none; }
.bubble::after { content: ""; position: absolute; left: 14px; bottom: -7px; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
#hero-bubble { left: calc(100% - 14px); top: -14px; transform-origin: 0 100%; }

.composer-pet { position: absolute; right: 12px; top: -43px; width: 60px; height: 52px; pointer-events: none; }

.clock-row { display: flex; align-items: center; gap: 16px; }
.night-pet { width: 76px; height: 66px; margin-left: auto; flex: none; }
.night-say { margin: 0; font: 700 24px var(--hand); color: var(--ink); transform: rotate(-4deg); min-width: 120px; }

.sticky-note { position: absolute; margin: 0; padding: 14px 16px 16px; width: 180px; background: #ffe58a; color: #3a2a07; font: 700 21px/1.1 var(--hand); text-align: left; box-shadow: 0 16px 30px -12px rgba(0,0,0,.8); transform: rotate(4deg); }
.sticky-note::before { content: ""; position: absolute; left: 50%; top: -10px; width: 64px; height: 20px; margin-left: -32px; background: rgba(255,255,255,.35); transform: rotate(-3deg); }
.sn-1 { right: -190px; top: 10px; }
.sn-2 { left: -200px; top: 40px; transform: rotate(-5deg); background: #ffd2a0; }

.meme { position: relative; }
.steal { position: absolute; right: 12px; top: 12px; z-index: 2; padding: 6px 12px; border-radius: 10px; background: #1a1004; color: var(--amber); font: 700 20px var(--hand); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.meme:hover .steal, .steal:focus-visible { opacity: 1; transform: none; }

.pet { position: fixed; right: 18px; bottom: 16px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pet-btn { width: 74px; height: 66px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 8px 20px rgba(0,0,0,.7)); transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.pet-btn:hover { transform: translateY(-3px) rotate(-4deg); }
.pet.peek .pet-btn { transform: translateY(46px); }
.pet.peek .pet-btn:hover { transform: translateY(20px); }
.pet-bubble { position: absolute; right: 70px; bottom: 54px; transform-origin: 100% 100%; }
.pet-bubble::after { left: auto; right: 14px; }
.pet-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 228px; padding: 12px; border-radius: 16px; background: rgba(15,21,40,.97); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0,0,0,.9); animation: fadeIn .25s ease both; }
.pet-menu-title { grid-column: 1 / -1; margin: 0 0 4px 4px; font: 700 22px var(--hand); color: var(--ink); }
.pet-menu button { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: #121a32; color: var(--text); font-size: 13.5px; text-align: center; transition: border-color .2s, background .2s; }
.pet-menu button:hover { border-color: rgba(255,181,71,.5); background: rgba(255,181,71,.08); }
.pet-menu button.on { border-color: var(--amber); color: var(--ink); }
.pet-menu .pet-hide { grid-column: 1 / -1; color: var(--subtle); }
.pet-return { position: fixed; right: 18px; bottom: 18px; z-index: 120; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(15,21,40,.9); color: var(--muted); font: 700 19px var(--hand); }

@media (max-width: 1300px) { .sticky-note { display: none; } }
@media (max-width: 760px) {
  .raccoon-host { width: 112px; height: 100px; }
  #hero-bubble { left: auto; right: calc(100% - 20px); transform-origin: 100% 100%; }
  #hero-bubble::after { left: auto; right: 14px; }
  .pet { right: 10px; bottom: 8px; }
  .pet-btn { width: 56px; height: 50px; }
  .composer-pet { display: none; }
  .night-pet { width: 60px; height: 52px; }
}


/* ───── more jokes ───── */
.hero-rot { margin: 18px 0 0; font: 700 22px var(--hand); color: var(--subtle); opacity: 0; animation: rise .9s .45s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-rot span { color: var(--ink); display: inline-block; transition: opacity .25s, transform .25s; }
.hero-rot span.out { opacity: 0; transform: translateY(-6px); }
.works-with { margin-top: 30px; }

.footer-toys { margin-top: 18px; gap: 10px; }
.status-pill, .ach-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(15,21,40,.7); color: var(--muted); font-size: 13px; transition: border-color .2s, color .2s; }
.status-pill:hover, .ach-pill:hover { color: var(--text); border-color: rgba(255,181,71,.45); }
.status-pill i, .ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; display: inline-block; }
.ach-pill svg { width: 15px; height: 15px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ach-pill b { color: var(--ink); font-weight: 600; }

.modal { width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px); padding: 28px; border-radius: 22px; border: 1px solid var(--line-2); background: #0d1326; color: var(--text); box-shadow: 0 50px 120px -30px rgba(0,0,0,.95); overflow: auto; }
.modal::backdrop { background: rgba(3,5,12,.7); backdrop-filter: blur(4px); }
.modal[open] { animation: fadeIn .3s ease both; }
.modal h3 { margin: 0 0 18px; font-size: 26px; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.modal .kicker { margin-bottom: 8px; }
.modal-x { position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); font-size: 22px; text-align: center; }
.modal-x:hover { background: #151d36; color: var(--text); }
.uptime { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 34px; }
.uptime i { border-radius: 2px; background: var(--green); opacity: .85; }
.uptime i.bad { background: var(--amber); }
.uptime-legend { display: flex; justify-content: space-between; margin: 8px 0 22px; font: 11.5px var(--mono); color: var(--faint); }
.incidents { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.incidents li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #0a0f1f; }
.incidents b { font-weight: 600; }
.incidents p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.tag { float: right; font-size: 11.5px; padding: 2px 9px; border-radius: 99px; border: 1px solid; }
.tag.res { color: var(--green); border-color: rgba(74,222,128,.35); }
.tag.mit { color: var(--blue); border-color: rgba(122,162,255,.35); }
.tag.mon { color: var(--amber); border-color: rgba(255,181,71,.35); }
.ach-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ach-list li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #0a0f1f; font-size: 13.5px; }
.ach-list li img { width: 44px; height: 44px; border-radius: 12px; border: 2px solid #f3e6c9; flex: none; }
.ach-list li b { display: block; font-weight: 600; font-size: 14px; }
.ach-list li span { color: var(--subtle); }
.ach-list li.locked img { filter: grayscale(1) brightness(.35); border-color: #3a4366; }
.ach-list li.locked b { color: var(--faint); }
.toast .ach { color: var(--amber); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 2px; }

.cookie { position: fixed; left: 18px; bottom: 18px; z-index: 125; display: flex; align-items: center; gap: 14px; width: min(560px, calc(100vw - 120px)); padding: 14px 16px; border-radius: 18px; background: rgba(15,21,40,.97); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); animation: fadeIn .4s ease both; }
.cookie img { width: 54px; height: 54px; border-radius: 14px; border: 3px solid #f3e6c9; transform: rotate(-5deg); flex: none; }
.cookie b { display: block; margin-bottom: 2px; }
.cookie span { color: var(--muted); font-size: 13.5px; }
.cookie-btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.cookie-want { font-size: 12px; color: var(--subtle); text-decoration: underline; text-underline-offset: 3px; text-align: center; }
.cookie-want:hover { color: var(--text); }

@media (max-width: 760px) {
  .ach-list { grid-template-columns: 1fr; }
  .cookie { left: 10px; right: 10px; width: auto; bottom: 70px; flex-wrap: wrap; }
  .cookie-btns { flex-direction: row; align-items: center; width: 100%; justify-content: flex-end; }
}
@media print {
  body > *:not(.print-joke) { display: none !important; }
  .print-joke { display: block !important; }
}
.print-joke { display: none; padding: 60px; font: 700 40px Caveat, cursive; color: #000; }

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

/* ───── responsive ───── */
@media (max-width: 1100px) {
  .w-body { grid-template-columns: 1fr; }
  .w-rail { display: none; }
  .note-tabs, .note-browser { display: none; }
}
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card.c-wide { grid-column: span 2; }
  .cli { grid-template-columns: 1fr; gap: 40px; }
  .night-grid { grid-template-columns: 1fr; }
  .night-sticky { display: none; }
  .step { min-height: 0 !important; padding: 0 0 70px 26px; opacity: 1; }
  .step-panel { display: block; position: relative; margin-top: 22px; height: 340px; border-radius: var(--r); border: 1px solid var(--line-2); background: linear-gradient(180deg, #10172d, #0b1022); overflow: hidden; }
  .step-panel .panel { opacity: 1; transform: none; }
  .step::before { top: 8px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hero { padding-top: 100px; }
  .waitlist { flex-direction: column; }
  .waitlist input[type=email] { padding: 12px; }
  .alley { margin-top: 0; }
  .alley-img { width: 190%; margin-left: -45%; }
  .ww-sep { display: none; }
  .note-alley { font-size: 18px; top: 22%; left: 26%; }
  .note-alley svg { width: 50px; height: 34px; left: 50%; top: 16px; }
  .w-split { grid-template-columns: 1fr; }
  .browser { display: none; }
  .w-body { height: 500px; }
  .w-title { display: none; }
  .w-tab { padding: 6px 9px; }
  .real-frame { aspect-ratio: 4 / 3; }
  .bento { grid-template-columns: 1fr; }
  .card.c-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .viz-keys { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .mem-bar { grid-template-columns: 1fr; gap: 6px; }
  .mem-bar span:empty { display: none; }
  .meme-row { grid-template-columns: 1fr; max-width: 420px; }
  .meme:nth-child(n) { transform: none; }
  .rx-1 { left: -14px; top: 30%; width: 76px; height: 76px; }
  .rx-2 { display: none; }
  .rx-3 { right: -10px; top: -30px; width: 76px; height: 76px; }
  .join-card { grid-template-columns: 1fr; padding: 0 22px; }
  .join-copy { padding: 48px 0 0; }
  .join-art { max-height: 380px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
  .footer-links { display: none; }
  .p-code { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }
  .reveal, .note, .hero-title .line, .hero-sub, .hero-copy .waitlist, .hero-copy .works-with { opacity: 1 !important; transform: none !important; filter: none !important; }
  .ln-a, .ln-b { clip-path: none; }
}
