/* =========================================================
   PANDAI OS — site styles
   Visual language follows CraftOS.net (white canvas, + grid,
   dotted waves, numbered side index, purple-blue accent, live AI
   cursors) with PANDAI OS's purple-to-blue palette, light and dark.
   ========================================================= */

:root {
  --ink: #141518;
  --ink-2: #3b3d44;
  --muted: #74777f;
  --faint: #a6a8b0;
  --line: #e8e8ec;
  --line-2: #d9d9df;
  --bg: #ffffff;
  --soft: #f6f6f8;

  --accent: #6246EA;
  --accent-ink: #4C32CF;
  --accent-deep: #2D1D8C;
  --accent-soft: #F2EFFF;
  --accent-line: #D3CAFF;
  --accent-btn: #6246EA;
  --accent-btn-hover: #4C32CF;
  --accent2: #0EA5E9;
  --accent2-ink: #075985;
  --accent2-soft: #EAF6FD;
  --accent2-line: #A5DAF5;
  --grad: linear-gradient(100deg, #A855F7 0%, #7C5CFF 34%, #3B82F6 68%, #38BDF8 100%);
  --card: #fff;
  --hover-tint: rgba(20, 21, 24, .02);

  --slab: #1d1e22;
  --slab-2: #2a2c31;
  --slab-line: #383a41;

  --ok: #158a57;
  --ok-soft: #e8f6ef;
  --warn: #b67400;
  --warn-soft: #fff4dc;
  --bad: #c93c34;
  --bad-soft: #fdecea;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 21, 24, .04), 0 10px 30px -14px rgba(20, 21, 24, .16);
  --shadow-lg: 0 2px 4px rgba(20, 21, 24, .04), 0 40px 80px -40px rgba(20, 21, 24, .32);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 20px;
  --top: 68px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--top); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* + grid, fixed behind everything (CraftOS signature) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 18.5v7M18.5 22h7' stroke='%23e2e2e7' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 44px 44px;
  pointer-events: none;
}

#waves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.ic {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--slab); color: #fff; padding: 10px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
@media (min-width: 1180px) {
  .wrap {
    width: min(1120px, 100vw - 260px);
    margin-left: max(210px, (100vw - 1120px) / 2);
    margin-right: auto;
  }
}

.sheet {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--top) + 56px) 0 96px;
}
.sheet > .wrap { width: min(1120px, 100% - 2 * var(--gutter)); }
@media (min-width: 1180px) {
  .sheet > .wrap { width: min(1120px, 100vw - 260px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px;
  border-radius: 6px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn .ic { width: 16px; height: 16px; stroke-width: 2; transition: transform .2s; }
.btn:hover .ic { transform: translateX(2px); }
.btn-primary { background: var(--accent-btn); color: #fff; }
.btn-primary:hover { background: var(--accent-btn-hover); }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark-ghost { background: transparent; border-color: #4a4d55; color: #fff; }
.btn-dark-ghost:hover { border-color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.pressed { transform: scale(.96); box-shadow: 0 0 0 6px rgba(98, 70, 234, .18); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--top);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 44px);
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.topbar.scrolled {
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 26px; height: 26px; }
.brand-word { font-weight: 800; font-size: 20px; letter-spacing: -0.035em; color: var(--ink); }
.brand-word span { color: var(--accent); }

.topnav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--ink-2); }
.topnav > a:not(.btn) { position: relative; padding: 6px 0; }
.topnav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--accent-btn); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.topnav > a:not(.btn):hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .topnav > a:not(.btn) { display: none; } }

/* ---------- Side nav (section index) ---------- */
.sidenav {
  position: fixed; left: 40px; top: 50%; z-index: 40;
  transform: translateY(-50%);
  font-size: 13px;
}
.sidenav ol { display: grid; gap: 14px; }
.sidenav a { display: flex; align-items: center; gap: 8px; color: var(--muted); transition: color .2s; }
.sidenav a:hover { color: var(--ink); }
.sn-mark { position: relative; width: 22px; height: 10px; flex: none; }
.sn-mark::before {
  content: ""; position: absolute; right: 2px; top: 50%; width: 6px; height: 1px; background: var(--faint);
  transition: width .25s, background .25s;
}
.sn-mark::after {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  border-left: 5px solid var(--accent); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  opacity: 0; transition: opacity .25s;
}
.sn-n { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--faint); }
.sidenav a.active { color: var(--ink); font-weight: 600; }
.sidenav a.active .sn-n { color: var(--ink); }
.sidenav a.active .sn-mark::before { width: 12px; background: var(--accent-btn); }
.sidenav a.active .sn-mark::after { opacity: 1; }
.sn-count { margin: 22px 0 0 30px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ink); }
@media (max-width: 1179px) { .sidenav { display: none; } }

/* ---------- Type ---------- */
h1 {
  font-size: clamp(40px, 5.1vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 750;
}
h2 {
  font-size: clamp(32px, 4.1vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hl { color: var(--accent); }
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 1.1em;
  letter-spacing: -0.01em;
  line-height: 0.9;
}
.lead { font-size: clamp(16px, 1.35vw, 18px); color: var(--ink-2); line-height: 1.6; max-width: 640px; }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.kicker b { color: var(--accent); font-weight: 600; }

.sec-head { max-width: 780px; margin-bottom: 52px; }
.sec-head h2 { margin-bottom: 20px; }

/* typing caret used by the AI cursors */
.pretype, .pretype * { color: transparent !important; }
.typing .caret {
  display: inline-block; width: 3px; height: .86em; margin-left: 3px;
  background: var(--accent-btn); vertical-align: -0.06em; border-radius: 1px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Reveal ---------- */
/* Hidden only when JS is running (the <head> script adds .js), so content never disappears without it. */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Each section fades in as a whole when you scroll to it; its items then rise in after it */
.js [data-sec-reveal] {
  opacity: 0; transform: translateY(64px) scale(.985); filter: blur(6px);
  transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1), transform 1.2s cubic-bezier(.2, .7, .2, 1), filter 1s ease;
}
.js [data-sec-reveal].sec-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .js [data-sec-reveal] { opacity: 1; transform: none; filter: none; transition: none; } }

/* =========================================================
   AI cursors (the CraftOS "agents" — here, AI OS instances)
   ========================================================= */
.agents { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 6; }
.agent {
  position: absolute; left: 0; top: 0;
  transform: translate3d(-80px, -80px, 0);
  transition: transform var(--dur, 900ms) cubic-bezier(.45, .05, .25, 1), opacity .4s;
  will-change: transform;
  z-index: 3;
}
.agent .arrow { width: 18px; height: 18px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .22)); }
.agent .beam { display: none; width: 2px; height: 22px; background: var(--c); border-radius: 1px; margin: -3px 0 0 1px; position: relative; }
.agent .beam::before, .agent .beam::after { content: ""; position: absolute; left: -3px; width: 8px; height: 2px; background: var(--c); border-radius: 1px; }
.agent .beam::before { top: 0; }
.agent .beam::after { bottom: 0; }
.agent.ibeam .arrow { display: none; }
.agent.ibeam .beam { display: block; }
.agent .tag {
  position: absolute; left: 14px; top: 17px;
  white-space: nowrap;
  font: 600 10.5px/1 var(--font); letter-spacing: .01em;
  color: #fff; background: var(--c);
  padding: 4px 6px 4px; border-radius: 4px;
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .25);
}
.agent.ibeam .tag { left: 10px; top: 20px; }
.agent.click .arrow { transform: scale(.82); transition: transform .12s; }

.sel {
  position: absolute; z-index: 2;
  border: 1.5px solid var(--c);
  background: color-mix(in srgb, var(--c) 5%, transparent);
  border-radius: 8px;
  opacity: 0; transform: scale(1.02);
  transition: opacity .3s, transform .3s;
}
.sel.on { opacity: 1; transform: none; }
.sel::before, .sel::after {
  content: ""; position: absolute; width: 6px; height: 6px; background: var(--card); border: 1.5px solid var(--c); border-radius: 1px;
}
.sel::before { left: -4px; top: -4px; }
.sel::after { right: -4px; bottom: -4px; }

/* =========================================================
   01 · HERO
   ========================================================= */
.hero {
  overflow: hidden;
  justify-content: center;
  min-height: max(100vh, 780px);
  min-height: max(100svh, 780px);
  padding: calc(var(--top) + 40px) 0 130px;
}

/* ----- Orbiting ring of module screens (Agent App style) ----- */
.orbit {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 15%, #000 85%, transparent 98%);
  mask-image: linear-gradient(90deg, transparent 2%, #000 15%, #000 85%, transparent 98%);
}
.orbit-cam { position: absolute; inset: 0; perspective: var(--persp, 1800px); perspective-origin: 50% 50%; }
.orbit-tilt {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translateY(var(--lift, -140px)) translateZ(var(--push, -1100px)) rotateX(var(--tilt, -24deg));
}
.orbit-ring { position: absolute; left: 0; top: 0; transform-style: preserve-3d; animation: orbit 160s linear infinite; }
.hero.paused .orbit-ring { animation-play-state: paused; }
@keyframes orbit { to { transform: rotateY(-360deg); } }
@media (prefers-reduced-motion: reduce) { .orbit-ring { animation: none; } }

.oc {
  position: absolute;
  left: calc(var(--cw, 236px) / -2); top: calc(var(--ch, 150px) / -2);
  width: var(--cw, 236px); height: var(--ch, 150px);
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * var(--step, 15deg))) translateZ(var(--R, 980px));
}
.oc-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  font-size: calc(var(--cw, 236px) / 22);
  border-radius: .9em; overflow: hidden;
  background: #fff; color: var(--ink);
  border: 1px solid #e3e3e8;
  box-shadow: 0 1.4em 2.6em -1.4em rgba(20, 21, 24, .38);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.oc-back { transform: rotateY(180deg); }
