/* OrvaBot site. Colours are the panel's own (bot/panel_ui/app.css). */

:root {
  --bg: #160b17; --bg2: #1f0f21; --card: #241327; --card2: #2c1730;
  --sunk: #120812; --line: rgba(255, 92, 170, .16); --line2: rgba(255, 92, 170, .08);
  --tx: #fbeaf4; --mut: #b88aa8; --dim: #7d5a72;
  --p1: #ff4fa3; --p2: #ff8fcf; --p3: #c13cff;
  --ok: #5fe0a0; --warn: #ffc857; --bad: #ff5d6c; --info: #9fd7ff;
  --grad: linear-gradient(135deg, var(--p1), var(--p3));
  --head: 68px;
  --wrap: 1180px;
  --radius: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--tx);
  font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Nothing shows until the words are in; CSS lets go on its own if the script
   never runs. */
.i18n-wait body { visibility: hidden; animation: ab-show 0s 2s forwards; }
@keyframes ab-show { to { visibility: visible; } }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(255, 79, 163, .35); }
:focus-visible { outline: 2px solid var(--p2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--card); border-radius: 10px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.hidden { display: none !important; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--p2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--grad); }
.grad-text {
  background: linear-gradient(180deg, #fff 10%, #ffd0e8 55%, var(--p2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--mut); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, opacity .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 79, 163, .7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -10px rgba(255, 79, 163, .85); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line); color: var(--tx); }
.btn-ghost:hover { border-color: rgba(255, 143, 207, .5); background: rgba(255, 79, 163, .06); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn.is-disabled, a.is-disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.open {
  background: rgba(22, 11, 23, .78); border-bottom-color: var(--line2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--mut); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--tx); }
.nav-links .only-mobile { display: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); }
.lang button {
  border: 0; background: transparent; cursor: pointer; padding: 6px 9px; border-radius: 7px;
  font: 600 12px/1 var(--font); letter-spacing: .06em; color: var(--dim);
}
.lang button[aria-pressed="true"] { background: rgba(255, 79, 163, .16); color: var(--tx); }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--tx); transition: transform .25s, top .25s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.open .burger span:first-child { top: 19px; transform: rotate(45deg); }
.open .burger span:last-child { top: 19px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .burger { display: inline-block; }
  .nav-actions .btn { display: none; }
  .nav-links {
    position: absolute; top: var(--head); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px;
    background: rgba(22, 11, 23, .96); border-bottom: 1px solid var(--line2);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--line2); font-size: 16px; }
  .nav-links .only-mobile { display: block; }
}

