/* UUM product site — one stylesheet, no framework.
   Palette and materials come from the app: the icon's warm (you) and cool (AI)
   loops, the 群星 glass finish, and the five workspace themes. */

@font-face {
  font-family: "InterVar";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212, U+2215, U+00D7;
}

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #070a14;
  --bg-2: #0b0f1a;
  --panel: #141a29;
  --ink: #eef1fa;
  --ink-2: #b9c0d8;
  --ink-3: #8790ad;
  --line: rgba(200, 214, 255, 0.1);
  --line-2: rgba(200, 214, 255, 0.18);
  --accent: #8aa2f2;
  --cyan: #7fe6ff;
  --orchid: #e6a2ff;
  --ok: #86c9b5;
  --warn: #d8ae6a;
  --warm-1: #ffd08a; --warm-2: #ff8f8f; --warm-3: #ff6fae;
  --cool-1: #63e6e0; --cool-2: #6fb8ff; --cool-3: #a99bff;
  --font: "InterVar", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: max(20px, 4vw);
  --send: radial-gradient(120% 100% at 30% 20%, #c2d0fb, #7186da);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: #b2c3fa; color: #101625; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.center { text-align: center; }
.section { position: relative; padding: clamp(96px, 13vw, 168px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.14em; color: var(--ink-3);
  font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--warm-1), var(--cool-2));
}
.center .eyebrow::after {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cool-2), var(--cool-3));
}
h2 {
  text-wrap: balance;
  margin-top: 18px;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.lead {
  text-wrap: pretty;
  margin-top: 22px;
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 640px;
}
.center .lead { margin-inline: auto; }
.grad-text {
  background: linear-gradient(90deg, var(--warm-1), var(--warm-2) 26%, var(--cool-3) 62%, var(--cool-2) 82%, var(--cool-1));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: grad-pan 9s ease-in-out infinite alternate;
}
@keyframes grad-pan { to { background-position: 100% 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #0d1222;
  background: linear-gradient(180deg, #ffffff, #dde4ff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 10px 30px -8px rgba(138, 162, 242, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #fff inset, 0 18px 44px -10px rgba(138, 162, 242, 0.75), 0 2px 8px rgba(0, 0, 0, 0.3); }
.btn-ghost {
  color: var(--ink);
  background: rgba(200, 214, 255, 0.06);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(200, 214, 255, 0.1); transform: translateY(-2px); }
.btn-ghost svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn-ghost:hover svg { transform: translateY(3px); }
.btn-lg { height: 58px; padding: 0 34px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%;
  width: min(1180px, 100% - 28px);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
  height: 56px; padding: 0 10px 0 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s, color 0.4s;
}
.nav.is-scrolled {
  background: rgba(11, 15, 26, 0.62);
  border-color: var(--line);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.7);
}
.nav.is-light.is-scrolled { background: rgba(255, 255, 255, 0.72); border-color: rgba(30, 40, 60, 0.1); box-shadow: 0 12px 40px -18px rgba(40, 50, 70, 0.35); color: #1d2433; }
.nav.is-light .nav-links a { color: #4a5263; }
.nav.is-light .nav-links a:hover, .nav.is-light .nav-links a.is-current { color: #141a29; background: rgba(20, 26, 41, 0.06); }
.nav.is-light .nav-cta { background: #141a29; color: #fff; box-shadow: 0 6px 20px -8px rgba(20, 26, 41, 0.6); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.nav-logo {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, #343a8f, #1d2a64 52%, #0b4f5e);
  box-shadow: inset 0 1px 0 rgba(227, 232, 255, 0.35), 0 4px 12px -4px rgba(52, 58, 143, 0.8);
}
.nav-logo svg { width: 22px; height: 16px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); background: rgba(200, 214, 255, 0.07); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: #0d1222;
  background: linear-gradient(180deg, #ffffff, #dde4ff);
  box-shadow: 0 6px 20px -8px rgba(138, 162, 242, 0.7);
  transition: transform 0.3s var(--ease);
}
.nav-cta svg { width: 15px; height: 15px; }
.nav-cta:hover { transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 720px);
  display: grid; place-items: center;
  padding: 96px var(--gutter) 72px;
  overflow: hidden;
  isolation: isolate;
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid {
  position: absolute; inset: -40px; z-index: -1;
  background-image: radial-gradient(circle, rgba(200, 214, 255, 0.2) 1px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 58% 52% at 50% 46%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 58% 52% at 50% 46%, #000 10%, transparent 72%);
  transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -14px), 0);
  transition: transform 0.6s var(--ease);
}
.hero-nebula { position: absolute; inset: 0; z-index: -2; }
.hero-nebula i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-nebula i:nth-child(1) { width: 52vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, #343a8f, transparent 66%); }
.hero-nebula i:nth-child(2) { width: 46vw; height: 40vw; right: -14vw; bottom: -16vw; background: radial-gradient(circle, #0b4f5e, transparent 66%); animation-delay: -8s; }
.hero-nebula i:nth-child(3) { width: 28vw; height: 22vw; left: 18vw; bottom: 8vw; background: radial-gradient(circle, rgba(255, 143, 143, 0.35), transparent 70%); opacity: 0.35; animation-delay: -15s; }
@keyframes drift { to { transform: translate3d(4vw, 3vw, 0) scale(1.08); } }

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 980px; }
.hero-eyebrow {
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(200, 214, 255, 0.06); border: 1px solid var(--line);
  color: var(--ink-2); letter-spacing: 0.06em; font-size: 13px;
  backdrop-filter: blur(10px);
}
.hero-eyebrow::before { display: none; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(127, 230, 255, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 230, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(127, 230, 255, 0); } }

.hero-mark {
  margin-top: 26px;
  width: min(clamp(260px, 44vh, 400px), 70vw);
  transform: perspective(900px) rotateX(calc(var(--py, 0) * -9deg)) rotateY(calc(var(--px, 0) * 12deg));
  transition: transform 0.8s var(--ease);
}
.ribbon { width: 100%; height: auto; overflow: visible; }
.ribbon-glow { opacity: 0; animation: fade-in 1.6s ease 1.2s forwards; }
.ribbon-glow path { opacity: 0.55; }
.ribbon-draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.9s var(--ease-io) 0.35s forwards; }
.ribbon-flow {
  stroke-dasharray: 6 94; stroke-dashoffset: 100; opacity: 0;
  filter: drop-shadow(0 0 1.2px #fff);
  animation: flow 3.6s linear 2.1s infinite, fade-in 0.6s ease 2.1s forwards;
}
.ribbon-flash { opacity: 0; transform-box: fill-box; transform-origin: center; animation: flash 3.6s ease-out 2.1s infinite; }
.ribbon-spark { opacity: 0; animation: fade-in 0.8s ease 1.8s forwards; }
.ribbon-spark use { transform-box: fill-box; transform-origin: center; animation: twinkle 4.2s ease-in-out 2.4s infinite; }
.ribbon-dot { opacity: 0; animation: fade-in 0.8s ease 2s forwards, blink 3s ease-in-out 3s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flow { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes flash { 0% { opacity: 0.95; transform: scale(0.6); } 18% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(0.72) rotate(45deg); } }
@keyframes blink { 50% { opacity: 0.25; } }

.ribbon-legend {
  margin-top: 6px; display: flex; justify-content: center; gap: 10px;
  font-size: 13px; color: var(--ink-3); letter-spacing: 0.12em;
  opacity: 0; animation: fade-in 1s ease 2.4s forwards;
}
.ribbon-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ribbon-legend .sep { opacity: 0.5; }
.ribbon-legend i { width: 8px; height: 8px; border-radius: 50%; }
.ribbon-legend i.warm { background: linear-gradient(135deg, var(--warm-1), var(--warm-3)); }
.ribbon-legend i.cool { background: linear-gradient(45deg, var(--cool-1), var(--cool-3)); }

.hero-title {
  margin-top: 22px;
  font-size: clamp(40px, min(6.4vw, 9.4vh), 88px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero-sub { margin-top: 20px; max-width: 640px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.8; color: var(--ink-2); }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-meta { margin-top: 18px; font-size: 13px; color: var(--ink-3); letter-spacing: 0.06em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px;
  border-radius: 12px; border: 1.5px solid var(--line-2);
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink-2); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Intro choreography: only hidden when JS runs, so the page never ships blank. */
.js [data-intro] { opacity: 0; transform: translateY(18px); }
.js.is-ready [data-intro] { animation: rise 1.1s var(--ease) forwards; }
.js.is-ready [data-intro="1"] { animation-delay: 0.08s; }
.js.is-ready [data-intro="2"] { animation-delay: 0.7s; }
.js.is-ready [data-intro="3"] { animation-delay: 0.85s; }
.js.is-ready [data-intro="4"] { animation-delay: 1s; }
.js.is-ready .hero-mark[data-intro] { animation-name: rise-mark; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-mark { to { opacity: 1; transform: perspective(900px) rotateX(calc(var(--py, 0) * -9deg)) rotateY(calc(var(--px, 0) * 12deg)); } }

/* Scroll reveals */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Story (sticky camera) ---------- */
.story { position: relative; height: 680vh; }
.story-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(270px, 330px) minmax(0, 1fr); gap: clamp(28px, 3.4vw, 56px);
  align-items: center;
  width: min(1560px, 100%); margin: 0 auto;
  padding: 88px var(--gutter) 28px;
}
.story-copy .eyebrow { margin-bottom: 28px; }
.story-steps { counter-reset: s; display: grid; gap: 4px; }
.story-steps li {
  display: grid; grid-template-columns: 34px 1fr; gap: 6px;
  padding: 12px 14px 12px 12px; border-radius: 14px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.5s var(--ease), background 0.5s var(--ease);
}
.story-steps li:hover { opacity: 0.75; }
.story-steps li.is-active { opacity: 1; background: rgba(200, 214, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.story-steps .n { font: 600 12px/26px var(--font); letter-spacing: 0.06em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.story-steps li.is-active .n { background: linear-gradient(90deg, var(--warm-1), var(--cool-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story-steps h3 { font-size: 17px; line-height: 26px; font-weight: 600; }
.story-steps p {
  display: grid; grid-template-rows: 0fr;
  font-size: 14.5px; line-height: 1.75; color: var(--ink-2);
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease), margin 0.6s var(--ease);
}
.story-steps li.is-active p { max-height: 160px; opacity: 1; margin-top: 6px; }

.story-stage { position: relative; height: min(80vh, 820px); perspective: 2000px; }
.story-progress { position: absolute; left: 14px; right: 14px; bottom: -14px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.story-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--warm-1), var(--warm-2), var(--cool-3), var(--cool-2)); }

/* ---------- App window (shared chrome) ---------- */
.appwin {
  container-type: inline-size;
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden;
  background: #0b0f1a;
  box-shadow: 0 0 0 1px rgba(200, 214, 255, 0.13), 0 50px 120px -30px rgba(0, 0, 0, 0.85), 0 30px 80px -40px rgba(52, 58, 143, 0.6);
  transform-origin: 50% 0;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1));
  will-change: transform;
  font-size: 13px;
  color: #e9ecf6;
  line-height: 1.5;
}
.lights { display: inline-flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.appwin-titlebar { flex: none; height: 32px; display: flex; align-items: center; gap: 18px; padding: 0 14px; background: #0d1220; }
.appwin-title { font-size: 12.5px; color: #9da8c4; letter-spacing: 0.02em; }
.appwin-topbar {
  flex: none; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: #111827; border-bottom: 1px solid rgba(228, 238, 255, 0.08);
  white-space: nowrap; overflow: hidden;
}
.appwin-topbar svg { width: 16px; height: 16px; }
.tb-logo { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(140deg, #343a8f, #1d2a64 52%, #0b4f5e); box-shadow: inset 0 1px 0 rgba(227, 232, 255, 0.35); }
.tb-logo svg { width: 19px; height: 13px; }
.tb-name { font-size: 15px; letter-spacing: 0.02em; }
.tb-project { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-weight: 600; font-size: 14px; }
.tb-project svg { width: 14px; height: 14px; color: #9da8c4; }
.tb-pill { padding: 4px 11px; border-radius: 9px; background: rgba(200, 214, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.1); font-size: 12.5px; }
.tb-saved { display: inline-flex; align-items: center; gap: 6px; color: #9da8c4; font-size: 12.5px; }
.tb-saved i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); transition: background 0.3s; }
.tb-saved.is-saving i { background: var(--warn); }
.tb-spacer { flex: 1; }
.tb-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #b9c0d8; border-radius: 8px; }
.tb-icon.dim { color: #5d6684; }
.tb-search { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 10px; border-radius: 10px; background: #1a2235; box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.08); color: #9da8c4; font-size: 12.5px; }
.tb-search svg { width: 14px; height: 14px; }
.tb-search kbd { margin-left: 24px; font: 500 11px var(--font); padding: 1px 6px; border-radius: 6px; background: rgba(200, 214, 255, 0.08); color: #b9c0d8; }
.tb-import { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #d6dcef; }
.tb-primary { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; background: var(--send); color: #131a30; font-weight: 600; font-size: 12.5px; box-shadow: 0 4px 16px -6px rgba(138, 162, 242, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
@container (max-width: 980px) { .hide-s { display: none !important; } }
@container (max-width: 640px) {
  .tb-search, .tb-pill, .tb-saved, .tb-icon { display: none; }
  .hide-xs { display: none !important; }
  .minimap { display: none; }
  .zoomctl { gap: 8px; height: 34px; padding: 0 10px; }
  .zoomctl > svg:nth-of-type(n + 3), .zoomctl > i { display: none; }
  .canvas-toolbar { top: 10px; }
}

.appwin-canvas {
  position: relative; flex: 1; overflow: hidden;
  background-color: #0b0f1a;
  background-image: radial-gradient(circle, rgba(200, 214, 255, 0.16) 1px, transparent 1.3px);
  background-size: 24px 24px;
}
.canvas-stars {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 14%, rgba(59, 152, 171, 0.13), transparent 46%),
    radial-gradient(ellipse at 82% 8%, rgba(134, 118, 221, 0.15), transparent 48%),
    radial-gradient(ellipse at 95% 100%, rgba(207, 154, 77, 0.06), transparent 36%);
}
.canvas-stars::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 11% 22%, #c8d6ffa0 0 1px, transparent 1.6px),
    radial-gradient(circle at 35% 71%, #c8d6ff70 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 17%, #c8d6ff90 0 1px, transparent 1.6px),
    radial-gradient(circle at 87% 62%, #c8d6ff70 0 1px, transparent 1.6px),
    radial-gradient(circle at 54% 40%, #c8d6ff50 0 1px, transparent 1.6px),
    radial-gradient(circle at 22% 88%, #c8d6ff60 0 1px, transparent 1.6px);
}
.world { position: absolute; left: 0; top: 0; width: 2600px; height: 1000px; transform-origin: 0 0; }
.world > * { position: absolute; }
.world-links { left: 0; top: 0; overflow: visible; pointer-events: none; }
.world-links path { fill: none; stroke: url(#link-g); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 9; opacity: 0.85; animation: dash 1.2s linear infinite; filter: drop-shadow(0 0 4px rgba(127, 230, 255, 0.45)); }
@keyframes dash { to { stroke-dashoffset: -14; } }

/* Step gating inside the world */
.world [data-at] { opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 380ms); }
.world [data-at].is-on { opacity: 1; transform: none; }
.world [data-delay="1"] { --d: 1; }
.world [data-delay="2"] { --d: 2; }
.world-links [data-at] { transform: none; }
.minimap [data-at] { opacity: 0; transition: opacity 0.6s; }
.minimap [data-at].is-on { opacity: 1; }

.node-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9da8c4; white-space: nowrap; letter-spacing: 0.01em; }
.node-label svg { width: 13px; height: 13px; }

/* Agent cards (群星 glass) */
.agent-card {
  display: flex; flex-direction: column;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 38, 58, 0.92), rgba(20, 26, 41, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(228, 238, 255, 0.11), 0 24px 60px -20px rgba(2, 4, 10, 0.9);
}
.ac-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid rgba(228, 238, 255, 0.08); }
.glyph { display: inline-block; flex: none; }
.glyph svg { width: 100%; height: 100%; overflow: visible; }
.glyph.orb { width: 38px; height: 38px; padding: 4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(200, 214, 255, 0.16), rgba(200, 214, 255, 0.04)); box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.14); }
.ac-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ac-id b { font-size: 15px; font-weight: 650; }
.ac-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #9da8c4; }
.ac-status i { width: 6px; height: 6px; border-radius: 50%; background: #9da8c4; }
.ac-status.run i, .agent-card.main.is-running .ac-status i { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink 1.4s infinite; }
.ac-status.done i { background: var(--ok); box-shadow: none; animation: none; }
.ac-model { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 10px; background: rgba(200, 214, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.1); font-size: 12px; color: #d6dcef; white-space: nowrap; }
.ac-model .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warm-1); }
.ac-model svg { width: 13px; height: 13px; color: #9da8c4; }
.ac-model.sm { height: 24px; font-size: 11px; }
.ac-body { flex: 1; overflow: hidden; padding: 18px 18px 10px; font-size: 13.5px; line-height: 1.75; }
.msg.user { margin-left: 46px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: #28314b; color: #e9ecf6; }
.msg.ai { margin-top: 16px; color: #dfe4f3; }
.msg.ai .type { min-height: 1.75em; }
.type.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: blink 0.9s steps(1) infinite; }
.mentions { margin-top: 8px; display: grid; gap: 6px; }
.mentions li { display: flex; gap: 8px; align-items: baseline; color: #c9d0e6; }
.mentions .at { flex: none; padding: 0 7px; border-radius: 6px; background: rgba(138, 162, 242, 0.16); color: #b9c8fb; font-size: 12.5px; font-weight: 600; }
.tool { margin-top: 12px; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 10px; background: rgba(200, 214, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.07); font-size: 12px; color: #aab4cf; }
.tool svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.tool.ok { color: #c6eadf; background: rgba(134, 201, 181, 0.1); box-shadow: inset 0 0 0 1px rgba(134, 201, 181, 0.22); }
.tool.ok svg { color: var(--ok); }
.ac-composer { padding: 10px 12px 12px; }
.ac-input { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 6px 6px 14px; border-radius: 16px; background: #1d2540; box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.08); color: #a3afcf; font-size: 13px; }
.ac-input > span:first-child { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ac-input.has-text > span:first-child { color: #e9ecf6; }
.send { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--send); color: #131a30; box-shadow: 0 4px 12px -4px rgba(138, 162, 242, 0.8); }
.send svg { width: 15px; height: 15px; }
.ac-tools { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 0 4px; font-size: 12px; color: #a3afcf; white-space: nowrap; }
.ac-tools > span { display: inline-flex; align-items: center; gap: 5px; }
.ac-tools svg { width: 14px; height: 14px; }
.ac-tools svg.chev { width: 11px; height: 11px; opacity: 0.7; }
.ac-tools .kbd { margin-left: auto; padding: 2px 7px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.12); }
.ultra-chip { padding: 2px 9px 2px 2px; border-radius: 999px; transition: background 0.4s, color 0.4s; }
.ultra-chip .core { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; transition: background 0.4s, color 0.4s, transform 0.5s var(--ease); }
.ultra-chip .core svg { width: 12px; height: 12px; }
.ultra-chip.is-on { background: rgba(169, 188, 247, 0.15); color: #dbe3ff; }
.ultra-chip.is-on .core { background: #a9bcf7; color: #131a30; transform: scale(1.06); }

.agent-card.main::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  padding: 1.5px;
  background: conic-gradient(from var(--ang), transparent 0 40deg, #8aa2f2 90deg, #7fe6ff 140deg, #e6a2ff 190deg, transparent 240deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.8s;
  animation: spin-ang 4.5s linear infinite;
}
.agent-card.main::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 40px -6px rgba(138, 162, 242, 0.55), 0 0 90px -20px rgba(127, 230, 255, 0.45), inset 0 0 30px -12px rgba(127, 230, 255, 0.5);
  opacity: 0; transition: opacity 0.8s;
}
.agent-card.main.is-ultra::after, .agent-card.main.is-ultra::before { opacity: 1; }
@keyframes spin-ang { to { --ang: 360deg; } }

.agent-card.mini { width: 300px; padding-bottom: 14px; }
.agent-card.mini .ac-head { border-bottom: 0; padding-bottom: 8px; }
.mini-line { display: flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 12.5px; color: #aab4cf; white-space: nowrap; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 1.6px solid rgba(127, 230, 255, 0.25); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; flex: none; }
.mini-line.done .spin { border: 0; animation: none; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-bar { margin: 12px 16px 0; height: 4px; border-radius: 4px; background: rgba(200, 214, 255, 0.08); overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, #8aa2f2, #7fe6ff); transition: width 1.2s var(--ease); position: relative; overflow: hidden; }
.mini-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); transform: translateX(-100%); animation: sheen 1.8s ease-in-out infinite; }
.mini-bar.done i { width: 100%; background: linear-gradient(90deg, #6fb59f, #86c9b5); }
.mini-bar.done i::after { display: none; }
@keyframes sheen { to { transform: translateX(100%); } }

/* Boards */
.board {
  width: 300px; height: 400px; overflow: hidden; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 30px 60px -24px rgba(0, 0, 0, 0.9);
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
}
.board::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, #1a2235 30%, #2a3553 50%, #1a2235 70%) 0 0 / 300% 100%, #1a2235;
  opacity: 0;
}
.board.is-on::after { animation: board-gen 1.5s var(--ease) both; animation-delay: calc(var(--d, 0) * 380ms); }
@keyframes board-gen { 0% { opacity: 1; background-position: 100% 0; } 55% { opacity: 1; background-position: 0 0; } 100% { opacity: 0; background-position: 0 0; } }
.world[data-step="3"] .board.b1 { outline: 2px solid #8aa2f2; outline-offset: 3px; }

.b1 { background: linear-gradient(172deg, #f6dcb0 0%, #eab27a 38%, #cf7448 72%, #8f3b2a 100%); color: #fff8ec; }
.b1::before { content: ""; position: absolute; inset: 0; opacity: 0.28; 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"); }
.b1-sun { position: absolute; width: 190px; height: 190px; right: -40px; top: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 244, 214, 0.95), rgba(255, 214, 150, 0.4) 55%, transparent 70%); animation: sun 6s ease-in-out infinite alternate; }
@keyframes sun { to { transform: translateY(16px) scale(1.06); } }
.b1-sprockets { position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(60, 22, 12, 0.35) 10px 18px); }
.b1-kicker { position: absolute; left: 22px; top: 32px; font: 600 9.5px/1 var(--font); letter-spacing: 0.22em; color: rgba(255, 248, 236, 0.85); }
.b1-title { position: absolute; left: 20px; top: 62px; display: flex; flex-direction: column; font-size: 62px; line-height: 1.02; font-weight: 900; letter-spacing: 0.02em; text-shadow: 0 6px 24px rgba(143, 59, 42, 0.35); }
.b1-title span { display: block; }
.board.b1.is-on .b1-title span { animation: title-up 1s var(--ease) both; }
.board.b1.is-on .b1-title span:nth-child(2) { animation-delay: 0.12s; }
.board.b1.is-on .b1-title span:nth-child(3) { animation-delay: 0.24s; }
@keyframes title-up { from { transform: translateY(16px); opacity: 0; } }
.b1-sub { position: absolute; left: 22px; bottom: 54px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 248, 236, 0.92); color: #8f3b2a; font-size: 13px; font-weight: 700; }
.b1-film { position: absolute; right: 16px; bottom: 18px; font: 600 9px/1 var(--mono); letter-spacing: 0.12em; color: rgba(255, 248, 236, 0.7); }
.leaf { position: absolute; width: 22px; height: 22px; border-radius: 0 100% 0 100%; background: #b8462a; opacity: 0.9; }
.leaf.l1 { left: 196px; top: 248px; transform: rotate(24deg); background: #c2522f; animation: leaf 7s ease-in-out infinite; }
.leaf.l2 { left: 238px; top: 286px; width: 16px; height: 16px; transform: rotate(-30deg); background: #e58b3a; animation: leaf 9s ease-in-out -3s infinite; }
.leaf.l3 { left: 214px; top: 312px; width: 12px; height: 12px; transform: rotate(60deg); background: #f3b55c; animation: leaf 8s ease-in-out -5s infinite; }
@keyframes leaf { 50% { translate: -6px 10px; rotate: 30deg; } }

.b2 { background: #f6efe3; color: #3b2a22; padding: 24px 22px; }
.b2-kicker { display: block; font: 700 10px/1 var(--font); letter-spacing: 0.24em; color: #cf7448; }
.b2 h4 { margin-top: 10px; font-size: 34px; line-height: 1.1; font-weight: 900; }
.b2 h4 small { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: #8b6f60; letter-spacing: 0.04em; }
.b2-map { width: 100%; height: auto; margin-top: 16px; border-radius: 10px; background: #efe4d2; }
.b2-map .street { stroke: #e2d3bc; stroke-width: 9; fill: none; }
.b2-map .route { fill: none; stroke: #cf7448; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 6; }
.b2-map circle { fill: #8f3b2a; stroke: #f6efe3; stroke-width: 3; }
.board.b2.is-on .route { animation: dash 1.4s linear infinite; }
.b2-stops { margin-top: 14px; display: grid; gap: 8px; font-size: 12.5px; }
.b2-stops li { display: flex; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed #e0d0bb; }
.b2-stops b { font: 700 12px/1.6 var(--font); color: #cf7448; font-variant-numeric: tabular-nums; }

.b3 { background: radial-gradient(120% 80% at 80% 0%, #4a2e1f, #241812 60%); color: #f6e7cf; padding: 26px 24px; }
.b3-kicker { font: 700 10px/1 var(--font); letter-spacing: 0.24em; color: #e8b866; }
.b3-label { margin-top: 26px; font-size: 15px; color: #e6cfaf; }
.b3-time { margin-top: 4px; font: 200 86px/1 var(--font); letter-spacing: -0.04em; background: linear-gradient(180deg, #ffe2a8, #e8a24e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b3-note { margin-top: 10px; font-size: 13px; color: #c9ad8a; }
.b3-list { margin-top: 30px; display: grid; gap: 10px; font-size: 14px; }
.b3-list li { display: flex; gap: 10px; align-items: center; }
.b3-list li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #e8b866; }

.presence { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 4px; border-radius: 999px; background: rgba(20, 26, 41, 0.95); box-shadow: 0 0 0 1.5px #8aa2f2, 0 8px 24px -8px rgba(138, 162, 242, 0.8); font-size: 12px; white-space: nowrap; }
.presence .glyph { width: 24px; height: 24px; }
.world:not([data-step="3"]) .presence.is-on { opacity: 0; }
.cursor-you { left: 0; top: 0; display: flex; align-items: flex-start; pointer-events: none; }
.cursor-you svg { width: 26px; height: 26px; color: #fff; fill: #ff8f8f; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.cursor-you svg use { fill: #ff8f8f; }
.cursor-you span { margin: 18px 0 0 -6px; padding: 2px 9px; border-radius: 8px 8px 8px 2px; background: linear-gradient(135deg, var(--warm-1), var(--warm-2)); color: #3a1520; font-size: 12px; font-weight: 700; }
.cursor-you.is-on { animation: cursor-path 9s var(--ease-io) infinite; }
@keyframes cursor-path {
  0% { translate: 1420px 470px; }
  22% { translate: 1520px 280px; }
  44% { translate: 1880px 420px; }
  66% { translate: 1700px 735px; }
  84% { translate: 1290px 705px; }
  100% { translate: 1420px 470px; }
}

/* Video node */
.video-node { width: 1000px; padding: 18px 20px 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(30, 38, 58, 0.94), rgba(20, 26, 41, 0.96)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(228, 238, 255, 0.1), 0 24px 60px -24px rgba(2, 4, 10, 0.9); }
.vn-chain { display: flex; align-items: center; gap: 12px; }
.vn-cap { padding: 6px 14px; border-radius: 999px; background: rgba(200, 214, 255, 0.08); font-size: 12.5px; color: #c9d0e6; box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.1); }
.vn-arrow { width: 26px; height: 2px; background: rgba(200, 214, 255, 0.3); position: relative; }
.vn-arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left-color: rgba(200, 214, 255, 0.4); border-right: 0; }
.vn-scene { position: relative; width: 120px; height: 88px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.vn-scene i { position: absolute; inset: 0; }
.vn-scene.s1 i { background: linear-gradient(172deg, #f6dcb0, #cf7448 70%, #8f3b2a); }
.vn-scene.s2 i { background: #f6efe3; }
.vn-scene.s2 i::after { content: ""; position: absolute; left: 14px; right: 14px; top: 34px; height: 30px; border-radius: 4px; background: #efe4d2; box-shadow: inset 0 0 0 2px #e2d3bc; }
.vn-scene.s3 i { background: radial-gradient(120% 80% at 80% 0%, #4a2e1f, #241812 60%); }
.vn-scene.s1 i::before, .vn-scene.s3 i::before { content: ""; position: absolute; left: 12px; top: 16px; width: 44px; height: 30px; border-radius: 3px; background: rgba(255, 248, 236, 0.85); }
.vn-scene.s3 i::before { background: linear-gradient(180deg, #ffe2a8, #e8a24e); height: 22px; width: 56px; top: 30px; }
.vn-scene em { position: absolute; left: 6px; bottom: 5px; font-style: normal; font-size: 10.5px; padding: 0 6px; border-radius: 5px; background: rgba(11, 15, 26, 0.7); color: #fff; }
.video-node.is-on .vn-scene i { animation: kenburns 6s ease-in-out infinite alternate; }
.video-node.is-on .vn-scene.s2 i { animation-delay: -2s; }
.video-node.is-on .vn-scene.s3 i { animation-delay: -4s; }
@keyframes kenburns { to { transform: scale(1.14) translate(-4px, -3px); } }
.vn-tr { padding: 3px 9px; border-radius: 7px; font-size: 11px; color: #b9c8fb; background: rgba(138, 162, 242, 0.14); }
.vn-timeline { position: relative; margin-top: 16px; padding-top: 2px; }
.vn-ruler { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--font); color: #7d87a6; padding: 0 0 6px; border-bottom: 1px solid rgba(228, 238, 255, 0.08); font-variant-numeric: tabular-nums; }
.vn-track { position: relative; height: 18px; margin-top: 6px; border-radius: 6px; display: flex; gap: 3px; }
.vt-scenes i { width: var(--w); border-radius: 5px; background: linear-gradient(90deg, rgba(255, 176, 120, 0.55), rgba(255, 143, 143, 0.4)); }
.vt-scenes i:nth-child(2) { background: linear-gradient(90deg, rgba(246, 239, 227, 0.45), rgba(239, 228, 210, 0.3)); }
.vt-scenes i:nth-child(3) { background: linear-gradient(90deg, rgba(232, 184, 102, 0.45), rgba(74, 46, 31, 0.6)); }
.vt-audio, .vt-music { background: rgba(127, 230, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(127, 230, 255, 0.15); overflow: hidden; }
.vt-music { background: rgba(230, 162, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(230, 162, 255, 0.16); }
.vt-audio::before, .vt-music::before { content: ""; position: absolute; inset: 3px 0; background: repeating-linear-gradient(90deg, rgba(127, 230, 255, 0.55) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent), linear-gradient(90deg, #000, #000); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5 T60 5 T80 5 T100 5 T120 5 T140 5 T160 5 T180 5 T200 5 V10 H0Z' fill='%23000'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.vt-music::before { background: repeating-linear-gradient(90deg, rgba(230, 162, 255, 0.5) 0 2px, transparent 2px 5px); }
.vn-track span { position: relative; z-index: 1; margin: 2px 0 0 4px; padding: 0 6px; border-radius: 4px; font-size: 10px; line-height: 14px; height: 14px; color: #dfe4f3; background: rgba(16, 22, 37, 0.85); }
.vn-playhead { position: absolute; top: 0; bottom: -4px; left: 0; width: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px var(--cyan); }
.video-node.is-on .vn-playhead { animation: playhead 5s linear infinite; }
@keyframes playhead { to { left: 100%; } }

/* Article */
.article-node { width: 380px; padding: 16px 18px 18px; border-radius: 6px; background: #fbfaf7; color: #2b2a26; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9); font-family: "PingFang SC", "Noto Sans SC", sans-serif; }
.an-cover { height: 130px; border-radius: 4px; position: relative; overflow: hidden; background: linear-gradient(160deg, #f1c58e, #d9814f 60%, #9b4430); }
.an-cover span { position: absolute; left: 16px; bottom: 14px; color: #fff8ec; font-size: 22px; line-height: 1.15; font-weight: 900; }
.article-node h4 { margin-top: 14px; font-size: 19px; line-height: 1.4; font-weight: 800; }
.an-meta { margin-top: 4px; font-size: 11.5px; color: #8a877e; }
.article-node > p:not(.an-meta) { margin-top: 10px; font-size: 13px; line-height: 1.85; color: #4a4842; }
.article-node blockquote { margin-top: 12px; padding: 4px 0 4px 12px; border-left: 3px solid #d9814f; font-size: 13px; color: #6b5a4c; }
.an-lines { margin-top: 12px; display: grid; gap: 9px; }
.an-lines i { height: 7px; border-radius: 4px; background: #ebe8e1; }
.an-export { margin-top: 16px; display: flex; gap: 6px; }
.an-export span { padding: 4px 10px; border-radius: 7px; font-size: 11.5px; background: #f0ede6; color: #5d5a52; }

/* Receipt */
.receipt { width: 380px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(23, 49, 46, 0.92), rgba(17, 33, 36, 0.94)); box-shadow: inset 0 0 0 1px rgba(134, 201, 181, 0.3), 0 0 50px -14px rgba(134, 201, 181, 0.45); }
.receipt h5 { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #c6eadf; }
.receipt h5 svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--ok); color: #0f2a26; }
.receipt ul { margin-top: 10px; display: grid; gap: 6px; font-size: 12.5px; }
.receipt li { display: flex; justify-content: space-between; color: #a7cfc3; }
.receipt li b { color: #e1f6ef; font-variant-numeric: tabular-nums; }
.exports { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.exports span { padding: 3px 9px; border-radius: 7px; font-size: 11px; color: #d7efe8; background: rgba(134, 201, 181, 0.14); }

/* Canvas chrome overlays */
.canvas-toolbar {
  position: absolute; z-index: 5; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 15px; background: rgba(26, 34, 53, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(228, 238, 255, 0.1), 0 10px 30px -10px rgba(2, 4, 10, 0.8);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  white-space: nowrap; color: #c9d0e6;
}
.ct { height: 32px; min-width: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 7px; border-radius: 10px; font-size: 12.5px; }
.ct svg { width: 17px; height: 17px; }
.ct svg.chev { width: 12px; height: 12px; opacity: 0.7; }
.ct.on { background: rgba(169, 188, 247, 0.2); color: #e3e9ff; box-shadow: inset 0 0 0 1px rgba(169, 188, 247, 0.3); }
.ct-sep { width: 1px; height: 18px; margin: 0 4px; background: rgba(228, 238, 255, 0.14); }
.zoomctl {
  position: absolute; z-index: 5; left: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px;
  border-radius: 13px; background: rgba(26, 34, 53, 0.74); color: #c9d0e6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(228, 238, 255, 0.1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.zoomctl svg { width: 15px; height: 15px; }
.zoomctl span { min-width: 38px; text-align: center; }
.zoomctl i { width: 1px; height: 16px; background: rgba(228, 238, 255, 0.14); }
.minimap {
  position: absolute; z-index: 5; right: 14px; bottom: 14px; width: 176px; height: 68px;
  border-radius: 12px; background: rgba(16, 22, 37, 0.8);
  box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}
.minimap b { position: absolute; border-radius: 2px; background: rgba(200, 214, 255, 0.26); }
.mm-view { position: absolute; border: 1.5px solid #8aa2f2; border-radius: 3px; box-shadow: 0 0 0 999px rgba(4, 6, 14, 0.25); }

/* ---------- Engines / orbit ---------- */
.engines-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.engines-copy h2, .mission-copy h2, .local-copy h2 { font-size: clamp(30px, 3.3vw, 48px); }
.feature-list { margin-top: 40px; display: grid; gap: 26px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.feature-list svg { width: 44px; height: 44px; padding: 11px; border-radius: 13px; color: #c7d3ff; background: linear-gradient(180deg, rgba(138, 162, 242, 0.16), rgba(138, 162, 242, 0.05)); box-shadow: inset 0 0 0 1px rgba(138, 162, 242, 0.22); }
.feature-list h4 { font-size: 17px; font-weight: 600; }
.feature-list p, .tile-copy p, .story-steps p, .theme-info p { text-wrap: pretty; }
.feature-list p { margin-top: 6px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.orbit { position: relative; aspect-ratio: 1 / 0.8; width: 100%; max-width: 600px; margin-left: auto; }
.orbit-ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1 / 0.42; border-radius: 50%; transform: translate(-50%, -50%) rotate(-10deg); border: 1px solid rgba(200, 214, 255, 0.12); }
.orbit-ring.r1 { width: 62%; }
.orbit-ring.r2 { width: 84%; border-color: rgba(200, 214, 255, 0.09); }
.orbit-ring.r3 { width: 100%; border-style: dashed; border-color: rgba(200, 214, 255, 0.08); }
.orbit-core { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.orbit-core svg { width: 132px; height: 85px; filter: drop-shadow(0 0 24px rgba(138, 162, 242, 0.55)) drop-shadow(0 0 60px rgba(255, 143, 143, 0.25)); animation: breathe 5s ease-in-out infinite; }
.orbit-core span { font-size: 13px; letter-spacing: 0.16em; color: var(--ink-3); }
@keyframes breathe { 50% { transform: scale(1.05); } }
.orbit-item {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 6px;
  border-radius: 999px; white-space: nowrap; font-size: 14px;
  background: rgba(20, 26, 41, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(228, 238, 255, 0.14), 0 12px 30px -12px rgba(0, 0, 0, 0.8);
  will-change: transform, opacity;
}
.orbit-item .glyph { width: 32px; height: 32px; }
.orbit-item.small { height: 30px; padding: 0 12px; font-size: 12px; color: var(--ink-2); background: rgba(20, 26, 41, 0.6); }

/* ---------- Ultra ---------- */
.ultra .wrap + .wrap { margin-top: 56px; }
.ultra-stage {
  position: relative; height: 540px; border-radius: 28px; overflow: hidden;
  background: #0a0e19;
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px -40px rgba(0, 0, 0, 0.9);
  isolation: isolate;
  --wx: 50%; --wy: 50%;
}
.ultra-sky { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse at 15% 20%, rgba(59, 152, 171, 0.16), transparent 50%),
  radial-gradient(ellipse at 85% 15%, rgba(134, 118, 221, 0.18), transparent 50%),
  radial-gradient(ellipse at 60% 110%, rgba(255, 143, 143, 0.08), transparent 50%); }
.ultra-sky::after { content: ""; position: absolute; inset: 0; opacity: 0.7; background-image: radial-gradient(circle, rgba(200, 214, 255, 0.5) 0.7px, transparent 1.2px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(circle at 60% 50%, #000, transparent 75%); mask-image: radial-gradient(circle at 60% 50%, #000, transparent 75%); }
.ultra-rim { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4; opacity: 0; transition: opacity 1s; }
.ultra-rim i { display: none; }
.ultra-rim::before, .ultra-rim::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ang), transparent 0deg, #8aa2f2 50deg, #7fe6ff 95deg, #e6a2ff 140deg, transparent 190deg, transparent 230deg, #7fe6ff 290deg, transparent 340deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-ang 6s linear infinite;
}
.ultra-rim::after { filter: blur(10px); padding: 6px; opacity: 0.9; }
.ultra-stage.is-on .ultra-rim { opacity: 1; }
.ultra-wave { position: absolute; z-index: 3; left: var(--wx); top: var(--wy); width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px rgba(127, 230, 255, 0.9), 0 0 30px 6px rgba(138, 162, 242, 0.55), inset 0 0 30px 4px rgba(230, 162, 255, 0.45); }
.ultra-stage.is-firing .ultra-wave.w1 { animation: wave 1.6s var(--ease) forwards; }
.ultra-stage.is-firing .ultra-wave.w2 { animation: wave 1.9s var(--ease) 0.18s forwards; }
@keyframes wave { 0% { opacity: 1; transform: scale(0.2); } 100% { opacity: 0; transform: scale(34); } }
.ultra-threads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.ultra-threads path { fill: none; stroke: rgba(200, 214, 255, 0.14); stroke-width: 1.6; stroke-dasharray: 4 7; vector-effect: non-scaling-stroke; transition: stroke 0.8s; }
.ultra-stage.is-on .ultra-threads path { stroke: url(#link-g); stroke: #8fb3ff; animation: dash 0.9s linear infinite; filter: drop-shadow(0 0 5px rgba(127, 230, 255, 0.7)); }
.ultra-card {
  position: absolute; z-index: 2; left: 9%; top: 50%; transform: translateY(-50%);
  width: min(400px, 42%); display: flex; flex-direction: column;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 38, 58, 0.9), rgba(20, 26, 41, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(228, 238, 255, 0.12), 0 30px 80px -24px rgba(2, 4, 10, 0.95);
  font-size: 13.5px;
}
.uc-aura { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.9s;
  box-shadow: 0 0 50px -6px rgba(138, 162, 242, 0.6), 0 0 120px -30px rgba(127, 230, 255, 0.6), inset 0 0 40px -14px rgba(127, 230, 255, 0.6); }
.ultra-stage.is-on .uc-aura { opacity: 1; }
.uc-body { padding: 18px; line-height: 1.75; min-height: 190px; }
.uc-body .msg.user { margin-left: 30px; }
.uc-body .msg.ai { transition: opacity 0.4s; }
.uc-composer { display: flex; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 7px; border-radius: 16px; background: #1d2540; box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.08); }
.uc-composer .send { margin-left: auto; }
.uc-hint { font-size: 12.5px; color: #a3afcf; transition: opacity 0.4s; }
.ultra-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 4px;
  border: 0; border-radius: 999px; cursor: pointer; background: rgba(200, 214, 255, 0.06); color: #c9d0e6;
  font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.12);
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.ultra-toggle .core { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transition: background 0.4s, color 0.4s; }
.ultra-toggle .core svg { width: 17px; height: 17px; }
.ultra-toggle:hover { background: rgba(200, 214, 255, 0.1); }
.ultra-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.ultra-toggle[aria-pressed="true"] { background: rgba(169, 188, 247, 0.16); color: #e3e9ff; box-shadow: inset 0 0 0 1px rgba(169, 188, 247, 0.3); }
.ultra-toggle[aria-pressed="true"] .core { background: #a9bcf7; color: #131a30; animation: pop 0.6s var(--ease); }
.ultra-toggle[aria-pressed="false"]::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; box-shadow: 0 0 0 1.5px rgba(127, 230, 255, 0.6); animation: ping 2s var(--ease) infinite; pointer-events: none; }
@keyframes pop { 40% { transform: scale(1.25); } }
@keyframes ping { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18, 1.5); } }
.ultra-members { position: absolute; z-index: 2; left: 76%; top: 0; bottom: 0; }
.ultra-members li { position: absolute; top: calc(var(--y) / 540 * 100%); left: 0; transform: translateY(-50%); display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.ultra-members .glyph { position: relative; z-index: 1; width: 54px; height: 54px; padding: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(200, 214, 255, 0.16), rgba(20, 26, 41, 0.9)); box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.16); transition: transform 0.6s var(--ease); }
.ultra-members .halo { position: absolute; left: -7px; top: 50%; width: 68px; height: 68px; margin-top: -34px; border-radius: 50%; opacity: 0; transition: opacity 0.8s;
  background: conic-gradient(from var(--ang), #8aa2f2, #7fe6ff, #e6a2ff, #8aa2f2); -webkit-mask: radial-gradient(circle, transparent 30px, #000 31px, #000 33px, transparent 34px); mask: radial-gradient(circle, transparent 30px, #000 31px, #000 33px, transparent 34px); animation: spin-ang 3s linear infinite; filter: drop-shadow(0 0 6px rgba(127, 230, 255, 0.8)); }
.ultra-members div { display: flex; flex-direction: column; }
.ultra-members b { font-size: 14.5px; }
.ultra-members span[data-member-status] { font-size: 12px; color: var(--ink-3); transition: color 0.4s; }
.ultra-stage.is-on .ultra-members .halo { opacity: 1; }
.ultra-stage.is-on .ultra-members .glyph { transform: scale(1.06); }
.ultra-stage.is-on .ultra-members span[data-member-status] { color: var(--cyan); }
.ultra-stage.is-on .ultra-members li:nth-child(2) .halo { animation-delay: -1s; }
.ultra-stage.is-on .ultra-members li:nth-child(3) .halo { animation-delay: -2s; }

.stats { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats > div { padding: 22px 24px; border-radius: 20px; background: rgba(200, 214, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.stats dt { font-size: clamp(30px, 3.4vw, 44px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #dfe6ff, #9fb5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ---------- Mission ---------- */
.mission-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.claim { margin-top: 34px; display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 20px 22px; border-radius: 18px; background: linear-gradient(180deg, rgba(134, 201, 181, 0.09), rgba(134, 201, 181, 0.03)); box-shadow: inset 0 0 0 1px rgba(134, 201, 181, 0.22); }
.claim svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--ok); color: #0f2a26; }
.claim p { font-size: 15px; line-height: 1.8; color: #cfe8e0; }
.claim b { color: #fff; }
.mission-board { container-type: inline-size; position: relative; padding: 22px; border-radius: 26px; background: linear-gradient(180deg, rgba(30, 38, 58, 0.7), rgba(16, 22, 37, 0.8)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px var(--line), 0 40px 100px -40px rgba(0, 0, 0, 0.9); }
.mb-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mb-kicker { font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; }
.mb-head h4 { margin-top: 4px; font-size: 21px; font-weight: 650; }
.mb-cron { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9px; font-size: 12.5px; color: #b9c8fb; background: rgba(138, 162, 242, 0.12); font-variant-numeric: tabular-nums; }
.mb-cron svg { width: 14px; height: 14px; }
.medallion { position: relative; flex: none; width: 124px; height: 124px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, rgba(200, 214, 255, 0.14), rgba(14, 19, 32, 0.95) 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(228, 238, 255, 0.12), 0 12px 40px -12px rgba(138, 162, 242, 0.5); }
.medallion svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.m-track { fill: none; stroke: rgba(200, 214, 255, 0.1); stroke-width: 3.5; }
.m-arc { fill: none; stroke: #8aa2f2; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 46 54; filter: drop-shadow(0 0 4px rgba(127, 230, 255, 0.8)); transition: stroke-dasharray 0.9s linear, stroke-dashoffset 0.9s linear; }
.m-read { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.m-label { font-size: 10.5px; letter-spacing: 0.12em; color: var(--ink-3); }
.m-read b { margin-top: 2px; font: 600 25px/1.1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.medallion.is-running .m-arc { stroke-dasharray: 22 78; animation: orbit-arc 1.6s linear infinite; }
@keyframes orbit-arc { to { stroke-dashoffset: -100; } }
.dag-wrap { position: relative; margin-top: 18px; aspect-ratio: 560 / 300; }
.dag { position: absolute; inset: 0; width: 100%; height: 100%; }
.dag-edges path { fill: none; stroke: rgba(200, 214, 255, 0.2); stroke-width: 1.6; }
.dag-pulses circle { fill: #7fe6ff; filter: drop-shadow(0 0 4px #7fe6ff); }
.dag-nodes { position: absolute; inset: 0; }
.dn { position: absolute; width: 16.8%; height: 13.4%; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; border-radius: clamp(7px, 2cqw, 12px); font-size: clamp(9px, 2.5cqw, 13.5px); font-weight: 600; background: rgba(20, 26, 41, 0.95); box-shadow: inset 0 0 0 1px rgba(228, 238, 255, 0.14); white-space: nowrap; }
.dn em { position: absolute; top: -9px; right: -6px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 7px; font: 500 clamp(8.5px, 1.9cqw, 10.5px)/1.5 var(--font); font-style: normal; color: #cfd8f6; background: #28314b; }
.dn em svg { width: 11px; height: 11px; }
.dn.done { box-shadow: inset 0 0 0 1px rgba(134, 201, 181, 0.45); color: #d6f0e8; }
.dn.done::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.dn.run { box-shadow: inset 0 0 0 1.5px #8aa2f2, 0 0 24px -4px rgba(138, 162, 242, 0.8); }
.dn.run::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.6px solid rgba(127, 230, 255, 0.25); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; }
.dn.wait { box-shadow: inset 0 0 0 1.5px rgba(216, 174, 106, 0.6); color: #f0dcb5; border: 0; background: repeating-linear-gradient(135deg, rgba(216, 174, 106, 0.08) 0 6px, transparent 6px 12px), rgba(20, 26, 41, 0.95); }
.dn.wait::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: blink 1.2s infinite; }
.mb-log { margin-top: 14px; display: grid; gap: 2px; font-size: 13px; color: var(--ink-2); }
.mb-log li { display: flex; gap: 12px; padding: 8px 4px; border-top: 1px solid rgba(228, 238, 255, 0.06); }
.mb-log time { color: var(--ink-3); font-variant-numeric: tabular-nums; }

@container (max-width: 480px) {
  .dn::before { display: none !important; }
  .dn em { top: -12px; right: -4px; padding: 0 5px; }
  .dn em svg { display: none; }
}

/* ---------- Bento ---------- */
.bento { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; min-height: 420px; overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(200, 214, 255, 0.05), rgba(200, 214, 255, 0.015));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.5s, transform 0.6s var(--ease);
  isolation: isolate;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.5s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(138, 162, 242, 0.13), transparent 60%); }
.tile:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.tile:hover::before { opacity: 1; }
.span2 { grid-column: span 2; }
.tile-art { position: relative; flex: 1; min-height: 230px; overflow: hidden; }
.tile-copy { padding: 0 26px 26px; }
.tile-copy h3 { font-size: 19px; font-weight: 650; }
.tile-copy p { margin-top: 8px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }

.edit-art { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 28px 24px 18px; }
.ea-board { position: relative; width: 210px; height: 250px; border-radius: 4px; padding: 20px 18px; background: linear-gradient(160deg, #f4f1ff, #e6ebff); color: #1d2340; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9); transform: rotate(-3deg); }
.ea-kicker { font: 700 9px/1 var(--font); letter-spacing: 0.2em; color: #6f7fe0; }
.ea-title-wrap { position: relative; display: inline-block; margin-top: 30px; }
.ea-title { margin: 0; font-size: 27px; line-height: 1.15; font-weight: 800; transition: font-weight 0.5s var(--ease), letter-spacing 0.5s; font-family: "PingFang SC", "Noto Sans SC", sans-serif; }
.ea-img { margin-top: 16px; height: 92px; border-radius: 12px; background: radial-gradient(circle at 70% 40%, #ffd08a, #ff8f8f 40%, #a99bff 90%); }
.ea-sel { position: absolute; inset: -5px -7px; border: 1.5px solid #6f86ff; pointer-events: none; transition: inset 0.5s var(--ease); }
.ea-sel i { position: absolute; width: 8px; height: 8px; margin: -4px; background: #fff; border: 1.5px solid #6f86ff; border-radius: 2px; }
.ea-sel i:nth-child(1) { left: 0; top: 0; } .ea-sel i:nth-child(2) { left: 50%; top: 0; } .ea-sel i:nth-child(3) { left: 100%; top: 0; }
.ea-sel i:nth-child(4) { left: 100%; top: 50%; } .ea-sel i:nth-child(5) { left: 100%; top: 100%; } .ea-sel i:nth-child(6) { left: 50%; top: 100%; }
.ea-sel i:nth-child(7) { left: 0; top: 100%; } .ea-sel i:nth-child(8) { left: 0; top: 50%; }
.ea-sel .rot { position: absolute; left: 50%; top: -24px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #6f86ff; box-shadow: 0 10px 0 -4px #6f86ff; }
.ea-panel { width: 168px; padding: 14px; border-radius: 16px; font-size: 12.5px; background: rgba(20, 26, 41, 0.9); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -20px #000; }
.ea-panel > p { font-weight: 600; margin-bottom: 8px; }
.ea-row { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink-3); }
.ea-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ea-sw { display: flex; gap: 6px; margin-top: 10px; }
.ea-sw i { width: 20px; height: 20px; border-radius: 6px; background: #1d2340; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.ea-sw i:nth-child(2) { background: #6f7fe0; box-shadow: 0 0 0 2px #0b0f1a, 0 0 0 3.5px #8aa2f2; } .ea-sw i:nth-child(3) { background: #ff8f8f; } .ea-sw i:nth-child(4) { background: #ffd08a; }

.article-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 26px; }
.aa-doc { width: 78%; padding: 18px; border-radius: 6px; background: #fbfaf7; display: grid; gap: 9px; box-shadow: 0 20px 40px -20px #000; transform: rotate(2deg); transition: transform 0.6s var(--ease); }
.tile:hover .aa-doc { transform: rotate(0deg) translateY(-4px); }
.aa-doc b { color: #2b2a26; font-size: 15px; }
.aa-doc i { height: 6px; border-radius: 3px; background: #e7e3da; }
.aa-doc i.q { height: 22px; border-left: 3px solid #d9814f; border-radius: 0; background: #f3eee4; }
.aa-chips { display: flex; gap: 6px; }
.aa-chips span { padding: 4px 10px; border-radius: 8px; font-size: 12px; background: rgba(200, 214, 255, 0.08); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

.font-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.font-art span { font-size: 128px; line-height: 1; background: linear-gradient(180deg, #ffffff, #9fb5ff); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity 0.35s; }
.font-art small { font-size: 12px; letter-spacing: 0.08em; color: var(--ink-3); transition: opacity 0.35s; }
.font-art.is-swap span, .font-art.is-swap small { opacity: 0; }

.motion-art { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 26px; }
.ma-stage { position: relative; height: 120px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #1d2a64, #0b4f5e); box-shadow: inset 0 0 0 1px var(--line); }
.ma-title { position: absolute; left: 18px; bottom: 16px; font: 800 34px/1 var(--font); letter-spacing: 0.08em; color: #fff; animation: live-title 3s var(--ease) infinite; }
.ma-dot { position: absolute; right: 22px; top: 22px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd08a, #ff6fae); animation: live-dot 3s var(--ease-io) infinite; }
@keyframes live-title { 0% { transform: translateY(24px); opacity: 0; } 25%, 80% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes live-dot { 0%, 100% { transform: translate(0, 0) scale(0.6); } 50% { transform: translate(-40px, 30px) scale(1); } }
.ma-tracks { position: relative; display: grid; gap: 6px; }
.ma-tracks i { height: 9px; margin-left: var(--l); width: var(--w); border-radius: 5px; background: linear-gradient(90deg, rgba(138, 162, 242, 0.8), rgba(127, 230, 255, 0.6)); }
.ma-tracks i:nth-child(2) { background: linear-gradient(90deg, rgba(255, 143, 143, 0.75), rgba(255, 208, 138, 0.6)); }
.ma-tracks i:nth-child(3) { background: linear-gradient(90deg, rgba(230, 162, 255, 0.75), rgba(169, 155, 255, 0.6)); }
.ma-head { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; background: #fff; box-shadow: 0 0 8px var(--cyan); animation: playhead-b 3s linear infinite; }
@keyframes playhead-b { to { left: 100%; } }

.video-art { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 28px; }
.va-row { display: flex; align-items: center; gap: 10px; }
.va-cap { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); background: rgba(200, 214, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line); }
.va-scene { position: relative; flex: 1; aspect-ratio: 3 / 4; max-width: 96px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 24px -12px #000; transition: transform 0.6s var(--ease); }
.va-scene.v1 { background: linear-gradient(172deg, #f6dcb0, #cf7448 70%, #8f3b2a); }
.va-scene.v2 { background: linear-gradient(160deg, #f6efe3, #e2d3bc); }
.va-scene.v3 { background: radial-gradient(120% 80% at 80% 0%, #6a4128, #241812 65%); }
.va-scene.v4 { background: linear-gradient(160deg, #d9d3ff, #6f86e6); }
.va-scene::after { content: ""; position: absolute; left: 12%; right: 30%; top: 16%; height: 14%; border-radius: 3px; background: rgba(255, 248, 236, 0.85); }
.va-scene.v2::after { background: #cf7448; height: 6%; right: 50%; }
.va-scene.v3::after { background: linear-gradient(180deg, #ffe2a8, #e8a24e); top: 38%; height: 16%; right: 18%; }
.va-scene.v4::after { background: rgba(255, 255, 255, 0.9); }
.tile:hover .va-scene.v1 { transform: translateY(-6px) rotate(-2deg); }
.tile:hover .va-scene.v3 { transform: translateY(-6px) rotate(2deg); }
.va-tr { flex: none; width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 0deg, #8aa2f2, #7fe6ff, #e6a2ff, #8aa2f2); -webkit-mask: radial-gradient(circle, transparent 4px, #000 5px); mask: radial-gradient(circle, transparent 4px, #000 5px); animation: spin 3s linear infinite; }
.va-wave { height: 56px; border-radius: 12px; background: rgba(127, 230, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(127, 230, 255, 0.14); overflow: hidden; }
.va-wave canvas { width: 100%; height: 100%; }

.library-art { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 26px; }
.la-folder { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.la-folder svg { width: 20px; height: 20px; color: var(--warm-1); }
.la-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.la-grid i { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, #343a8f, #0b4f5e); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); transition: transform 0.5s var(--ease); }
.la-grid i:nth-child(2) { background: linear-gradient(135deg, #ffd08a, #ff8f8f); }
.la-grid i:nth-child(3) { background: linear-gradient(135deg, #e9ede8, #9fb6a5); }
.la-grid i:nth-child(4) { background: linear-gradient(135deg, #a99bff, #6fb8ff); }
.la-grid i:nth-child(5) { background: linear-gradient(135deg, #1b2123, #6fb4c5); }
.la-grid i:nth-child(6) { background: linear-gradient(135deg, #f6efe3, #cf7448); }
.tile:hover .la-grid i:nth-child(odd) { transform: translateY(-4px); }
.la-sw { display: flex; gap: 6px; }
.la-sw i { flex: 1; height: 16px; border-radius: 5px; background: #2d6555; }
.la-sw i:nth-child(2) { background: #b29a64; } .la-sw i:nth-child(3) { background: #e9ede8; } .la-sw i:nth-child(4) { background: #263f36; } .la-sw i:nth-child(5) { background: #f2a23c; }

.xhs-art { display: flex; align-items: center; justify-content: center; padding: 28px; }
.xa-card { position: relative; width: 120px; aspect-ratio: 3 / 4; margin: 0 -14px; border-radius: 10px; display: flex; align-items: flex-end; padding: 12px; color: #fff; font-size: 18px; line-height: 1.15; box-shadow: 0 20px 40px -18px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.16); transition: transform 0.7s var(--ease); }
.xa-card b { font-weight: 800; }
.xa-card.c1 { z-index: 4; background: linear-gradient(172deg, #f6dcb0, #cf7448 70%, #8f3b2a); transform: rotate(-8deg) translateY(4px); }
.xa-card.c2 { z-index: 3; background: linear-gradient(160deg, #f4f1ff, #a99bff); color: #1d2340; transform: rotate(-2deg); }
.xa-card.c3 { z-index: 2; background: linear-gradient(160deg, #e9ede8, #2d6555); transform: rotate(4deg) translateY(4px); }
.xa-card.c4 { z-index: 1; background: linear-gradient(160deg, #1b2123, #6fb4c5); transform: rotate(10deg) translateY(12px); }
.tile:hover .xa-card.c1 { transform: rotate(-12deg) translate(-16px, -6px); }
.tile:hover .xa-card.c4 { transform: rotate(14deg) translate(16px, 10px); }

.planner-art { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 28px 30px; }
.pa-chat { display: grid; gap: 10px; font-size: 13.5px; line-height: 1.7; }
.pa-chat .u { justify-self: end; max-width: 70%; padding: 9px 14px; border-radius: 16px 16px 4px 16px; background: #28314b; }
.pa-chat .a { max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(200, 214, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.pa-chat .a b { color: var(--ink); font-weight: 600; }
.pa-projects { display: flex; gap: 8px; flex-wrap: wrap; }
.pa-projects span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 10px; font-size: 12.5px; background: rgba(200, 214, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.pa-projects i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }

/* ---------- Themes ---------- */
.themes {
  --t-app: #0b0f1a; --t-panel: #141a29; --t-canvas: #0b0f1a; --t-grid: rgba(200, 214, 255, 0.1);
  --t-text: #e9ecf6; --t-text2: #9da8c4; --t-border: #2c3650; --t-accent: #8aa2f2; --t-top: #111827;
  --t-shell: #141a29; --t-composer: #1d2540; --t-composer-text: #a3afcf; --t-user: #28314b; --t-user-text: #e9ecf6;
  --t-send: radial-gradient(120% 100% at 30% 20%, #c2d0fb, #7186da); --t-send-text: #131a30;
  --t-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(228, 238, 255, 0.12), 0 24px 60px -20px rgba(2, 4, 10, 0.9);
  --t-display: "Avenir Next", "PingFang SC", sans-serif;
  background: var(--t-app);
  color: var(--t-text);
  transition: background 0.9s var(--ease), color 0.9s var(--ease);
}
.themes .eyebrow, .themes .lead { color: var(--t-text2); transition: color 0.9s; }
.themes[data-theme="quiet-paper"] {
  --t-app: #f7f7f5; --t-panel: #ffffff; --t-canvas: #ecebe7; --t-grid: rgba(255, 255, 255, 0.9);
  --t-text: #37352f; --t-text2: #6f6e69; --t-border: #e5e4e0; --t-accent: #1f6fb2; --t-top: rgba(255, 255, 255, 0.96);
  --t-shell: #fdfdfb; --t-composer: #f8f9f6; --t-composer-text: #6f6e69; --t-user: #173b62; --t-user-text: #f7f7f5;
  --t-send: #1d3450; --t-send-text: #f7f7f5;
  --t-card-shadow: inset 0 1px 0 #fff, 0 0 0 1px #e5e4e0, 0 1px 2px rgba(87, 79, 63, 0.12), 0 18px 36px -16px rgba(87, 79, 63, 0.3);
  --t-display: "Iowan Old Style", "Songti SC", "Noto Serif SC", serif;
}
.themes[data-theme="zhihan"] {
  --t-app: #e9ede8; --t-panel: #fbfcf6; --t-canvas: #e9ede8; --t-grid: rgba(105, 129, 111, 0.3);
  --t-text: #263f36; --t-text2: #617161; --t-border: #d4dccf; --t-accent: #2d6555; --t-top: #f5f7f0;
  --t-shell: #fbfcf6; --t-composer: #244c40; --t-composer-text: #d6e3d2; --t-user: #e0eadd; --t-user-text: #263f36;
  --t-send: #e7efcf; --t-send-text: #244c40;
  --t-card-shadow: inset 0 2px 0 #b29a64, 0 0 0 1px #d4dccf, 0 1px 2px rgba(51, 67, 47, 0.12), 0 18px 36px -16px rgba(51, 67, 47, 0.32);
  --t-display: "Iowan Old Style", "Songti SC", "Noto Serif SC", serif;
}
.themes[data-theme="mist-blue"] {
  --t-app: #e7eef1; --t-panel: #ecf2f4; --t-canvas: #dfe8ec; --t-grid: rgba(111, 136, 148, 0.34);
  --t-text: #26343d; --t-text2: #55666e; --t-border: #d2dde2; --t-accent: #346c85; --t-top: #e9eff2;
  --t-shell: #ecf2f4; --t-composer: #e3ebee; --t-composer-text: #55666e; --t-user: #315f75; --t-user-text: #f1f6f7;
  --t-send: linear-gradient(145deg, #3f7f9a, #2b5b70); --t-send-text: #fff;
  --t-card-shadow: -10px -10px 22px rgba(255, 255, 255, 0.9), 12px 14px 28px rgba(151, 173, 184, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --t-display: "MiSans", "PingFang SC", sans-serif;
}
.themes[data-theme="graphite-night"] {
  --t-app: #111516; --t-panel: #181d1f; --t-canvas: #161b1d; --t-grid: rgba(120, 144, 152, 0.38);
  --t-text: #e8eeec; --t-text2: #9aa8a4; --t-border: #2a3336; --t-accent: #6fb4c5; --t-top: #15191b;
  --t-shell: #171d1f; --t-composer: #0f1314; --t-composer-text: #9aa8a4; --t-user: #315f6b; --t-user-text: #e8eeec;
  --t-send: #6fb4c5; --t-send-text: #0b1214;
  --t-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 0 0 1px #2a3336, 0 24px 50px -20px #000;
  --t-display: "Avenir Next", "PingFang SC", sans-serif;
}

.theme-tabs { margin: 48px auto 0; width: fit-content; max-width: 100%; display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: color-mix(in srgb, var(--t-text) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-text) 10%, transparent); overflow-x: auto; scrollbar-width: none; }
.theme-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 11px; background: transparent; color: var(--t-text2); font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.4s, color 0.4s, box-shadow 0.4s; }
.theme-tabs button[aria-selected="true"] { background: var(--t-panel); color: var(--t-text); box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.35), inset 0 0 0 1px color-mix(in srgb, var(--t-text) 10%, transparent); }
.theme-tabs i { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.theme-tabs button:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }
.theme-show { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: center; }
.tw { position: relative; aspect-ratio: 16 / 10; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--t-canvas); box-shadow: 0 0 0 1px color-mix(in srgb, var(--t-text) 12%, transparent), 0 40px 100px -40px rgba(0, 0, 0, 0.55); transition: background 0.9s var(--ease); font-size: 12.5px; color: var(--t-text); }
.tw-top { flex: none; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--t-top); border-bottom: 1px solid var(--t-border); transition: background 0.9s, border-color 0.9s; white-space: nowrap; }
.tw-top .lights { margin-right: 6px; }
.tw-logo { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(140deg, #343a8f, #1d2a64 52%, #0b4f5e); }
.tw-logo svg { width: 17px; height: 12px; }
.tw-proj { margin-left: 8px; font-weight: 600; }
.tw-pill { padding: 3px 10px; border-radius: 8px; background: color-mix(in srgb, var(--t-text) 7%, transparent); }
.tw-sp { flex: 1; }
.tw-prim { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9px; background: var(--t-send); color: var(--t-send-text); font-weight: 600; transition: background 0.9s, color 0.9s; }
.tw-prim svg { width: 14px; height: 14px; }
.tw-canvas { position: relative; flex: 1; background-image: radial-gradient(circle, var(--t-grid) 1.1px, transparent 1.5px); background-size: 22px 22px; }
.themes[data-theme="stellar"] .tw-canvas::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse at 8% 14%, rgba(59, 152, 171, 0.16), transparent 46%), radial-gradient(ellipse at 82% 8%, rgba(134, 118, 221, 0.18), transparent 48%),
  radial-gradient(circle at 21% 72%, #c8d6ffaa 0 1px, transparent 1.6px), radial-gradient(circle at 64% 12%, #c8d6ff88 0 1px, transparent 1.6px), radial-gradient(circle at 90% 54%, #c8d6ffaa 0 1px, transparent 1.6px), radial-gradient(circle at 44% 90%, #c8d6ff66 0 1px, transparent 1.6px); }
.tw-card { position: absolute; left: 6%; top: 10%; bottom: 10%; width: 36%; display: flex; flex-direction: column; border-radius: 16px; background: var(--t-shell); box-shadow: var(--t-card-shadow); transition: background 0.9s, box-shadow 0.9s; }
.themes[data-theme="stellar"] .tw-card { background: rgba(20, 26, 41, 0.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.themes[data-theme="zhihan"] .tw-card::before, .themes[data-theme="zhihan"] .tw-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #f4f6ee; box-shadow: 0 0 0 1px #d4dccf; transform: rotate(-2.4deg) translate(-6px, 6px); }
.themes[data-theme="zhihan"] .tw-card::after { transform: rotate(1.6deg) translate(6px, 8px); background: #eef2e7; }
.themes[data-theme="zhihan"] .tw-card { isolation: isolate; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .5' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); }
.themes[data-theme="graphite-night"] .tw-card { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.tw-card header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--t-border); transition: border-color 0.9s; }
.themes[data-theme="zhihan"] .tw-card header { background: #eef2e7; border-radius: 16px 16px 0 0; }
.themes[data-theme="graphite-night"] .tw-card header { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04); border-bottom-color: #0b0e0f; }
.tw-card header .glyph { width: 34px; height: 34px; padding: 3px; }
.tw-card header > div { display: flex; flex-direction: column; }
.tw-card header b { font-size: 14px; font-family: var(--t-display); }
.tw-card header span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--t-text2); }
.tw-card header span i { width: 6px; height: 6px; border-radius: 50%; background: var(--t-accent); }
.tw-msgs { flex: 1; padding: 14px; display: grid; align-content: start; gap: 10px; line-height: 1.7; }
.tw-msgs .u { justify-self: end; max-width: 82%; padding: 7px 11px; border-radius: 13px 13px 3px 13px; background: var(--t-user); color: var(--t-user-text); transition: background 0.9s, color 0.9s; }
.tw-msgs .a { color: var(--t-text); }
.tw-composer { display: flex; align-items: center; gap: 8px; margin: 10px; padding: 8px 8px 8px 12px; border-radius: 13px; background: var(--t-composer); color: var(--t-composer-text); transition: background 0.9s, color 0.9s; }
.themes[data-theme="mist-blue"] .tw-composer { box-shadow: inset 3px 3px 7px rgba(151, 173, 184, 0.45), inset -3px -3px 7px rgba(255, 255, 255, 0.85); }
.themes[data-theme="quiet-paper"] .tw-composer { box-shadow: inset 0 1px 2px rgba(87, 79, 63, 0.12), 0 0 0 1px #e5e4e0; }
.themes[data-theme="graphite-night"] .tw-composer { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.05); }
.tw-composer span { flex: 1; }
.tw-composer b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--t-send); color: var(--t-send-text); }
.themes[data-theme="graphite-night"] .tw-composer b { box-shadow: 0 0 14px rgba(111, 180, 197, 0.6); }
.tw-composer b svg { width: 14px; height: 14px; }
.tw-orbs { position: absolute; left: 46%; top: 16%; display: grid; gap: 16px; }
.tw-orbs .glyph { width: 46px; height: 46px; padding: 5px; border-radius: 50%; background: var(--t-panel); box-shadow: var(--t-card-shadow); transition: background 0.9s, box-shadow 0.9s; animation: bob 4s ease-in-out infinite; }
.tw-orbs .glyph:nth-child(2) { animation-delay: -1.3s; }
.tw-orbs .glyph:nth-child(3) { animation-delay: -2.6s; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.themes[data-theme="stellar"] .tw-orbs .glyph { background: radial-gradient(circle at 35% 30%, rgba(200, 214, 255, 0.18), rgba(20, 26, 41, 0.85)); }
.tw-board { position: absolute; right: 7%; top: 12%; width: 31%; aspect-ratio: 3 / 4; padding: 16px; display: flex; flex-direction: column; border-radius: 3px; background: #fbfaf7; color: #1f2a2f; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6); font-family: "Songti SC", "Noto Serif SC", serif; }
.tw-board span { font: 700 9px/1 var(--font); letter-spacing: 0.24em; color: #8b9a8f; }
.tw-board b { margin-top: 10px; font-size: clamp(15px, 1.9vw, 24px); line-height: 1.3; }
.tw-board i { flex: 1; margin-top: 12px; border-radius: 6px; background: linear-gradient(160deg, #e3eadf, #b9cbbd); }
.tw-tools { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--t-panel); box-shadow: var(--t-card-shadow); transition: background 0.9s, box-shadow 0.9s; color: var(--t-text2); }
.themes[data-theme="stellar"] .tw-tools { background: rgba(26, 34, 53, 0.74); backdrop-filter: blur(14px); }
.tw-tools span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; }
.tw-tools span.on { background: color-mix(in srgb, var(--t-accent) 18%, transparent); color: var(--t-accent); }
.tw-tools svg { width: 16px; height: 16px; }
.tw .glyph svg { transition: opacity 0.4s; }
.tw.is-swapping .glyph svg { opacity: 0; }
.theme-info { padding: 8px 0; }
.ti-material { font-size: 13px; letter-spacing: 0.12em; color: var(--t-accent); font-weight: 600; transition: color 0.9s; }
.theme-info h3 { margin-top: 10px; font-size: 44px; line-height: 1.1; font-family: var(--t-display); font-weight: 600; }
.theme-info p:not(.ti-material) { margin-top: 14px; font-size: 15.5px; line-height: 1.85; color: var(--t-text2); transition: color 0.9s; }
.ti-swatches { margin-top: 22px; display: flex; gap: 8px; }
.ti-swatches i { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-text) 14%, transparent); animation: rise 0.6s var(--ease) both; }
.theme-info .swap { animation: rise 0.7s var(--ease) both; }

/* ---------- Local first ---------- */
.local-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.finder { border-radius: 16px; overflow: hidden; background: rgba(16, 22, 37, 0.9); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px -40px #000; font-size: 13.5px; }
.fd-bar { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 14px; background: rgba(200, 214, 255, 0.04); border-bottom: 1px solid var(--line); }
.fd-path { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fd-path svg { width: 16px; height: 16px; color: var(--warm-1); flex: none; }
.fd-list { padding: 8px; }
.fd-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); }
.fd-list li svg { width: 17px; height: 17px; color: #9fb5ff; flex: none; }
.fd-list li:not(.in) svg { color: var(--warm-1); }
.fd-list li.in { padding-left: 34px; }
.fd-list em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-3); }
.js .finder .fd-list li.in { opacity: 0; transform: translateX(-8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 1.2s; }
.finder.is-in .fd-list li.in { opacity: 1; transform: none; }
.finder .fd-list li.is-new { background: rgba(138, 162, 242, 0.12); }
.fd-revs { display: flex; align-items: center; gap: 14px; padding: 14px 18px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.revs { flex: 1; display: flex; gap: 4px; }
.revs i { flex: 1; height: 16px; border-radius: 3px; background: rgba(200, 214, 255, 0.1); transition: background 0.6s; }
.revs i.lit { background: linear-gradient(180deg, #a9bcf7, #6f86e6); }
.revs i.now { background: linear-gradient(180deg, #ffd08a, #ff8f8f); box-shadow: 0 0 10px rgba(255, 143, 143, 0.6); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(120px, 15vw, 200px) 0 clamp(110px, 12vw, 160px); overflow: hidden; isolation: isolate; }
.cta-aurora { position: absolute; inset: 0; z-index: -1; }
.cta-aurora i { position: absolute; left: 50%; top: 46%; width: 46vw; height: 16vw; border-radius: 50%; filter: blur(70px); opacity: 0.42; mix-blend-mode: screen; transform-origin: center; }
.cta-aurora i:nth-child(1) { background: linear-gradient(90deg, #ffd08a, #ff8f8f 55%, #ff6fae); transform: translate(-88%, -40%) rotate(12deg); animation: aurora-a 14s ease-in-out infinite alternate; }
.cta-aurora i:nth-child(2) { background: linear-gradient(90deg, #63e6e0, #6fb8ff 50%, #a99bff); transform: translate(-12%, -62%) rotate(12deg); animation: aurora-b 16s ease-in-out infinite alternate; }
@keyframes aurora-a { to { transform: translate(-74%, -52%) rotate(2deg) scale(1.08); } }
@keyframes aurora-b { to { transform: translate(-26%, -50%) rotate(2deg) scale(1.08); } }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, var(--bg) 78%); }
.cta-icon { display: inline-block; filter: drop-shadow(0 30px 60px rgba(52, 58, 143, 0.7)); }
.cta-icon img { width: 132px; height: 132px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
.cta h2 { margin-top: 26px; font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.03em; }
.cta-specs { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.cta-specs li { display: inline-flex; align-items: center; gap: 8px; }
.cta-specs li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cta .lead { text-wrap: balance; }
.cta-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.btn[data-download][aria-disabled="true"] { cursor: default; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.footer-inner .fine { margin-left: auto; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .story { height: 620vh; }
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 18px; padding: 76px 14px 18px; align-items: stretch; }
  .story-stage { order: 1; height: auto; min-height: 0; }
  .story-copy { order: 2; }
  .story-copy .eyebrow { display: none; }
  .story-steps li { display: none; padding: 4px 6px; background: none !important; box-shadow: none !important; }
  .story-steps li.is-active { display: grid; }
  .story-steps li.is-active p { max-height: 120px; }
  .story-progress { bottom: -10px; }
  .engines-grid, .mission-grid, .local-grid { grid-template-columns: 1fr; }
  .orbit { margin: 0 auto; max-width: 520px; }
  .theme-show { grid-template-columns: 1fr; }
  .theme-info { text-align: center; }
  .ti-swatches { justify-content: center; }
  .local-grid .finder { order: 2; }
}
@media (max-width: 720px) {
  .ultra-members li { position: relative; }
  .tile { min-height: 0; }
  .tile-art { min-height: 240px; flex: none; }
  .tw-orbs { gap: 8px; top: 5%; }
  .tw-orbs .glyph { width: 36px; height: 36px; padding: 4px; }
  .tw-board { padding: 12px; }
  .tw-board b { font-size: 14px; }
  .cta-specs { flex-direction: column; align-items: center; gap: 6px; }
  /* Narrow screens: the orbit settles into a constellation of chips. */
  .orbit { aspect-ratio: auto; display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 10px; padding-top: 150px; }
  .orbit-ring.r2, .orbit-ring.r3 { display: none; }
  .orbit-ring.r1 { top: 66px; width: 70%; }
  .orbit-core { top: 66px; }
  .orbit-core svg { width: 110px; height: 71px; }
  .orbit-item { position: relative; transform: none !important; opacity: 1 !important; height: 38px; padding: 0 13px 0 5px; font-size: 13px; gap: 7px; }
  .orbit-item .glyph { width: 28px; height: 28px; }
  .orbit-item.small { height: 30px; padding: 0 11px; }
  .ultra-stage { height: 600px; }
  .ultra-card { left: 16px; right: 16px; width: auto; top: 22px; transform: none; }
  .ultra-threads { display: none; }
  .ultra-members { left: 16px; right: 16px; top: auto; bottom: 22px; display: flex; justify-content: space-between; }
  .ultra-members li { position: static; transform: none; flex-direction: column; gap: 8px; text-align: center; }
  .ultra-members .halo { left: 50%; top: 27px; margin-left: -34px; }
  .ultra-members div { align-items: center; }
  .tile-copy { padding: 0 20px 22px; }
  .edit-art { gap: 14px; }
  .ea-panel { display: none; }
  .tw { aspect-ratio: 4 / 5; }
  .tw-card { width: 54%; left: 5%; }
  .tw-orbs { left: auto; right: 6%; top: 8%; }
  .tw-board { right: 5%; top: auto; bottom: 70px; width: 34%; }
  .tw-pill, .tw-proj { display: none; }
  .footer-inner .fine { margin-left: 0; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats > div { padding: 18px; }
  .mb-head { flex-direction: column-reverse; align-items: flex-start; }
  .medallion { width: 104px; height: 104px; }
  .m-read b { font-size: 21px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero { padding-top: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-intro], .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ribbon-draw { stroke-dashoffset: 0; }
  .ribbon-flow, .ribbon-flash { display: none; }
}
