/* =====================================================================
   TryAutopilot — design system
   Midnight navy / abyss, blue light, gold accent, serif display, dot-reveal headings.
   The page switches between light and dark "zones" as you scroll.
   ===================================================================== */
:root {
  color-scheme: dark;
  /* "light" zone = midnight navy, "dark" zone = abyss. Both dark, both blue. */
  --paper: #0a1022; --ink: #eef2fb;
  --red: #ec8a7c; --orange: #6f9bff; --yellow: #d8b56c; --tan: #9fb3d9; --green: #79c6a0; --blue: #8fb0ff; --purple: #a493ff; --pink: #d39ac4; --lime: #9fd8ff;
  --gold: #d8b56c;
  --ink-muted: color-mix(in oklab, var(--ink), var(--paper) 36%);
  --ink-subtle: color-mix(in oklab, var(--ink), var(--paper) 45%);
  --line: color-mix(in oklab, var(--ink), transparent 89%);
  --line-strong: color-mix(in oklab, var(--ink), transparent 80%);
  --raised: color-mix(in oklab, var(--paper), #6f9bff 8%);
  --sunk: color-mix(in oklab, var(--ink), transparent 94%);
  --card: linear-gradient(180deg, #17234a, #0d1631);
  --card-line: rgb(150 180 255 / .2);
  --max: 67.5rem; --wide: 87.5rem; --gutter: clamp(.75rem, 5vw - .5rem, 2.5rem);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Newsreader", Georgia, serif;
  --t-xs: clamp(.75rem, .728rem + .094vw, .8125rem);
  --t-sm: clamp(.875rem, .853rem + .094vw, .9375rem);
  --t-base: clamp(1rem, .956rem + .188vw, 1.125rem);
  --t-lg: clamp(1.125rem, 1.081rem + .188vw, 1.25rem);
  --t-xl: clamp(1.25rem, 1.162rem + .376vw, 1.5rem);
  --t-3xl: clamp(1.75rem, 1.41rem + 1.3vw, 2.6rem);
  --t-4xl: clamp(2.3rem, 1.7rem + 2.4vw, 3.9rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dark: #060a16; --dark-2: #0f1830; --dark-3: #17223f;
}
:root[data-theme="dark"] {
  --paper: #04060d; --ink: #f4f6fc;
  --raised: color-mix(in oklab, var(--paper), #6f9bff 7%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  background-image: radial-gradient(110% 55% at 50% -8%, rgb(70 110 240 / .16), transparent 62%);
  background-attachment: fixed;
  transition: background-color .5s ease, color .5s ease;
}
::selection { background: #6f9bff; color: #050914; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-muted); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: calc(var(--wide) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: var(--t-4xl); line-height: 1.06; letter-spacing: -.02em; }
h2 { font-size: var(--t-3xl); line-height: 1.14; letter-spacing: -.015em; }
h3, h4 { font-weight: 500; }
p { text-wrap: pretty; }
.icon { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 12px; height: 12px; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .72rem 1rem; border-radius: 999px; font-size: var(--t-sm); line-height: 1.25; font-weight: 500; white-space: nowrap;
  background: var(--ink); color: var(--paper);
  transition: opacity .15s, transform .15s, background-color .5s, color .5s, box-shadow .2s;
}
.btn:hover { opacity: .86; }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn.lg { padding: .82rem 1.3rem; }
.btn.sm { padding: .42rem .8rem; font-size: var(--t-xs); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover { opacity: 1; background: var(--sunk); }
.btn.quiet { background: transparent; color: var(--ink-muted); padding-left: .85rem; padding-right: .85rem; }
.btn.quiet:hover { color: var(--ink); opacity: 1; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--paper); border-right-color: transparent; animation: sp .8s linear infinite; }
.btn.ghost.is-loading::after { border-color: var(--ink); border-right-color: transparent; }
.ulink { font-size: var(--t-sm); font-weight: 500; color: var(--ink-muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: color .15s; }
.ulink:hover { color: var(--ink); }
.linkbtn { font-size: var(--t-xs); color: var(--ink-muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.linkbtn:hover { color: var(--ink); }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- dot-reveal headings ---------- */
.dr .w { white-space: nowrap; display: inline-block; }
.dr .c { position: relative; display: inline-block; }
.dr .c .l { opacity: .22; transition: opacity .35s ease; }
.dr .c::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 22%; bottom: 12%; opacity: 0;
  background: radial-gradient(circle, var(--gold) 0 1.5px, transparent 1.9px) 0 0 / 5px 5px;
}
.dr.go .c::before { animation: dots .5s var(--ease) both; animation-delay: var(--d); }
.dr.go .c .l { opacity: 1; transition-delay: calc(var(--d) + .12s); }
@keyframes dots { 0% { opacity: 0; transform: scale(.7); } 30% { opacity: .9; transform: none; } 100% { opacity: 0; } }

/* ---------- header ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; height: 5.5rem; display: flex; align-items: center; pointer-events: none; animation: drop .25s ease-out; }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } }
.nav .container-wide { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.glass {
  /* frosted glass, macOS style: light tint, heavy blur, bright top edge */
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .035)), color-mix(in oklab, var(--paper), transparent 55%);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 0 0 1px rgb(255 255 255 / .08), 0 10px 30px -14px rgb(0 0 0 / .6);
  border-radius: .8rem; pointer-events: auto; transition: background-color .5s;
}
.logo { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.05rem; font-weight: 500; font-size: 1rem; }
.logo img { width: 26px; height: 26px; }
.logo .name { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 9rem; transition: opacity .3s, max-width .3s; }
.nav.scrolled .logo .name { opacity: 0; max-width: 0; }
.nav.scrolled .logo { gap: 0; }
.navgrp { display: flex; align-items: center; gap: .15rem; padding: .25rem; }
.navgrp a.l { padding: .55rem .85rem; font-size: var(--t-sm); color: var(--ink-muted); border-radius: 999px; transition: color .15s; }
.navgrp a.l:hover { color: var(--ink); }
.navgrp .sep { width: 1px; height: 1rem; background: var(--line-strong); margin: 0 .35rem; }
.navgrp .btn { padding: .58rem 1rem; }
.navgrp [data-wallet] { background: transparent; color: var(--ink-muted); box-shadow: none; padding: .55rem .85rem; }
.navgrp [data-wallet]:hover { color: var(--ink); opacity: 1; }
.wallet-btn .w-dot { width: 7px; height: 7px; border-radius: 9px; background: var(--green); }
.wallet-btn .w-addr { font-family: var(--mono); font-size: .8rem; }
.wallet-wrap { position: relative; }
.wallet-menu {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 70; min-width: 15rem; padding: .35rem;
  border-radius: .55rem; background: var(--raised); box-shadow: 0 0 0 1px var(--line-strong), 0 20px 50px -20px rgb(0 0 0 / .45);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .18s, transform .18s var(--ease);
}
.wallet-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.wm-head { padding: .55rem .65rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.wm-head small { display: block; font-size: var(--t-xs); color: var(--ink-muted); }
.wm-head span { font-family: var(--mono); font-size: .72rem; word-break: break-all; }
.wallet-menu button, .wallet-menu a { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .65rem; border-radius: .35rem; font-size: var(--t-sm); color: var(--ink-muted); text-align: left; }
.wallet-menu button:hover, .wallet-menu a:hover { background: var(--sunk); color: var(--ink); }

/* ---------- code / CA pill ---------- */
.ca {
  display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; padding: .3rem .3rem .3rem .85rem; border-radius: 999px;
  background: color-mix(in oklab, var(--paper), transparent 25%); box-shadow: inset 0 0 0 1px var(--line-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: var(--t-xs); cursor: pointer; transition: box-shadow .2s;
}
.ca:hover { box-shadow: inset 0 0 0 1px var(--ink-subtle); }
.ca .k { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.ca code { font-family: var(--mono); color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ca .cp { flex: none; display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .65rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; transition: background-color .3s; }
.ca .cp svg { width: 11px; height: 11px; }
.ca.done .cp { background: var(--green); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 9.5rem; overflow: hidden; }
.swirl { position: absolute; left: -10%; right: -10%; top: 32rem; height: 34rem; filter: blur(60px); opacity: .55; pointer-events: none; }
.swirl i { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.swirl i:nth-child(1) { left: 0; top: 20%; width: 40%; height: 55%; background: #1c3a9e; animation-duration: 20s; }
.swirl i:nth-child(2) { left: 25%; top: 30%; width: 35%; height: 50%; background: #3b5fd8; }
.swirl i:nth-child(3) { left: 55%; top: 15%; width: 40%; height: 60%; background: #3a2c96; animation-duration: 24s; }
.swirl i:nth-child(4) { left: 70%; top: 35%; width: 30%; height: 45%; background: #1d6fc4; animation-duration: 16s; }
@keyframes drift { to { transform: translateX(6%) translateY(-6%) scale(1.08); } }
.dotfield { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(color-mix(in oklab, var(--ink), transparent 92%) 1px, transparent 1.3px); background-size: 12px 12px; mask-image: linear-gradient(transparent 30%, #000 55%, transparent 95%); -webkit-mask-image: linear-gradient(transparent 30%, #000 55%, transparent 95%); }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy > p { max-width: 31rem; color: var(--ink-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.stage { position: relative; margin-top: 4.5rem; padding-bottom: 5rem; }

/* ---------- always-dark product surfaces ---------- */
.app, .panel, .float, .studio {
  --paper: #0b1328; --ink: #eef2fb; --line: rgb(170 195 255 / .09); --line-strong: rgb(170 195 255 / .17); --sunk: rgb(170 195 255 / .06);
  --ink-muted: rgb(238 242 251 / .62); --ink-subtle: rgb(238 242 251 / .56);
}
.app {
  position: relative; color: var(--ink); background: var(--dark-2); border-radius: .6rem; overflow: hidden; text-align: left;
  box-shadow: 0 0 0 1px rgb(150 180 255 / .12), 0 50px 100px -30px rgb(0 0 0 / .85);
  font-size: .8rem; line-height: 1.45; display: grid; grid-template-columns: 3rem 1fr 7rem; height: 36rem;
}
.rail-ic { border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: .95rem; padding-top: 1rem; color: var(--ink-muted); }
.rail-ic img { width: 18px; height: 18px; border-radius: 5px; margin-bottom: .2rem; }
.rail-ic .on { color: var(--ink); }
.app-body { padding: 0 1.5rem; overflow: hidden; position: relative; }
.toolbar { display: flex; align-items: center; gap: .6rem; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
.toolbar > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chipset { margin-left: auto; display: flex; gap: .4rem; align-items: center; padding: .25rem .3rem .25rem .6rem; border-radius: .4rem; box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.chipset .dot { width: 6px; height: 6px; border-radius: 9px; background: var(--green); }
.chipset .apply { background: var(--ink); color: var(--dark); border-radius: 999px; padding: .15rem .6rem; font-weight: 500; }
.app h4, .app .h4 { font-weight: 500; font-size: .92rem; margin: 1.3rem 0 .4rem; }
.app p { color: var(--ink-muted); }
.evbox { border-radius: .45rem; box-shadow: inset 0 0 0 1px var(--line); margin-top: .6rem; }
.evt { display: grid; grid-template-columns: 3rem 8rem 1fr; gap: .5rem; padding: .55rem .6rem; border-top: 1px solid var(--line); }
.evt:first-child { border-top: 0; }
.evt.hd { color: var(--ink-muted); }
.kit { display: grid; grid-template-columns: repeat(3, 4.6rem) 13.8rem; gap: .5rem; margin-top: .7rem; height: 4.6rem; }
.kit > div { border-radius: .4rem; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.toc { border-left: 1px solid var(--line); padding: 3.8rem .8rem 0; display: flex; flex-direction: column; gap: .55rem; color: var(--ink-muted); }
.toc .on { color: var(--ink); }
.float {
  position: absolute; right: -2.2rem; top: 2.5rem; width: 24rem; height: 32rem; z-index: 2;
  background: #0f1832; border-radius: .6rem; color: var(--ink); font-size: .77rem;
  box-shadow: 0 0 0 1px rgb(238 242 251 / .1), 0 30px 60px -20px rgb(0 0 0 / .6); display: flex; flex-direction: column;
}
.float .fh { display: flex; gap: .5rem; align-items: center; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.float .fh .x { margin-left: auto; color: var(--ink-subtle); letter-spacing: .4rem; }
.float .fb { flex: 1; padding: .9rem; display: flex; flex-direction: column; gap: .7rem; overflow: hidden; }
.bubble { align-self: flex-end; max-width: 82%; padding: .45rem .7rem; border-radius: .5rem; box-shadow: inset 0 0 0 1px var(--line-strong); }
.fsteps { display: flex; flex-direction: column; gap: .45rem; color: var(--ink-muted); }
.fsteps div { display: flex; gap: .45rem; align-items: center; opacity: 0; transform: translateY(4px); transition: all .4s; }
.fsteps div.show { opacity: 1; transform: none; }
.fsteps svg { width: 11px; height: 11px; color: var(--green); }
.answer { opacity: 0; transition: opacity .5s; }
.answer.show { opacity: 1; }
.answer .iss { margin-top: .55rem; padding: .55rem .65rem; border-radius: .45rem; box-shadow: inset 0 0 0 1px var(--line-strong); display: flex; flex-direction: column; gap: .2rem; }
.float .fi { margin: .7rem; padding: .6rem .7rem; border-radius: .45rem; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-subtle); display: flex; justify-content: space-between; }
.trusted { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; padding: 1rem 0 6rem; }
.trusted p { font-size: var(--t-sm); color: var(--ink-muted); }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 3.25rem; }
.logo-row span { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink-muted); }
.logo-row span:nth-child(3n) { font-family: var(--serif); font-weight: 500; }
.logo-row span:nth-child(4n) { font-family: var(--mono); font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }

/* ---------- feature rows (dark zone) ---------- */
.statement { padding: 9rem 0 5rem; }
.statement h2 { max-width: 42rem; }
.feat { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; align-items: center; margin-bottom: 6rem; }
.feat .copy { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: .6rem; padding-right: 1rem; }
.feat .side { grid-column: 6 / span 7; }
.feat.rev .copy { grid-column: 9 / span 4; grid-row: 1; }
.feat.rev .side { grid-column: 1 / span 7; grid-row: 1; }
.feat h3 { font-size: var(--t-xl); line-height: 1.35; text-wrap: balance; }
.feat p { color: var(--ink-muted); }
.feat p b { color: var(--ink); }
.lab { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .04em; text-transform: uppercase; color: var(--blue); margin-bottom: .75rem; display: flex; gap: .6rem; }
.lab .n { opacity: .6; }
.frame {
  position: relative; border-radius: .5rem; padding: 2rem; overflow: hidden;
  background: radial-gradient(60% 80% at 90% 60%, #3f63e0, transparent 70%), radial-gradient(70% 70% at 10% 10%, #1b2b66, transparent 70%), linear-gradient(135deg, #0d1735, #2a3f9a);
  box-shadow: inset 0 0 0 1px rgb(150 180 255 / .14);
}
.frame.v2 { background: radial-gradient(60% 80% at 10% 30%, #5446c9, transparent 70%), radial-gradient(70% 70% at 90% 90%, #13306b, transparent 70%), linear-gradient(225deg, #0b1330, #33287e); }
.frame.v3 { background: radial-gradient(60% 80% at 80% 20%, #2f8be0, transparent 70%), radial-gradient(70% 70% at 10% 90%, #1c1f5c, transparent 70%), linear-gradient(160deg, #0d1838, #1f4fa0); }
.panel { background: var(--dark-2); color: var(--ink); border-radius: .45rem; overflow: hidden; font-size: .8rem; box-shadow: 0 0 0 1px rgb(170 195 255 / 0.22), 0 20px 40px -20px rgb(0 0 0 / .6); }
.ph { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); font-weight: 500; }
.ph .muted { font-weight: 400; }
.pfoot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem .9rem; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: .74rem; }
.pfoot .btn { padding: .38rem .8rem; font-size: .74rem; }
.status { display: flex; gap: .45rem; align-items: center; padding: .6rem .9rem; border-top: 1px solid var(--line); font-size: .72rem; color: var(--ink-muted); }
.status i { width: 6px; height: 6px; border-radius: 9px; background: var(--lime); flex: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* create panel */
.prompt { margin: .9rem; padding: .75rem .85rem; border-radius: .45rem; box-shadow: inset 0 0 0 1px var(--line-strong); min-height: 3.6rem; font-size: .85rem; }
.prompt .typed::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: caret 1s steps(2) infinite; }
.prompt.done .typed::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }
.exrow { display: flex; gap: .35rem; padding: 0 .9rem; flex-wrap: wrap; }
.ex { padding: .25rem .6rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: .72rem; color: var(--ink-muted); transition: color .15s, box-shadow .15s; }
.ex:hover, .ex[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tbl { width: 100%; border-collapse: collapse; margin-top: .6rem; }
.tbl th { font-weight: 400; text-align: left; color: var(--ink-muted); padding: .55rem .9rem; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.tbl td { padding: .62rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; color: var(--ink-muted); font-size: .7rem; }
.tbl tbody tr { transition: opacity .5s, transform .5s, filter .5s; }
.tbl tbody tr.pending { opacity: .25; filter: blur(1.5px); }
.src { display: flex; align-items: center; gap: .4rem; color: var(--ink-muted); white-space: nowrap; }
.src i { width: .8rem; height: .8rem; border-radius: .2rem; display: inline-block; }
.tick { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.tick span { font-family: var(--mono); font-size: .7rem; padding: .08rem .4rem; border-radius: .25rem; box-shadow: inset 0 0 0 1px var(--line-strong); }
.tick span:first-child { background: var(--ink); color: var(--dark); box-shadow: none; }

/* brand panel */
.assets { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 5.4rem; gap: .5rem; padding: .9rem; }
.asset { position: relative; border-radius: .4rem; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s, transform .3s var(--ease); }
.asset:hover { transform: translateY(-2px); }
.asset.sel { box-shadow: 0 0 0 1.5px var(--orange); }
.asset.big { grid-column: span 2; grid-row: span 2; }
.asset.wide { grid-column: span 2; }
.asset figcaption { position: absolute; left: .4rem; top: .4rem; padding: .12rem .45rem; border-radius: .25rem; background: rgb(4 8 20 / .75); font-size: .72rem; color: rgb(238 242 251 / .85); }
.art { width: 100%; height: 100%; display: block; }
.chips2 { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .9rem .9rem; }
.chips2 span { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .5rem; border-radius: .3rem; box-shadow: inset 0 0 0 1px var(--line); font-size: .74rem; color: var(--ink-muted); }
.chips2 i { width: .7rem; height: .7rem; border-radius: .2rem; }

/* website panel */
.site { display: grid; grid-template-columns: 11rem 1fr; }
.ctrls { padding: .9rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: .85rem; }
.ctrls .lbl { font-size: .7rem; color: var(--ink-muted); margin-bottom: .35rem; display: block; }
.seg { display: flex; padding: .18rem; gap: .15rem; border-radius: .4rem; box-shadow: inset 0 0 0 1px var(--line-strong); }
.seg button { flex: 1; padding: .25rem .4rem; border-radius: .28rem; font-size: .72rem; color: var(--ink-muted); }
.seg button[aria-pressed="true"] { background: var(--sunk); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.trow { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: var(--ink-muted); padding: .15rem 0; }
.switch { position: relative; width: 26px; height: 15px; border-radius: 99px; background: rgb(238 242 251 / .16); transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 99px; background: #eef2fb; transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"]::after { transform: translateX(11px); }
.canvas { padding: .9rem; background-image: radial-gradient(rgb(238 242 251 / .06) 1px, transparent 1.3px); background-size: 10px 10px; }
.browser { border-radius: .4rem; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px -20px #000; }
.bbar { height: 1.5rem; display: flex; align-items: center; justify-content: center; background: #141e38; font-family: var(--mono); font-size: .6rem; color: var(--ink-muted); }
.tsite { --t-bg: #0d1530; --t-fg: #eef2fb; --t-mut: rgb(238 242 251 / .6); --t-line: rgb(238 242 251 / .1); background: var(--t-bg); color: var(--t-fg); font-size: .66rem; transition: background .4s, color .4s; }
.tsite.light { --t-bg: #eef2fb; --t-fg: #0a1022; --t-mut: rgb(10 16 34 / .6); --t-line: rgb(10 16 34 / .1); }
.ts-nav { display: flex; justify-content: space-between; align-items: center; padding: .5rem .7rem; border-bottom: 1px solid var(--t-line); }
.ts-nav b { display: flex; align-items: center; gap: .3rem; font-weight: 600; }
.ts-nav b svg { width: 13px; height: 13px; border-radius: 3px; }
.ts-nav span { color: var(--t-mut); }
.ts-hero { display: grid; gap: .45rem; padding: 1rem .8rem; text-align: center; justify-items: center; }
.tsite.split .ts-hero { grid-template-columns: 1fr 5rem; text-align: left; justify-items: start; align-items: center; }
.tsite.split .ts-art { grid-column: 2; grid-row: 1 / span 3; }
.ts-art { width: 4.2rem; height: 4.2rem; border-radius: 99px; overflow: hidden; }
.ts-t { font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
.ts-hero p { color: var(--t-mut); max-width: 22ch; }
.ts-cta { display: flex; gap: .3rem; }
.ts-cta span { padding: .18rem .5rem; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--t-line); }
.ts-cta span:first-child { background: var(--t-fg); color: var(--t-bg); box-shadow: none; }
.ts-sec { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .8rem; border-top: 1px solid var(--t-line); color: var(--t-mut); }
.ts-sec b { color: var(--t-fg); font-weight: 500; }
.ts-sec.off { display: none; }

/* launch panel */
.code { font-family: var(--mono); font-size: .72rem; border-radius: .35rem; background: rgb(238 242 251 / .04); overflow: hidden; margin: .6rem .9rem; }
.code div { padding: .24rem .7rem; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.code .add { background: rgb(111 155 255 / .14); color: #b4c9ff; }
.ci { margin: .6rem .9rem; border-radius: .4rem; box-shadow: inset 0 0 0 1px var(--line); }
.ci .row { display: flex; justify-content: space-between; padding: .45rem .7rem; border-top: 1px solid var(--line); font-size: .74rem; }
.ci .row:first-child { border-top: 0; }
.ci .st { display: flex; gap: .35rem; align-items: center; color: var(--ink-muted); }
.spin { width: .65rem; height: .65rem; border-radius: 9px; border: 1.5px solid var(--line-strong); border-top-color: var(--yellow); animation: sp .9s linear infinite; }
.okd { display: none; width: .65rem; height: .65rem; border-radius: 9px; background: var(--green); }
.ci .row.wait .spin { animation: none; border-top-color: var(--line-strong); }
.ci .row.done .spin { display: none; }
.ci .row.done .okd { display: inline-block; }
.ci .row.done .st { color: var(--green); }

.cta-mid { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; padding: 4rem 0 7rem; text-align: center; }

/* statement card with dot matrix */
.tcard { display: grid; grid-template-columns: 1fr 17rem; background: var(--card); color: #eef2fb; border-radius: .5rem; overflow: hidden; box-shadow: 0 0 0 1px rgb(170 195 255 / 0.14), 0 20px 50px -30px rgb(0 0 0 / .4); }
.tcard .q { padding: 2.25rem 2.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; font-size: var(--t-xl); line-height: 1.35; letter-spacing: -.005em; }
.who { display: flex; align-items: center; gap: .8rem; font-size: var(--t-sm); letter-spacing: 0; }
.who .av { width: 2.6rem; height: 2.6rem; border-radius: 99px; display: grid; place-items: center; background: #141e38; box-shadow: inset 0 0 0 1px var(--card-line); }
.who .av img { width: 22px; height: 22px; border-radius: 6px; }
.who small { display: block; color: rgb(234 240 252 / .58); font-size: var(--t-xs); }
.tcard .m { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.tcard .m.g { background: rgb(111 155 255 / .08); color: #a9c2ff; }
.tcard .m.o { background: rgb(216 181 108 / .08); color: #e2c48a; }
.tcard .big { font-size: 3rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tcard .m p { font-size: .82rem; line-height: 1.35; max-width: 12rem; }
.matrix { margin-top: auto; display: flex; flex-direction: column; gap: .35rem; font-size: .74rem; }
.mgrid { display: grid; gap: 2px; }
.mgrid i { width: 4px; height: 4px; border-radius: 9px; background: currentColor; opacity: .15; transition: opacity .4s; }
.mgrid i.on { opacity: .9; }
.matrix .ml { display: flex; justify-content: space-between; opacity: .85; }

/* ---------- tabbed hooks (light zone) ---------- */
.hooks-zone { position: relative; padding: 9rem 0 8rem; margin-top: -1px; isolation: isolate; }
.hooks-zone::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(90% 55% at 50% 70%, #2446c4, transparent 70%), radial-gradient(60% 40% at 15% 40%, #1a2c6e, transparent 70%), radial-gradient(60% 40% at 85% 40%, #3b2c9a, transparent 70%);
  mask-image: linear-gradient(transparent, #000 20%, #000 75%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 75%, transparent);
}
.split-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-bottom: 3rem; }
.split-head h2 { grid-column: 1 / span 5; }
.split-head > div { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.split-head p { color: var(--ink-muted); }
.tabs { display: grid; grid-template-columns: 5fr 7fr; gap: .6rem; }
.tlist { display: flex; flex-direction: column; gap: .35rem; }
.ttab {
  position: relative; display: flex; align-items: center; gap: .65rem; padding: .78rem .8rem; border-radius: .45rem; text-align: left; font-size: var(--t-sm);
  background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px rgb(150 180 255 / .12), 0 1px 2px rgb(0 0 0 / .05);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s; color: #eef2fb;
}
.ttab:hover { background: rgb(255 255 255 / .07); }
.ttab.on { background: rgb(111 155 255 / .14); padding-bottom: 1.15rem; }
.ttab b { font-weight: 500; }
.ttab span.s { color: rgb(234 240 252 / .6); font-size: var(--t-xs); }
.tico { width: 1.5rem; height: 1.5rem; border-radius: 99px; flex: none; }
.ttab .prog { position: absolute; left: .8rem; right: .8rem; bottom: .5rem; height: 2px; background: rgb(234 240 252 / .1); border-radius: 9px; overflow: hidden; display: none; }
.ttab.on .prog { display: block; }
.ttab .prog b { display: block; height: 100%; width: 0; background: var(--c); }
.ttab.on .prog b { animation: prog 6s linear forwards; }
.tabs.paused .ttab.on .prog b { animation-play-state: paused; }
@keyframes prog { to { width: 100%; } }
.tdetail { background: rgb(10 17 36 / .78); color: #eef2fb; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: .5rem; box-shadow: inset 0 0 0 1px rgb(150 180 255 / .14), 0 10px 30px -20px rgb(0 0 0 / .3); font-size: var(--t-sm); display: flex; flex-direction: column; }
.tdetail .ah { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid rgb(234 240 252 / .1); font-size: var(--t-xs); }
.tdetail .ah b { font-weight: 500; font-size: var(--t-sm); }
.tdetail .ah .ck { margin-left: auto; color: rgb(234 240 252 / .58); display: flex; gap: .35rem; align-items: center; }
.tdetail .ah .ck::before { content: ""; width: 5px; height: 5px; border-radius: 9px; background: rgb(234 240 252 / .35); }
.tdetail .ab { padding: 1rem; display: flex; flex-direction: column; gap: .85rem; flex: 1; }
.share-h { display: flex; justify-content: space-between; align-items: baseline; }
.share-h span { font-size: var(--t-xs); color: rgb(234 240 252 / .58); }
.share-h b { font-weight: 500; font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.sharebar { display: grid; grid-template-columns: repeat(50, 1fr); gap: 3px; }
.sharebar i { aspect-ratio: 1; border-radius: 9px; background: rgb(234 240 252 / .1); transition: background .3s; }
.sharebar i.on { background: var(--c); }
.finding { background: rgb(255 255 255 / .03); border-radius: .4rem; box-shadow: 0 0 0 1px rgb(170 195 255 / 0.16); padding: .75rem .85rem; display: flex; flex-direction: column; gap: .2rem; }
.finding .k { font-family: var(--mono); font-size: .66rem; color: #9fbcff; }
.finding .k span { font-family: var(--sans); margin-left: .4rem; }
.finding .t { font-weight: 500; }
.finding .d { color: rgb(234 240 252 / .6); font-size: var(--t-xs); }
.finding .r { margin-top: .45rem; padding-top: .45rem; border-top: 1px solid rgb(234 240 252 / .1); color: var(--a); font-size: var(--t-xs); }
.scope { padding: .7rem 1rem; border-top: 1px solid rgb(234 240 252 / .1); font-size: var(--t-xs); color: rgb(234 240 252 / .58); }
.scope b { color: #eef2fb; font-weight: 400; margin-left: .35rem; }
.swap { animation: swap .4s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(4px); } }

/* ---------- painted panels ---------- */
.block { padding-top: 7rem; }
.block > h2 { max-width: 42rem; margin-bottom: 3rem; }
.paint-grid { display: grid; gap: .6rem; }
.paint-grid.three { grid-template-columns: repeat(3, 1fr); }
.paint-grid.two { grid-template-columns: 1fr 1fr; }
.paint { aspect-ratio: 1 / 1.15; border-radius: .45rem; overflow: hidden; position: relative; padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.two .paint { aspect-ratio: 1.25 / 1; }
.paint::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(circle at 30% 120%, rgb(255 255 255 / .05) 0 2px, transparent 2px 18px); mix-blend-mode: overlay; }
.p-copper { background: radial-gradient(80% 60% at 20% 30%, #4f74f0, transparent 70%), radial-gradient(70% 70% at 80% 80%, #16286a, transparent 70%), linear-gradient(160deg, #2a49c4, #0c1638); }
.p-greige { background: radial-gradient(70% 60% at 70% 20%, #7d97cc, transparent 70%), radial-gradient(70% 70% at 20% 90%, #18284e, transparent 70%), linear-gradient(200deg, #4a6299, #0e1830); }
.p-dark { background: radial-gradient(60% 50% at 80% 20%, #4a5a86, transparent 70%), radial-gradient(70% 70% at 30% 90%, #04070f, transparent 70%), linear-gradient(170deg, #1f2a4a, #060a16); }
.p-mauve { background: radial-gradient(70% 60% at 30% 30%, #6458d0, transparent 70%), radial-gradient(70% 70% at 80% 90%, #15153e, transparent 70%), linear-gradient(160deg, #3a3290, #0d0f2a); }
.p-purple { background: radial-gradient(70% 60% at 70% 20%, #3a8fe8, transparent 70%), radial-gradient(70% 70% at 20% 90%, #1a1d5e, transparent 70%), linear-gradient(200deg, #2559b8, #0c1234); }
.gc { position: relative; z-index: 1; background: rgb(8 13 30 / .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: .4rem; padding: .6rem .7rem; font-size: .77rem; line-height: 1.35; color: #eef2fb; box-shadow: 0 1px 2px rgb(0 0 0 / .08), inset 0 0 0 1px rgb(150 180 255 / .16); display: flex; gap: .55rem; align-items: flex-start; }
.gc.dim { background: rgb(8 13 30 / .45); }
.gc small { display: block; color: rgb(234 240 252 / .62); font-size: .72rem; }
.gc .ic { width: 1rem; height: 1rem; border-radius: .25rem; flex: none; margin-top: .1rem; }
.gc .chk { margin-left: auto; color: rgb(234 240 252 / .45); }
.vdash { width: 1px; height: 2rem; border-left: 1px dashed rgb(255 255 255 / .6); margin: 0 auto; position: relative; z-index: 1; }
.typing { position: relative; z-index: 1; align-self: center; background: rgb(8 13 30 / .6); border-radius: .35rem; padding: .45rem .7rem; display: flex; gap: 4px; }
.typing i { width: 5px; height: 5px; border-radius: 9px; background: rgb(234 240 252 / .4); animation: td 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes td { 30% { transform: translateY(-3px); background: rgb(234 240 252 / .75); } }
.pill-tag { position: relative; z-index: 1; align-self: center; background: rgb(8 13 30 / .72); box-shadow: inset 0 0 0 1px rgb(150 180 255 / .2); border-radius: 999px; padding: .35rem .75rem; font-size: .72rem; color: #eef2fb; }
.cap { padding-top: 1rem; }
.cap h3 { font-size: var(--t-base); }
.cap p { color: var(--ink-muted); font-size: var(--t-sm); max-width: 25rem; }
.cwin { position: relative; z-index: 1; background: rgb(8 13 30 / .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: .45rem; box-shadow: 0 10px 30px -12px rgb(0 0 0 / .35); color: #eef2fb; font-size: .76rem; display: flex; flex-direction: column; flex: 1; }
.cwin .wh { display: flex; justify-content: space-between; padding: .6rem .8rem; border-bottom: 1px solid rgb(234 240 252 / .08); font-weight: 600; }
.msgs { padding: .6rem .8rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.msg { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; opacity: 0; transform: translateY(5px); transition: all .5s; }
.msg.show { opacity: 1; transform: none; }
.msg .av { width: 1.6rem; height: 1.6rem; border-radius: .3rem; display: grid; place-items: center; font-size: .68rem; font-weight: 600; color: #fff; overflow: hidden; }
.msg .av img { width: 100%; height: 100%; }
.msg .nm { font-weight: 600; }
.msg .nm small { font-size: .72rem; font-weight: 400; color: rgb(234 240 252 / .55); margin-left: .3rem; }
.msg .nm em { font-style: normal; font-size: .72rem; background: rgb(234 240 252 / .07); padding: .05rem .25rem; border-radius: .2rem; margin-left: .25rem; color: rgb(234 240 252 / .62); }
.mention { color: #9fbcff; background: rgb(111 155 255 / .16); border-radius: .2rem; padding: 0 .15rem; }
.link { color: #9fbcff; }
.compose { margin: .6rem .8rem .8rem; padding: .5rem .6rem; border-radius: .35rem; box-shadow: inset 0 0 0 1px rgb(170 195 255 / 0.21); color: rgb(234 240 252 / .45); }
.ubub { position: relative; z-index: 1; align-self: flex-end; background: rgb(8 13 30 / .78); color: #eef2fb; border-radius: .4rem; padding: .4rem .65rem; font-size: .74rem; display: flex; gap: .45rem; align-items: center; }
.ubub i { width: 1.1rem; height: 1.1rem; border-radius: 99px; background: #a98b68; }
.abub { position: relative; z-index: 1; align-self: flex-start; max-width: 85%; background: rgb(255 255 255 / .2); border-radius: .4rem; padding: .45rem .7rem; font-size: .74rem; color: #fff; opacity: 0; transform: translateY(5px); transition: all .5s; }
.abub.show { opacity: 1; transform: none; }
.dcompose { position: relative; z-index: 1; margin-top: auto; background: rgb(8 13 30 / .78); border-radius: .4rem; padding: .55rem .7rem; font-size: .74rem; color: rgb(234 240 252 / .5); display: flex; justify-content: space-between; align-items: center; }
.dcompose i { width: 1.4rem; height: 1.4rem; border-radius: .3rem; background: rgb(234 240 252 / .15); }

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); }
.how > div { padding: 1.75rem 1.5rem 2rem; display: flex; flex-direction: column; gap: .6rem; }
.how > div + div { border-left: 1px dashed var(--line-strong); }
.how .lab { margin-bottom: .4rem; }
.how h3 { font-size: var(--t-lg); }
.how.three { grid-template-columns: repeat(3, 1fr); }
.how p { color: var(--ink-muted); font-size: var(--t-sm); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.plan { display: flex; flex-direction: column; background: var(--card); color: #eef2fb; border-radius: .5rem; box-shadow: 0 0 0 1px rgb(170 195 255 / 0.14), 0 20px 50px -30px rgb(0 0 0 / .35); overflow: hidden; }
.plan .ptop { padding: 1.75rem 1.75rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.plan .ptop .row { display: flex; justify-content: space-between; align-items: center; }
.plan h3 { font-size: var(--t-lg); }
.plan .price { font-family: var(--serif); font-size: 3.2rem; line-height: 1; margin: .75rem 0 .25rem; }
.plan .price.soft { font-size: 2rem; color: rgb(234 240 252 / .62); }
.plan .price small { font-family: var(--sans); font-size: var(--t-sm); color: rgb(234 240 252 / .58); margin-left: .4rem; }
.plan p { color: rgb(234 240 252 / .62); font-size: var(--t-sm); }
.plan ul { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; font-size: var(--t-sm); }
.plan li { display: flex; gap: .55rem; align-items: flex-start; }
.plan li::before { content: ""; width: 6px; height: 6px; margin-top: .5rem; border-radius: 9px; background: currentColor; opacity: .5; flex: none; }
.plan .pbot { padding: 1.1rem 1.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.plan .pbot.g { background: rgb(111 155 255 / .08); color: #a9c2ff; }
.plan .pbot.o { background: rgb(216 181 108 / .08); color: #e2c48a; }
.plan .pbot span { font-size: var(--t-xs); }
.plan .pbot .btn { background: #eef2fb; color: #0a1022; }
.chip { display: inline-flex; gap: .4rem; align-items: center; font-size: var(--t-xs); font-weight: 500; line-height: 1; padding: .42rem .55rem; border-radius: .25rem; white-space: nowrap; }
.chip.solid { background: var(--ink); color: var(--paper); }
.chip.out { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-muted); }
.chip .d { width: 6px; height: 6px; border-radius: 9px; background: currentColor; }
.plan .chip.out { box-shadow: inset 0 0 0 1px rgb(170 195 255 / 0.22); color: rgb(234 240 252 / .62); }
.plan .chip.solid { background: #eef2fb; color: #0a1022; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 2.5rem; }
.faq-list { border-top: 1px dashed var(--line-strong); }
.faq details { border-bottom: 1px dashed var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-family: var(--serif); font-size: var(--t-xl); line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.2rem; color: var(--ink-muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.25rem 0; color: var(--ink-muted); max-width: 40rem; }

/* ---------- final ---------- */
.final { position: relative; padding: 8rem 0 7rem; text-align: center; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; bottom: -18rem; width: 70rem; height: 28rem; transform: translateX(-50%); filter: blur(60px); opacity: .75; background: radial-gradient(40% 50% at 30% 50%, #2449c8, transparent 70%), radial-gradient(40% 50% at 55% 55%, #4b33b8, transparent 70%), radial-gradient(35% 45% at 75% 50%, #1f7fe0, transparent 70%); }
.final > div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.final p { color: var(--ink-muted); max-width: 30rem; }

/* ---------- footer ---------- */
.footer .grid { display: grid; grid-template-columns: repeat(3, 1fr) 2fr; border-top: 1px dashed var(--line-strong); }
.footer .grid > div { display: flex; flex-direction: column; padding: 1.75rem 1.25rem; }
.footer .grid > div + div { border-left: 1px dashed var(--line-strong); }
.footer .fl { font-size: var(--t-sm); color: var(--ink-muted); margin-bottom: 2rem; }
.footer ul { display: flex; flex-direction: column; gap: .5rem; }
.footer ul a { font-family: var(--serif); font-size: var(--t-xl); transition: color .15s; }
.footer ul a:hover { color: var(--ink-muted); }
.fend { justify-content: space-between; gap: 2.5rem; }
.chips { display: flex; gap: .25rem; flex-wrap: wrap; }
.fend .ca { align-self: flex-start; }
.fbottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.fbottom p { font-size: var(--t-sm); color: var(--ink-muted); max-width: 24rem; }
.fbottom img { width: 30px; height: 30px; border-radius: 8px; }
.disc { padding: 1.25rem var(--gutter) 2rem; border-top: 1px dashed var(--line-strong); font-size: var(--t-xs); color: var(--ink-muted); }

/* ---------- scroll reveal ---------- */
.js [data-rv] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-rv].in { opacity: 1; transform: none; }

/* =====================================================================
   Referral gate (index.html)
   ===================================================================== */
.gate { position: relative; padding: 9.5rem 0 6rem; overflow: hidden; }
.gate .swirl { top: 22rem; }
.gate-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; }
.gate-copy > p { max-width: 30rem; color: var(--ink-muted); }
.refbanner { display: none; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: var(--t-xs); color: var(--ink-muted); background: color-mix(in oklab, var(--paper), transparent 25%); }
.refbanner.show { display: inline-flex; }
.refbanner b { color: var(--ink); font-weight: 500; }
.claim-card { position: relative; width: min(30rem, 100%); margin: 1rem auto 0; text-align: left; background: var(--card); color: #eef2fb; border-radius: .6rem; overflow: hidden; box-shadow: 0 0 0 1px rgb(170 195 255 / 0.14), 0 40px 90px -30px rgb(0 0 0 / .8);
  --ink: #eef2fb; --paper: #0b1328; --ink-muted: rgb(234 240 252 / .62); --line: rgb(234 240 252 / .1); --line-strong: rgb(234 240 252 / .18); --sunk: rgb(234 240 252 / .04); }
.cc-body { padding: 1.6rem 1.6rem 1.25rem; }
.gstate { display: none; }
.claim-card[data-state="checking"] .gs-checking, .claim-card[data-state="form"] .gs-form, .claim-card[data-state="in"] .gs-in { display: block; animation: swap .45s var(--ease); }
.gs-checking { padding: 1.5rem 0; text-align: center; font-size: var(--t-sm); color: var(--ink-muted); }
.gs-checking .spin { margin: 0 auto .8rem; width: 1rem; height: 1rem; border-top-color: var(--orange); }
.gs-form h2, .gs-in h2 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; }
.gs-form > p { margin-top: .35rem; color: var(--ink-muted); font-size: var(--t-sm); }
.field { display: grid; gap: .4rem; margin-top: 1rem; }
.field label, .lbl { font-size: var(--t-xs); color: var(--ink-muted); }
.input { display: flex; align-items: center; min-height: 2.75rem; padding: 0 .85rem; border-radius: .45rem; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .15s, background .15s; }
.input:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); background: transparent; }
.input .pre { color: var(--ink-muted); }
.input input { flex: 1; min-width: 0; height: 2.6rem; border: 0; outline: 0; background: none; font-size: var(--t-sm); }
.input input::placeholder, textarea::placeholder { color: color-mix(in oklab, var(--ink), transparent 50%); }
.input input.upper { font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.gs-form .btn.block { margin-top: 1.1rem; }
.form-msg { min-height: 1.2rem; margin-top: .6rem; font-size: var(--t-xs); color: var(--red); }
.connected { display: flex; align-items: center; gap: .55rem; margin-top: 1rem; padding: .55rem .75rem; border-radius: .45rem; box-shadow: inset 0 0 0 1px var(--line); font-size: var(--t-xs); }
.connected .w-dot { width: 7px; height: 7px; border-radius: 9px; background: var(--green); }
.connected .linkbtn { margin-left: auto; }
.find { margin-top: .5rem; text-align: center; }
.find .row { display: flex; gap: .45rem; margin-top: .75rem; }
.find .row .input { flex: 1; }
.in-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.in-head p { margin-top: .3rem; font-size: var(--t-xs); color: var(--ink-muted); }
.seat-no { font-family: var(--serif); font-size: 3rem; line-height: .9; color: var(--gold); white-space: nowrap; }
.gs-in > .btn { margin-top: 1.25rem; }
.invite { margin-top: 1.1rem; }
.invite .row { display: flex; gap: .45rem; margin-top: .4rem; }
.invite .row .input { flex: 1; min-width: 0; }
.invite .row .input input { font-family: var(--mono); font-size: .75rem; color: var(--ink-muted); }
.in-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1rem; border-radius: .45rem; box-shadow: inset 0 0 0 1px var(--line); }
.in-stats > div { padding: .6rem .75rem; min-width: 0; }
.in-stats > div + div { border-left: 1px solid var(--line); }
.in-stats small { display: block; font-size: .7rem; color: var(--ink-muted); }
.in-stats b { display: block; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-links { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.in-links a { font-size: var(--t-xs); font-weight: 500; display: inline-flex; gap: .3rem; align-items: center; }
.cc-foot { padding: .9rem 1.6rem 1.1rem; background: rgb(216 181 108 / .08); color: #e2c48a; }
.cc-foot .row { display: flex; justify-content: space-between; font-size: var(--t-xs); }
.cc-foot b { font-weight: 600; font-variant-numeric: tabular-nums; }
.seatdots { display: grid; grid-template-columns: repeat(50, 1fr); gap: 2px; margin-top: .6rem; }
.seatdots i { aspect-ratio: 1; border-radius: 9px; background: currentColor; opacity: .16; transition: opacity .4s; }
.seatdots i.on { opacity: .85; }
.full-note { display: none; }
body.public-full .full-note { display: inline; }
body.public-full .open-note { display: none; }

/* leaderboard */
.board { display: grid; grid-template-columns: 5fr 7fr; gap: 2.5rem; align-items: start; }
.board .copy { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.board .copy p { color: var(--ink-muted); }
.reward { padding: .8rem 1rem; border-radius: .45rem; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: var(--t-sm); color: var(--ink-muted); }
.lb { border-radius: .5rem; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.lb-head { display: flex; justify-content: space-between; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-muted); }
.lb li { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.lb li:last-child { border-bottom: 0; }
.lb .rank { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-muted); }
.lb li:nth-child(-n+3) .rank { color: var(--orange); }
.lb .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .refs { font-family: var(--mono); font-size: var(--t-sm); }
.lb li.me { background: var(--sunk); }
.lb .empty { display: block; padding: 2.5rem 1rem; text-align: center; color: var(--ink-muted); font-size: var(--t-sm); }

/* =====================================================================
   Modal, toast
   ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.25rem; }
.modal-scrim { position: absolute; inset: 0; background: rgb(2 4 10 / .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s ease; }
.modal-card { position: relative; width: min(25rem, 100%); padding: 1.5rem; border-radius: .6rem; background: var(--card); color: #eef2fb; box-shadow: 0 0 0 1px rgb(170 195 255 / 0.14), 0 40px 100px -30px rgb(0 0 0 / .6); animation: swap .35s var(--ease); }
.modal-card h2 { font-family: var(--serif); font-size: 1.6rem; }
.modal-card > p { margin-top: .35rem; font-size: var(--t-sm); color: rgb(234 240 252 / .62); }
.modal-close { position: absolute; top: .85rem; right: .85rem; width: 2rem; height: 2rem; border-radius: 99px; display: grid; place-items: center; color: rgb(234 240 252 / .6); }
.modal-close:hover { background: rgb(234 240 252 / .06); color: #eef2fb; }
.wallet-list { display: grid; gap: .4rem; margin: 1.1rem 0 1rem; }
.wallet-opt { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .75rem .85rem; border-radius: .45rem; box-shadow: inset 0 0 0 1px rgb(170 195 255 / 0.18); text-align: left; transition: background .15s, box-shadow .15s; }
.wallet-opt:hover { background: rgb(234 240 252 / .04); box-shadow: inset 0 0 0 1px rgb(170 195 255 / 0.22); }
.w-mark { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 99px; background: #eef2fb; color: #0a1022; font-weight: 600; font-size: .8rem; }
.w-name { font-weight: 500; font-size: var(--t-sm); }
.w-state { margin-left: auto; font-size: var(--t-xs); color: rgb(234 240 252 / .58); display: inline-flex; align-items: center; gap: .35rem; }
.w-state.ok { color: var(--green); }
.modal-note { display: flex; gap: .6rem; padding-top: 1rem; border-top: 1px dashed rgb(234 240 252 / .18); font-size: var(--t-xs); color: rgb(234 240 252 / .6); }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 120; transform: translate(-50%, 1rem); max-width: calc(100% - 2rem); padding: .7rem 1.1rem; border-radius: 999px; background: #141e38; color: #eef2fb; box-shadow: inset 0 0 0 1px var(--card-line); font-size: var(--t-sm); box-shadow: 0 20px 50px -20px rgb(0 0 0 / .5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   Studio (studio.html) — always dark, like the product mockups
   ===================================================================== */
.studio { min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
.app-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .8rem; height: 3.6rem; padding: 0 1rem; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--paper), transparent 10%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.app-top .logo { padding: .4rem .3rem; }
.app-top .where { font-size: var(--t-sm); color: var(--ink-muted); }
.app-top .right { margin-left: auto; display: flex; gap: .35rem; align-items: center; }
.shell { flex: 1; display: grid; grid-template-columns: 14rem 1fr; }
.sidebar { position: sticky; top: 3.6rem; height: calc(100svh - 3.6rem); border-right: 1px solid var(--line); padding: 1rem .7rem; display: flex; flex-direction: column; gap: 1.4rem; }
.sgroup { display: flex; flex-direction: column; gap: .15rem; }
.stitle { padding: 0 .55rem .35rem; font-size: var(--t-xs); color: var(--ink-subtle); }
.sitem { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .55rem; border-radius: .4rem; font-size: var(--t-sm); color: var(--ink-muted); text-align: left; transition: background .15s, color .15s; }
.sitem:hover { color: var(--ink); background: var(--sunk); }
.sitem.on { color: var(--ink); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.sitem .lk { margin-left: auto; color: var(--ink-subtle); }
.sfoot { margin-top: auto; padding: .75rem .55rem 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .5rem; font-size: var(--t-xs); color: var(--ink-muted); }
.workspace { padding: 3rem 3rem 5rem; min-width: 0; }
.view { display: none; max-width: 60rem; }
.view.on { display: block; animation: swap .4s var(--ease); }
.vhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2rem; }
.vhead h1 { font-size: var(--t-3xl); }
.vhead p { margin-top: .5rem; color: var(--ink-muted); max-width: 36rem; font-size: var(--t-sm); }
.note { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; margin-bottom: 1.5rem; border-radius: .5rem; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: var(--t-sm); color: var(--ink-muted); }
.note b { color: var(--ink); font-weight: 500; }
.note .icon { margin-top: .2rem; color: var(--orange); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: .5rem; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 1.5rem; }
.stats > div { padding: 1.1rem 1.2rem; min-width: 0; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats small { display: block; font-size: var(--t-xs); color: var(--ink-muted); }
.stats b { display: block; margin-top: .4rem; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-items: start; }
.box { border-radius: .5rem; background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--line); padding: 1.3rem; min-width: 0; }
.box h2 { font-family: var(--sans); font-weight: 500; font-size: var(--t-base); }
.box > p { margin-top: .35rem; color: var(--ink-muted); font-size: var(--t-sm); }
.box .btn { margin-top: 1rem; }
.draft { margin-top: 1rem; border-radius: .45rem; box-shadow: inset 0 0 0 1px var(--line-strong); }
.draft textarea { display: block; width: 100%; min-height: 8rem; padding: .9rem 1rem; border: 0; outline: 0; resize: vertical; background: none; font-size: var(--t-base); line-height: 1.55; }
.draft-tools { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .5rem .5rem .5rem 1rem; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-muted); }
.draft-tools .btn { margin: 0; }
.builder { padding: 1.4rem; }
.route { display: flex; height: 8px; gap: 3px; margin-bottom: 1.4rem; }
.route i { display: block; height: 100%; border-radius: 2px; width: 0; transition: width .6s var(--ease); }
.slider + .slider { margin-top: 1rem; }
.slider-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .45rem; font-size: var(--t-sm); }
.slider-top label { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-muted); }
.slider-top label i { width: 9px; height: 9px; border-radius: 9px; }
.slider-top b { font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p, 0%), var(--line-strong) var(--p, 0%)); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line-strong); }
input[type=range]::-moz-range-progress { height: 2px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 99px; background: var(--ink); border: 3px solid var(--dark-2); }
input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 99px; background: var(--ink); border: 3px solid var(--dark-2); }
.builder-total { display: flex; justify-content: space-between; align-items: center; margin: 1.3rem 0 1rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); font-size: var(--t-sm); color: var(--ink-muted); }
.builder-total b { font-family: var(--mono); color: var(--ink); }
.builder-total .good { color: var(--green); }
.builder-total .warn { color: var(--red); }
.builder.locked input[type=range] { pointer-events: none; opacity: .5; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.locked-tile { display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem; border-radius: .5rem; box-shadow: inset 0 0 0 1px var(--line); }
.locked-tile .chip { align-self: flex-start; margin-bottom: .3rem; }
.locked-tile h2 { font-family: var(--sans); font-weight: 500; font-size: var(--t-base); }
.locked-tile p { color: var(--ink-muted); font-size: var(--t-sm); }
.lockscreen { position: fixed; inset: 3.6rem 0 0; z-index: 30; display: grid; place-items: center; padding: 1.5rem; background: rgb(2 4 10 / .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lock-card { width: min(26rem, 100%); padding: 2rem 1.75rem; text-align: center; border-radius: .6rem; background: var(--card); color: #eef2fb; box-shadow: 0 40px 100px -30px #000; animation: swap .5s var(--ease); --ink: #eef2fb; --paper: #0b1328; --line-strong: rgb(234 240 252 / .18); --sunk: rgb(234 240 252 / .05); --ink-muted: rgb(234 240 252 / .62); }
.lock-card h2 { font-size: 1.8rem; }
.lock-card p { margin: .5rem auto 1.4rem; color: rgb(234 240 252 / .62); font-size: var(--t-sm); max-width: 30ch; }
.lock-card .btn + .btn { margin-top: .4rem; }
.lock-card .spin { margin: 0 auto 1rem; width: 1rem; height: 1rem; border-top-color: var(--orange); }
body.signed-in .lockscreen { display: none; }
body:not(.signed-in) .shell { filter: blur(3px); pointer-events: none; user-select: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) { .float { right: .8rem; width: 20rem; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; height: auto; min-height: 30rem; }
  .rail-ic, .toc { display: none; }
  .float { position: relative; right: auto; top: auto; width: auto; height: auto; margin: -5rem 1rem 0; }
  .feat, .feat.rev { grid-template-columns: 1fr; }
  .feat .copy, .feat .side, .feat.rev .copy, .feat.rev .side { grid-column: 1; grid-row: auto; }
  .frame { padding: 1rem; }
  .split-head h2, .split-head > div { grid-column: 1 / -1; }
  .tabs { grid-template-columns: 1fr; }
  .paint-grid.three, .paint-grid.two { grid-template-columns: 1fr; }
  .paint { aspect-ratio: auto; min-height: 20rem; }
  .how { grid-template-columns: 1fr 1fr; }
  .how:not(.three) > div:nth-child(3) { border-left: 0; }
  .how.three { grid-template-columns: 1fr; }
  .how.three > div + div { border-left: 0; border-top: 1px dashed var(--line-strong); }
  .how > div:nth-child(n+3) { border-top: 1px dashed var(--line-strong); }
  .plans, .faq, .board { grid-template-columns: 1fr; }
  .footer .grid { grid-template-columns: repeat(3, 1fr); }
  .footer .grid .fend { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px dashed var(--line-strong); }
  .tcard { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: .5rem; gap: .2rem; scrollbar-width: none; }
  .sidebar .stitle, .sidebar .sfoot { display: none; }
  .sgroup { flex-direction: row; gap: .2rem; }
  .sitem { width: auto; white-space: nowrap; }
  .workspace { padding: 2rem 1.25rem 4rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cols, .tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .navgrp a.l, .navgrp .sep, .navgrp .hide-sm { display: none; }
  .nav .logo .name { display: none; }
  .nav .logo { gap: 0; padding: .7rem .8rem; }
  .navgrp .btn, .navgrp .wallet-btn { padding: .5rem .75rem; }
  .site { grid-template-columns: 1fr; }
  .ctrls { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
  .assets { grid-template-columns: repeat(2, 1fr); }
  .tcard .q { padding: 1.75rem 1.5rem; }
  .how { grid-template-columns: 1fr; }
  .how > div + div { border-left: 0; border-top: 1px dashed var(--line-strong); }
  .footer .grid { grid-template-columns: 1fr; }
  .footer .grid > div + div { border-left: 0; border-top: 1px dashed var(--line-strong); }
  .ca code { max-width: 9rem; }
  .evt { grid-template-columns: 2.4rem 6rem 1fr; }
  .kit { grid-template-columns: repeat(3, 1fr); }
  .kit > div:last-child { display: none; }
  .vhead { flex-direction: column; align-items: flex-start; }
  .app-top .where { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .dr .c .l { opacity: 1; }
  .dr .c::before { display: none; }
  .js [data-rv] { opacity: 1; transform: none; }
}

/* =====================================================================
   Interactive layer
   ===================================================================== */
/* hero mockup: the assistant panel overhangs on purpose; light follows the pointer */
.app { overflow: visible; isolation: isolate; }
.app::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0), rgb(111 155 255 / .12), transparent 65%); }
.app:hover::before { opacity: 1; }

.float .fi { padding: .3rem .3rem .3rem .75rem; align-items: center; gap: .5rem; transition: box-shadow .2s; }
.float .fi:focus-within { box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 4px rgb(111 155 255 / .12); }
.fi input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: .8rem; }
.fi input::placeholder { color: var(--ink-subtle); }
.fi button { width: 1.8rem; height: 1.8rem; border-radius: .35rem; background: var(--ink); color: var(--dark); font-weight: 600; transition: transform .15s; }
.fi button:hover { transform: translateY(-1px); }

/* create prompt is a real input */
.prompt { display: flex; align-items: flex-start; cursor: text; transition: box-shadow .2s; }
.prompt:focus-within { box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 4px rgb(111 155 255 / .12); }
.prompt input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: .88rem; line-height: 1.5; }

/* pointer light on frames, painted panels, cards */
.frame, .paint, .tcard, .plan { --mx: -999px; --my: -999px; }
.frame { transition: transform .35s var(--ease); transform-style: preserve-3d; will-change: transform; }
.frame::before, .paint::before, .tcard::before, .plan::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(140 175 255 / .16), transparent 60%);
}
.frame:hover::before, .paint:hover::before, .tcard:hover::before, .plan:hover::before { opacity: 1; }
.plan { position: relative; }
.plan > *, .tcard > * { position: relative; z-index: 1; }

/* brand regenerate */
.asset .art { transition: filter .5s var(--ease), opacity .3s, transform .4s var(--ease); }
.asset.regen .art { opacity: .25; transform: scale(.96); filter: blur(4px) !important; }

/* fee split builder */
.ttab .tv { margin-left: auto; font-family: var(--mono); font-size: .78rem; color: var(--ink-muted); }
.ttab.on .tv { color: var(--ink); }
.ttab:focus-visible { outline-offset: -2px; }
.hbar { display: flex; height: 8px; gap: 2px; border-radius: 4px; overflow: hidden; background: rgb(234 240 252 / .08); }
.hbar i { display: block; height: 100%; transition: width .35s var(--ease); }
.tdetail input[type=range] { height: 22px; }
.tdetail input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--track, #eef2fb) var(--p, 0%), rgb(234 240 252 / .12) var(--p, 0%)); }
.tdetail input[type=range]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7px; background: #eef2fb; border: 4px solid var(--track, #6f9bff); box-shadow: 0 2px 8px rgb(0 0 0 / .5); }
.tdetail input[type=range]::-moz-range-progress { height: 4px; background: var(--track, #eef2fb); }
.tdetail input[type=range]::-moz-range-thumb { width: 12px; height: 12px; background: #eef2fb; border: 4px solid var(--track, #6f9bff); }
.tdetail input[type=range]:disabled { opacity: .45; cursor: not-allowed; }
.share-h label { font-size: var(--t-xs); color: rgb(234 240 252 / .62); }
.persol-h { font-size: var(--t-xs); color: rgb(234 240 252 / .62); margin-bottom: -.4rem; }
.persol { display: grid; gap: 0; border-radius: .45rem; box-shadow: inset 0 0 0 1px rgb(170 195 255 / .12); }
.persol > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; font-size: var(--t-xs); transition: background .2s; }
.persol > div + div { border-top: 1px solid rgb(170 195 255 / .1); }
.persol dt { display: flex; align-items: center; gap: .45rem; color: rgb(234 240 252 / .7); }
.persol dt i { width: 7px; height: 7px; border-radius: 9px; }
.persol dd { margin: 0; font-family: var(--mono); }
.persol .cur { background: rgb(111 155 255 / .1); }
.persol .cur dt { color: #eef2fb; }

/* chat + lock panels */
.dcompose input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #eef2fb; font-size: .78rem; }
.dcompose input::placeholder { color: rgb(214 222 255 / .78); }
.dcompose button { width: 1.6rem; height: 1.6rem; border-radius: .35rem; display: grid; place-items: center; background: #eef2fb; color: #0a1022; flex: none; }
.dcompose:focus-within { box-shadow: 0 0 0 1px rgb(150 180 255 / .5); }
.ubub { opacity: 0; transform: translateY(5px); transition: all .45s; }
.ubub.show, #ask-first { opacity: 1; transform: none; }
button.pill-tag { cursor: pointer; transition: background .2s, color .2s, transform .15s; }
button.pill-tag:hover { transform: translateY(-1px); background: rgb(30 45 95 / .85); }
button.pill-tag[aria-pressed="true"] { background: #d8b56c; color: #0a1022; box-shadow: none; }
button.compose { width: auto; text-align: left; font: inherit; font-size: .76rem; cursor: pointer; transition: color .15s, box-shadow .15s; }
button.compose:hover { color: #eef2fb; box-shadow: inset 0 0 0 1px rgb(150 180 255 / .4); }

/* nav: current section, phone menu */
.navgrp a.l.on { color: var(--ink); background: var(--sunk); }
.menu-btn { display: none; }
.msheet { position: absolute; top: 4.9rem; right: var(--gutter); min-width: 12rem; padding: .35rem; display: grid; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.msheet a { padding: .7rem .85rem; border-radius: .5rem; font-size: var(--t-base); color: var(--ink-muted); }
.msheet a:hover, .msheet a:focus-visible { color: var(--ink); background: var(--sunk); }
body.menu-open .msheet { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 640px) {
  .menu-btn { display: inline-flex; width: 2.3rem; padding: .5rem; justify-content: center; }
  .navgrp [data-wallet] { display: none; }
}

/* leaderboard empty state */
.lb li.ghost { opacity: .55; }
.lb li.ghost .who { color: var(--ink-muted); }
.lb li.ghost:first-child { opacity: 1; }
.lb .lb-cta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-muted); }

/* studio: locked tool checklist */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: .5rem; box-shadow: inset 0 0 0 1px var(--line); }
.checklist li { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border-top: 1px solid var(--line); }
.checklist li:nth-child(-n+2) { border-top: 0; }
.checklist li:nth-child(2n) { border-left: 1px solid var(--line); }
.checklist b { font-weight: 500; }
.checklist span { color: var(--ink-muted); font-size: var(--t-sm); }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } .checklist li:nth-child(2n) { border-left: 0; } .checklist li:nth-child(2) { border-top: 1px solid var(--line); } }


/* =====================================================================
   Deep space
   ===================================================================== */
.space { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* planet horizon: dark globe, cloud band near the rim, blue atmosphere */
.planet {
  /* the box starts 8rem above the globe so the atmosphere glow isn't clipped; the globe then fades into space */
  position: absolute; left: -58vw; top: calc(31rem - 8rem); width: 190vw; height: calc(190vw + 8rem); pointer-events: none; z-index: 0;
  transform: translate(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -8px));
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 21rem, rgb(0 0 0 / .45) 30rem, transparent 40rem);
  mask-image: linear-gradient(to bottom, #000 0, #000 21rem, rgb(0 0 0 / .45) 30rem, transparent 40rem);
}
.gate .planet { top: calc(27rem - 8rem); }
.globe {
  position: absolute; inset: 8rem 0 0 0; border-radius: 50%;
  background: radial-gradient(closest-side, #02040b 82%, #071334 93%, #15389a 98.4%, #4c86ff 99.6%, #b5d0ff 100%);
  box-shadow: 0 0 2px 1px rgb(180 210 255 / .85), 0 -6px 30px 6px rgb(70 130 255 / .55), 0 -30px 120px 40px rgb(40 90 230 / .28);
}
.globe::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: .55; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='400'%3E%3Cfilter id='n' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .03' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .72 0 0 0 0 .8 0 0 0 0 1 0 0 0 2.2 -1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 900px 400px;
  -webkit-mask-image: radial-gradient(closest-side, transparent 88%, #000 95%, #000 99%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 88%, #000 95%, #000 99%, transparent 100%);
  animation: clouds 160s linear infinite;
}
@keyframes clouds { to { background-position: -900px 0; } }
.globe::after { /* sunlight on the sea near the horizon */
  content: ""; position: absolute; left: 34%; top: 1.6%; width: 9%; height: 2.6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 236 205 / .55), rgb(255 220 180 / .12) 60%, transparent);
  filter: blur(6px); transform: rotate(-14deg);
}
.hero-copy, .gate-copy, .stage, .trusted { position: relative; z-index: 1; }

/* satellite drifting across the hero */
.satellite {
  position: absolute; right: 9%; top: 10rem; width: 120px; z-index: 0; pointer-events: auto;
  filter: drop-shadow(0 6px 10px rgb(0 0 0 / .6));
  animation: orbit 46s ease-in-out infinite alternate;
  transition: filter .3s;
}
.satellite:hover { filter: drop-shadow(0 0 1px #cfe0ff) drop-shadow(0 6px 10px rgb(0 0 0 / .6)); }
@keyframes orbit {
  0% { transform: translate(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -14px)) rotate(0deg); }
  50% { transform: translate(calc(-70px + var(--px, 0) * -22px), calc(28px + var(--py, 0) * -14px)) rotate(-6deg); }
  100% { transform: translate(calc(-140px + var(--px, 0) * -22px), calc(10px + var(--py, 0) * -14px)) rotate(3deg); }
}
.gate .satellite { top: 7rem; right: 7%; }

/* emblem above the headline */
.emblem { width: 84px; height: 84px; margin-bottom: -.25rem; animation: hover-y 7s ease-in-out infinite; }
@keyframes hover-y { 50% { transform: translateY(-5px); } }

/* closing section: a second world rising */
.final::before {
  left: 50%; top: 72%; bottom: auto; width: 170vw; height: 170vw; transform: translateX(-50%); border-radius: 50%; filter: none; opacity: 1;
  background: radial-gradient(closest-side, #02040b 86%, #0b1e52 95%, #2f66e0 99.3%, #a9c6ff 100%);
  box-shadow: 0 0 2px 1px rgb(180 210 255 / .7), 0 -10px 60px 10px rgb(70 130 255 / .35);
}

/* wallet logos */
.w-logo { width: 1.95rem; height: 1.95rem; border-radius: .5rem; flex: none; }
.w-logo.pngw { background: #fff; padding: .2rem; }
.w-logo.sm { width: 1.15rem; height: 1.15rem; border-radius: .3rem; }
.w-logo.sm.pngw { padding: .1rem; }
.wallet-strip { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; margin-top: .4rem; padding: .6rem .75rem; border-radius: .5rem; box-shadow: inset 0 0 0 1px var(--line); font-size: var(--t-xs); color: var(--ink-muted); text-align: left; transition: box-shadow .2s, color .2s, background .2s; }
.wallet-strip:hover { color: var(--ink); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-strong); }
.wallet-strip .logos { display: flex; gap: .3rem; flex: none; }
.wallet-strip .logos img { width: 1.4rem; height: 1.4rem; border-radius: .35rem; box-shadow: 0 0 0 2px #0f1830; }

.wallet-strip .logos img.pngw { background: #fff; padding: .12rem; }

@media (max-width: 860px) {
  .planet { left: -90vw; width: 280vw; height: calc(280vw + 8rem); top: calc(34rem - 8rem); }
  .gate .planet { top: calc(30rem - 8rem); }
  .satellite { width: 80px; top: 6.5rem; right: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  .satellite, .emblem, .globe::before { animation: none; }
}
