:root {
  --paper: #f5f0e6;
  --paper-strong: #fffaf1;
  --paper-soft: #ebe3d4;
  --ink: #1b1814;
  --ink-soft: #3d362e;
  --muted: #7a6e5f;
  --line: rgba(27, 24, 20, 0.14);
  --line-strong: rgba(27, 24, 20, 0.22);
  --terracotta: #bf5a3a;
  --terracotta-deep: #9e4529;
  --olive: #687555;
  --gold: #ad8147;
  --card: rgba(255, 250, 241, 0.78);
  --card-solid: #fffaf1;
  --shadow-sm: 0 2px 10px rgba(53, 36, 20, 0.06);
  --shadow-md: 0 18px 50px rgba(53, 36, 20, 0.12);
  --shadow-lg: 0 32px 100px rgba(53, 36, 20, 0.18);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --max: 1240px;
  --nav-h: 78px;
}

[data-theme="dark"] {
  --paper: #141210;
  --paper-strong: #1d1915;
  --paper-soft: #241f19;
  --ink: #f5f0e6;
  --ink-soft: #d8d0c2;
  --muted: #a89d8d;
  --line: rgba(245, 240, 230, 0.13);
  --line-strong: rgba(245, 240, 230, 0.22);
  --terracotta: #e07a55;
  --terracotta-deep: #c25b3a;
  --olive: #9aaa82;
  --gold: #d0a565;
  --card: rgba(29, 25, 21, 0.78);
  --card-solid: #1d1915;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 32px 100px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(191, 90, 58, 0.10), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(173, 129, 71, 0.10), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(104, 117, 85, 0.08), transparent 40%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
}

::selection {
  background: var(--terracotta);
  color: #fffaf1;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  transition: top 160ms ease;
}
.skip-link:focus { top: 16px; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-a { width: 420px; height: 420px; left: -120px; top: 120px; background: rgba(191, 90, 58, 0.28); }
.orb-b { width: 360px; height: 360px; right: -80px; top: 360px; background: rgba(173, 129, 71, 0.22); animation-delay: -6s; }
.orb-c { width: 300px; height: 300px; left: 40%; bottom: -140px; background: rgba(104, 117, 85, 0.18); animation-delay: -12s; }
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -28px, 0) scale(1.08); }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--nav-h);
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.brand-mark.small { width: 30px; height: 30px; border-radius: 10px; font-size: 16px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.01em; }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; }

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-solid) 55%, transparent);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.tab:hover { color: var(--ink); background: color-mix(in srgb, var(--paper-soft) 75%, transparent); }
.tab.is-active { color: var(--paper-strong); background: var(--ink); }
[data-theme="dark"] .tab.is-active { color: var(--ink); background: var(--paper); }

.top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn, .pill-btn {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card-solid) 66%, transparent);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 17px;
}
.pill-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.icon-btn:hover, .pill-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--card-solid);
}
.theme-sun, .theme-moon { grid-area: 1 / 1; transition: opacity 160ms ease, transform 160ms ease; }
[data-theme="light"] .theme-moon { opacity: 0; transform: rotate(-30deg) scale(0.7); }
[data-theme="dark"] .theme-sun { opacity: 0; transform: rotate(30deg) scale(0.7); }

/* ---------- shared ---------- */
main { position: relative; }
.section, .hero, .stats, .cta-band, .footer {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}
.section { padding: 92px 0 20px; }
.eyebrow {
  display: inline-block;
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--terracotta) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--terracotta) 9%, transparent);
  color: var(--terracotta-deep);
  font-size: 12px;
  font-weight: 650;
}
[data-theme="dark"] .live-pill { color: var(--terracotta); }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--terracotta) 16%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.accent { color: var(--terracotta); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}
.section-head h2, .copilot-copy h2, .boundary-head h2, .cta-band h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.1vw, 54px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.section-head p {
  max-width: 520px;
  justify-self: end;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper-strong);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 24%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px color-mix(in srgb, var(--ink) 32%, transparent); }
[data-theme="dark"] .btn-primary { background: var(--paper); color: var(--ink); }
.btn-ghost {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--card-solid) 55%, transparent);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--card-solid); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  min-height: calc(100vh - var(--nav-h));
  padding: 64px 0 48px;
}
.hero-copy { max-width: 660px; }
.hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(52px, 6.7vw, 96px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero h1 .accent { position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 4px;
  height: 10px;
  z-index: -1;
  border-radius: 4px;
  background: color-mix(in srgb, var(--terracotta) 18%, transparent);
  transform: rotate(-0.6deg);
}
.hero-lede {
  max-width: 600px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.9;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--terracotta); }

