/* =========================================================================
   Lagoon — 官网样式
   视觉语言：一次下潜。0 m 海面的焦散与光束 → 200 m 深处的生物荧光。
   液态玻璃（折射高光 + 背景模糊）承载内容，品牌色取自应用图标：
   靛蓝 #4752D6 → 潮青 #59D2E6，荧光点 #52E0C4，底色 #0A1838。
   ========================================================================= */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2212;
}

:root {
  --abyss: #02050d;
  --deep: #040a1a;
  --navy: #0a1838;
  --indigo: #4752d6;
  --indigo-hi: #5e6bff;
  --tide: #59d2e6;
  --glow: #52e0c4;
  --foam: #eaf4ff;
  --mist: rgba(214, 230, 255, 0.68);
  --haze: rgba(214, 230, 255, 0.46);
  --line: rgba(160, 205, 255, 0.14);
  --line-hi: rgba(180, 225, 255, 0.28);
  --amber: #ffb817;
  --coral: #e87575;
  --kelp: #77b894;

  --glass: rgba(14, 30, 64, 0.38);
  --glass-strong: rgba(10, 22, 50, 0.62);
  --glass-edge: linear-gradient(140deg, rgba(255, 255, 255, 0.42), rgba(120, 200, 255, 0.08) 32%, rgba(80, 120, 255, 0.04) 60%, rgba(82, 224, 196, 0.32));

  --font-sans: "Sora", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-ui: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fluid: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--abyss);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  /* no body background: the root paints the abyss, the fixed ocean canvas sits above it */
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body, .hero, .download { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, pre { font-family: var(--font-mono); font-size: 0.88em; }
p code, li code, dd code, summary code {
  padding: 0.08em 0.42em;
  border-radius: 6px;
  background: rgba(120, 180, 255, 0.1);
  border: 1px solid rgba(140, 200, 255, 0.14);
  color: #c9f3ff;
  white-space: nowrap;
}
::selection { background: rgba(89, 210, 230, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--tide); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--foam); color: var(--abyss);
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Ocean background ---------- */
#ocean, .ocean-fallback, .grain {
  position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
#ocean { z-index: -2; opacity: 0; transition: opacity 1.4s ease; }
#ocean.is-ready { opacity: 1; }
.ocean-fallback {
  z-index: -3;
  background:
    radial-gradient(120% 70% at 50% -10%, #0f4565 0%, rgba(15, 69, 101, 0) 60%),
    radial-gradient(80% 60% at 85% 30%, rgba(71, 82, 214, 0.25), transparent 70%),
    linear-gradient(180deg, #06142e 0%, #030918 45%, #02050d 100%);
}
.grain {
  z-index: -1; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Liquid glass primitive ---------- */
[data-glass], .glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border-radius: var(--radius-lg);
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 40px rgba(82, 224, 196, 0.03),
    0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
[data-glass]::before, .glass::before {
  /* refractive rim: a gradient border painted through a mask */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none; z-index: 1;
}
[data-glass]::after, .glass::after {
  /* specular highlight following the pointer */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, -20%), rgba(150, 230, 255, 0.13), transparent 55%);
  opacity: var(--spec, 0.6);
  transition: opacity 0.4s;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%;
  width: min(calc(100% - 28px), 980px);
  height: var(--nav-h);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: rgba(8, 18, 42, 0.42);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  transition: background 0.4s, transform 0.5s var(--ease-out);
}
.nav::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.nav.is-scrolled { background: rgba(6, 14, 34, 0.68); }
.nav__brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 600; font-size: 18px; letter-spacing: 0.02em;
}
.nav__mark { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(89, 210, 230, 0.45)); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--mist); font-size: 14px; transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--foam); background: rgba(150, 200, 255, 0.08); }
.nav__links a.is-active { color: var(--foam); background: rgba(120, 190, 255, 0.12); }
.nav__cta {
  padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px;
  color: #04121e; background: linear-gradient(120deg, var(--tide), var(--glow));
  box-shadow: 0 6px 24px -6px rgba(82, 224, 196, 0.6);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -6px rgba(82, 224, 196, 0.75); }