.oc-face.dark { background: #17181c; border-color: #2a2c32; color: #e9e9ee; }
.oc-bar { flex: none; display: flex; align-items: center; gap: .35em; padding: .55em .8em; border-bottom: 1px solid rgba(20, 21, 24, .07); font-weight: 700; font-size: .82em; letter-spacing: -.01em; }
.dark .oc-bar { border-color: rgba(255, 255, 255, .08); }
.oc-bar i { width: .55em; height: .55em; border-radius: 50%; background: #dcdce2; flex: none; }
.dark .oc-bar i { background: #3a3c43; }
.oc-bar span { margin-left: .35em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-bar b { margin-left: auto; flex: none; font-size: .78em; font-weight: 600; color: #fff; background: var(--a); padding: .2em .55em; border-radius: .45em; }
.oc-body { flex: 1; min-height: 0; display: flex; gap: .7em; padding: .75em .85em; }

/* mini UI parts */
.mu-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5em; }
.mu-row { display: flex; align-items: center; gap: .5em; height: 1em; flex: none; }
.mu-row i, .mu-line { display: block; height: .42em; border-radius: .3em; background: #e5e5ea; }
.dark .mu-row i, .dark .mu-line { background: #31333a; }
.mu-th i { background: #cdced5; height: .36em; }
.dark .mu-th i { background: #4a4c54; }
.mu-row .d { width: .62em; height: .62em; border-radius: 50%; flex: none; }
.mu-row .p { margin-left: auto; width: 2.6em; height: .95em; border-radius: .5em; background: color-mix(in srgb, var(--a) 24%, transparent); flex: none; }
.mu-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45em; flex: none; }
.mu-kpi { border: 1px solid rgba(20, 21, 24, .08); border-radius: .5em; padding: .35em .45em; }
.dark .mu-kpi { border-color: rgba(255, 255, 255, .08); }
.mu-kpi i { display: block; width: 60%; height: .32em; border-radius: .2em; background: #d9d9de; margin-bottom: .3em; }
.dark .mu-kpi i { background: #3a3c43; }
.mu-kpi b { display: block; font-size: 1.05em; letter-spacing: -.02em; line-height: 1; }
.mu-bars { flex: 1; display: flex; align-items: flex-end; gap: .3em; min-height: 0; }
.mu-bars i { flex: 1; border-radius: .2em .2em 0 0; background: #dedee3; }
.dark .mu-bars i { background: #34363d; }
.mu-bars i.hi { background: var(--a); }
.mu-svg { flex: 1; min-height: 0; width: 100%; }
.mu-kan { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45em; }
.mu-lane { background: rgba(20, 21, 24, .035); border-radius: .5em; padding: .35em; display: flex; flex-direction: column; gap: .35em; }
.dark .mu-lane { background: rgba(255, 255, 255, .04); }
.mu-card { background: #fff; border: 1px solid rgba(20, 21, 24, .07); border-radius: .4em; padding: .35em; display: grid; gap: .25em; }
.dark .mu-card { background: #22242a; border-color: rgba(255, 255, 255, .06); }
.mu-card.ac { border-left: .22em solid var(--a); }
.mu-map {
  flex: 1.4; position: relative; border-radius: .5em; overflow: hidden;
  background-color: #eef2ee;
  background-image: linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px);
  background-size: 1.6em 1.6em;
}
.dark .mu-map { background-color: #1f2a2a; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); }
.mu-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mu-grid { flex: 1.5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4em; }
.mu-tile { border-radius: .45em; background: rgba(20, 21, 24, .04); padding: .35em; display: grid; gap: .3em; align-content: end; }
.dark .mu-tile { background: rgba(255, 255, 255, .05); }
.mu-tile::before { content: ""; height: 1.5em; border-radius: .3em; background: color-mix(in srgb, var(--a) 22%, transparent); }
.mu-btn { margin-top: auto; height: 1.5em; border-radius: .4em; background: var(--a); flex: none; }
.mu-bub { max-width: 78%; height: 1.4em; border-radius: .6em; background: #ececf0; flex: none; }
.dark .mu-bub { background: #2c2e35; }
.mu-bub.me { align-self: flex-end; background: color-mix(in srgb, var(--a) 30%, transparent); }
.mu-side { flex: .55; display: flex; flex-direction: column; gap: .5em; border-right: 1px solid rgba(20, 21, 24, .07); padding-right: .6em; }
.dark .mu-side { border-color: rgba(255, 255, 255, .07); }
.mu-field { display: grid; gap: .25em; flex: none; }
.mu-input { height: 1.25em; border-radius: .35em; border: 1px solid rgba(20, 21, 24, .12); }
.dark .mu-input { border-color: rgba(255, 255, 255, .14); }
.mu-cal { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .22em; }
.mu-cal i { border-radius: .25em; background: rgba(20, 21, 24, .04); }
.dark .mu-cal i { background: rgba(255, 255, 255, .05); }
.mu-cal i.on { background: color-mix(in srgb, var(--a) 40%, transparent); }
.mu-cal i.on2 { background: color-mix(in srgb, var(--a) 18%, transparent); }
.mu-prog { height: .4em; border-radius: .3em; background: rgba(20, 21, 24, .07); overflow: hidden; }
.mu-prog::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--a); }

/* ----- Centered hero copy ----- */
.hero-center {
  position: relative; z-index: 3;
  width: min(780px, 100% - 2 * var(--gutter));
  margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-center::before {
  content: ""; position: absolute; inset: -70px -140px; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88) 55%, rgba(255, 255, 255, 0));
  pointer-events: none;
}
.hero-mark { margin-bottom: 16px; }
.hero-mark svg { width: 58px; height: 58px; filter: drop-shadow(0 16px 24px rgba(98, 70, 234, .35)); }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2);
  background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
}
.eyebrow-pill .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2fbf7f; box-shadow: 0 0 0 0 rgba(47, 191, 127, .55); animation: livepulse 1.8s infinite; }
.eyebrow-pill .ep-sep { color: var(--faint); }
.hero h1 { margin-bottom: 16px; font-size: clamp(40px, 5.4vw, 76px); }

/* "AI OS": shimmering orange gradient text */
.ai-grad {
  background: linear-gradient(100deg, #A855F7 0%, #7C5CFF 20%, #3B82F6 40%, #38BDF8 50%, #3B82F6 60%, #7C5CFF 80%, #A855F7 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 5s linear infinite;
  padding-right: .04em;
}
@keyframes shine { to { background-position: -220% 0; } }
.pretype .ai-grad { background: none; }
@media (prefers-reduced-motion: reduce) { .ai-grad { animation: none; } }

.hero-sub { font-size: clamp(18px, 1.9vw, 25px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.3; color: var(--ink); margin-bottom: 14px; }
.hero .lead { max-width: 680px; margin: 0 auto; }
.hero-sub .hl, .nowrap { white-space: nowrap; }

/* terminal-style boot line */
.boot {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
  margin-top: 22px; padding: 9px 15px;
  font: 12px/1.45 var(--mono); color: #d9dae0;
  background: var(--slab); border: 1px solid #2c2e34; border-radius: 10px;
  box-shadow: 0 16px 32px -18px rgba(20, 21, 24, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.boot-prompt { color: #7c7f88; }
.boot-cmd { color: #fff; display: inline-block; min-width: 17ch; text-align: left; }
.boot.typing-cmd .boot-cmd::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -0.18em; background: var(--accent-btn); animation: blink 1s steps(1) infinite; }
.boot-steps { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.bs { color: #3ccf8e; transition: opacity .35s ease, transform .35s ease; }
.bs-inf { color: var(--accent); font-weight: 600; }
.boot.pending .bs { opacity: 0; transform: translateY(3px); }
.boot.pending .bs.in { opacity: 1; transform: none; }
.hero .cta-row { justify-content: center; }
.hero .btn-ghost .ic { width: 16px; height: 16px; }
.hero .hero-meta { justify-content: center; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .02em;
}

/* split layout (AI OS section: copy + stack) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(32px, 5vw, 64px); align-items: center; margin-bottom: 48px; }
.split .sec-head { margin-bottom: 0; }
.chip--inf { font-weight: 700; justify-content: center; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-btn); }
.hero-meta b { color: var(--ink); font-weight: 600; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--muted); z-index: 3;
}
.mouse { width: 16px; height: 25px; border: 1.5px solid var(--faint); border-radius: 9px; position: relative; }
.mouse::after {
  content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 5px; margin-left: -1px;
  background: var(--muted); border-radius: 1px; animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(6px); } }

/* ----- The stack ----- */
.stack {
  position: relative;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-lg);
}
.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.wire { fill: none; stroke: #e1e1e6; stroke-width: 1; stroke-dasharray: 2 3; }
.pulse { fill: var(--accent); }
.pulse-ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .5; }

.layer { position: relative; z-index: 1; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: start; }
.layer + .layer { margin-top: 14px; }
.layer-label {
  font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding-top: 13px;
}
.layer-label--ai { color: var(--accent); font-weight: 600; padding-top: 16px; }

.chips { display: grid; gap: 6px; }
.chips--people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chips--mods { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.chip {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 9px; font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25;
  transition: box-shadow .25s, transform .25s, background .25s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip small { display: block; font-weight: 400; color: var(--muted); font-size: 10.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips--mods .chip {
  white-space: normal; text-overflow: clip;
  display: flex; align-items: center; min-height: 38px;
  font-size: 12px; padding: 6px 8px; line-height: 1.2;
}
.chip--person { background: var(--soft); }
.chip--base { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-deep); }
.chip--opt { background: var(--accent2-soft); border: 1px dashed var(--accent2-line); color: var(--accent2-ink); }
.chip--custom { background: var(--card); border: 1px dashed var(--accent); color: var(--accent); }
.chip.is-reading {
  box-shadow: 0 0 0 1.5px var(--agent, var(--accent)), 0 6px 16px -8px var(--agent, var(--accent));
  transform: translateY(-1px);
}

.slab {
  position: relative; overflow: hidden;
  background: var(--slab); color: #fff;
  border-radius: 12px; padding: 14px 15px 12px;
  box-shadow: 0 18px 40px -20px rgba(98, 70, 234, .55);
  transition: box-shadow .35s;
}
.slab::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 120%;
  background: radial-gradient(60% 50% at 50% 0%, rgba(98, 70, 234, .30), transparent 70%);
  opacity: .55; transition: opacity .4s; pointer-events: none;
}
.slab.recv::before { opacity: 1; }
.slab.recv { box-shadow: 0 18px 50px -16px rgba(98, 70, 234, .8); }
.slab > * { position: relative; }
.slab-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.slab-head .ic { color: var(--accent); width: 17px; height: 17px; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--mono); color: #9fdcbe; letter-spacing: .04em; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #3ccf8e; box-shadow: 0 0 0 0 rgba(60, 207, 142, .6); animation: livepulse 1.8s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 6px rgba(60, 207, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 207, 142, 0); } }

.slab-log {
  margin-top: 10px; display: flex; flex-direction: column; gap: 6px;
  height: 104px; overflow: hidden; font: 11.5px/1.45 var(--mono);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.slab-log li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; color: #d9dae0; transition: opacity .4s; flex: none; }
.slab-log li:nth-child(2) { opacity: .62; }
.slab-log li:nth-child(3) { opacity: .34; }
.slab-log li.enter { animation: logIn .45s ease; }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lg-mod { color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-mod::before { content: "› "; color: #6b6e77; }
.lg-txt { min-width: 0; }

.slab-base { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--slab-line); }
.slab-base-label { font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8d9099; margin-right: 4px; }
.bp { font-size: 10.5px; font-weight: 600; color: #d9dae0; background: var(--slab-2); border: 1px solid var(--slab-line); padding: 3px 7px; border-radius: 5px; }

.db {
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--card);
  padding: 10px 12px; font-size: 12.5px; color: var(--muted);
}
.db b { color: var(--ink); }

.stack-note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0 4px; font-size: 12px; color: var(--muted); }
.key { display: inline-block; width: 14px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: -8px; }
.stack-note .key { margin-right: -6px; }
.key--base { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.key--opt { background: var(--accent2-soft); border: 1px dashed var(--accent2-line); }
.key--custom { background: var(--card); border: 1px dashed var(--accent); }

@media (max-width: 1040px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hero-mark svg { width: 52px; height: 52px; }
  .hero-mark { margin-bottom: 16px; }
  .eyebrow-pill { font-size: 10px; padding: 6px 10px; }
  .hero-center::before { inset: -40px -40px; }
  .hero .hero-meta { display: none; }
  .hero-sub { font-size: 18px; margin-bottom: 12px; }
  .hero .lead { font-size: 15px; }
  .boot { margin-top: 20px; font-size: 10.5px; padding: 7px 10px; gap: 2px 8px; }
  .boot-steps .bs:nth-child(2), .boot-steps .bs:nth-child(3) { display: none; }
  .layer { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .layer-label { padding-top: 0; }
  .layer-label--ai { padding-top: 0; }
  .chips--mods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips--people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slab-log li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .slab-log { height: 132px; }
  .scroll-hint { display: none; }
  .stack { padding: 14px; }
}

/* =========================================================
   02 · HOW IT WORKS
   ========================================================= */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cap {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 14px 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.cap-k { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 18px 4px 8px; }
.cap h3 { font-size: 18px; letter-spacing: -0.02em; margin: 0 4px 8px; }
.cap > p:last-child { font-size: 14px; color: var(--muted); margin: 0 4px; line-height: 1.55; }

.mini {
  background: var(--soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; min-height: 150px; font-size: 12px;
}
.mt-sn { font: 600 11.5px/1.3 var(--mono); color: var(--ink); margin-bottom: 10px; }
.mt-sn span { display: block; font: 400 11px var(--font); color: var(--muted); }
.trace { position: relative; display: grid; gap: 7px; padding-left: 14px; }
.trace::before { content: ""; position: absolute; left: 3px; top: 4px; bottom: 4px; width: 1px; background: var(--line-2); }
.trace li { position: relative; display: flex; flex-direction: column; line-height: 1.3; }
.trace li::before { content: ""; position: absolute; left: -14px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--faint); }
.trace li.now::before { background: var(--accent-btn); border-color: var(--accent); }
.trace b { font-size: 11.5px; }
.trace span { font: 10.5px var(--mono); color: var(--muted); }

.mq { background: var(--slab); color: #fff; border-radius: 9px 9px 2px 9px; padding: 6px 9px; font-size: 11.5px; margin-left: auto; width: fit-content; max-width: 100%; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; align-items: end; height: 62px; margin-top: 12px; }
.bars i { display: block; height: var(--h); background: #d9d9df; border-radius: 3px 3px 0 0; }
.bars i.hi { background: var(--accent-btn); }
.bars-x { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; font: 9.5px var(--mono); color: var(--faint); text-align: center; margin-top: 3px; }
.src-line { margin-top: 8px; font: 10.5px var(--mono); color: var(--muted); }

.mini--act { background: var(--card); border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.act-k { font: 600 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.act-grid { display: grid; grid-template-columns: 44px 1fr; gap: 5px 8px; font-size: 11.5px; }
.act-grid span { color: var(--muted); }
.act-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.lockline { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); }
.lockline .ic { width: 12px; height: 12px; color: var(--accent); }
.fake-btn { background: var(--accent-btn); color: #fff; font-weight: 600; font-size: 11px; padding: 5px 9px; border-radius: 5px; }

.br-h { font-weight: 700; font-size: 13px; display: flex; justify-content: space-between; margin-bottom: 9px; }
.br-h span { font: 400 10.5px var(--mono); color: var(--muted); }
.br-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 11.5px; }
.br-row span { color: var(--muted); }
.br-row b { text-align: right; font-weight: 600; }
.br-row em { font-style: normal; color: var(--ok); font-weight: 600; }

/* compare */
.compare {
  margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.cmp-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); }
.cmp-row > div { padding: 13px 18px; font-size: 14px; border-top: 1px solid var(--line); }
.cmp-head > div { border-top: 0; font-weight: 700; font-size: 13px; }
.cmp-head > div:nth-child(2) { color: var(--muted); }
.cmp-k { color: var(--muted); font-size: 13px !important; }
.cmp-row > div:nth-child(2) { color: var(--muted); }
.cmp-us { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.cmp-head .cmp-us { display: flex; align-items: center; gap: 7px; color: var(--accent-deep); }
.cmp-head .cmp-us .ic { color: var(--accent); width: 16px; height: 16px; }

@media (max-width: 1100px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .caps { grid-template-columns: minmax(0, 1fr); }
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row .cmp-k { grid-column: 1 / -1; padding-bottom: 0; font-weight: 600; color: var(--ink) !important; }
  .cmp-row > div:not(.cmp-k) { border-top: 0; padding-top: 6px; }
  .cmp-row > div[data-l]::before { content: attr(data-l); display: block; font: 500 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
  .cmp-head { display: none; }
  .cmp-row:nth-child(2) .cmp-k { border-top: 0; }
}

/* =========================================================
   03 · DECISIONS demo
   ========================================================= */
.demo { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.prompts { min-width: 0; }
.prompts-label { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.prompt-list { display: grid; gap: 8px; }
.prompt-list button {
  position: relative; overflow: hidden;
  display: block; width: 100%; text-align: left;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35;
  color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.prompt-list button:hover { border-color: var(--line-2); color: var(--ink); }
.prompt-list button[aria-selected="true"] { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.pbar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent-btn); transform: scaleX(0); transform-origin: left; }
.prompt-list button[aria-selected="true"] .pbar.run { transition: transform var(--hold, 7000ms) linear; transform: scaleX(1); }
.prompts-note { margin-top: 14px; font-size: 12px; color: var(--faint); }

.app {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.app-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #e4e4e8; }
.app-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: -0.01em; }
.app-title .ic { color: var(--accent); width: 16px; height: 16px; }
.app-user { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.av { width: 24px; height: 24px; border-radius: 50%; background: var(--slab); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; }

.app-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.src-label { font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.src {
  font: 500 11.5px/1 var(--mono); padding: 6px 8px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--card); color: var(--faint);
  transition: all .25s;
}
.src.on { color: var(--accent-deep); border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(98, 70, 234, .12); }
.src.done { color: var(--ink-2); border-color: var(--accent-line); }
.src.done::before { content: "✓ "; color: var(--accent); }

.app-body { padding: 18px 18px 14px; min-height: 470px; display: flex; flex-direction: column; gap: 12px; }
.bubble-user {
  align-self: flex-end; max-width: 82%;
  background: var(--slab); color: #fff; border-radius: 12px 12px 3px 12px;
  padding: 10px 14px; font-size: 14px; font-weight: 500;
  animation: pop .35s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.thinking { display: flex; align-items: center; gap: 9px; font: 12px var(--mono); color: var(--muted); animation: pop .3s ease; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.answer { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; font-size: 14px; line-height: 1.55; display: grid; gap: 12px; }
.ab { opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.ab.in { opacity: 1; transform: none; }
.ans-head { display: flex; gap: 9px; }
.ans-head .ic { color: var(--accent); width: 17px; height: 17px; margin-top: 2px; }
.ans-label { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.causes { display: grid; gap: 8px; }
.causes li, .decide { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; }
.tag-src { font: 500 10.5px/1 var(--mono); color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 5px 6px; border-radius: 5px; text-align: center; margin-top: 1px; }
.decide { background: var(--soft); border-radius: 10px; padding: 10px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi span { font: 500 10px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kpi b { font-size: 18px; letter-spacing: -0.02em; }
.kpi em { font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.kpi em.up { color: var(--ok); }

.mtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.mtable th { text-align: left; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.mtable td { padding: 8px; border-bottom: 1px solid var(--line); }
.mtable tr:last-child td { border-bottom: 0; }
.mtable .r { text-align: right; font-variant-numeric: tabular-nums; }
.mtable td:first-child, .mtable th:first-child { padding-left: 0; }
.st { display: inline-block; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 7px; border-radius: 5px; white-space: nowrap; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.warn { background: var(--warn-soft); color: var(--warn); }
.st.bad { background: var(--bad-soft); color: var(--bad); }
.plus { color: var(--accent-ink); }
.note { font-size: 13px; color: var(--muted); }

.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.act {
  display: inline-flex; flex-direction: column; gap: 1px;
  padding: 9px 13px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card);
  font-weight: 600; font-size: 13px; line-height: 1.3;
}
.act small { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.act.primary { background: var(--accent-btn); border-color: var(--accent); color: #fff; }
.act.primary small { color: rgba(255, 255, 255, .85); }
.ans-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ans-foot .ic { width: 13px; height: 13px; color: var(--accent); }

.app-input { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.fake-input { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fake-input .ph { color: var(--faint); }
.fake-input .tcaret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--ink); vertical-align: -0.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.send { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-btn); color: #fff; display: grid; place-items: center; }
.send .ic { width: 15px; height: 15px; }

@media (max-width: 940px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .prompt-list { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
  .prompt-list button { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .app-user { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .causes li, .decide { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tag-src { justify-self: start; }
  .app-body { min-height: 560px; padding: 14px; }
  .mtable { font-size: 12px; }
  .mtable td, .mtable th { padding-left: 5px; padding-right: 5px; }
}

/* =========================================================
   02 · BUILD — live module builder
   ========================================================= */
.builder { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.prompt-list button small { display: block; margin-top: 3px; font-weight: 400; font-size: 12.5px; color: var(--muted); letter-spacing: 0; }

.bwin { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.bwin .app-title .ic { color: var(--accent); }
.bstatus {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px/1 var(--mono); padding: 6px 9px; border-radius: 999px;
  background: var(--soft); color: var(--muted); border: 1px solid var(--line);
}
.bstatus.building { color: var(--accent-deep); background: var(--accent-soft); border-color: var(--accent-line); }
.bstatus.building::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-btn); animation: blink 1s steps(1) infinite; }
.bstatus.live { color: var(--ok); background: var(--ok-soft); border-color: #bfe6d2; }
.bstatus.live::before { content: "✓"; }

.bprompt { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; min-height: 74px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.bprompt .ic { color: var(--accent); margin-top: 3px; }
.bprompt-text .tcaret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--ink); vertical-align: -0.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }

.bstage {
  position: relative; padding: 18px 18px 64px; min-height: 440px;
  background-color: #fbfbfc;
  background-image: radial-gradient(#e2e2e7 1px, transparent 1px);
  background-size: 16px 16px;
}
.bsteps-bar { display: flex; border-top: 1px solid var(--line); }
.bsteps-bar li { flex: 1; text-align: center; padding: 10px 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); transition: background .3s, color .3s; }
.bsteps-bar li + li { border-left: 1px solid var(--line); }
.bsteps-bar li.on { color: var(--accent-deep); background: var(--accent-soft); }
.bsteps-bar li.done { color: var(--ink-2); }
.bsteps-bar li.done::before { content: "✓ "; color: var(--accent); }
.bsteps-bar li.live { color: var(--ok); background: var(--ok-soft); }

/* the module being built */
.ma { display: grid; grid-template-columns: 150px minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.ma-side { background: var(--slab); color: #c9cad1; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.ma-logo { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; color: #fff; margin: 0 0 12px 4px; }
.ma-logo i { width: 16px; height: 16px; border-radius: 5px; background: var(--accent-btn); }
.ma-nav { font-size: 12.5px; padding: 6px 8px; border-radius: 6px; white-space: nowrap; }
.ma-nav.on { background: rgba(98, 70, 234, .2); color: #fff; }
.ma-main { min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ma-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ma-head h5 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
.ma-btn { background: var(--accent-btn); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.ma-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ma-kpi { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-width: 0; }
.ma-kpi span { display: block; font: 500 10px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-kpi b { font-size: 18px; letter-spacing: -0.02em; }
.ma-kpi b.ok { color: var(--ok); }
.ma-kpi b.warn { color: var(--warn); }
.ma-kpi b.bad { color: var(--bad); }
.ma-table { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; font-size: 12.5px; }
.ma-tr { display: grid; grid-template-columns: 1.05fr 1.2fr 1fr 1fr .95fr; gap: 8px; align-items: center; padding: 7px 10px; border-top: 1px solid var(--line); }
.ma-tr:first-child { border-top: 0; }
.ma-th { background: var(--soft); font: 500 10px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ma-tr > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-tr.r { opacity: 0; transform: translateX(-4px); transition: opacity .3s, transform .3s; }
.ma-tr.r.in { opacity: 1; transform: none; }
.ma-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-rule, .ma-role { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 7px; }
.ma-rule { background: var(--accent2-soft); border: 1px solid var(--accent2-line); color: var(--accent2-ink); }
.ma-role { background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }
.ma-rule .ic, .ma-role .ic { width: 13px; height: 13px; }
.bpc { opacity: 0; transform: translateY(6px) scale(.985); transition: opacity .4s ease, transform .4s ease; }
.bpc.in { opacity: 1; transform: none; }
.btoast {
  position: absolute; left: 50%; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: var(--slab); color: #fff; font-size: 12.5px; font-weight: 500;
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(-50%, 10px); transition: opacity .4s, transform .4s;
}
.btoast.in { opacity: 1; transform: translate(-50%, 0); }
.btoast .ic { width: 15px; height: 15px; color: #3ccf8e; stroke-width: 2.2; }

/* every module works two ways */
.twoway { margin-top: 56px; background: color-mix(in srgb, var(--card) 95%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.tw-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.tw-head h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; margin-bottom: 8px; }
.tw-head p { color: var(--muted); font-size: 15px; }
.tw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, .7fr) 120px minmax(0, 1fr); align-items: start; }
.tw-col { text-align: center; }
.tw-col h4 { font-size: 15px; letter-spacing: -0.01em; margin: 14px 0 4px; }
.tw-col p { font-size: 13px; color: var(--muted); max-width: 250px; margin: 0 auto; }
.tw-card { height: 150px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.tw-ui-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.tw-ui-bar i { width: 7px; height: 7px; border-radius: 50%; background: #e1e1e6; }
.tw-ui-bar span { margin-left: 6px; }
.tw-ui-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; font-size: 12px; border-top: 1px solid var(--line); }
.tw-ui-bar + .tw-ui-row { border-top: 0; }
.tw-ui-row span { color: var(--muted); }
.tw-ui-row em { font-style: normal; }
.tw-ui-row.on { background: var(--accent-soft); }
.tw-term { background: var(--slab); border-color: var(--slab); color: #e9e9ee; font: 11.5px/1.65 var(--mono); }
.tw-term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--slab-line); font: 600 11px/1 var(--font); color: #cfd0d6; }
.tw-term-bar .ic { width: 14px; height: 14px; color: var(--accent); }
.tw-term p { padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-term .cmd { color: var(--accent); }
.tw-term .arg { color: #9aa0aa; }
.tw-term .out { color: #8d9099; }
.tw-term .out.wait { color: #7DD3FC; }
.tw-term .out.ok { color: #3ccf8e; }
.tw-link { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; }
.tw-link::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 1.5px dashed var(--line-2); }
.tw-link span { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font: 500 10.5px/1.2 var(--mono); color: var(--muted); white-space: nowrap; }
.tw-link span .ic { width: 12px; height: 12px; }
.tw-link--ai::before { border-top-color: var(--accent); }
.tw-link--ai span { color: var(--accent-deep); background: var(--accent-soft); border-color: var(--accent-line); }
.tw-link--ai::after { content: ""; position: absolute; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent-btn); box-shadow: 0 0 0 4px rgba(98, 70, 234, .18); animation: travel 2.6s ease-in-out infinite; }
@keyframes travel { 0% { left: calc(100% - 16px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 8px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tw-link--ai::after { animation: none; display: none; } }
.tw-core { height: 150px; display: grid; place-items: center; }
.tw-core svg { width: 86px; height: 86px; filter: drop-shadow(0 16px 24px rgba(98, 70, 234, .35)); }
.tw-eq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.tw-eq-i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }
.tw-eq-i--ai { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.tw-eq-i--out { background: none; border: 0; }
.tw-eq-i--out svg { width: 40px; height: 40px; }
.tw-eq-op { font: 500 20px/1 var(--mono); color: var(--faint); }
.tw-eq-txt { font-size: 14px; color: var(--ink-2); margin-left: 6px; }

.steps--build { margin-top: 28px; }

@media (max-width: 940px) {
  .builder { grid-template-columns: minmax(0, 1fr); }
  .tw-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin: 0 auto; }
  .tw-link { height: 52px; }
  .tw-link::before { left: 50%; right: auto; top: 4px; bottom: 4px; border-top: 0; border-left: 1.5px dashed var(--line-2); }
  .tw-link--ai::before { border-left-color: var(--accent); }
  .tw-link--ai::after { display: none; }
  .tw-core { height: 110px; }
}
@media (max-width: 640px) {
  .ma { grid-template-columns: minmax(0, 1fr); }
  .ma-side { flex-direction: row; align-items: center; overflow: hidden; padding: 8px 10px; }
  .ma-logo { margin: 0 8px 0 0; }
  .ma-nav:nth-of-type(n + 4) { display: none; }
  .ma-tr { grid-template-columns: 1.1fr 1fr .95fr; }
  .ma-tr > :nth-child(2), .ma-tr > :nth-child(3) { display: none; }
  .ma-kpi b { font-size: 15px; }
  .bstage { padding: 12px 12px 76px; min-height: 520px; }
  .btoast { white-space: normal; width: calc(100% - 24px); justify-content: center; text-align: center; }
  .bsteps-bar li { font-size: 9px; letter-spacing: .02em; padding: 9px 2px; }
}

/* =========================================================
   05 · MODULES — ∞ possibilities, 1 solution
   ========================================================= */
.sec-head--inf h2 { font-size: clamp(40px, 5.8vw, 80px); line-height: 1; }
.inf { display: inline-block; font-family: var(--font); font-weight: 400; color: var(--accent); font-size: 1.22em; line-height: .8; vertical-align: -0.05em; margin-right: .04em; }

.marquee {
  position: relative; z-index: 2; overflow: hidden;
  display: grid; gap: 12px; padding: 6px 0; margin: -8px 0 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
@media (min-width: 1180px) { .marquee { margin-left: 190px; } }
.mq-row { display: flex; gap: 10px; padding-right: 10px; width: max-content; animation: marquee var(--mq-dur, 70s) linear infinite; }
.mq-row[data-dir="right"] { animation-direction: reverse; }
.marquee:hover .mq-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-row { animation: none; } }
.mq-chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
}
.mq-chip .ic { width: 16px; height: 16px; }
.mq-chip small { font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.mq-chip.ready { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-deep); }
.mq-chip.built { background: var(--accent2-soft); border: 1px dashed var(--accent2-line); color: var(--accent2-ink); }
.mq-chip.next { background: var(--card); border: 1px dashed var(--accent); color: var(--accent); }
.mq-sep { align-self: center; color: var(--accent); font-size: 22px; line-height: 1; padding: 0 2px; }

.one-solution {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px;
  background: var(--slab); color: #fff; border-radius: 16px; padding: 18px 22px;
  box-shadow: 0 24px 50px -24px rgba(98, 70, 234, .6);
}
.one-solution::before { content: ""; position: absolute; inset: -60% 40% auto -10%; height: 200%; background: radial-gradient(closest-side, rgba(98, 70, 234, .25), transparent); pointer-events: none; }
.os-label { position: relative; display: flex; align-items: center; gap: 10px; font: 600 11px/1.25 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #a9abb3; }
.os-one { font: italic 400 58px/0.8 var(--serif); color: var(--accent); letter-spacing: 0; text-transform: none; }
.os-items { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.os-items li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; background: var(--slab-2); border: 1px solid var(--slab-line); font-size: 13.5px; font-weight: 600; }
.os-items .ic { width: 15px; height: 15px; color: var(--accent); }
.os-items .os-ai { background: rgba(98, 70, 234, .16); border-color: rgba(98, 70, 234, .45); }

.mod-group { margin-top: 40px; }
.mod-group + .mod-group { margin-top: 36px; }
.mg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.mg-head h3 { font-size: 15px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 14px; }
.mg-head .key { margin-right: 0; }
.mg-count { font: 500 12px var(--mono); color: var(--muted); }

.mods { display: grid; gap: 12px; }
.mods--start { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mod {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.mod:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mod-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.mod-ic .ic { width: 17px; height: 17px; }
.mod-n { font: 500 11px var(--mono); color: var(--muted); }
.mod h4 { font-size: 16px; letter-spacing: -0.02em; }
.mod p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.mod .ai { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-2); color: var(--ink-2); font-size: 12.5px; }
.mod .ai::before { content: "AI · "; font-weight: 700; color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .02em; }

.mod--opt .mod-ic { background: var(--accent2-soft); color: var(--accent2-ink); border: 1px dashed var(--accent2-line); }

.mod--core { background: var(--slab); border-color: var(--slab); color: #fff; box-shadow: 0 20px 40px -22px rgba(98, 70, 234, .7); }
.mod--core:hover { border-color: var(--accent); }
.mod--core .mod-ic { background: rgba(98, 70, 234, .16); border-color: rgba(98, 70, 234, .4); }
.mod--core .mod-n, .mod--core p { color: #a9abb3; }
.mod--core .ai { color: #fff; border-top-color: var(--slab-line); }

.mod-custom {
  margin-top: 16px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 18px 20px; border: 1.5px dashed var(--accent); border-radius: 14px; background: color-mix(in srgb, var(--card) 92%, transparent);
  transition: background .2s, transform .2s;
}
.mod-custom:hover { background: var(--accent-soft); transform: translateY(-2px); }
.mod-custom h4 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 3px; }
.mod-custom p { font-size: 14px; color: var(--muted); }
.mod-ic--custom { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-btn); color: #fff; border: 0; font-size: 30px; line-height: 1; font-weight: 400; padding-bottom: 3px; }

@media (max-width: 1180px) { .mods--start { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .mods--start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-custom { grid-template-columns: auto minmax(0, 1fr); }
  .mod-custom .btn { grid-column: 1 / -1; justify-self: start; }
  .one-solution { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 480px) { .mods--start { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   05 · TRUST
   ========================================================= */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pr { background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 4px 4px 12px 12px; padding: 18px; box-shadow: var(--shadow); }
.pr-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.pr h3 { font-size: 16.5px; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.3; }
.pr p { font-size: 13.5px; color: var(--muted); }

.hosting-head { margin: 56px 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.hosting-head h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.025em; }
.hosting-head p { color: var(--muted); font-size: 14px; }

.hosting { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.host { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.host-top { display: flex; align-items: center; gap: 8px; color: var(--accent); margin-bottom: 10px; }
.host-k { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.host h4 { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 12px; }
.host p { font-size: 13.5px; color: var(--muted); }
.host p.small { font-size: 12.5px; margin-top: 12px; }
.flow { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.flow span { font-size: 11.5px; font-weight: 600; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
.flow i { width: 14px; height: 1px; background: var(--faint); position: relative; }
.flow i::after { content: ""; position: absolute; right: -1px; top: -3px; border-left: 5px solid var(--faint); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
.host--models { background: var(--slab); border-color: var(--slab); color: #fff; }
.host--models .host-k { color: #a9abb3; }
.host--models p { color: #a9abb3; }
.models { display: grid; gap: 6px; }
.models li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--slab-2); border: 1px solid var(--slab-line); font-size: 12.5px; }
.models b { font-weight: 600; white-space: nowrap; }
.models span { color: #a9abb3; text-align: right; font-size: 12px; }

@media (max-width: 1100px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hosting { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   06 · GET STARTED
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 20px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.step-n { display: block; font: 600 28px/1 var(--mono); color: var(--accent); letter-spacing: -0.04em; margin-bottom: 18px; }
.step h3 { font-size: 16.5px; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -17px; width: 18px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 6px);
}

.cta-panel {
  position: relative; overflow: hidden;
  margin-top: 40px; border-radius: 22px;
  background: var(--slab); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center;
  padding: clamp(28px, 4vw, 52px);
}
.cta-panel::before {
  content: ""; position: absolute; inset: auto -10% -60% 30%; height: 140%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(98, 70, 234, .22), transparent 70%);
  pointer-events: none;
}
.cta-copy { position: relative; z-index: 1; }
.kicker--dark { color: #8d9099; margin-bottom: 14px; }
.cta-copy h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 14px; }
.cta-copy p { color: #b9bbc2; max-width: 480px; }
.cta-copy .cta-row { margin-top: 26px; }
.infinity { position: relative; z-index: 1; width: 100%; height: auto; overflow: visible; }
.inf-track { fill: none; stroke: #5a5d72; stroke-width: 1.5; stroke-dasharray: 2 5; }
.inf-chase { fill: none; stroke-width: 3.2; stroke-linecap: round; filter: drop-shadow(0 0 7px rgba(139, 123, 255, .9)) drop-shadow(0 0 14px rgba(56, 189, 248, .45)); }
.inf-dot { stroke: var(--slab); stroke-width: 2; }
.inf-label { font: 500 9.5px/1 var(--mono); letter-spacing: .16em; fill: #b4b6c6; text-anchor: middle; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
  .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .infinity { max-width: 420px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step::after { display: none; }
  .cta-copy .btn { width: 100%; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--card) 90%, transparent); padding: 26px 0; font-size: 13px; color: var(--muted); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer .brand-mark { width: 22px; height: 22px; }
.footer .brand-word { font-size: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.footer-links a:hover { color: var(--ink); text-decoration-color: var(--accent); }
@media (max-width: 760px) { .footer-links { margin-left: 0; } }

/* =========================================================
   Phones
   ========================================================= */
@media (max-width: 640px) {
  :root { --gutter: 16px; --top: 60px; }
  .sheet { min-height: auto; padding: calc(var(--top) + 40px) 0 72px; }
  .hero { min-height: 100svh; }
  .sec-head { margin-bottom: 36px; }
  .topbar { padding: 0 16px; }
  .brand-word { font-size: 18px; }
  .agent .tag { font-size: 9.5px; }
}

/* =========================================================
   SDE hero (main page): enterprise.sde → deployed ERP
   ========================================================= */
.hero--split { padding-bottom: 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.hero-copy { position: relative; z-index: 3; }
.hero--split h1 { font-size: clamp(36px, 4.3vw, 60px); margin-bottom: 16px; }
.hero--split .ai-grad { white-space: nowrap; }
.hero--split .lead { margin: 0; max-width: 540px; }
.hero--split .lead b { color: var(--ink); }
.hero--split .cta-row { justify-content: flex-start; }
.hero--split .hero-meta { justify-content: flex-start; }
.hero-meta li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-btn); }
.hero-visual { position: relative; z-index: 3; }

.sde { position: relative; }
.sde-editor {
  background: var(--slab); color: #e6e7ec;
  border: 1px solid #2c2e34; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  font: 13px/1.75 var(--mono);
}
.sde-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--slab-line); font-size: 12px; color: #a9abb3; }
.sde-bar .dots i { background: #3a3c43; }
.sde-file { color: #fff; font-weight: 500; }
.sde-state { margin-left: auto; font-size: 10.5px; line-height: 1; padding: 4px 8px; border-radius: 999px; background: rgba(98, 70, 234, .15); color: #B9A8FF; border: 1px solid rgba(98, 70, 234, .35); }
.sde.done .sde-state { background: rgba(60, 207, 142, .12); color: #7fe0b4; border-color: rgba(60, 207, 142, .35); }
.sde-code { counter-reset: ln; padding: 10px 0 12px; margin: 0; list-style: none; }
.sde-code li { counter-increment: ln; position: relative; padding: 0 30px 0 46px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .3s; }
.sde-code li::before { content: counter(ln); position: absolute; left: 0; width: 30px; text-align: right; color: #5c5f68 !important; }
.sde-code li.ok::after { content: "✓"; position: absolute; right: 12px; top: 0; color: #3ccf8e !important; font-size: 11px; }
.sde-code li.typing { background: rgba(98, 70, 234, .09); }
.sde-code .kw { color: #A594FF; }
.sde-code .str { color: #9fdcbe; }
.sde-code .num { color: #7DD3FC; }
.sde-code .op { color: #7c7f88; }
.sde-code .cm { color: #6b6e77; font-style: italic; }
.sde-code .ai { color: #fff; background: rgba(98, 70, 234, .28); padding: 0 4px; border-radius: 4px; }
.pretype .ai { background: none; }

.sde-arrow { position: relative; height: 46px; display: flex; align-items: center; justify-content: center; }
.sde-arrow::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 50%; border-left: 1.5px dashed var(--accent); }
.sde-arrow span { position: relative; background: var(--card); border: 1px solid var(--accent-line); color: var(--accent-deep); font: 500 10.5px/1 var(--mono); letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; }
.sde.deploying .sde-arrow::after { content: ""; position: absolute; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent-btn); box-shadow: 0 0 0 4px rgba(98, 70, 234, .18); animation: drop 1s ease-in infinite; }
@keyframes drop { from { top: 0; opacity: 1; } to { top: calc(100% - 8px); opacity: .2; } }

.sde-erp { background: color-mix(in srgb, var(--card) 96%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-lg); }
.sde-erp-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.sde-erp-head .co { font-weight: 500; font-size: 12.5px; color: var(--faint); transition: color .3s; }
.sde-erp-head .co.on { color: var(--muted); }
.sde-live { margin-left: auto; font: 600 10.5px/1 var(--mono); color: var(--faint); }
.sde.done .sde-live { color: var(--ok); }
.sde-sites { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sde-mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sm {
  font-size: 12px; font-weight: 600; line-height: 1.25; padding: 8px 9px; border-radius: 8px;
  border: 1px dashed var(--line-2); color: var(--faint); background: transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .35s, color .35s, border-color .35s, box-shadow .6s;
}
.sm.on { border-style: solid; border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-deep); }
.sm.flash { box-shadow: 0 0 0 4px rgba(98, 70, 234, .2); }
.sm--custom.on { background: var(--card); border: 1px dashed var(--accent); color: var(--accent); }
.sm--site { font-weight: 500; font-size: 11.5px; }
.sm--site.on { background: var(--soft); border-color: var(--line); color: var(--ink-2); }
.sm--more, .sm--more.on { border: 1px dashed var(--accent); background: var(--card); color: var(--accent); text-align: center; }
.sde-ai {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  background: var(--slab); color: #8d9099; border-radius: 10px; padding: 10px 12px;
  font-size: 12.5px; font-weight: 600; opacity: .5;
  transition: opacity .4s, color .4s, box-shadow .4s;
}
.sde-ai .ic { color: var(--accent); width: 16px; height: 16px; }
.sde-ai em { margin-left: auto; font: 500 10.5px/1 var(--mono); font-style: normal; color: #6b6e77; }
.sde-ai.on { opacity: 1; color: #fff; box-shadow: 0 16px 34px -16px rgba(98, 70, 234, .75); }
.sde-ai.on em { color: #3ccf8e; }

/* main page nav link to the add-on */
.nav-plus b { color: var(--accent); font-weight: 800; }

/* =========================================================
   PANDAI OS+ promo band (main page)
   ========================================================= */
.sheet--short { min-height: auto; }
.plus-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  background: color-mix(in srgb, var(--card) 96%, transparent); border: 1.5px dashed var(--accent); border-radius: 22px;
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow);
}
.plus-band h2 { margin-bottom: 16px; }
.plus-points { display: grid; gap: 9px; margin-top: 20px; }
.plus-points li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.plus-points .ic { width: 16px; height: 16px; color: var(--accent); stroke-width: 2.2; }
.pp-win { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.pp-prompt { display: flex; gap: 8px; padding: 12px 14px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pp-prompt .ic { color: var(--accent); width: 16px; height: 16px; margin-top: 2px; }
.pp-body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.pp-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.pp-head span { font-size: 11px; font-weight: 600; color: #fff; background: var(--accent-btn); padding: 4px 8px; border-radius: 5px; }
.pp-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; padding: 7px 0; border-top: 1px solid var(--line); }
.pp-row span { color: var(--muted); }
.pp-toast { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; background: var(--slab); color: #fff; font-size: 12px; padding: 7px 11px; border-radius: 999px; }
.pp-toast .ic { width: 13px; height: 13px; color: #3ccf8e; stroke-width: 2.4; }

/* =========================================================
   PANDAI OS+ page
   ========================================================= */
.hero--plus .hero-center { width: min(940px, 100% - 2 * var(--gutter)); }
.hero--plus h1 { font-size: clamp(36px, 4.7vw, 66px); }
.hero-mark { position: relative; display: inline-block; }
.plus-badge {
  position: absolute; right: -12px; top: -9px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--slab); color: #fff; border: 2px solid #fff;
  font: 700 17px/22px var(--font); text-align: center;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45);
}

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.gal { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 18px; box-shadow: var(--shadow); }
.gal-prev { position: relative; aspect-ratio: 16 / 10; --cw: 320px; margin-bottom: 14px; }
.gal-prev .oc-face { box-shadow: none; }
.gal .tag { display: inline-block; margin: 0 4px 8px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent2-ink); background: var(--accent2-soft); border: 1px dashed var(--accent2-line); padding: 4px 7px; border-radius: 5px; }
.gal h3 { font-size: 17px; letter-spacing: -0.02em; margin: 0 4px 6px; }
.gal p { font-size: 13.5px; color: var(--muted); margin: 0 4px; }

.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font: 400 24px/1 var(--font); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; max-width: 760px; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero--split .lead { max-width: 640px; }
}
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .plus-band { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .sde-mods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sde-editor { font-size: 11px; }
  .sde-code li { padding-left: 38px; padding-right: 24px; }
  .sde-code li::before { width: 24px; }
  .hero--split .ai-grad { white-space: normal; }
}

/* balanced headline wrapping (no one-word last lines) */
.hero h1 { text-wrap: balance; }
@media (max-width: 560px) {
  .hero--plus .hero-sub { display: none; }
}

/* =========================================================
   PANDAI OS main page (PDF-based) additions
   ========================================================= */
/* module tiles with numbered features */
.modx-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.modx { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; }
.modx:hover { border-color: var(--line-2); transform: translateY(-2px); }
.modx-top { display: flex; align-items: center; gap: 10px; }
.modx-top h4 { flex: 1; font-size: 16px; letter-spacing: -0.02em; line-height: 1.25; }
.modx-n { font: 500 11px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.modx > p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.fx { display: grid; gap: 5px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.fx li { display: flex; align-items: baseline; gap: 9px; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.fx li span { flex: none; min-width: 18px; font: 600 10.5px/1 var(--mono); color: var(--accent); }
.modx--opt .mod-ic { background: var(--accent2-soft); color: var(--accent2-ink); border: 1px dashed var(--accent2-line); }
.modx--opt .fx li span { color: var(--accent2-ink); }
.modx--core { background: var(--slab); border-color: var(--slab); color: #fff; box-shadow: 0 20px 40px -22px rgba(98, 70, 234, .7); }
.modx--core:hover { border-color: var(--accent); }
.modx--core .mod-ic { background: rgba(98, 70, 234, .16); border-color: rgba(98, 70, 234, .4); }
.modx--core > p, .modx--core .modx-n { color: #a9abb3; }
.modx--core .fx { border-top-color: var(--slab-line); }
.modx--core .fx li { color: #e6e7ec; }
.mod-group + .one-solution, .modx-grid + .one-solution { margin-top: 28px; }
#solution .one-solution { margin-top: 32px; }
.mod-more { margin-top: 16px; font-size: 14px; color: var(--muted); }
.mod-more a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.mod-more a:hover { text-decoration-color: var(--accent); }
.mod-more b { color: var(--ink); }

/* assistant + model choice minis */
.ans-mini { margin-top: 10px; display: grid; gap: 5px; }
.am-row { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font-size: 11.5px; }
.am-row b { font: 600 11px/1 var(--mono); color: var(--warn); background: var(--warn-soft); padding: 3px 6px; border-radius: 4px; }
.am-row:first-child b { color: var(--bad); background: var(--bad-soft); }
.mini--answer .src-line { margin-top: 8px; }
.mm { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 7px 9px; margin-bottom: 5px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); font-size: 11.5px; }
.mm b { font-weight: 600; white-space: nowrap; }
.mm span { color: var(--muted); text-align: right; }
.mm.on { background: var(--accent-soft); border-color: var(--accent-line); }
.mm.on b { color: var(--accent-deep); }
.mm-key { margin-top: 8px; font: 10.5px/1.3 var(--mono); color: var(--muted); }

/* hosting: two cards + plain comparison */
.hosting--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compare--plain .cmp-head > div:nth-child(2), .compare--plain .cmp-head > div:nth-child(3) { color: var(--ink); }
.compare--plain .cmp-row > div:nth-child(2), .compare--plain .cmp-row > div:nth-child(3) { color: var(--ink-2); }
.compare--plain .cmp-row > div:nth-child(3) { border-left: 1px solid var(--line); }
#hosting .compare { margin-top: 16px; }

/* SDE section: editor + next steps */
.sde-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.vsteps { display: grid; gap: 12px; }
.vstep { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.vstep .step-n { font-size: 22px; margin: 2px 0 0; }
.vstep h3 { font-size: 16px; letter-spacing: -0.02em; margin-bottom: 4px; }
.vstep p { font-size: 13.5px; color: var(--muted); }

@media (max-width: 960px) {
  .sde-split { grid-template-columns: minmax(0, 1fr); }
  .hosting--2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .compare--plain .cmp-row > div:nth-child(3) { border-left: 0; }
}

/* base modules: PANDAI OS AI as the tall centre card, the other four in a 2x2 */
.modx-grid--base { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.modx-grid--base .modx--core { grid-row: span 2; }
.modx-demo { display: grid; gap: 8px; margin: 2px 0 4px; }
.md-q { justify-self: end; max-width: 92%; background: #2f3138; color: #fff; font-size: 12.5px; line-height: 1.4; padding: 8px 11px; border-radius: 10px 10px 3px 10px; }
.md-a { display: grid; gap: 6px; background: var(--slab-2); border: 1px solid var(--slab-line); border-radius: 10px; padding: 10px; }
.md-k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #fff; }
.md-k .ic { width: 14px; height: 14px; color: var(--accent); }
.md-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 12px; color: #d9dae0; padding: 6px 8px; border-radius: 7px; background: rgba(255, 255, 255, .04); }
.md-row span:nth-child(2) { color: #8d9099; font: 11px/1 var(--mono); }
.md-row b { font: 600 11px/1 var(--mono); color: #B9A8FF; background: rgba(98, 70, 234, .16); padding: 3px 6px; border-radius: 4px; }
.md-row:nth-of-type(1) b { color: #ff8f86; background: rgba(214, 69, 61, .18); }
.md-src { font: 10.5px/1.3 var(--mono); color: #7c7f88; }
@media (max-width: 960px) {
  .modx-grid--base { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modx-grid--base .modx--core { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .modx-grid--base { grid-template-columns: minmax(0, 1fr); }
}

/* top-left wordmark in capitals: PANDAI OS */
.topbar .brand-word { text-transform: uppercase; letter-spacing: 0.02em; font-size: 18px; }
@media (max-width: 640px) { .topbar .brand-word { font-size: 16px; } }

/* wordmark: PANDAI OS — all full size; "AI" in orange, "VANT" and "OS" dark */
.brand-word .os { font-weight: inherit; color: inherit; }

/* shorten the top-bar CTA on small phones */
@media (max-width: 480px) { .hide-sm { display: none; } }

/* panda mark inside the builder's mini app sidebar */
.ma-logo .ma-mark { width: 18px; height: 18px; flex: none; }

/* upper-right arrow on the "Let's Talk AI" buttons */
.btn .ic-ne { width: 15px; height: 15px; stroke-width: 2.2; }
.btn:hover .ic-ne { transform: translate(2px, -2px); }

/* links inside FAQ answers */
.faq details p a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }

/* =========================================================
   Compare: PANDAI OS · PANDAI OS+ · SDE
   ========================================================= */
.plans { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.plans-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pt { min-width: 760px; }
.pt-row { display: grid; grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(170px, 1fr)); }
.pt-row > div { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; }
.pt-row > .pt-k { justify-content: flex-start; text-align: left; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--ink); font-weight: 500; }
.pt-k small { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.35; }
.pt-row > div:nth-child(2) { background: var(--accent-soft); }
.pt-row > div:nth-child(3), .pt-row > div:nth-child(4) { border-left: 1px solid var(--line); }
.pt-row:hover > div { background-color: var(--hover-tint); }
.pt-row:hover > div:nth-child(2) { background: var(--pt-core-hover); }

.pt-head > div { border-top: 0; align-items: flex-start; justify-content: flex-start; text-align: left; flex-direction: column; padding: 22px 18px 20px; }
.pt-head > .pt-k { justify-content: flex-end; }
.plan { gap: 6px; }
.plan h3 { font-size: 22px; letter-spacing: -0.03em; line-height: 1.1; }
.plan .plus-mark { color: var(--accent); }
.plan-tag { font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.plan-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; flex: 1; }
.plan .btn { margin-top: auto; }
.plan-badge { align-self: flex-start; font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; color: #fff; background: var(--accent-btn); margin-bottom: 6px; }
.plan-badge--plus { background: var(--slab); }
.plan-badge--sde { background: var(--card); color: var(--ink-2); border: 1px solid var(--line-2); }
.plan--core { box-shadow: inset 0 3px 0 var(--accent); }

.pt-group { padding: 12px 18px 9px; border-top: 1px solid var(--line); background: var(--soft); font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pt-y { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-btn); color: #fff; }
.pt-y .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.pt-n { color: var(--faint); font-size: 16px; }
.pt-note { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pt-row > div:nth-child(2) .pt-note { background: var(--card); }
#compare .mod-more { text-align: center; }

/* keep the longer top nav comfortable on mid-size screens */
@media (max-width: 1240px) { .topnav { gap: 18px; font-size: 13.5px; } }
@media (max-width: 640px) { .pt-row > div { padding: 11px 14px; } }

/* compare table on phones: sticky feature column + swipe hint */
@media (max-width: 640px) {
  .pt { min-width: 600px; }
  .pt-row { grid-template-columns: 138px repeat(3, minmax(152px, 1fr)); }
  .pt-row > .pt-k { position: sticky; left: 0; z-index: 1; background: var(--card); box-shadow: 1px 0 0 var(--line); font-size: 13px; }
  .pt-head > .pt-k { background: var(--card); }
  .pt-group span { position: sticky; left: 14px; }
  .plans::before {
    content: "Swipe to compare →"; display: block; padding: 9px 14px;
    font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent-ink); background: var(--accent-soft); border-bottom: 1px solid var(--accent-line);
  }
}

/* =========================================================
   Brand display font (from the PANDAI OS banner): Montserrat
   Used for the wordmark and the hero headline only.
   ========================================================= */
:root { --display: "Montserrat", "Inter", system-ui, sans-serif; }
.brand-word { font-family: var(--display); font-weight: 800; letter-spacing: .01em; }
.topbar .brand-word { font-size: 17px; letter-spacing: .015em; }
.footer .brand-word { font-size: 16px; }
.hero h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; font-size: clamp(34px, 4.6vw, 64px); }
.hero--plus h1 { font-size: clamp(32px, 4.1vw, 58px); }
@media (max-width: 640px) { .topbar .brand-word { font-size: 15px; } }

/* Display font switched to Michroma (single weight, very wide) */
:root { --display: "Michroma", "Inter", system-ui, sans-serif; }
.brand-word { font-weight: 400; letter-spacing: 0; }
.topbar .brand-word { font-size: 15px; letter-spacing: .01em; }
.footer .brand-word { font-size: 14px; }
.hero h1 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.16; font-size: clamp(26px, 3.6vw, 52px); }
.hero--plus h1 { font-size: clamp(24px, 3.2vw, 46px); }
@media (max-width: 640px) { .topbar .brand-word { font-size: 13px; } }

/* Michroma rendered bold (single-weight font, browser-emboldened) to match the brand banner */
.brand-word, .hero h1 { font-weight: 700; font-synthesis: weight; }

/* visibly bolder Michroma: thicken glyphs with a thin stroke in the text colour */
.brand-word { -webkit-text-stroke: .045em currentColor; paint-order: stroke fill; }
.hero h1 { -webkit-text-stroke: .03em currentColor; paint-order: stroke fill; }
.hero h1 .ai-grad { -webkit-text-stroke: .03em #7C5CFF; }
.brand-word { -webkit-text-stroke: .06em currentColor; paint-order: normal; }

/* "Let's Talk" buttons: solid mouse-cursor icon pointing to the upper left */
.btn .ic-cursor { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.btn:hover .ic-cursor { transform: translate(-2px, -2px); }

/* Michroma + fixed 1–2px stroke for an Eurostile Extended Bold feel */
.hero h1 { -webkit-text-stroke: 1.5px currentColor; paint-order: normal; }
.hero h1 .ai-grad { -webkit-text-stroke: 1.5px #7C5CFF; }
.brand-word { -webkit-text-stroke: 1px currentColor; paint-order: normal; }
@media (max-width: 640px) {
  .hero h1 { -webkit-text-stroke-width: 1px; }
  .hero h1 .ai-grad { -webkit-text-stroke-width: 1px; }
  .brand-word { -webkit-text-stroke-width: .8px; }
}

/* "What you get" table now lives inside Modules */
.subhead { margin-top: 64px; }
.mod-more--center { text-align: center; }

/* =========================================================
   Modules: CORE / PRO / SDE tabs
   ========================================================= */
.modtabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; padding: 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: calc(var(--top) + 16px); }
.modtab {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center;
  text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.modtab:hover { background: color-mix(in srgb, var(--card) 70%, transparent); }
.modtab[aria-selected="true"] { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.mt-k { grid-row: 1 / span 2; font: 700 12px/1 var(--mono); letter-spacing: .1em; color: #fff; background: var(--faint); padding: 8px 10px; border-radius: 8px; }
.modtab[aria-selected="true"] .mt-k { background: var(--accent-btn); }
.modtab[data-tab="pro"][aria-selected="true"] .mt-k { background: var(--slab); }
.modtab[data-tab="sde"][aria-selected="true"] .mt-k { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.mt-n { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-n b { color: var(--accent); }
.mt-d { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modtab[aria-selected="true"] .mt-d { color: var(--accent-ink); }
.modpanel { animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modpanel { animation: none; } }

.inner-head { max-width: 760px; margin: 0 0 24px; }
.inner-head .kicker { margin-bottom: 10px; color: var(--accent-ink); }
.inner-head h3 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 10px; }
.inner-head--tight h3 { font-size: clamp(22px, 2.4vw, 28px); }
.pro-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 14px; }
.pro-panel { margin-top: 4px; }
.sde-block .sde-split { margin-top: 8px; }

@media (max-width: 760px) {
  .modtabs { grid-template-columns: minmax(0, 1fr); }
  .modtab { padding: 12px 14px; }
}

/* Hosting: pros and cons inside the Local / Cloud cards */
.host { display: flex; flex-direction: column; }
.pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pc-col { border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--soft); }
.pc-col--pro { background: var(--accent-soft); border-color: var(--accent-line); }
.pc-k { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; color: var(--muted); }
.pc-col--pro .pc-k { color: var(--accent-ink); }
.pc ul { display: grid; gap: 8px; }
.pc li { position: relative; padding-left: 24px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pc li::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 10px 10px; }
.pc-col--pro li::before {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.pc-col--con li::before {
  background-color: #d4d5db;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}
.pc-best { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 13.5px !important; color: var(--ink-2) !important; }
.pc-best b { display: inline-block; margin-right: 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--slab); padding: 4px 7px; border-radius: 5px; vertical-align: 1px; }
@media (max-width: 560px) { .pc { grid-template-columns: minmax(0, 1fr); } }

/* PANDAI OS section: architecture + AI + decisions sub-blocks */
.ai-block, .decisions-block { margin-top: 80px; scroll-margin-top: calc(var(--top) + 16px); }
#architecture .principles { margin-top: 8px; }
@media (max-width: 640px) { .ai-block, .decisions-block { margin-top: 56px; } }

/* PRO tab: builder + gallery moved in from the PANDAI OS+ page */
.pro-build, .pro-gallery { margin-top: 72px; scroll-margin-top: calc(var(--top) + 16px); }
.modpanel .marquee { margin-left: 0; margin-right: 0; margin-top: 8px; }
.modpanel .gallery { margin-bottom: 28px; }
@media (max-width: 640px) { .pro-build, .pro-gallery { margin-top: 52px; } }

/* =========================================================
   Let's Talk page (contact.html)
   ========================================================= */
.talk .sec-head { margin-bottom: 40px; }
.talk-title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin-bottom: 20px; }
.talk-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }

.talk-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.talk-card [hidden] { display: none !important; }
.tc-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.tc-dots { display: inline-flex; gap: 6px; }
.tc-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.tc-path { font: 500 12px/1 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.talk-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 30px); }
.tf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.f-l { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; }
.f-l b { color: var(--accent); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 11px 12px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374777f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(98, 70, 234, .14); }
.field input:user-invalid { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(201, 60, 52, .1); }

.ichips { display: flex; flex-wrap: wrap; gap: 8px; }
.ichip { position: relative; cursor: pointer; }
.ichip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ichip span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); background: var(--card); transition: border-color .2s, background .2s, color .2s; }
.ichip span b { font: 600 11px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.ichip:hover span { border-color: var(--ink); }
.ichip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.ichip input:checked + span b { color: var(--accent); }
.ichip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.tf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 4px; }
.tf-note { font-size: 12.5px; color: var(--muted); max-width: 300px; }
.talk-form .btn[disabled] { opacity: .6; cursor: progress; }

.talk-done { padding: clamp(28px, 4vw, 44px); outline: none; }
.td-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); margin-bottom: 18px; }
.td-ic .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.talk-done h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; margin-bottom: 10px; }
.talk-done p { color: var(--ink-2); max-width: 460px; }
.talk-done .cta-row { margin-top: 24px; }

.talk-side { display: grid; gap: 22px; }
.wa-card { position: relative; overflow: hidden; background: var(--slab); color: #fff; border-radius: 18px; padding: clamp(22px, 3vw, 30px); }
.wa-card::before { content: ""; position: absolute; inset: auto -30% -70% 10%; height: 140%; background: radial-gradient(50% 50% at 50% 50%, rgba(98, 70, 234, .24), transparent 70%); pointer-events: none; }
.wa-card > * { position: relative; }
.wa-card h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 10px; }
.wa-card p { color: #b9bbc2; font-size: 14.5px; }
.wa-card .btn { margin-top: 20px; }
.wa-num { margin-top: 12px; font: 500 13px/1 var(--mono); letter-spacing: .04em; color: #d9dae0 !important; }
.talk-next .prompts-label { margin-top: 0; }

@media (max-width: 960px) {
  .talk-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tf-grid { grid-template-columns: minmax(0, 1fr); }
  .tf-foot .btn, .wa-card .btn, .talk-done .btn { width: 100%; }
}

/* footer wordmark matches the header: same mark size, capitals, size and spacing */
.footer .brand-mark { width: 26px; height: 26px; }
.footer .brand-word { text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
@media (max-width: 640px) { .footer .brand-word { font-size: 13px; } }

/* top menu marks the current section, like the side bar */
.topnav > a:not(.btn).active { color: var(--ink); }
.topnav > a:not(.btn).active::after { transform: scaleX(1); }

/* Logo: the PANDAI OS lockup (panda mark + wordmark) cut from the brand artwork; same size in header and footer */
.brand-logo { display: block; height: 34px; width: auto; }
@media (max-width: 640px) { .brand-logo { height: 28px; } }

/* Hero headline in the logo's lettering: Archivo, semi-expanded and heavy (replaces the stroked Michroma).
   Sized to keep the same line width as before so the orbit layout is unchanged. */
.hero h1 {
  font-family: "Archivo", var(--font);
  font-weight: 750; font-stretch: 112.5%; font-synthesis: none;
  -webkit-text-stroke: 0; letter-spacing: -0.02em; line-height: 1.08;
  font-size: clamp(31px, 4.34vw, 63px);
}
.hero h1 .ai-grad { -webkit-text-stroke: 0; }
@media (max-width: 640px) { .hero h1, .hero h1 .ai-grad { -webkit-text-stroke: 0; } }

/* What you get: two options now (PANDAI OS and PANDAI OS+), so the table fits without sideways scrolling */
.pt { min-width: 0; }
.pt-row { grid-template-columns: minmax(200px, 1.3fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .pt { min-width: 0; }
  .pt-row { grid-template-columns: 112px repeat(2, minmax(0, 1fr)); }
  .pt-row > .pt-k { position: static; box-shadow: none; }
  .pt-head > div { padding: 16px 12px; }
  .plans::before { content: none; display: none; }
  .plan .btn { white-space: normal; height: auto; min-height: 36px; padding: 8px 10px; line-height: 1.2; text-align: center; align-self: stretch; }
  .pt-note { white-space: normal; text-align: center; }
}

/* Hardware partner badge (Local hosting card + footer).
   The name is text until the official NVIDIA logo file is added as assets/nvidia-logo.svg. */
.partner-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 7px 12px 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.pb-k { font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pb-logo { display: block; height: 18px; width: auto; }
.pb-logo--text { height: auto; font: 800 13px/1 var(--font); letter-spacing: .08em; color: var(--ink); }
.footer-partner { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.footer-partner .pb-logo { height: 15px; }
.footer-partner .pb-logo--text { font-size: 12px; height: auto; }

/* SDE now lives in the PANDAI OS section, after Decisions */
#architecture .sde-block { margin-top: 80px; scroll-margin-top: calc(var(--top) + 16px); }
@media (max-width: 640px) { #architecture .sde-block { margin-top: 56px; } }

/* =========================================================
   PANDAI OS brand: P mark + wordmark (light and dark)
   ========================================================= */
.brand { gap: 10px; }
.logo-mark { width: 36px; height: 36px; flex: none; overflow: visible; margin: -3px 0; }
.logo-word {
  font-family: "Archivo", var(--font); font-weight: 750; font-stretch: 112.5%;
  font-size: 19px; line-height: 1; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap;
}
.logo-os { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .02em; }
.footer .logo-mark { width: 36px; height: 36px; }
@media (max-width: 640px) {
  .logo-mark, .footer .logo-mark { width: 30px; height: 30px; }
  .logo-word { font-size: 16.5px; }
}

/* theme toggle (top bar) */
.topnav .theme-toggle { margin-left: 2px; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .ic { width: 17px; height: 17px; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
@media (max-width: 900px) { .topnav { gap: 10px; } }

/* =========================================================
   Dark theme
   ========================================================= */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #EDEDF5;
  --ink-2: #C4C6D4;
  --muted: #9295A6;
  --faint: #666A7D;
  --line: #23253A;
  --line-2: #33364E;
  --bg: #08090F;
  --soft: #11121F;
  --card: #0F1019;
  --accent: #8B73FF;
  --accent-ink: #A994FF;
  --accent-deep: #D7CCFF;
  --accent-soft: rgba(124, 92, 255, .14);
  --accent-line: rgba(124, 92, 255, .42);
  --accent-btn: #6E52FA;
  --accent-btn-hover: #5B3FF0;
  --accent2: #38BDF8;
  --accent2-ink: #7DD3FC;
  --accent2-soft: rgba(56, 189, 248, .12);
  --accent2-line: rgba(56, 189, 248, .38);
  --slab: #141526;
  --slab-2: #1C1E33;
  --slab-line: #2B2E48;
  --ok-soft: rgba(21, 138, 87, .2);
  --warn-soft: rgba(182, 116, 0, .2);
  --bad-soft: rgba(201, 60, 52, .2);
  --hover-tint: rgba(255, 255, 255, .03);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 40px 80px -40px rgba(0, 0, 0, .8);
}
:root[data-theme="dark"] body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 18.5v7M18.5 22h7' stroke='%23222438' stroke-width='1'/%3E%3C/svg%3E");
}
/* soft brand glow behind the page in dark mode, like the brand banner */
:root[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(168, 85, 247, .16), transparent 60%),
    radial-gradient(1000px 520px at 100% 110%, rgba(56, 189, 248, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
:root[data-theme="dark"] .cta-panel,
:root[data-theme="dark"] .wa-card { border: 1px solid var(--slab-line); }
:root[data-theme="dark"] .field select { background-color: var(--card); }
/* dark mode: the halo behind the hero copy and the builder canvas use the dark page colour */
:root[data-theme="dark"] .hero-center::before { background: radial-gradient(closest-side, rgba(8, 9, 15, .94), rgba(8, 9, 15, .82) 55%, rgba(8, 9, 15, 0)); }
:root[data-theme="dark"] .bstage { background-color: var(--soft); background-image: radial-gradient(#25273c 1px, transparent 1px); }
:root[data-theme="dark"] .dots i,
:root[data-theme="dark"] .tw-ui-bar i,
:root[data-theme="dark"] .tc-dots i { background: var(--line-2); }

/* Call-to-action buttons: brand gradient (violet -> indigo -> blue), slides on hover.
   Every stop keeps white text above 5:1 contrast. */
:root { --cta-grad: linear-gradient(100deg, #7C3AED 0%, #4F46E5 35%, #2563EB 65%, #4F46E5 85%, #7C3AED 100%); }
.btn-primary {
  background-color: #4F46E5; background-image: var(--cta-grad);
  background-size: 220% 100%; background-position: 0% 50%;
  border-color: transparent;
  box-shadow: 0 6px 18px -8px rgba(79, 70, 229, .55), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: background-position .5s ease, box-shadow .25s, transform .2s;
}
.btn-primary:hover {
  background-color: #4F46E5; background-image: var(--cta-grad); background-position: 100% 50%;
  box-shadow: 0 10px 26px -8px rgba(79, 70, 229, .75), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-primary.pressed { box-shadow: 0 0 0 6px rgba(98, 70, 234, .22); }
:root[data-theme="dark"] .btn-primary { box-shadow: 0 6px 20px -8px rgba(124, 92, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .14); }

/* "What you get" table: row hover on the PANDAI OS column, gentle in both themes */
:root { --pt-core-hover: #ECE8FF; }
:root[data-theme="dark"] { --pt-core-hover: rgba(124, 92, 255, .2); }

/* =========================================================
   Decisions: animated sales heat map
   ========================================================= */
:root { --hm-cold: #EFECFD; --hm-mid: #9A86FF; --hm-hot: #2F55E6; }
:root[data-theme="dark"] { --hm-cold: #191A33; --hm-mid: #6A4FF0; --hm-hot: #67D3FF; }
.heatmap { display: grid; gap: 10px; }
.hm-grid {
  position: relative; display: grid; gap: 3px; align-items: center;
  grid-template-columns: 82px repeat(12, minmax(0, 1fr));
}
.hm-corner, .hm-h { font: 500 10.5px/1 var(--mono); letter-spacing: .04em; color: var(--muted); padding-bottom: 4px; white-space: nowrap; }
.hm-corner { grid-column: 1; text-transform: uppercase; }
.hm-row { grid-column: 1; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.hm-cell {
  position: relative; height: 22px; border-radius: 5px;
  opacity: 0; transform: scale(.25);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2, .9, .25, 1.25);
  transition-delay: var(--d, 0ms);
}
.heatmap.in .hm-cell { opacity: 1; transform: none; }
.hm-cell:hover { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 1; }
/* peak hours: a ring that pulses once the grid has filled */
.hm-cell.peak::after {
  content: ""; position: absolute; inset: -3px; border-radius: 7px;
  border: 2px solid #38BDF8; opacity: 0;
}
.heatmap.in .hm-cell.peak::after { animation: hmPeak 2.2s ease-out 1.4s infinite; }
.hm-cell.top::after { border-color: #fff; box-shadow: 0 0 0 2px #38BDF8, 0 0 14px 2px rgba(56, 189, 248, .55); }
@keyframes hmPeak {
  0% { opacity: 0; transform: scale(.8); }
  25% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25); }
}
/* cold spot: dashed outline */
.hm-cell.cold::after { content: ""; position: absolute; inset: -3px; border-radius: 7px; border: 1.5px dashed var(--muted); opacity: 0; transition: opacity .4s ease 1.6s; }
.heatmap.in .hm-cell.cold::after { opacity: 1; }
/* scan bar sweeping across the hours as the AI reads them */
.hm-scan {
  position: absolute; top: 14px; bottom: 0; left: 82px; width: calc((100% - 82px) / 6);
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, .28), rgba(56, 189, 248, .3), transparent);
  border-radius: 6px; pointer-events: none; opacity: 0;
}
.heatmap.in .hm-scan { animation: hmScan 1.5s cubic-bezier(.45, .05, .35, 1) .55s 1 both; }
@keyframes hmScan {
  0% { opacity: 0; transform: translateX(-40%); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(560%); }
}
.hm-legend { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.hm-legend i { flex: 1; max-width: 200px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--hm-cold), var(--hm-mid), var(--hm-hot)); }
@media (max-width: 640px) {
  .hm-grid { grid-template-columns: 62px repeat(12, minmax(0, 1fr)); gap: 2px; }
  .hm-scan { left: 62px; width: calc((100% - 62px) / 6); }
  .hm-cell { height: 18px; border-radius: 4px; }
  .hm-row { font-size: 11.5px; }
  .hm-h { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-cell { opacity: 1; transform: none; transition: none; }
  .hm-scan { display: none; }
  .heatmap.in .hm-cell.peak::after { animation: none; opacity: 1; }
}

/* =========================================================
   Optional modules: an open, growing library
   ========================================================= */
.ml {
  margin-top: 16px; padding: 18px; display: grid; gap: 14px; overflow: hidden;
  border: 1.5px dashed var(--accent2-line); border-radius: 16px;
  background: color-mix(in srgb, var(--accent2-soft) 60%, transparent);
}
.ml-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ml-search {
  display: inline-flex; align-items: center; gap: 8px; width: 320px; max-width: 100%; height: 42px; padding: 0 10px 0 12px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); box-shadow: var(--shadow);
  font-size: 14.5px; color: var(--ink);
}
.ml-search .ic { width: 17px; height: 17px; color: var(--muted); }
.ml-q { white-space: nowrap; }
.ml-caret { width: 1.5px; height: 1.1em; margin-left: -6px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.ml-found {
  margin-left: auto; font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ok); background: var(--ok-soft); padding: 5px 7px; border-radius: 6px;
  opacity: 0; transform: translateY(3px); transition: opacity .25s, transform .25s;
}
.ml-found.on { opacity: 1; transform: none; }
.ml-lead { flex: 1; min-width: 220px; max-width: 480px; font-size: 14px; color: var(--ink-2); }
.ml-rows {
  display: grid; gap: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ml-row { overflow: hidden; }
.ml-track { display: flex; gap: 8px; width: max-content; padding-right: 8px; animation: mlMove 46s linear infinite; }
.ml-row--2 .ml-track { animation-duration: 54s; animation-direction: reverse; }
.ml-row--3 .ml-track { animation-duration: 50s; }
.ml-rows:hover .ml-track { animation-play-state: paused; }
.ml-dup { display: contents; }
@keyframes mlMove { to { transform: translateX(-50%); } }
.ml-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; white-space: nowrap;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 13.5px; color: var(--ink-2);
  transition: border-color .25s, box-shadow .25s, color .25s;
}
.ml-chip i { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #A855F7, #38BDF8); }
.ml-chip.hit { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.ml-ways { display: flex; flex-wrap: wrap; gap: 8px; }
.ml-way {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13.5px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); transition: border-color .2s;
}
.ml-way b { color: var(--ink); font-weight: 600; }
.ml-way .ic { width: 16px; height: 16px; color: var(--accent); }
a.ml-way:hover { border-color: var(--accent); }
@media (max-width: 640px) {
  .ml { padding: 14px; }
  .ml-search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-track { animation: none; flex-wrap: wrap; width: auto; }
  .ml-dup { display: none; }
  .ml-rows { -webkit-mask-image: none; mask-image: none; }
}

/* =========================================================
   Living panda: blinks, sways a little, and the star twinkles
   ========================================================= */
.panda-live { overflow: visible; }
.panda-live .pm-head { transform-box: fill-box; transform-origin: 50% 88%; animation: pandaSway 6s ease-in-out infinite; }
.panda-live .pm-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: pandaBlink 5.2s ease-in-out infinite; }
.panda-live .pm-star { transform-box: fill-box; transform-origin: 50% 50%; animation: pandaTwinkle 2.8s ease-in-out infinite; }
/* each panda keeps its own rhythm so they don't move in lockstep */
.hero-mark .panda-live .pm-head { animation-delay: -2s; }
.hero-mark .panda-live .pm-eyes { animation-delay: -1.3s; }
.footer .panda-live .pm-eyes { animation-delay: -3.1s; }
@keyframes pandaSway {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-1px); }
}
@keyframes pandaBlink {
  0%, 88%, 100% { transform: scaleY(1); }
  91% { transform: scaleY(.12); }
  94% { transform: scaleY(1); }
}
@keyframes pandaTwinkle {
  0%, 100% { transform: scale(.82) rotate(0deg); opacity: .85; }
  50% { transform: scale(1.12) rotate(18deg); opacity: 1; }
}
/* say hello on hover */
.brand:hover .panda-live .pm-head { animation: pandaNod .7s ease-in-out 2; }
@keyframes pandaNod {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-9deg); }
  70% { transform: rotate(7deg); }
}
@media (prefers-reduced-motion: reduce) {
  .panda-live .pm-head, .panda-live .pm-eyes, .panda-live .pm-star { animation: none; }
}

/* hero line: balance the two lines */
.hero .lead { text-wrap: balance; }

/* footer: Vanta Technologies links to vantatech.ai */
.footer-by a, .footer-c a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: color .2s, text-decoration-color .2s; }
.footer-by a:hover, .footer-c a:hover { color: var(--ink); text-decoration-color: var(--accent); }

/* hero sub-header: the questions lead, in full ink */
.hero .lead .lead-q { color: var(--ink); font-weight: 600; }

/* the question line types one business question after another (main.js · askLoop) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero .lead .ask { display: grid; align-items: end; margin-bottom: 6px; font-size: 1.08em; letter-spacing: -0.005em; }
.hero .lead .ask > .ask-size, .hero .lead .ask > .ask-live { grid-area: 1 / 1; }
.ask-size { visibility: hidden; }
.ask-rest { color: transparent; }
.ask-caret { position: relative; }
.ask-caret::after {
  content: ''; position: absolute; left: 1px; top: .14em; bottom: .1em; width: 2px; border-radius: 1px;
  background: linear-gradient(180deg, #A855F7, #3FB5F7);
  animation: blink 1s steps(1) infinite;
}
.ask-live.busy .ask-caret::after { animation: none; }

/* =========================================================
   pandai.os wordmark (rebuilt from the sketch, one 46-unit stroke)
   ========================================================= */
.logo-wordmark { display: block; height: 30px; width: auto; aspect-ratio: 1659 / 372; color: var(--ink); overflow: visible; flex: none; }
.footer .logo-wordmark { height: 32px; }
@media (max-width: 640px) { .logo-wordmark, .footer .logo-wordmark { height: 26px; } }

/* the ears twitch now and then, and wiggle when you point at the logo */
.panda-live .pw-ear { transform-box: fill-box; }
.panda-live .pw-ear--l { transform-origin: 52% 72%; animation: earTwitchL 7s ease-in-out infinite; }
.panda-live .pw-ear--r { transform-origin: 48% 72%; animation: earTwitchR 7s ease-in-out .12s infinite; }
.hero-mark .panda-live .pw-ear { animation-delay: -2.4s; }
.footer .panda-live .pw-ear { animation-delay: -4.6s; }
@keyframes earTwitchL {
  0%, 84%, 100% { transform: rotate(0deg); }
  87% { transform: rotate(-11deg); }
  90% { transform: rotate(6deg); }
  93% { transform: rotate(-3deg); }
}
@keyframes earTwitchR {
  0%, 84%, 100% { transform: rotate(0deg); }
  87% { transform: rotate(11deg); }
  90% { transform: rotate(-6deg); }
  93% { transform: rotate(3deg); }
}
.brand:hover .panda-live .pw-ear--l { animation: earWiggleL .55s ease-in-out 2; }
.brand:hover .panda-live .pw-ear--r { animation: earWiggleR .55s ease-in-out 2; }
@keyframes earWiggleL { 0%, 100% { transform: rotate(0deg); } 35% { transform: rotate(-14deg); } 70% { transform: rotate(8deg); } }
@keyframes earWiggleR { 0%, 100% { transform: rotate(0deg); } 35% { transform: rotate(14deg); } 70% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .panda-live .pw-ear { animation: none !important; } }