.hero-stage { perspective: 1200px; }
.cockpit {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(245, 240, 230, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 0%, rgba(191, 90, 58, 0.30), transparent 36%),
    linear-gradient(150deg, #241f19, #141210 60%);
  color: #f5f0e6;
  box-shadow: 0 40px 100px rgba(20, 16, 12, 0.38), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: rotate(-1.4deg);
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}
.cockpit:hover { transform: rotate(0deg) translateY(-4px); }
.cockpit-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 14px;
  border-bottom: 1px solid rgba(245, 240, 230, 0.10);
  font-size: 11.5px;
}
.traffic { display: inline-flex; gap: 5px; }
.traffic i { width: 7px; height: 7px; border-radius: 50%; background: rgba(245,240,230,0.22); }
.traffic i:first-child { background: rgba(191,90,58,0.8); }
.cockpit-title { color: rgba(245,240,230,0.62); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-pill {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(191,90,58,0.34);
  border-radius: 999px;
  background: rgba(191,90,58,0.14);
  color: #e9a184;
  font-size: 10.5px;
  font-weight: 650;
}
.cockpit-body { padding: 22px 4px 4px; }
.case-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.case-line > div { display: grid; gap: 4px; }
.case-label { color: rgba(245,240,230,0.48); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.case-line strong { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.2; }
.case-sub { flex: 0 0 auto; padding: 4px 8px; border-radius: 7px; background: rgba(245,240,230,0.07); color: rgba(245,240,230,0.58); font-size: 10.5px; }
.track { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin: 22px 0 20px; }
.node { height: 4px; border-radius: 99px; background: rgba(245,240,230,0.13); }
.node.done { background: rgba(191,90,58,0.72); }
.node.current { background: #e9a184; box-shadow: 0 0 0 3px rgba(233,161,132,0.14); }
.cockpit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 10px; }
.mini-card {
  padding: 13px;
  border: 1px solid rgba(245,240,230,0.09);
  border-radius: 14px;
  background: rgba(245,240,230,0.045);
}
.mini-k { display: block; margin-bottom: 8px; color: rgba(245,240,230,0.46); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.mini-card ul { display: grid; gap: 7px; }
.mini-card li { position: relative; padding-left: 14px; color: rgba(245,240,230,0.78); font-size: 12px; line-height: 1.45; }
.mini-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: rgba(233,161,132,0.8); }
.agent-card { background: linear-gradient(145deg, rgba(191,90,58,0.20), rgba(245,240,230,0.04)); border-color: rgba(191,90,58,0.26); }
.agent-card p { color: rgba(245,240,230,0.83); font-size: 12.5px; line-height: 1.6; }
.mini-action { display: inline-flex; margin-top: 9px; color: #e9a184; font-size: 11.5px; font-weight: 650; }
.floating-badge {
  position: absolute;
  padding: 7px 11px;
  border: 1px solid rgba(245,240,230,0.14);
  border-radius: 9px;
  background: rgba(20,16,12,0.74);
  color: rgba(245,240,230,0.76);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.badge-a { right: -16px; top: 96px; transform: rotate(2deg); }
.badge-b { left: -18px; bottom: 58px; transform: rotate(-2deg); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { display: grid; gap: 2px; padding: 0 26px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); font-weight: 650; line-height: 1; letter-spacing: -0.03em; }
.stat-label { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }

/* ---------- modules ---------- */
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-solid) 92%, transparent), color-mix(in srgb, var(--paper-soft) 55%, transparent));
  box-shadow: var(--shadow-sm);
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms ease, border-color 260ms ease;
}
.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent-color, var(--terracotta)) 16%, transparent), transparent 42%);
  opacity: 0.9;
}
.module-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.module-case { --accent-color: var(--terracotta); }
.module-client { --accent-color: var(--olive); }
.module-platform { --accent-color: var(--gold); }
.module-docs { --accent-color: var(--ink-soft); }
[data-theme="dark"] .module-docs { --accent-color: #d8d0c2; }
.module-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.module-kicker { color: var(--muted); font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.module-arrow { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 15px; transition: transform 220ms ease, color 220ms ease, background 220ms ease; }
.module-card:hover .module-arrow { transform: rotate(45deg); color: var(--ink); background: var(--card-solid); }
.module-card h3 { position: relative; z-index: 1; margin-top: 18px; font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 34px); font-weight: 650; letter-spacing: -0.02em; }
.module-card > p { position: relative; z-index: 1; max-width: 470px; margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.module-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; color: var(--ink); font-size: 13px; font-weight: 650; }
.module-link span { transition: transform 200ms ease; }
.module-card:hover .module-link span { transform: translateX(3px); }
.module-visual { position: relative; z-index: 0; flex: 1; min-height: 150px; margin-top: 18px; }

.visual-window {
  height: 100%;
  min-height: 158px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-solid) 72%, transparent);
  box-shadow: var(--shadow-sm);
}
.visual-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 650; }
.visual-pill { padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent-color) 12%, transparent); color: var(--accent-color); font-size: 9px; }
.visual-row { display: flex; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); font-size: 10.5px; }
.visual-row:last-of-type { border-bottom: 0; }
.visual-row.is-hot { color: var(--ink); font-weight: 650; }
.row-dot { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--accent-color) 55%, transparent); }
.row-title { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.02em; }
.row-tag { margin-left: auto; padding: 2px 6px; border-radius: 5px; background: color-mix(in srgb, var(--accent-color) 10%, transparent); color: var(--accent-color); font-size: 8.5px; }
.visual-track { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 9px; }
.visual-track i { height: 3px; border-radius: 99px; background: var(--line); }
.visual-track i.on { background: color-mix(in srgb, var(--accent-color) 68%, transparent); }