/* ---------- sections ---------- */
main { display: block; }
.section { position: relative; padding: 128px 0; }
.section-tight { padding: 88px 0; }
@media (max-width: 700px) { .section { padding: 84px 0; } .section-tight { padding: 64px 0; } }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); margin: 16px 0 18px; }
.section-head p { font-size: 18px; color: var(--mut); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--head) + 48px) 0 120px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nebula { position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 15% 25%, rgba(193, 60, 255, .20), transparent 70%),
    radial-gradient(45% 40% at 85% 30%, rgba(255, 79, 163, .16), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(255, 79, 163, .22), transparent 70%);
}
.planet {
  position: absolute; left: 50%; top: 84%; width: 180vw; max-width: 2600px; aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 143, 207, .30), transparent 22%),
    radial-gradient(circle at 50% 50%, #1a0b1c 62%, #0e060f 100%);
  box-shadow: 0 -1px 0 rgba(255, 176, 219, .75), 0 -24px 90px rgba(255, 79, 163, .35), 0 -80px 220px rgba(193, 60, 255, .22),
              inset 0 40px 120px rgba(193, 60, 255, .22);
}
.hero-fade { position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(36, 19, 39, .6); font-size: 13px; color: var(--mut);
}
.pill b { font-weight: 600; color: var(--tx); padding: 3px 9px; border-radius: 999px; background: rgba(255, 79, 163, .16); font-size: 12px; }
.wordmark { font-size: clamp(64px, 10vw, 132px); line-height: .92; letter-spacing: -.045em; font-weight: 700; margin: 26px 0 26px; }
.hero-lead { font-size: clamp(20px, 2.1vw, 25px); line-height: 1.4; font-weight: 500; max-width: 560px; }
.hero-sub { margin-top: 14px; font-size: 17px; color: var(--mut); max-width: 520px; }
.hero .btn-row { margin-top: 36px; }
.hero-note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--dim); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; color: var(--p2); }
.hero-visual { position: relative; perspective: 1400px; }
.hero-visual .demo-window { transform: rotateY(var(--ry, -7deg)) rotateX(var(--rx, 4deg)); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid var(--line); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px; background: var(--p2); transform: translateX(-50%); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* entrance */
.intro { opacity: 0; transform: translateY(20px); }
.ready .intro { animation: rise .95s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.ready .wordmark.intro { animation-name: rise, wipe; animation-duration: .95s, 1.3s; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.planet { opacity: 0; }
.ready .planet { animation: planet 1.8s cubic-bezier(.2, .7, .2, 1) .15s forwards; }
@keyframes planet { from { opacity: 0; transform: translate(-50%, 60px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual .demo-window { --ry: 0deg; --rx: 0deg; }
  .scroll-cue { display: none; }
}

/* ---------- product grid ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 18px; }
.product {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(44, 23, 48, .72), rgba(31, 15, 33, .6));
  border: 1px solid var(--line2); overflow: hidden; isolation: isolate;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, box-shadow .35s;
}
.product::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 79, 163, .14), transparent 60%);
}
.product:hover::before { opacity: 1; }
a.product:hover { transform: translateY(-4px); border-color: rgba(255, 143, 207, .34); box-shadow: 0 30px 60px -30px rgba(255, 79, 163, .35); }
.product.featured { grid-column: span 2; grid-row: span 2; padding: 34px; }
.product .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product h3 { font-size: 22px; }
.product.featured h3 { font-size: clamp(30px, 3.4vw, 42px); margin-top: auto; }
.product p { color: var(--mut); font-size: 15px; }
.product .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--p2); }
.product .more svg { width: 16px; height: 16px; transition: transform .25s; }
a.product:hover .more svg { transform: translateX(4px); }
.product.is-static .more { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .025); color: var(--mut); }

.orb {
  --h1: #ff4fa3; --h2: #c13cff; width: 54px; height: 54px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 32% 28%, #fff 0%, var(--h1) 18%, var(--h2) 62%, #1a0b1c 100%);
  box-shadow: 0 0 34px -4px var(--h1), inset -6px -8px 16px rgba(0, 0, 0, .45);
}
.orb::after { content: ""; position: absolute; inset: -7px -16px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--h1) 55%, transparent); transform: rotate(-18deg) scaleY(.32); }
.featured .orb { width: 112px; height: 112px; }
.orb.o-pinkgalaxy { --h1: #ff4fa3; --h2: #c13cff; }
.orb.o-spaceaces { --h1: #6fd3ff; --h2: #3d4bff; }
.orb.o-redgalaxy { --h1: #ff6b5d; --h2: #a3122b; }
.orb.o-darkorbit { --h1: #ffc857; --h2: #b8521a; }
.orb.o-nosgalaxy { --h1: #5fe0a0; --h2: #127a6a; }
.orb.o-vokagalaxy { --h1: #9d8cff; --h2: #4b2bd6; }
.orb.o-more { --h1: #b88aa8; --h2: #3a2140; }
.product.product-more { grid-column: span 3; }
.featured-map { position: absolute; right: -80px; top: 22%; width: 52%; opacity: .55; pointer-events: none; z-index: -1; mask-image: radial-gradient(closest-side, #000 50%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent); }

@media (max-width: 980px) { .products { grid-template-columns: repeat(2, 1fr); } .product.product-more { grid-column: auto; } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } .product.featured { grid-column: auto; grid-row: auto; } }

/* status pill */
.status {
  display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 6px 12px 6px 10px; border-radius: 999px;
  font: 600 12.5px/1 var(--font); letter-spacing: .01em; color: var(--mut);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07);
}
.status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.status i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
.status[data-state="checking"] i { animation: blink 1.1s ease-in-out infinite; }
.status[data-state="online"] { color: #c9f7df; border-color: rgba(95, 224, 160, .25); background: rgba(95, 224, 160, .08); }
.status[data-state="online"] i { background: var(--ok); }
.status[data-state="online"] i::after { animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.status[data-state="updating"] { color: #ffe6ad; border-color: rgba(255, 200, 87, .25); background: rgba(255, 200, 87, .08); }
.status[data-state="updating"] i { background: var(--warn); animation: blink 1.4s ease-in-out infinite; }
.status[data-state="maintenance"] { color: #ffc4ca; border-color: rgba(255, 93, 108, .25); background: rgba(255, 93, 108, .08); }
.status[data-state="maintenance"] i { background: var(--bad); }
.status[data-state="soon"] i { background: var(--mut); }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- highlight cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(36, 19, 39, .8), rgba(31, 15, 33, .5));
  border: 1px solid var(--line2);
}
.card h3 { font-size: 19px; margin: 20px 0 10px; }
.card p { color: var(--mut); font-size: 15px; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--p2);
  background: linear-gradient(var(--card2), var(--card2)) padding-box, linear-gradient(135deg, rgba(255, 79, 163, .7), rgba(193, 60, 255, .5)) border-box;
  border: 1px solid transparent;
}
.icon svg { width: 22px; height: 22px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- measured numbers ---------- */
.stats-band { position: relative; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2);
  background: radial-gradient(60% 120% at 50% 0%, rgba(255, 79, 163, .08), transparent 70%), rgba(18, 8, 18, .5); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px 0; }
.stat b { display: block; font: 700 clamp(44px, 6vw, 72px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; color: var(--mut); font-size: 15px; }
.stats-source { margin: 40px auto 0; max-width: 720px; text-align: center; font-size: 13px; color: var(--dim); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line2); }
.faq details { border-bottom: 1px solid var(--line2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 4px; font: 600 18px/1.35 var(--display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background:
  linear-gradient(var(--p2), var(--p2)) center/14px 2px no-repeat, linear-gradient(var(--p2), var(--p2)) center/2px 14px no-repeat;
  transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 24px; color: var(--mut); max-width: 720px; }

/* ---------- call to action ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 72px); text-align: center;
  background: linear-gradient(var(--bg2), var(--bg2)) padding-box, linear-gradient(135deg, rgba(255, 79, 163, .6), rgba(193, 60, 255, .35), rgba(255, 79, 163, .1)) border-box;
  border: 1px solid transparent;
}
.cta::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 79, 163, .18), transparent 70%); pointer-events: none; }
.cta h2 { position: relative; font-size: clamp(32px, 4.4vw, 50px); }
.cta p { position: relative; margin: 16px auto 32px; max-width: 560px; color: var(--mut); font-size: 17px; }
.cta .btn-row { position: relative; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line2); padding: 64px 0 40px; margin-top: 40px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.foot li + li { margin-top: 10px; }
.foot a { color: var(--mut); transition: color .2s; }
.foot a:hover { color: var(--tx); }
.foot .about p { color: var(--dim); margin-top: 16px; max-width: 360px; font-size: 13px; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 13px; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* ---------- product page ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--head) + 88px) 0 96px; }
.page-hero .nebula { z-index: -1; }
.page-hero-grid { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.page-hero .orb { width: 132px; height: 132px; }
.page-hero h1 { font-size: clamp(48px, 7vw, 92px); letter-spacing: -.04em; margin: 16px 0 18px; }
.page-hero .lead { font-size: 20px; color: var(--mut); max-width: 640px; }
.page-hero .btn-row { margin-top: 32px; }
.meta-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; color: var(--dim); align-items: center; }
@media (max-width: 700px) { .page-hero-grid { grid-template-columns: 1fr; gap: 24px; } .page-hero .orb { width: 88px; height: 88px; } }
.doc { padding: calc(var(--head) + 72px) 0 64px; }
.doc h1 { font-size: clamp(38px, 5vw, 60px); margin: 16px 0 16px; }
.doc .lead { color: var(--mut); font-size: 18px; max-width: 680px; }

/* story: pinned demo + steps */
.story { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: start; }
.steps { padding: 6vh 0 12vh; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.step.active { opacity: 1; }
.step .num { font: 600 13px/1 var(--mono); color: var(--p2); letter-spacing: .1em; }
.step h3 { font-size: clamp(26px, 2.8vw, 34px); margin: 14px 0 14px; }
.step p { color: var(--mut); font-size: 17px; max-width: 460px; }
.step .bar { width: 48px; height: 2px; margin-top: 26px; background: var(--line); overflow: hidden; border-radius: 2px; }
.step.active .bar::after { content: ""; display: block; height: 100%; background: var(--grad); animation: fill 1.2s ease forwards; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.stage { position: sticky; top: calc(var(--head) + 28px); height: calc(100vh - var(--head) - 56px); display: flex; align-items: center; }
.stage .demo-window { width: 100%; }
.scene-tabs { display: none; }
.scene-caption { display: none; }
@media (max-width: 979px) {
  .story { grid-template-columns: 1fr; gap: 20px; }
  .steps { display: none; }
  .stage { position: relative; top: auto; height: auto; display: block; }
  .scene-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .scene-tabs button {
    flex: none; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--mut); cursor: pointer;
    padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  }
  .scene-tabs button[aria-selected="true"] { color: var(--tx); background: rgba(255, 79, 163, .14); border-color: rgba(255, 143, 207, .4); }
  .scene-caption { display: block; }
  .scene-caption h3 { font-size: 24px; margin: 22px 0 10px; }
  .scene-caption p { color: var(--mut); }
}

/* gallery */
.gallery-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.gallery-tabs button {
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); color: var(--mut); cursor: pointer;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: all .2s;
}
.gallery-tabs button[aria-selected="true"] { color: var(--tx); background: rgba(255, 79, 163, .14); border-color: rgba(255, 143, 207, .4); }
.browser { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 90px -30px rgba(255, 79, 163, .3); }
.browser-bar { height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line2); background: rgba(18, 8, 18, .6); }
.browser-bar .addr { flex: 1; max-width: 360px; margin: 0 auto; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, .04); font: 12px/24px var(--mono); color: var(--dim); text-align: center; }
.browser img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top left; transition: opacity .35s; }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .12); }

/* feature groups */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(36, 19, 39, .75), rgba(31, 15, 33, .45)); }
.feature h3 { font-size: 20px; margin: 20px 0 16px; }
.feature li { position: relative; padding-left: 26px; color: var(--mut); font-size: 15px; }
.feature li + li { margin-top: 10px; }
.feature li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--p2); border-bottom: 2px solid var(--p2); transform: rotate(-45deg); }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