.nav__menu {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(150, 200, 255, 0.1); cursor: pointer; position: relative;
}
.nav__menu i {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--foam);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.nav__menu i:nth-of-type(1) { top: 17px; }
.nav__menu i:nth-of-type(2) { top: 25px; }
.nav__menu[aria-expanded="true"] i:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] i:nth-of-type(2) { top: 21px; transform: rotate(-45deg); }
.nav__sheet {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  display: grid; padding: 10px; border-radius: 26px;
  background: rgba(6, 14, 34, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  animation: sheet-in 0.4s var(--ease-out);
}
.nav__sheet[hidden] { display: none; }
.nav__sheet a { padding: 14px 16px; border-radius: 16px; text-decoration: none; font-size: 17px; }
.nav__sheet a:hover, .nav__sheet a:focus-visible { background: rgba(120, 190, 255, 0.1); }
.nav__sheet a:last-child { margin-top: 6px; text-align: center; font-weight: 600; color: #04121e; background: linear-gradient(120deg, var(--tide), var(--glow)); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

/* ---------- Depth gauge ---------- */
.depth {
  position: fixed; z-index: 40; right: clamp(14px, 2vw, 30px); top: 50%;
  height: min(56vh, 460px); width: 64px; transform: translateY(-50%);
  pointer-events: none; font-family: var(--font-mono);
}
.depth__rail { position: absolute; right: 8px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: rgba(160, 205, 255, 0.12); overflow: hidden; }
.depth__fill { position: absolute; left: 0; right: 0; top: 0; height: 100%; transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(var(--tide), var(--indigo-hi) 60%, var(--glow)); }
.depth__marks { position: absolute; inset: 0; }
.depth__mark {
  position: absolute; right: 0; transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.06em; color: var(--haze); white-space: nowrap;
  transition: color 0.3s;
}
.depth__mark::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.8; }
.depth__mark.is-passed { color: var(--tide); }
.depth__readout {
  position: absolute; right: 18px; top: calc(var(--p, 0) * 100%);
  transform: translateY(-50%); font-size: 13px; color: var(--foam);
  padding: 3px 8px; border-radius: 8px; background: rgba(6, 16, 38, 0.7);
  border: 1px solid var(--line-hi); white-space: nowrap;
}
.depth__readout small { margin-left: 2px; color: var(--haze); font-size: 10px; }
.depth__readout span::before { content: "−"; }
.depth__readout span[data-zero]::before { content: ""; }
.depth__marks .depth__mark { opacity: 0; transition: opacity 0.3s, color 0.3s; }
.depth:hover .depth__mark, .depth.show-marks .depth__mark { opacity: 1; }

/* ---------- Common type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-size: 13px; letter-spacing: 0.14em; color: var(--mist);
}
.eyebrow__depth {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px; color: var(--glow);
  border: 1px solid rgba(82, 224, 196, 0.35); background: rgba(82, 224, 196, 0.07);
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h2 {
  font-size: clamp(34px, 5.2vw, 68px); line-height: 1.12; letter-spacing: -0.015em;
  background: linear-gradient(180deg, #ffffff 30%, #a9d8ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.section__lede { max-width: 640px; margin: 24px 0 0; color: var(--mist); font-size: clamp(15px, 1.4vw, 18px); text-shadow: 0 1px 18px rgba(2, 6, 18, 0.9); }

.section {
  position: relative; width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto; padding: clamp(110px, 16vh, 180px) var(--gutter) 40px;
}
.section__head { margin-bottom: clamp(44px, 7vh, 80px); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .screen-chat .chat-body [data-show] { opacity: 1; transform: none; max-height: none; margin-top: 0; }
.no-js .screen-chat .sheet { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --tx: 0px; --ty: 0px;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 26px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.2;
  transform: translate(var(--tx), var(--ty));
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.35s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { display: block; font-size: 11.5px; font-weight: 500; opacity: 0.72; letter-spacing: 0.02em; margin-top: 3px; }
.btn--primary {
  color: #03131d;
  background: linear-gradient(120deg, #7be6f3 0%, var(--tide) 35%, var(--glow) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 18px 44px -14px rgba(82, 224, 196, 0.7);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 22px 54px -12px rgba(82, 224, 196, 0.9); }
.btn--glass {
  color: var(--foam); background: rgba(120, 180, 255, 0.08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-hi);
}
.btn--glass:hover { background: rgba(120, 180, 255, 0.14); }
.btn--block { width: 100%; justify-content: center; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow-x: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 24px;
  max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) var(--gutter) 80px;
}
.hero__title {
  font-size: clamp(40px, 4.7vw, 78px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600;
}
.hero__title .line > span { white-space: nowrap; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.3s var(--ease-out) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: none; } }
.shimmer {
  font-style: normal;
  background: linear-gradient(100deg, #8fa0ff 0%, var(--tide) 30%, #d9fbff 48%, var(--glow) 62%, #7d8bff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s var(--ease-fluid) infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero__lede {
  text-shadow: 0 1px 18px rgba(2, 6, 18, 0.9);
  max-width: 560px; margin: 30px 0 0; font-size: clamp(16px, 1.45vw, 19px); color: var(--mist);
  opacity: 0; animation: fade-up 1.2s 0.35s var(--ease-out) forwards;
}
.hero__lede strong { color: var(--foam); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; opacity: 0; animation: fade-up 1.2s 0.5s var(--ease-out) forwards; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--haze);
  opacity: 0; animation: fade-up 1.2s 0.65s var(--ease-out) forwards;
}
.hero__facts b { font-family: var(--font-sans); font-weight: 600; color: var(--glow); margin-right: 6px; }
.hero__facts b.is-preview { color: var(--amber); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__stage {
  position: relative; display: grid; place-items: center; min-height: 680px;
  perspective: 1600px;
  opacity: 0; animation: fade-in 1.6s 0.2s ease forwards;
}
@keyframes fade-in { to { opacity: 1; } }
.stage-note {
  position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; color: var(--haze); white-space: nowrap; letter-spacing: 0.03em;
}
.orbit {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px solid rgba(120, 200, 255, 0.12); transform: translate(-50%, -50%) rotateX(72deg);
  pointer-events: none;
}
.orbit--a { width: 560px; height: 560px; animation: spin 40s linear infinite; }
.orbit--b { width: 760px; height: 760px; border-style: dashed; border-color: rgba(82, 224, 196, 0.09); animation: spin 70s linear infinite reverse; }
.orbit--a::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 14px 4px rgba(82, 224, 196, 0.6);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); } }

.float-tag {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 14px; font-size: 13px; color: var(--foam); white-space: nowrap;
  background: rgba(10, 24, 56, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--line-hi), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  animation: bob 7s ease-in-out infinite;
}
.float-tag svg { width: 16px; height: 16px; color: var(--amber); }
.float-tag code { font-size: 12px; color: var(--tide); }
.float-tag--a { left: 0; top: 22%; }
.float-tag--b { right: -2%; top: 46%; animation-delay: -2.5s; }
.float-tag--c { left: 6%; bottom: 16%; animation-delay: -4.5s; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 0 rgba(82, 224, 196, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(82, 224, 196, 0); } 100% { box-shadow: 0 0 0 0 rgba(82, 224, 196, 0); } }
@keyframes bob { 50% { transform: translateY(-12px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px;
  border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(200, 230, 255, 0.4);
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--tide); animation: cue 2s var(--ease-fluid) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================================
   3D phone
   ========================================================================= */
.phone {
  --rx: 6deg; --ry: -16deg; --w: 312px;
  position: relative; z-index: 2; margin: 0;
  width: var(--w); aspect-ratio: 9 / 19.3;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.9s var(--ease-out);
  will-change: transform;
}
.hero .phone { animation: phone-float 9s ease-in-out infinite; }
@keyframes phone-float { 50% { translate: 0 -14px; } }
.phone__body {
  position: absolute; inset: 0; border-radius: 52px; transform-style: preserve-3d;
  background: linear-gradient(150deg, #3b4766, #0f1527 40%, #1e2944 70%, #4b5a7c);
  box-shadow:
    inset 0 0 0 1.5px rgba(210, 230, 255, 0.35),
    inset 0 0 0 5px #0b0f1a,
    0 60px 120px -40px rgba(0, 0, 0, 0.95),
    0 0 90px -30px rgba(89, 210, 230, 0.45);
}
.phone__edge {
  /* metal thickness: stacked layers pushed back in Z */
  position: absolute; inset: 0; border-radius: inherit; transform: translateZ(-9px);
  background: linear-gradient(90deg, #6c7aa0, #1c2540 20%, #0d1324 50%, #1c2540 80%, #8090b8);
  box-shadow: 0 0 0 1px rgba(150, 180, 230, 0.25);
}
.phone__edge::before, .phone__edge::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit;
}
.phone__edge::before { transform: translateZ(3px); }
.phone__edge::after { transform: translateZ(6px); }
.phone__screen {
  position: absolute; inset: 9px; border-radius: 44px; overflow: hidden;
  transform: translateZ(1px);
  font-family: var(--font-ui); letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
.phone__glare {
  position: absolute; inset: 9px; border-radius: 44px; pointer-events: none; transform: translateZ(2px);
  background: linear-gradient(calc(115deg + var(--gl, 0deg)), rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 22%, transparent 40%, transparent 70%, rgba(120, 220, 255, 0.07));
  mix-blend-mode: screen;
}


/* status bar */
.sb {
  position: relative; z-index: 2; height: 38px; display: flex; align-items: center; justify-content: space-between;
  padding: 6px 22px 0 26px; font-size: 13px; font-weight: 600; color: #f2f4f7;
}
.sb__time { font-variant-numeric: tabular-nums; }
.sb__pill {
  position: absolute; left: 66px; top: 13px;
  display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 9px 0 7px; border-radius: 999px;
  background: #1f2a3c; color: #e9f1ff; font-size: 11.5px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: width 0.4s var(--ease-out);
}
.sb__pill b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sb__icons { display: inline-flex; align-items: center; gap: 6px; }
.sig { width: 15px; height: 10px; background: linear-gradient(90deg, currentColor 0 18%, transparent 18% 27%, currentColor 27% 45%, transparent 45% 54%, currentColor 54% 72%, transparent 72% 81%, currentColor 81%); -webkit-mask: linear-gradient(to top right, #000 50%, transparent 50%); mask: linear-gradient(to top right, #000 50%, transparent 50%); }
.bat { width: 22px; height: 11px; border-radius: 3.5px; box-shadow: inset 0 0 0 1.3px rgba(255, 255, 255, 0.55); position: relative; }
.bat::after { content: ""; position: absolute; left: 2.5px; top: 2.5px; bottom: 2.5px; width: 62%; border-radius: 1.5px; background: currentColor; }
.spin-mini {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  border: 1.6px solid rgba(255, 255, 255, 0.25); border-top-color: var(--glow);
  animation: rot 0.9s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* --- Home screen (MIUIX dark) --- */
.screen-home { background: #000; color: #f1f3f6; }
.home-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px 22px; }
.home-top__title { font-size: 25px; font-weight: 700; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 6px; }
.chev { display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: 0.6; }
.circ { width: 36px; height: 36px; border-radius: 50%; background: #1c1c1e; display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.circ i { width: 4px; height: 4px; border-radius: 50%; background: #d9dce1; }
.chips { display: flex; gap: 8px; padding: 4px 18px 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; background: #1c1c1e; font-size: 13px; color: #c9ccd2; white-space: nowrap; }
.chip.is-on { background: rgba(39, 122, 247, 0.2); color: #6fa8ff; font-weight: 600; }
.chip .ok { width: 7px; height: 7px; border-radius: 50%; background: #3ccf7a; box-shadow: 0 0 6px #3ccf7a; }
.chip--add { padding: 0 12px; }
.grp { display: flex; align-items: center; gap: 8px; padding: 12px 22px 6px; font-size: 13px; color: #8c9098; font-weight: 600; }
.grp .chev { width: 6px; height: 6px; transform: rotate(45deg) translateY(-2px); border-width: 1.6px; }
.rows { list-style: none; margin: 0 12px; padding: 4px 0; border-radius: 22px; background: #121214; }
.row { position: relative; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; font-size: 14.5px; color: #c3c6cc; white-space: nowrap; transition: background 0.6s; }
.row span { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.row.is-bold { color: #fff; font-weight: 600; }
.row em { font-style: normal; font-size: 12px; color: var(--amber); font-weight: 600; }
.row.is-flash { background: rgba(39, 122, 247, 0.14); }
.st { width: 18px; height: 18px; flex: none; display: grid; place-items: center; position: relative; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #45484f; }
.st--run::before { width: 14px; height: 14px; background: none; border: 2px solid rgba(255, 255, 255, 0.16); border-top-color: #4b9bff; animation: rot 0.9s linear infinite; }
.st--wait::before { width: 0; height: 0; border-radius: 0; background: none; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--amber); }
.st--wait::after { content: "!"; position: absolute; top: 3px; font-size: 10px; font-weight: 800; color: #000; }
.st--unread::before { width: 8px; height: 8px; background: #3482ff; box-shadow: 0 0 8px rgba(52, 130, 255, 0.8); }
.st--fail::before { width: 8px; height: 8px; background: var(--coral); }
.fab {
  position: absolute; right: 22px; bottom: 34px; width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 20px; background: #277af7; color: #fff; font-size: 28px; font-weight: 300;
  box-shadow: 0 12px 28px -6px rgba(39, 122, 247, 0.65);
}
.gesture { position: absolute; z-index: 5; left: 50%; bottom: 9px; width: 112px; height: 4px; margin-left: -56px; border-radius: 3px; background: rgba(255, 255, 255, 0.6); }

/* --- Chat screen (Qoder-dark canvas used by the app) --- */
.screen-chat { background: #0d0d0b; color: #dadbd5; display: flex; flex-direction: column; }
.sb--chat { flex: none; }
.chat-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; }
.qc { width: 38px; height: 38px; flex: none; border-radius: 50%; background: #1b1a17; display: grid; place-items: center; transition: background 0.4s, box-shadow 0.4s; }
.qc svg { width: 20px; height: 20px; fill: none; stroke: #dadbd5; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.qc svg circle { fill: #dadbd5; stroke: none; }
.chat-top__title { flex: 1; min-width: 0; text-align: center; line-height: 1.25; }
.chat-top__title b { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #ecede8; }
.chat-top__title small { font-size: 11px; color: #96978f; }
.chat-body { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 6px 14px 12px; font-size: 13.5px; line-height: 1.6; }
.chat-body code { font-family: var(--font-mono); font-size: 11.5px; padding: 1px 5px; border-radius: 5px; background: #343431; color: #e8e8e3; }
[data-show] { transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out), max-height 0.7s var(--ease-out), margin 0.7s; }
.msg-user { align-self: flex-end; max-width: 84%; padding: 9px 13px; border-radius: 18px 18px 6px 18px; background: #292a25; color: #ecede8; }
.msg-ai { color: #dadbd5; }
.trace { border-radius: 14px; background: #1b1a17; overflow: hidden; }
.trace__head { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 0; background: none; font-size: 13px; color: #96978f; text-align: left; cursor: default; font-family: inherit; }
.trace__head .chev { margin-left: auto; transform: rotate(-45deg); width: 7px; height: 7px; border-width: 1.6px; transition: transform 0.5s var(--ease-out); }
.trace__icon { width: 15px; height: 15px; border-radius: 50%; border: 1.7px solid #77b894; position: relative; }
.trace__icon::after { content: ""; position: absolute; left: 3.5px; top: 1.5px; width: 3.5px; height: 6px; border-right: 1.6px solid #77b894; border-bottom: 1.6px solid #77b894; transform: rotate(40deg); }
.trace__list { list-style: none; margin: 0; padding: 0 12px; max-height: 0; overflow: hidden; transition: max-height 0.8s var(--ease-out), padding 0.6s; }
.trace__list li { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; border-top: 1px solid #2a2a26; font-size: 12px; color: #96978f; white-space: nowrap; }
.trace__list li span { flex: none; width: 30px; color: #73746d; }
.trace__list code { background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; }
.trace__list ins { text-decoration: none; color: #77b894; }
.trace__list del { text-decoration: none; color: #e87575; }
.screen-chat.is-trace-open .trace__list { max-height: 170px; padding-bottom: 6px; }
.screen-chat.is-trace-open .trace__head .chev { transform: rotate(45deg); }
.perm { padding: 12px; border-radius: 16px; background: #1b1a17; box-shadow: inset 0 0 0 1px rgba(255, 184, 23, 0.32); }
.perm__title { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font-weight: 600; color: #ffb817; font-size: 13px; }
.perm__title svg { width: 15px; height: 15px; }
.perm__lead { margin: 0 0 6px; font-size: 12.5px; color: #96978f; }
.perm__cmd { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: #0d0d0b; font-size: 11px; color: #e8e8e3; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.perm__actions { display: flex; gap: 6px; }
.pb { flex: 1; text-align: center; padding: 7px 0; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; transition: transform 0.3s, background 0.3s; }
.pb--ghost { background: #292a25; color: #dadbd5; }
.pb--solid { background: #dadbd5; color: #0d0d0b; }
.screen-chat.is-allowed .pb--solid { transform: scale(0.94); background: #77b894; }
.running { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #96978f; }
.composer { flex: none; display: flex; align-items: center; gap: 8px; margin: 0 12px 26px; padding: 6px 6px 6px 10px; border-radius: 999px; background: #171813; box-shadow: inset 0 0 0 1px #2c2c27; }
.composer__plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #96978f; font-size: 20px; }
.composer__field { flex: 1; min-width: 0; font-size: 13.5px; color: #73746d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer__field.is-typing { color: #ecede8; }
.composer__field.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--glow); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer__btn { width: 34px; height: 34px; border-radius: 50%; background: #dadbd5; position: relative; flex: none; transition: background 0.4s; }
.composer__btn::before { /* send arrow */
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -3px 0 0 -4.5px;
  border-left: 2px solid #0d0d0b; border-top: 2px solid #0d0d0b; transform: rotate(45deg);
}
.composer__btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 12px; margin: -4px 0 0 -1px; background: #0d0d0b; border-radius: 1px; }
.composer__btn.is-stop::before { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border: 0; border-radius: 2px; background: #0d0d0b; transform: none; }
.composer__btn.is-stop::after { display: none; }
.sheet {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; padding: 10px 16px 30px;
  border-radius: 26px 26px 0 0; background: #1b1a17; box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.6);
}
.sheet__grip { display: block; width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #3b3b36; }
.sheet__title { margin: 0 0 6px; font-size: 12px; color: #96978f; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 2px; border-top: 1px solid #2a2a26; font-size: 14px; }
.sheet li b { font-weight: 500; color: #ecede8; }
.sheet li span { font-size: 11.5px; color: #73746d; font-family: var(--font-mono); white-space: nowrap; }
.sheet li.danger b { color: #e87575; }
.screen-chat .sheet { transform: translateY(105%); }
.screen-chat[data-at="5"] .sheet { transform: none; }
.screen-chat[data-at="5"] [data-more] { background: #3a3a35; box-shadow: 0 0 0 4px rgba(82, 224, 196, 0.2); }

/* step-gated visibility for chat elements */
.screen-chat .chat-body [data-show] { opacity: 0; transform: translateY(14px); max-height: 0; margin-top: -12px; overflow: hidden; }
.screen-chat .chat-body [data-show].is-shown { opacity: 1; transform: none; max-height: 320px; margin-top: 0; }

/* =========================================================================
   Connect (currents)
   ========================================================================= */
.currents {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start;
}
.currents__toolbar { grid-column: 1 / -1; display: inline-flex; justify-self: start; padding: 4px; border-radius: 999px; background: rgba(10, 24, 56, 0.5); box-shadow: inset 0 0 0 1px var(--line); }
.seg {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  color: var(--mist); font-size: 14px; transition: background 0.35s, color 0.35s;
}
.seg:hover { color: var(--foam); }
.seg.is-on { background: rgba(130, 200, 255, 0.16); color: var(--foam); box-shadow: inset 0 0 0 1px var(--line-hi); }
.currents__canvas { position: relative; }
.currents__svg { width: 100%; height: auto; overflow: visible; }
.thread { fill: none; stroke: url(#threadGrad); stroke-width: 2; stroke-linecap: round; transition: opacity 0.6s, stroke-dasharray 0.6s; }
.thread--glow { stroke-width: 9; opacity: 0.18; filter: url(#soft); }
.thread.is-off { opacity: 0.12; stroke-dasharray: 4 8; }
.thread--glow.is-off { opacity: 0; }
.thread.is-recon { opacity: 0.5; stroke-dasharray: 2 10; animation: dash 0.8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.packet { fill: #d9fbff; }
.packet--up { fill: var(--indigo-hi); }
.node { cursor: pointer; outline: none; }
.node__halo { fill: rgba(89, 210, 230, 0.06); stroke: rgba(89, 210, 230, 0.2); transition: r 0.6s var(--ease-out), opacity 0.5s; }
.node__orb { fill: url(#orbGrad); stroke: rgba(190, 240, 255, 0.55); stroke-width: 1; transition: opacity 0.5s; }
.node__core { fill: var(--glow); transition: fill 0.4s; }
.node__name { fill: var(--foam); font-size: 15px; font-weight: 600; font-family: var(--font-sans); }
.node__meta { fill: var(--haze); font-size: 11.5px; font-family: var(--font-mono); }
.node__state { font-size: 11.5px; font-family: var(--font-sans); fill: var(--glow); }
.node.is-idle .node__orb { opacity: 0.45; }
.node.is-idle .node__core { fill: #5a6a85; }
.node.is-idle .node__state { fill: var(--haze); }
.node.is-recon .node__core { fill: var(--amber); }
.node.is-recon .node__state { fill: var(--amber); }
.node:hover .node__halo, .node:focus-visible .node__halo { opacity: 1; stroke: rgba(89, 210, 230, 0.6); }
.node:focus-visible .node__orb { stroke: var(--tide); stroke-width: 2; }
.cur-phone__body { fill: #141c30; stroke: rgba(200, 230, 255, 0.5); stroke-width: 1.2; }
.cur-phone__screen { fill: #060b16; }
.currents__status { margin: 6px 0 0; min-height: 1.7em; text-align: center; color: var(--mist); font-size: 14px; }
.currents__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.currents__facts li {
  display: grid; gap: 4px; padding: 18px 20px; border-radius: 20px;
  background: rgba(10, 24, 56, 0.34); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.currents__facts b { font-size: 15.5px; font-weight: 600; }
.currents__facts span { font-size: 14px; color: var(--mist); line-height: 1.65; }

/* =========================================================================
   Story (session scrollytelling)
   ========================================================================= */
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); }
.story__steps { list-style: none; margin: 0; padding: 0; }
.step {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  max-width: 470px; opacity: 0.28; transition: opacity 0.6s var(--ease-out);
}
.step:first-child { min-height: 60vh; }
.step:last-child { min-height: 100vh; }
.step.is-active { opacity: 1; }
.step__n { font-family: var(--font-mono); font-size: 13px; color: var(--glow); letter-spacing: 0.1em; }
.step h3 { margin: 10px 0 14px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; }
.step p { margin: 0; color: var(--mist); font-size: 16.5px; }
.story__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; perspective: 1600px; }
.phone--chat { --rx: 2deg; --ry: -8deg; --w: 330px; }
.story__dots { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.story__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(200, 230, 255, 0.2); transition: background 0.4s, transform 0.4s; }
.story__dots i.is-on { background: var(--glow); transform: scale(1.5); }

/* =========================================================================
   Live updates
   ========================================================================= */
.live__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.live__device { position: relative; }
.live__os { display: inline-flex; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: rgba(10, 24, 56, 0.5); box-shadow: inset 0 0 0 1px var(--line); }
.shade {
  position: relative; padding: 18px; border-radius: 36px; min-height: 380px;
  background: linear-gradient(180deg, rgba(12, 22, 46, 0.86), rgba(6, 12, 28, 0.72));
  -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--line-hi), 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 120px -50px rgba(82, 224, 196, 0.35);
  font-family: var(--font-ui);
}
.shade__bar { position: relative; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 10px 0 12px; font-size: 14px; font-weight: 600; }
.shade__pill {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 13px 0 10px; border-radius: 999px;
  background: #1d2a3f; font-size: 13.5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 30px -6px rgba(82, 224, 196, 0.55);
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
}
.shade__pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.shade__pill b { font-weight: 600; font-variant-numeric: tabular-nums; }
.shade__pill.is-hidden { opacity: 0; transform: translateX(-50%) scale(0.6); }
.notif {
  margin-top: 16px; padding: 18px 18px 16px; border-radius: 26px; background: rgba(32, 42, 62, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
}
.notif.is-gone { opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none; }
.notif__head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #aab4c6; }
.notif__icon { width: 20px; height: 20px; border-radius: 6px; background: #0a1838; padding: 2px; }
.notif__dot { opacity: 0.6; }
.notif__stage { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(82, 224, 196, 0.16); color: var(--glow); }
.notif__stage[data-stage="SETTLED"] { background: rgba(170, 180, 200, 0.16); color: #c9d2e2; }
.notif__title { margin: 10px 0 2px; font-size: 18px; font-weight: 700; color: #fff; }
.notif__text { margin: 0; font-size: 13.5px; color: #aab4c6; }
.notif__track { display: flex; gap: 4px; height: 8px; margin: 14px 0 12px; }
.notif__track[hidden] { display: none; }
.notif__track span { height: 100%; border-radius: 4px; flex: var(--n, 1) 1 0; transition: flex 0.6s var(--ease-out), background 0.4s; }
.notif__track .seg-run { background: #4b9bff; }
.notif__track .seg-wait { background: var(--amber); }
.notif__track .seg-done { background: #3ccf7a; }
.notif__track .seg-fail { background: var(--coral); }
.notif__track.is-indeterminate { position: relative; height: 4px; border-radius: 2px; background: rgba(75, 155, 255, 0.22); overflow: hidden; }
.notif__track.is-indeterminate::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 2px; background: #4b9bff; animation: indet 1.6s var(--ease-fluid) infinite; }
@keyframes indet { from { left: -40%; } to { left: 100%; } }
.notif__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: #dfe6f2; }
.notif__lines li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif__lines li.more { color: #8f9ab0; }
.notif__lines .tag-run { color: #7fb6ff; }
.notif__lines .tag-wait { color: var(--amber); }
.notif__lines .tag-done { color: #5fe09a; }
.notif__lines .tag-fail { color: var(--coral); }
.shade__empty { margin: 60px 0 0; text-align: center; color: #8f9ab0; font-size: 14px; }
.live__caption { margin: 14px 0 0; font-size: 12.5px; color: var(--haze); }
.live__panel { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: rgba(10, 24, 56, 0.34); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.live__panel-title { margin: 0 0 16px; font-size: 14px; color: var(--mist); }
.live__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ctl {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 16px; cursor: pointer;
  background: rgba(130, 190, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; text-align: left;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.ctl span { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 7px; background: rgba(130, 190, 255, 0.12); font-size: 12px; color: var(--tide); font-weight: 700; }
.ctl:hover { background: rgba(130, 190, 255, 0.15); box-shadow: inset 0 0 0 1px var(--line-hi); }
.ctl:active { transform: scale(0.97); }
.ctl:disabled { opacity: 0.38; cursor: not-allowed; }
.live__stages { margin: 24px 0 0; display: grid; gap: 10px; }
.live__stages div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 14px; border-radius: 14px; transition: background 0.4s, box-shadow 0.4s; }
.live__stages div.is-current { background: rgba(82, 224, 196, 0.08); box-shadow: inset 0 0 0 1px rgba(82, 224, 196, 0.3); }
.live__stages dt { font-weight: 600; font-size: 14px; }
.live__stages dd { margin: 0; font-size: 13.5px; color: var(--mist); }
.live__foot { margin: 18px 0 0; font-size: 13px; color: var(--haze); }

/* =========================================================================
   Bento (capabilities)
   ========================================================================= */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cell { padding: 26px 26px 28px; min-height: 260px; display: flex; flex-direction: column; overflow: hidden; }
.cell > * { position: relative; z-index: 2; }
.cell--wide { grid-column: span 2; }
.cell--tall { grid-row: span 2; }
.cell h3 { margin-top: auto; font-size: 19px; }
.cell p { margin: 10px 0 0; font-size: 14.5px; color: var(--mist); line-height: 1.7; }
.cell__art { height: 88px; margin-bottom: 22px; display: flex; align-items: center; gap: 8px; }
.cell--tall .cell__art { height: auto; flex: 1; justify-content: center; }
.art-servers .srv { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(130, 190, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--mist); white-space: nowrap; }
.art-servers .srv i { width: 7px; height: 7px; border-radius: 50%; background: #5a6a85; }
.art-servers .srv.is-on { color: #8ec0ff; background: rgba(52, 130, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(52, 130, 255, 0.4); }
.art-servers .srv.is-on i { background: #3ccf7a; box-shadow: 0 0 8px #3ccf7a; }
.art-group { gap: 0; padding: 4px; border-radius: 14px; background: rgba(130, 190, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); align-self: flex-start; height: auto; margin-bottom: 40px; }
.art-group span { padding: 8px 14px; font-size: 13px; color: var(--haze); border-radius: 10px; }
.art-group span.is-on { background: rgba(89, 210, 230, 0.16); color: var(--foam); }
.art-model span { padding: 8px 14px; border-radius: 12px; background: rgba(130, 190, 255, 0.08); font-family: var(--font-mono); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.art-model b { color: var(--tide); }
.art-cmd code { font-size: 30px; color: var(--glow); font-weight: 700; }
.art-cmd span { font-family: var(--font-mono); font-size: 13px; padding: 6px 10px; border-radius: 9px; background: rgba(82, 224, 196, 0.08); color: var(--mist); }
.art-diff { flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; }
.art-diff i { height: 8px; border-radius: 4px; background: rgba(160, 200, 255, 0.14); width: 70%; }
.art-diff i:nth-child(2) { width: 88%; }
.art-diff i:nth-child(4) { width: 52%; }
.art-diff .add { background: rgba(119, 184, 148, 0.55); }
.art-diff .del { background: rgba(232, 117, 117, 0.55); width: 60%; }
.art-lock svg { width: 120px; height: 120px; fill: none; stroke: url(#markGrad); stroke: var(--tide); stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 18px rgba(89, 210, 230, 0.5)); }
.art-lock svg circle { fill: var(--glow); stroke: none; }
.art-bg { gap: 6px; align-items: flex-end; }
.art-bg i { width: 14px; border-radius: 4px 4px 2px 2px; background: linear-gradient(var(--tide), var(--indigo)); animation: eq 2.4s ease-in-out infinite; }
.art-bg i:nth-child(1) { height: 30%; }
.art-bg i:nth-child(2) { height: 70%; animation-delay: -0.8s; }
.art-bg i:nth-child(3) { height: 50%; animation-delay: -1.6s; }
@keyframes eq { 50% { transform: scaleY(0.45); } }
.art-bg i { transform-origin: bottom; }
.art-squircle i { width: 64px; height: 64px; background: linear-gradient(140deg, rgba(94, 107, 255, 0.5), rgba(89, 210, 230, 0.35)); box-shadow: inset 0 0 0 1px rgba(200, 240, 255, 0.3); border-radius: 22px; }
@supports (corner-shape: squircle) { .art-squircle i { corner-shape: squircle; border-radius: 40%; } }
.art-squircle i:nth-child(2) { width: 52px; height: 52px; opacity: 0.75; }
.art-squircle i:nth-child(3) { width: 40px; height: 40px; opacity: 0.5; }

/* =========================================================================
   Roadmap
   ========================================================================= */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.lane {
  position: relative; padding: 28px 26px 30px; border-radius: var(--radius-lg);
  background: rgba(10, 24, 56, 0.36); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.lane__tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; font-weight: 600; }
.lane__tag i { width: 9px; height: 9px; border-radius: 50%; }
.lane--stable .lane__tag { color: var(--glow); }
.lane--stable .lane__tag i { background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.lane--preview .lane__tag { color: var(--amber); }
.lane--preview .lane__tag i { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse-amber 2s infinite; }
.lane--future .lane__tag { color: #a9b4ff; }
.lane--future .lane__tag i { border: 1.5px dashed #a9b4ff; }
.lane--future { background: rgba(10, 24, 56, 0.18); box-shadow: inset 0 0 0 1px rgba(160, 175, 255, 0.18); }
.lane--future::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(169, 180, 255, 0.035) 0 10px, transparent 10px 20px); }
@keyframes pulse-amber { 50% { box-shadow: 0 0 2px var(--amber); } }
.lane h3 { font-size: clamp(26px, 2.6vw, 34px); font-family: var(--font-sans); letter-spacing: -0.01em; }
.lane__date { margin: 6px 0 18px; font-size: 13px; color: var(--haze); font-family: var(--font-mono); }
.lane ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lane li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--mist); line-height: 1.65; }
.lane li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.boundary { margin-top: 18px; padding: 22px 26px; border-radius: 22px; background: rgba(255, 184, 23, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 184, 23, 0.2); }
.boundary h3 { font-size: 15px; color: var(--amber); margin-bottom: 6px; }
.boundary p { margin: 0; font-size: 14px; color: var(--mist); }

/* =========================================================================
   Download
   ========================================================================= */
.download { padding-bottom: 80px; overflow-x: hidden; }
.download__art { position: absolute; z-index: -1; left: 50%; top: 0; width: min(1500px, 120vw); transform: translateX(-50%); pointer-events: none; -webkit-mask: radial-gradient(48% 56% at 50% 42%, #000 40%, transparent 78%); mask: radial-gradient(48% 56% at 50% 42%, #000 40%, transparent 78%); opacity: 0.9; }
.download__art img { width: 100%; height: auto; }
.download .section__head { text-align: center; padding-top: clamp(180px, 30vw, 380px); }
.download h2 { font-size: clamp(40px, 6.4vw, 88px); }
.download__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.dl-card { padding: 30px; }
.dl-card__tag { margin: 0; font-size: 13px; font-weight: 600; color: var(--glow); }
.dl-card__name { margin: 8px 0 20px; font-size: 34px; font-weight: 600; letter-spacing: -0.01em; }
.dl-card__name span { font-family: var(--font-mono); font-size: 18px; color: var(--tide); font-weight: 500; margin-left: 4px; }
.dl-card__meta { margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-card__meta div { padding: 12px 14px; border-radius: 14px; background: rgba(130, 190, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.dl-card__meta dt { font-size: 12px; color: var(--haze); }
.dl-card__meta dd { margin: 2px 0 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-card__meta dd code { background: none; border: 0; padding: 0; color: var(--foam); }
.dl-card__alt { display: grid; gap: 4px; margin: 18px 0 0; }
.dl-card__alt a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 14.5px; text-decoration: none; color: var(--tide); }
.dl-card__alt a:hover { color: var(--foam); }
.dl-card__alt svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.dl-card__alt a:hover svg { transform: translateX(4px); }
.dl-card__note { margin: 14px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--haze); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 24px 24px 24px 20px; border-radius: 24px; background: rgba(10, 24, 56, 0.34); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.steps__n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; font-family: var(--font-mono); font-weight: 600; color: #04121e; background: linear-gradient(140deg, var(--tide), var(--glow)); }
.steps h3 { font-size: 18px; margin: 8px 0 6px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--mist); }
.cmd { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 6px 6px 16px; border-radius: 14px; background: rgba(2, 6, 16, 0.6); box-shadow: inset 0 0 0 1px var(--line-hi); }
.cmd code { flex: 1; min-width: 0; color: var(--glow); font-size: 14px; }
.cmd code::before { content: "$ "; color: var(--haze); }
.cmd__copy { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(130, 190, 255, 0.1); cursor: pointer; font-size: 13px; color: var(--mist); transition: background 0.2s, color 0.2s; }
.cmd__copy:hover { background: rgba(130, 190, 255, 0.18); color: var(--foam); }
.cmd__copy svg { width: 16px; height: 16px; }
.cmd__copy.is-done { color: var(--glow); }
.faq { margin-top: clamp(60px, 9vh, 100px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.faq details { border-radius: 20px; background: rgba(10, 24, 56, 0.3); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; font-size: 15.5px; position: relative; border-radius: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--tide); border-bottom: 2px solid var(--tide); transform: rotate(45deg); transition: transform 0.4s var(--ease-out), margin 0.4s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 22px 20px; font-size: 14.5px; color: var(--mist); }

/* ---------- Footer ---------- */
.footer {
  max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 50px var(--gutter) calc(48px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center;
  border-top: 1px solid var(--line);
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand svg { width: 40px; height: 40px; }
.footer__brand b { display: block; font-size: 17px; }
.footer__brand span { font-size: 13px; color: var(--haze); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; }
.footer__links a { font-size: 14px; color: var(--mist); text-decoration: none; padding: 6px 0; }
.footer__links a:hover { color: var(--foam); }
.footer__note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--haze); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  .float-tag--b { right: -4%; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell--tall { grid-row: auto; }
  .cell--tall .cell__art { flex: none; height: 120px; justify-content: flex-start; }
  .art-lock svg { width: 90px; height: 90px; }
  .depth { display: none; }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: block; margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: calc(var(--nav-h) + 56px); gap: 30px; }
  .hero__stage { min-height: 640px; }
  .currents { grid-template-columns: 1fr; }
  .currents__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live__grid { grid-template-columns: 1fr; }
  .lanes { grid-template-columns: 1fr; }
  .download__grid { grid-template-columns: 1fr; }

  /* story: phone pinned under the nav, each step's caption rises from below and passes over it */
  .story__grid { display: flex; flex-direction: column; }
  .story__sticky { order: -1; position: sticky; top: calc(var(--nav-h) + 22px); height: auto; z-index: 1; display: block; perspective: 1200px; }
  .phone--chat { --w: 330px; --rx: 0deg; --ry: 0deg; margin: 0 auto; zoom: 0.84; }
  .story__dots { right: 0; }
  .story__steps { position: relative; z-index: 2; margin-top: 8vh; }
  .step { min-height: 74vh; max-width: none; justify-content: flex-start; opacity: 0; }
  .step:first-child { min-height: 74vh; }
  .step:last-child { min-height: 92vh; }
  .step.is-active { opacity: 1; }
  .step h3, .step p, .step__n {
    background: rgba(4, 10, 26, 0.86);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .step__n { align-self: flex-start; padding: 4px 10px; border-radius: 10px 10px 0 0; }
  .step h3 { margin: 0; padding: 10px 18px 6px; border-radius: 0 18px 0 0; font-size: 22px; }
  .step p { padding: 0 18px 18px; border-radius: 0 0 18px 18px; font-size: 15px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .nav { top: 10px; padding-left: 14px; }
  .nav__brand { font-size: 17px; }
  .hero__title { font-size: clamp(30px, 9.2vw, 46px); }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero__stage { min-height: 560px; perspective: 1100px; }
  .hero .phone { zoom: 0.84; }
  .phone--chat { zoom: 0.7; }
  .orbit--a { width: 380px; height: 380px; }
  .orbit--b { width: 520px; height: 520px; }
  .float-tag { font-size: 12px; padding: 7px 11px; }
  .float-tag--a { display: none; }
  .float-tag--b { right: -3%; top: 44%; }
  .float-tag--c { left: -2%; bottom: 12%; }
  .currents__facts { grid-template-columns: 1fr; }
  .node__name { font-size: 25px; }
  .node__meta { display: none; }
  .node__state { font-size: 19px; }
  .shade { min-height: 0; }
  .dl-card__meta dd { white-space: normal; overflow-wrap: anywhere; }
  .hero .phone { --ry: -10deg; }
  .currents__toolbar { justify-self: stretch; }
  .currents__toolbar .seg { flex: 1; padding: 0 10px; font-size: 13px; }
  .bento { grid-template-columns: 1fr; }
  .cell--wide { grid-column: auto; }
  .cell { min-height: 0; }
  .live__os { display: flex; }
  .live__os .seg { flex: 1; font-size: 13px; padding: 0 8px; }
  .live__controls { grid-template-columns: 1fr 1fr; }
  .ctl { font-size: 13.5px; padding: 0 10px; gap: 8px; }
  .shade { padding: 12px; border-radius: 28px; }
  .notif { padding: 16px 14px 14px; border-radius: 22px; }
  .faq { grid-template-columns: 1fr; }
  .dl-card { padding: 24px 20px; }
  .steps li { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .footer { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero__title .line > span, .hero__lede, .hero__actions, .hero__facts, .hero__stage { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}