.client-visual { display: flex; align-items: flex-end; justify-content: center; padding-top: 10px; }
.phone {
  position: relative;
  width: 214px;
  height: 330px;
  padding: 8px;
  border-radius: 32px;
  background: #18140f;
  box-shadow: 0 24px 60px rgba(20,16,12,0.26), inset 0 0 0 1px rgba(255,255,255,0.08);
  transform: rotate(2.5deg);
  transition: transform 300ms ease;
}
.module-card:hover .phone { transform: rotate(0.5deg) translateY(-5px); }
.phone-notch { position: absolute; top: 12px; left: 50%; width: 52px; height: 5px; border-radius: 99px; background: #2c261f; transform: translateX(-50%); }
.phone-screen { height: 100%; padding: 20px 13px 13px; border-radius: 25px; background: #f7f1e6; color: #1b1814; overflow: hidden; }
.phone-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; font-size: 10px; font-weight: 700; }
.phone-dot { width: 6px; height: 6px; border-radius: 50%; background: #687555; }
.phone-case { padding: 12px; border-radius: 13px; background: #1b1814; color: #f5f0e6; }
.phone-kicker { display: block; color: rgba(245,240,230,0.58); font-size: 8px; letter-spacing: 0.04em; }
.phone-case strong { display: block; margin: 4px 0 2px; font-family: "Songti SC", serif; font-size: 14px; font-weight: 600; }
.phone-sub { color: rgba(245,240,230,0.58); font-size: 8px; }
.phone-progress { height: 3px; margin-top: 10px; border-radius: 99px; background: rgba(245,240,230,0.16); overflow: hidden; }
.phone-progress i { display: block; width: 66%; height: 100%; border-radius: inherit; background: #e07a55; }
.phone-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 1px; border-bottom: 1px solid rgba(27,24,20,0.08); font-size: 8.5px; color: #6d6255; }
.phone-item span:last-child { color: #1b1814; font-weight: 650; }
.phone-badge { display: inline-grid; place-items: center; min-width: 15px; height: 15px; border-radius: 99px; background: #bf5a3a; color: #fff !important; font-size: 8px; }
.phone-cta { display: grid; place-items: center; margin-top: 11px; padding: 8px; border-radius: 9px; background: #687555; color: #fff; font-size: 9px; font-weight: 650; }

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 96px; padding: 10px 2px 0; border-bottom: 1px solid var(--line); }
.bar-chart i { flex: 1; height: var(--h, 50%); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-color) 80%, transparent), color-mix(in srgb, var(--accent-color) 30%, transparent)); opacity: 0.9; }
.platform-rows { display: grid; gap: 7px; padding-top: 10px; }
.platform-rows > div { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; color: var(--muted); }
.platform-rows strong { color: var(--ink); font-family: var(--font-mono); font-size: 9px; }

.docs-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 0 0; }
.doc-count { position: absolute; top: 0; left: 0; padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--terracotta) 28%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--terracotta) 8%, transparent); color: var(--terracotta-deep); font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.04em; }
[data-theme="dark"] .doc-count { color: var(--terracotta); }
.doc-stack { position: relative; width: 250px; height: 170px; margin-top: 10px; }
.doc-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 210px;
  height: 140px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-top: 3px solid color-mix(in srgb, var(--terracotta) 50%, transparent);
  border-radius: 12px;
  background: var(--paper-strong);
  box-shadow: 0 18px 40px rgba(53, 36, 20, 0.14);
  transform-origin: bottom center;
}
.doc-sheet span { display: block; margin-bottom: 12px; color: var(--ink); font-family: var(--font-display); font-size: 12px; font-weight: 650; }
.doc-sheet i { display: block; height: 5px; margin-top: 7px; border-radius: 99px; background: var(--line); }
.doc-sheet i:nth-child(2) { width: 88%; }
.doc-sheet i:nth-child(3) { width: 64%; }
.sheet-1 { transform: translateX(-50%) rotate(-7deg) translateY(-6px); opacity: 0.72; }
.sheet-2 { transform: translateX(-50%) rotate(3deg) translateY(-3px); opacity: 0.9; }
.sheet-3 { transform: translateX(-50%) rotate(-1deg); }
.doc-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.doc-tags span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; }