/* start steps */
.start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; position: relative; }
.start li { position: relative; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line2); background: rgba(31, 15, 33, .55); }
.start li::before {
  counter-increment: s; content: "0" counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font: 700 15px/1 var(--display); background: var(--grad); color: #fff; box-shadow: 0 10px 30px -12px rgba(255, 79, 163, .8);
}
.start h3 { font-size: 20px; margin: 22px 0 10px; }
.start p { color: var(--mut); font-size: 15px; }
@media (max-width: 800px) { .start { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 22px; }
.plan { position: relative; padding: 36px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(44, 23, 48, .85), rgba(31, 15, 33, .6)); display: flex; flex-direction: column; }
.plan.alt { background: linear-gradient(var(--card), var(--bg2)) padding-box, linear-gradient(160deg, rgba(255, 79, 163, .75), rgba(193, 60, 255, .35)) border-box; border-color: transparent; }
.plan h3 { font-size: 16px; font-family: var(--font); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 10px; }
.price b { font: 700 58px/1 var(--display); letter-spacing: -.03em; }
.price span { color: var(--mut); }
.price-alt { color: var(--mut); font-size: 15px; min-height: 24px; }
.plan ul { margin: 26px 0 30px; }
.plan li { position: relative; padding-left: 26px; color: var(--tx); font-size: 15px; }
.plan li + li { margin-top: 12px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

.flow { margin: 64px auto 0; max-width: 980px; }
.flow h3 { text-align: center; font-size: 20px; margin-bottom: 30px; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.flow ol::before, .flow ol::after { content: ""; position: absolute; top: 21px; left: 10%; right: 10%; height: 2px; background: var(--line); }
.flow ol::after { background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 2.2s cubic-bezier(.4, .1, .2, 1) .2s; }
.flow.in ol::after { transform: scaleX(1); }
.flow li { position: relative; text-align: center; padding: 0 6px; font-size: 14px; color: var(--mut); }
.flow li span { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--line); font: 700 14px/1 var(--display); color: var(--mut); transition: all .4s; transition-delay: calc(var(--k) * .42s + .2s); }
.flow.in li span { border-color: var(--p1); color: #fff; background: #3a1532; box-shadow: 0 0 22px -4px rgba(255, 79, 163, .8); }
.flow .note { margin-top: 30px; text-align: center; font-size: 14px; color: var(--dim); }
@media (max-width: 700px) {
  .flow ol { grid-template-columns: 1fr; gap: 18px; }
  .flow ol::before, .flow ol::after { top: 0; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .flow ol::after { transform: scaleY(0); transform-origin: top; }
  .flow.in ol::after { transform: scaleY(1); }
  .flow li { display: flex; align-items: center; gap: 16px; text-align: left; padding: 0; }
  .flow li span { margin: 0; flex: none; }
}

/* download + terms */
.dl-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; margin-top: 48px; }
.dl-main { padding: 36px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(44, 23, 48, .8), rgba(31, 15, 33, .5)); }
.dl-main .btn { margin: 26px 0 8px; }
.dl-meta { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin-top: 18px; font-size: 14px; }
.dl-meta dt { color: var(--dim); }
.dl-meta dd { margin: 0; color: var(--tx); word-break: break-all; }
.dl-side { padding: 32px; border-radius: 24px; border: 1px solid var(--line2); background: rgba(31, 15, 33, .5); }
.dl-side h3 { font-size: 18px; margin-bottom: 16px; }
.dl-side li { color: var(--mut); padding-left: 22px; position: relative; }
.dl-side li + li { margin-top: 10px; }
.dl-side li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.install { margin-top: 28px; counter-reset: i; }
.install li { position: relative; padding: 18px 0 18px 62px; border-bottom: 1px solid var(--line2); color: var(--mut); }
.install li::before { counter-increment: i; content: counter(i); position: absolute; left: 0; top: 14px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 79, 163, .12); color: var(--p2); font: 700 15px/1 var(--display); }
.install b { color: var(--tx); font-weight: 600; }
@media (max-width: 860px) { .dl-card { grid-template-columns: 1fr; } }
.prose { max-width: 780px; }
.prose h2 { font-size: 22px; margin: 44px 0 12px; }
.prose p { color: var(--mut); }
.prose p + p { margin-top: 12px; }
.updated { margin-top: 48px; font-size: 13px; color: var(--dim); }