/* ---------- copilot ---------- */
.copilot-section { padding-top: 110px; }
.copilot-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(34px, 6vw, 80px); }
.copilot-copy p { max-width: 520px; margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.copilot-points { display: grid; gap: 18px; margin-top: 28px; }
.copilot-points li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.copilot-points li > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--terracotta); font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.copilot-points strong { display: block; font-size: 14px; }
.copilot-points p { margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }

.chat-mock {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-solid);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-size: 17px; }
.chat-head div { display: grid; line-height: 1.2; }
.chat-head strong { font-size: 12px; }
.chat-head small { color: var(--muted); font-size: 9.5px; }
.chat-status { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--olive) 13%, transparent); color: var(--olive); font-size: 9px; font-weight: 650; }
.chat-body { display: grid; gap: 11px; padding: 20px 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--paper-soft) 36%, transparent), transparent); }
.bubble { max-width: 84%; padding: 11px 13px; border-radius: 14px; font-size: 11.5px; line-height: 1.6; }
.bubble.user { justify-self: end; border-bottom-right-radius: 4px; background: var(--ink); color: var(--paper); }
[data-theme="dark"] .bubble.user { background: var(--paper); color: var(--ink); }
.bubble.agent { justify-self: start; border: 1px solid var(--line); border-bottom-left-radius: 4px; background: var(--card-solid); }
.bubble.small { font-size: 10.5px; }
.bubble-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.bubble-actions span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; }
.chat-input { display: flex; align-items: center; gap: 10px; margin: 0 18px 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 10.5px; }
.chat-input .send { display: grid; place-items: center; width: 24px; height: 24px; margin-left: auto; border-radius: 50%; background: var(--terracotta); color: #fff; font-size: 12px; }

/* ---------- roles ---------- */
.roles-section { padding-top: 110px; }
.role-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.role-card {
  position: relative;
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--card-solid) 68%, transparent);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}
.role-card:hover { transform: translateY(-4px); background: var(--card-solid); border-color: var(--line-strong); }
.role-index { color: var(--terracotta); font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; }
.role-card h3 { margin-top: 14px; font-family: var(--font-display); font-size: 21px; font-weight: 650; }
.role-card p { margin-top: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.role-tag { position: absolute; left: 20px; bottom: 18px; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--terracotta) 9%, transparent); color: var(--terracotta-deep); font-size: 9px; font-weight: 650; }
[data-theme="dark"] .role-tag { color: var(--terracotta); }