/* ---------- demo window (drawn panel) ---------- */
.demo-window {
  --dw-side: 150px;
  position: relative; border-radius: 18px; overflow: hidden; background: var(--bg2);
  border: 1px solid var(--line); font-size: 12px;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02), 0 0 100px -30px rgba(255, 79, 163, .35);
}
.dw-bar { height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line2); background: rgba(18, 8, 18, .7); }
.dw-title { font: 600 12.5px/1 var(--display); color: var(--mut); }
.dw-state { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: 11.5px; background: rgba(95, 224, 160, .1); color: #c9f7df; }
.dw-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dw-state[data-tone="warn"] { background: rgba(255, 200, 87, .1); color: #ffe6ad; }
.dw-state[data-tone="warn"] i { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.dw-state[data-tone="bad"] { background: rgba(255, 93, 108, .12); color: #ffc4ca; }
.dw-state[data-tone="bad"] i { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.dw-state[data-tone="info"] { background: rgba(159, 215, 255, .1); color: #d6eeff; }
.dw-state[data-tone="info"] i { background: var(--info); box-shadow: 0 0 10px var(--info); }
.dw-body { display: grid; grid-template-columns: var(--dw-side) 1fr; min-height: 0; }
.dw-side { border-right: 1px solid var(--line2); padding: 12px 8px; background: rgba(18, 8, 18, .35); }
.dw-side li { padding: 8px 10px; border-radius: 8px; color: var(--dim); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-side li.on { color: var(--tx); background: rgba(255, 79, 163, .12); box-shadow: inset 2px 0 0 var(--p1); }
.dw-main { padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dw-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dw-tile { padding: 9px 11px; border-radius: 10px; background: rgba(36, 19, 39, .9); border: 1px solid var(--line2); min-width: 0; }
.dw-tile small { display: block; color: var(--dim); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
.dw-tile b { display: block; margin-top: 3px; font: 600 16px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-hp { margin-top: 6px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.dw-hp i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--ok); transition: background .3s; }
.dw-map { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); background: var(--sunk); }
.dw-map canvas { width: 100%; height: auto; aspect-ratio: 21 / 13; }
.dw-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none;
  background: rgba(18, 8, 18, .72); opacity: 0; transition: opacity .35s;
}
.dw-overlay.on { opacity: 1; }
.dw-overlay b { display: block; font: 700 18px/1.2 var(--display); color: #ffc4ca; }
.dw-overlay span { display: block; margin-top: 6px; color: var(--mut); }
.dw-shop {
  position: absolute; right: 10px; top: 10px; width: min(250px, 60%); padding: 10px 12px; border-radius: 10px;
  background: rgba(31, 15, 33, .94); border: 1px solid rgba(159, 215, 255, .3); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.dw-shop.on { opacity: 1; transform: none; }
.dw-shop small { display: block; color: var(--info); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
.dw-shop b { display: block; margin-top: 4px; font-weight: 600; font-size: 12.5px; }
.dw-shop .bar { margin-top: 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.dw-shop .bar i { display: block; height: 100%; width: 0; background: var(--info); }
.dw-supply { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dw-sup { padding: 8px 11px; border-radius: 10px; background: rgba(36, 19, 39, .9); border: 1px solid var(--line2); transition: border-color .3s, box-shadow .3s; }
.dw-sup.low { border-color: rgba(255, 200, 87, .5); box-shadow: 0 0 18px -6px rgba(255, 200, 87, .6); }
.dw-sup.done { border-color: rgba(95, 224, 160, .5); box-shadow: 0 0 18px -6px rgba(95, 224, 160, .6); }
.dw-sup div { display: flex; justify-content: space-between; gap: 8px; }
.dw-sup small { color: var(--dim); font-size: 10.5px; letter-spacing: .04em; }
.dw-sup b { font: 600 12.5px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.dw-sup .gauge { position: relative; margin-top: 6px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); }
.dw-sup .gauge i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--p2); }
.dw-sup .gauge em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--warn); }
.dw-log { margin: 0; padding: 8px 11px; list-style: none; border-radius: 10px; background: rgba(18, 8, 18, .7); border: 1px solid var(--line2); font: 11.5px/1.75 var(--mono); height: calc(1.75em * 5 + 16px); overflow: hidden; }
.dw-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mut); }
.dw-log li.fresh { animation: logIn .35s ease; }
.dw-log li time { color: var(--dim); margin-right: 10px; }
.dw-log li.k-kill { color: #ffd6ea; }
.dw-log li.k-warn { color: #ffe6ad; }
.dw-log li.k-ok { color: #c9f7df; }
.dw-log li.k-bad { color: #ffc4ca; }
.dw-log li.k-info { color: #d6eeff; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }
.demo-window.compact .dw-body { grid-template-columns: 1fr; }
.demo-window.compact .dw-side, .demo-window.compact .dw-supply { display: none; }
.demo-window.compact .dw-tiles { grid-template-columns: repeat(3, 1fr); }
.demo-window.compact .dw-log { height: calc(1.75em * 3 + 16px); }
@media (max-width: 700px) {
  .dw-body { grid-template-columns: 1fr; }
  .dw-side { display: none; }
  .dw-tiles { grid-template-columns: repeat(2, 1fr); }
  .demo-window.compact .dw-tiles { grid-template-columns: repeat(3, 1fr); }
  .dw-tile b { font-size: 14px; }
  .dw-supply { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .dw-sup { padding: 7px 8px; }
  .dw-sup div { flex-direction: column; gap: 1px; }
  .dw-sup b { font-size: 11.5px; }
}

/* 404 */
.lost { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--head) + 40px) 0 40px; }
.lost b { display: block; font: 700 clamp(90px, 18vw, 180px)/1 var(--display); letter-spacing: -.05em; }
.lost p { color: var(--mut); margin: 12px 0 28px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .reveal, .intro, .planet { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .planet { transform: translateX(-50%) !important; }
  .hero-visual .demo-window { transform: none; }
  .step { opacity: 1; }
}

/* ---------- page bits ---------- */
ol.start, ol.install { list-style: none; margin: 0; padding: 0; }
.stage-inner { width: 100%; }
@media (max-width: 979px) { .scene-tabs { margin-bottom: 14px; } }
.flow li em { font-style: normal; display: block; }
.featured-map .orbiter { transform-box: view-box; transform-origin: 50% 50%; animation: orbit 12s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.dl-row { display: contents; }
.dl-h { font-size: 20px; margin: 36px 0 0; }
.dl-note { margin-top: 22px; font-size: 14px; color: var(--dim); }
.doc, .lost { position: relative; isolation: isolate; overflow: hidden; }
.page-glow { inset: 0 0 auto 0; height: 560px; z-index: -1; pointer-events: none; }

/* ======================================================================
   v2 (2026-09-28): cinematic landing, sign-in, portal. Spec:
   docs/superpowers/specs/2026-09-28-auto-bot-site-v2-design.md
   ====================================================================== */

/* ---------- cinematic landing ---------- */
.cine { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.cine-bg { position: absolute; inset: -3%; z-index: -5; }
.cine-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.cine canvas[data-stars] { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -4; opacity: .9; }
.cine-fly { position: absolute; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.cine-pilot { position: absolute; right: max(1vw, calc((100vw - var(--wrap)) / 2 - 60px)); bottom: -3vh; height: 95vh; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cine-pilot img { position: relative; height: 100%; width: auto; max-width: none; filter: drop-shadow(0 0 50px rgba(193, 60, 255, .35)); animation: float 7s ease-in-out infinite; }
.cine-pilot::before { content: ""; position: absolute; inset: 8% -35% 0 -35%; z-index: -1; background: radial-gradient(closest-side, rgba(193, 60, 255, .38), transparent); animation: breathe 6s ease-in-out infinite; }
.visor { position: absolute; left: 43%; top: 5.2%; width: 26%; aspect-ratio: 2; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 150, 215, .95), rgba(255, 79, 163, .35) 55%, transparent); mix-blend-mode: screen; filter: blur(7px); animation: visor 3.8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.05); } }
@keyframes visor { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.cine-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.cine-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(22, 11, 23, .94) 0%, rgba(22, 11, 23, .7) 36%, rgba(22, 11, 23, 0) 62%),
              linear-gradient(180deg, rgba(22, 11, 23, .5) 0%, rgba(22, 11, 23, 0) 18%, rgba(22, 11, 23, 0) 72%, var(--bg) 100%); }
.cine-copy { position: relative; z-index: 2; padding-top: calc(var(--head) + 20px); padding-bottom: 60px; }
.cine-mark { width: 62px; height: 62px; filter: drop-shadow(0 0 18px rgba(255, 79, 163, .6)); }
.brand-big { font: 700 clamp(64px, 11vw, 152px)/.86 var(--display); letter-spacing: -.045em; margin: 20px 0 22px;
  background: linear-gradient(100deg, #fff 0%, #ffd0e8 28%, #ff8fcf 42%, #fff 50%, #ffd0e8 64%, #d6a8ff 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.cine-lead { font-size: clamp(20px, 2.1vw, 27px); font-weight: 500; line-height: 1.35; max-width: 540px; }
.cine-sub { margin-top: 14px; color: var(--mut); font-size: 17px; max-width: 470px; }
.cine .btn-row { margin-top: 36px; }
.cine .btn { height: 54px; padding: 0 28px; font-size: 16px; }
.cine-chips { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.cine-chips span { font-size: 13px; color: var(--mut); padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(22, 11, 23, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cine-chips b { color: var(--tx); font-weight: 600; }
@media (max-width: 900px) {
  .cine-pilot { right: -22vw; height: 78vh; opacity: .5; }
  .cine-shade { background: linear-gradient(90deg, rgba(22, 11, 23, .88), rgba(22, 11, 23, .55)), linear-gradient(180deg, transparent 70%, var(--bg)); }
}
/* flybys, spawned by hero.js */
.fly { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.fly img { display: block; width: 100%; height: auto; }
.fly .flame { position: absolute; width: 34%; height: 9%; border-radius: 50%; transform-origin: 100% 50%;
  background: linear-gradient(90deg, rgba(193, 60, 255, 0), rgba(255, 79, 163, .75) 55%, #ffd6ee); filter: blur(3px); animation: flame .1s linear infinite alternate; }
@keyframes flame { to { opacity: .7; width: 29%; } }
.fly.alien img { filter: drop-shadow(0 0 22px rgba(255, 93, 108, .35)); animation: bob 3.2s ease-in-out infinite; }
.fly.alien.hit img { filter: brightness(2.2) drop-shadow(0 0 30px rgba(255, 200, 87, .9)); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }

/* ---------- products (logo) ---------- */
.product-logo { height: 64px; width: auto; max-width: 70%; object-fit: contain; filter: drop-shadow(0 0 18px rgba(255, 79, 163, .35)); }
.featured .product-logo { height: 96px; }

/* ---------- locked preview ---------- */
.locked { position: relative; }
.lock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lock-card { position: relative; padding: 26px; border-radius: 20px; border: 1px solid var(--line2); min-height: 200px; overflow: hidden;
  background: linear-gradient(180deg, rgba(44, 23, 48, .8), rgba(31, 15, 33, .55)); }
.lock-card h3 { font-size: 19px; margin: 20px 0 14px; }
.lock-card .ghost i { display: block; height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .08); margin-top: 11px; filter: blur(2.5px); }
.lock-card .ghost i:nth-child(1) { width: 92%; }
.lock-card .ghost i:nth-child(2) { width: 74%; }
.lock-card .ghost i:nth-child(3) { width: 84%; }
.lock-card .ghost i:nth-child(4) { width: 58%; }
.lock-card .lock { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 79, 163, .12); color: var(--p2); }
.lock-card .lock svg { width: 16px; height: 16px; }
.lock-veil { position: absolute; inset: -20px; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 50%, rgba(22, 11, 23, .25), rgba(22, 11, 23, .88)); }
.lock-veil .box { pointer-events: auto; text-align: center; padding: 32px 36px; border-radius: 24px; max-width: 440px;
  background: rgba(31, 15, 33, .92); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 70px -20px rgba(255, 79, 163, .45); }
.lock-veil .box h3 { font-size: 24px; margin: 14px 0 10px; }
.lock-veil .box p { color: var(--mut); margin-bottom: 22px; }
.lock-veil .box .btn-row { justify-content: center; }
.big-lock { width: 54px; height: 54px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 30px -8px rgba(255, 79, 163, .8); }
.big-lock svg { width: 24px; height: 24px; }
.deco { position: absolute; pointer-events: none; z-index: -1; opacity: .9; animation: float 8s ease-in-out infinite; }
.deco.alien-l { width: 230px; left: -70px; top: 6%; }
.deco.boss-r { width: 300px; right: -100px; bottom: -40px; animation-delay: -3s; }
@media (max-width: 980px) { .lock-grid { grid-template-columns: repeat(2, 1fr); } .deco { display: none; } }
@media (max-width: 600px) { .lock-grid { grid-template-columns: 1fr; } }

/* ---------- battle band ---------- */
.band { position: relative; min-height: 82vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.band-bg { position: absolute; inset: -12% 0; z-index: -2; background: url(../img/battle.webp) 30% center / cover; transform: translateY(var(--py, 0)); will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22, 11, 23, .1), rgba(22, 11, 23, .88) 58%),
              linear-gradient(180deg, var(--bg) 0%, rgba(22, 11, 23, 0) 16%, rgba(22, 11, 23, 0) 84%, var(--bg) 100%); }
.band-copy { margin-left: auto; max-width: 520px; }
.band h2 { font-size: clamp(36px, 5vw, 62px); margin-top: 16px; }
.band p { color: var(--mut); font-size: 18px; margin-top: 16px; }
.kpis { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; }
.kpis b { display: block; font: 700 46px/1 var(--display); font-variant-numeric: tabular-nums; }
.kpis span { color: var(--mut); font-size: 14px; }
@media (max-width: 900px) { .band::after { background: linear-gradient(180deg, var(--bg), rgba(22, 11, 23, .75) 20%, rgba(22, 11, 23, .75) 80%, var(--bg)); } .band-copy { margin: 0; } }

/* ---------- sign in / sign up ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-art { position: relative; overflow: hidden; isolation: isolate; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; animation: drift 34s ease-in-out infinite alternate; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 11, 23, 0) 55%, var(--bg) 100%), linear-gradient(0deg, rgba(22, 11, 23, .85), rgba(22, 11, 23, 0) 45%); }
.auth-art-copy { position: absolute; left: 48px; right: 48px; bottom: 46px; z-index: 1; max-width: 460px; }
.auth-art-copy .brand { font-size: 22px; }
.auth-art-copy p { margin-top: 14px; color: var(--mut); font-size: 16px; }
.auth-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 96px clamp(24px, 6vw, 96px) 48px; }
.auth-top { position: absolute; top: 26px; left: clamp(24px, 6vw, 96px); right: clamp(24px, 6vw, 96px); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--mut); font-size: 14px; font-weight: 500; }
.back:hover { color: var(--tx); }
.back svg { width: 16px; height: 16px; }
.auth h1 { font-size: clamp(34px, 4vw, 44px); margin: 12px 0 10px; }
.auth .sub { color: var(--mut); margin-bottom: 30px; max-width: 420px; }
.form { display: grid; gap: 14px; max-width: 420px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--mut); margin-bottom: 7px; letter-spacing: .02em; }
.field input { width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(18, 8, 18, .75); color: var(--tx);
  font: 500 15px var(--font); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: rgba(255, 143, 207, .6); box-shadow: 0 0 0 4px rgba(255, 79, 163, .12); }
.field .err { display: block; min-height: 18px; font-size: 13px; color: #ff9aa6; margin-top: 5px; }
.field.bad input { border-color: rgba(255, 93, 108, .65); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mut); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--p1); margin: 2px 0 0; flex: none; }
.check a { color: var(--p2); }
.form .btn { height: 52px; width: 100%; margin-top: 6px; }
.form-msg { font-size: 14px; color: #ff9aa6; min-height: 20px; }
.switch { margin-top: 22px; color: var(--mut); font-size: 15px; }
.switch a { color: var(--p2); font-weight: 600; }
.preview-note { margin-top: 28px; font-size: 13px; color: var(--dim); max-width: 420px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { height: 30vh; min-height: 200px; }
  .auth-art::after { background: linear-gradient(180deg, rgba(22, 11, 23, 0) 30%, var(--bg)); }
  .auth-art-copy { display: none; }
  .auth-panel { padding-top: 24px; }
  .auth-top { position: static; margin-bottom: 26px; }
}

/* ---------- portal ---------- */
.gate body { visibility: hidden; }
.portal-body { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.p-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 22px 16px; overflow-y: auto;
  border-right: 1px solid var(--line2); background: linear-gradient(180deg, rgba(36, 19, 39, .75), rgba(18, 8, 18, .95)); }
.p-side .brand { padding: 4px 10px 20px; }
.p-nav { display: flex; flex-direction: column; gap: 3px; }
.p-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--mut); font-weight: 500; font-size: 15px; transition: background .2s, color .2s; }
.p-nav a svg { width: 18px; height: 18px; flex: none; }
.p-nav a:hover { color: var(--tx); background: rgba(255, 255, 255, .03); }
.p-nav a[aria-current="page"] { color: var(--tx); background: rgba(255, 79, 163, .12); box-shadow: inset 2px 0 0 var(--p1); }
.p-nav .sep { height: 1px; background: var(--line2); margin: 10px 8px; }
.p-nav small { padding: 6px 12px 2px; color: var(--dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.p-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); }
.p-user .av { width: 38px; height: 38px; border-radius: 11px; flex: none; background: url(../img/helmet.webp) center / cover; box-shadow: 0 0 0 1px var(--line); }
.p-user b { display: block; font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-user small { color: var(--dim); font-size: 12px; }
.p-user button { margin-left: auto; border: 0; background: transparent; color: var(--mut); cursor: pointer; padding: 7px; border-radius: 9px; display: grid; place-items: center; }
.p-user button:hover { color: var(--tx); background: rgba(255, 255, 255, .05); }
.p-user button svg { width: 18px; height: 18px; }
.p-main { min-width: 0; }
.p-top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 32px; border-bottom: 1px solid var(--line2);
  background: rgba(22, 11, 23, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.p-top h1 { font-size: 18px; letter-spacing: -.01em; }
.p-top .grow { flex: 1; }
.p-burger { display: none; width: 40px; height: 40px; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.p-burger svg { width: 18px; height: 18px; }
.preview-badge { font-size: 12px; font-weight: 600; color: #ffe6ad; padding: 6px 11px; border-radius: 999px; background: rgba(255, 200, 87, .1); border: 1px solid rgba(255, 200, 87, .25); white-space: nowrap; }
.p-content { padding: 32px; max-width: 1260px; margin: 0 auto; }
.p-section { padding: 44px 0 8px; }
.p-section > .section-head { margin-bottom: 30px; }
.p-section .section-head h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 14px 0 12px; }
.p-shade { display: none; }
.portal-body .stage { top: calc(64px + 20px); height: calc(100vh - 64px - 40px); }
@media (max-width: 980px) {
  .portal-body { grid-template-columns: 1fr; }
  .p-side { position: fixed; z-index: 70; left: 0; top: 0; width: 280px; transform: translateX(-102%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .p-open .p-side { transform: none; box-shadow: 0 0 90px rgba(0, 0, 0, .85); }
  .p-open .p-shade { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .5); }
  .p-burger { display: inline-grid; }
  .p-top { padding: 0 16px; }
  .p-content { padding: 22px 16px; }
}

/* banner */
.p-banner { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; min-height: 280px; padding: 38px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); }
.p-banner > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.p-banner::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(22, 11, 23, .94), rgba(22, 11, 23, .45) 62%, rgba(22, 11, 23, .15)); }
.p-banner h2 { font-size: clamp(30px, 4vw, 48px); margin-top: 12px; }
.p-banner p { color: var(--mut); margin-top: 12px; max-width: 540px; font-size: 17px; }
.p-banner .btn-row { margin-top: 24px; }
.p-banner .art { position: absolute; right: 2%; bottom: -6%; height: 112%; width: auto; max-width: 46%; object-fit: contain; z-index: -1;
  filter: drop-shadow(0 0 40px rgba(255, 79, 163, .35)); animation: float 7s ease-in-out infinite; }
@media (max-width: 700px) { .p-banner { padding: 26px; min-height: 240px; } .p-banner .art { opacity: .35; } }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.quick a { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 18px; border: 1px solid var(--line2); background: rgba(31, 15, 33, .6); transition: border-color .2s, transform .2s; }
.quick a:hover { border-color: rgba(255, 143, 207, .35); transform: translateY(-2px); }
.quick b { display: block; font-size: 16px; }
.quick span { color: var(--mut); font-size: 13px; }
@media (max-width: 800px) { .quick { grid-template-columns: 1fr; } }
.note-card { margin-top: 18px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line2); background: rgba(31, 15, 33, .6); }
.note-card h3 { font-size: 17px; }
.note-card p { color: var(--mut); margin-top: 8px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump a { font-size: 13px; font-weight: 600; color: var(--mut); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(22, 11, 23, .5); }
.jump a:hover { color: var(--tx); border-color: rgba(255, 143, 207, .4); }

/* can / cannot */
.cant { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cant li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255, 93, 108, .16); background: rgba(255, 93, 108, .035); }
.cant .x { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 93, 108, .12); color: #ff9aa6; }
.cant .x svg { width: 14px; height: 14px; }
.cant li[data-soon] { border-color: rgba(255, 200, 87, .2); background: rgba(255, 200, 87, .04); }
.cant li[data-soon] .x { background: rgba(255, 200, 87, .12); color: #ffe6ad; }
.cant li[data-soon] .x svg { width: 16px; height: 16px; }
.cant b { display: block; font-size: 15px; font-weight: 600; }
.cant span { display: block; color: var(--mut); font-size: 14px; margin-top: 2px; }
@media (max-width: 800px) { .cant { grid-template-columns: 1fr; } }

/* galaxy map */
.galaxy { position: relative; border-radius: 24px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(60% 65% at 50% 48%, rgba(193, 60, 255, .14), transparent 70%), #110711; }
.galaxy svg { display: block; width: 100%; height: auto; }
.g-edge { fill: none; stroke: rgba(255, 143, 207, .2); stroke-width: 1.3; transition: stroke .4s; }
.g-edge.hot { stroke: rgba(255, 143, 207, .8); stroke-width: 2.2; }
.g-node .halo { opacity: .22; transition: opacity .3s; }
.g-node text { font: 600 12px var(--mono); fill: rgba(251, 234, 244, .85); text-anchor: middle; pointer-events: none; }
.g-node:hover .halo, .g-node.on .halo { opacity: .7; }
.g-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px 22px; border-top: 1px solid var(--line2); font-size: 13px; color: var(--mut); }
.g-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.g-count { margin-left: auto; color: var(--tx); font-weight: 600; }
.g-route { position: absolute; left: 18px; top: 16px; font: 600 12px var(--mono); color: var(--tx); padding: 7px 11px; border-radius: 10px; background: rgba(18, 8, 18, .85); border: 1px solid var(--line); max-width: calc(100% - 36px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- v2 small fixes ---------- */
.field label.check { display: flex; font-size: 14px; font-weight: 500; letter-spacing: 0; margin: 4px 0 0; }
.product-logo:not(.hidden) ~ .orb { display: none; }
.quick .icon { flex: none; }
.p-banner .chip { background: rgba(22, 11, 23, .6); }
.p-banner .top { margin-bottom: 4px; }
.dl-bad { margin-top: 12px; color: #ff9aa6; font-size: 14px; }