/* ---------- journey ---------- */
.journey-section { padding-top: 110px; }
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.journey-step { position: relative; padding: 28px 30px 12px 0; border-right: 1px solid var(--line); }
.journey-step:last-child { border-right: 0; padding-right: 0; }
.journey-step + .journey-step { padding-left: 30px; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 20px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
[data-theme="dark"] .step-num { background: var(--paper); color: var(--ink); }
.journey-step h3 { font-family: var(--font-display); font-size: 22px; font-weight: 650; }
.journey-step p { max-width: 320px; margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }

/* ---------- boundary ---------- */
.boundary-section { padding-top: 110px; }
.boundary-head { margin-bottom: 24px; }
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.boundary-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--card-solid) 64%, transparent);
}
.boundary-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--olive) 14%, transparent); color: var(--olive); font-size: 13px; font-weight: 700; }
.boundary-card h3 { font-size: 14px; }
.boundary-card p { margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 32px;
  margin-top: 100px;
  padding: 46px clamp(26px, 5vw, 64px);
  border: 1px solid rgba(245,240,230,0.12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 0%, rgba(191, 90, 58, 0.32), transparent 42%),
    linear-gradient(140deg, #241f19, #141210 70%);
  color: #f5f0e6;
  box-shadow: var(--shadow-lg);
}
.cta-band .eyebrow { color: #e9a184; }
.cta-band h2 { color: #f5f0e6; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cta-band .btn-primary { background: #f5f0e6; color: #1b1814; }
.cta-band .btn-ghost { border-color: rgba(245,240,230,0.22); background: rgba(245,240,230,0.06); color: #f5f0e6; }
.cta-band .btn-ghost:hover { background: rgba(245,240,230,0.12); }

/* ---------- footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 11.5px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.footer-meta { display: inline-flex; flex-wrap: wrap; gap: 8px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 22px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 12, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card-solid);
  box-shadow: var(--shadow-lg);
  animation: modal-in 220ms cubic-bezier(.2,.7,.2,1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--ink); border-color: var(--line-strong); }
.modal-card h2 { margin-top: 6px; font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); font-weight: 650; letter-spacing: -0.02em; }
.modal-sub { max-width: 480px; margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.demo-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; margin-top: 24px; }
.demo-group { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--paper-soft) 38%, transparent); }
.demo-group h3 { margin-bottom: 10px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.demo-group ul { display: grid; gap: 7px; }
.demo-group li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.demo-group code { padding: 3px 7px; border-radius: 6px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 10.5px; }
.demo-group li span { color: var(--muted); }
.demo-note { margin-top: 12px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.modal-actions .btn { min-height: 44px; font-size: 12.5px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .topbar { gap: 14px; }
  .brand-text small { display: none; }
  .tab { padding: 8px 11px; font-size: 12.5px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 54px; }
  .hero-copy { max-width: 760px; }
  .hero-stage { max-width: 760px; }
  .cockpit { transform: rotate(-0.8deg); }
  .role-grid { grid-template-columns: repeat(3, 1fr); }
  .role-card { min-height: 160px; }
}

@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .tabs { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; }
  .top-actions { margin-left: auto; }
  .section { padding-top: 70px; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .section-head p { justify-self: start; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 380px; }
  .copilot-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; border-top: 0; }
  .journey-step, .journey-step + .journey-step { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line); }
  .journey-step:first-child { border-top: 1px solid var(--line); }
  .boundary-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; gap: 24px; }
  .cta-band-actions { justify-content: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); padding-top: 18px; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section, .hero, .stats, .cta-band, .footer { width: min(var(--max), calc(100% - 32px)); }
  .topbar { padding-inline: 16px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 18px; }
  .brand-text strong { font-size: 16px; }
  .pill-btn { height: 36px; padding: 0 12px; font-size: 12px; }
  .icon-btn { width: 36px; height: 36px; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-lede { font-size: 14px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .cockpit { padding: 14px; border-radius: 20px; }
  .cockpit-grid { grid-template-columns: 1fr; }
  .badge-a { right: -6px; top: 80px; }
  .badge-b { left: -6px; }
  .module-card { padding: 20px; border-radius: 22px; }
  .module-card h3 { font-size: 28px; }
  .phone { width: 190px; height: 300px; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 140px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .modal-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 400;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
  animation: toast-in 180ms ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media print {
  .topbar, .ambient, .btn, .module-arrow, .modal { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero { width: 100%; }
  .module-card, .chat-mock, .role-card, .boundary-card { break-inside: avoid; box-shadow: none; }
}
