/* ════════════════════════════════════════════════════════════════
   x101 — Redesign 2026
   Design system · light & dark themes are independently tuned,
   not inversions. All artwork is inline + token-driven so it
   adapts to both themes.
   ════════════════════════════════════════════════════════════════ */

/* ── 1 · TOKENS ─────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg:           #F7F9FC;
  --bg-raised:    #FFFFFF;
  --bg-sunken:    #EEF2F8;
  --bg-deep:      #0A1428;          /* dark band used in both themes */
  --bg-deep-2:    #102040;

  /* Ink */
  --text-1:       #0B1526;
  --text-2:       #46556C;
  --text-3:       #7E8CA3;
  --text-on-deep:     #EDF2FB;
  --text-on-deep-2:   rgba(237,242,251,0.66);

  /* Brand */
  --brand:        #1467E6;
  --brand-2:      #0583D2;          /* logo blue */
  --brand-strong: #0F54C2;
  --brand-grad:   linear-gradient(118deg, #1467E6 12%, #0583D2 88%);
  --brand-tint:   rgba(20,103,230,0.09);
  --brand-tint-2: rgba(20,103,230,0.16);
  --brand-line:   rgba(20,103,230,0.28);
  --ring:         rgba(20,103,230,0.30);

  /* Support */
  --ok:           #0B8A5C;
  --ok-tint:      rgba(11,138,92,0.12);
  --warn:         #B45309;
  --warn-tint:    rgba(180,83,9,0.12);
  --violet:       #6D5AE6;
  --violet-tint:  rgba(109,90,230,0.11);
  --cyan:         #0891B2;
  --cyan-tint:    rgba(8,145,178,0.11);

  /* Lines & cards */
  --line:         #E3E9F2;
  --line-strong:  #CFDAE9;
  --card:         #FFFFFF;
  --card-line:    #E3E9F2;
  --shadow-1:     0 1px 2px rgba(11,21,38,0.05), 0 8px 24px -12px rgba(11,21,38,0.10);
  --shadow-2:     0 2px 4px rgba(11,21,38,0.05), 0 24px 48px -16px rgba(11,21,38,0.16);
  --shadow-brand: 0 8px 24px -8px rgba(20,103,230,0.45);

  /* Type */
  --font-display: 'Sora', 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Geometry */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 16px;  --r-xl: 22px;  --r-2xl: 28px;
  --container: 1160px;
  --nav-h: 68px;
  --pad-section: clamp(76px, 10vw, 136px);

  /* Motion */
  --ease:      0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 2 · BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  transition: background var(--ease-slow), color var(--ease-slow);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--brand-tint-2); }

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

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 999;
  background: var(--brand); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  font-weight: 600; font-size: 14px;
  transition: top var(--ease);
}
.skip-link:focus { top: 0; }

/* ── 3 · TYPE ───────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); color: var(--text-1); }

h1 { font-size: clamp(2.5rem, 5.6vw, 4rem);     font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem);   font-weight: 700; line-height: 1.14; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem);   font-weight: 600; line-height: 1.3;  letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; font-weight: 650; line-height: 1.4; letter-spacing: -0.005em; }

p { color: var(--text-2); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--text-2); }

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}

/* ── 4 · LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 48px);
}
.section { padding: var(--pad-section) 0; }
.section-alt { background: var(--bg-sunken); }

.section-head { max-width: 760px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.section-head p { margin-top: 16px; font-size: clamp(1rem, 1.4vw, 1.12rem); }

/* ── 5 · BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 15px 26px; border-radius: 12px;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform var(--ease); font-weight: 700; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(20,103,230,0.55); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  color: var(--text-1);
}
.btn-ghost:hover { border-color: var(--brand-line); background: var(--brand-tint); transform: translateY(-2px); }

.btn-on-deep {
  background: #fff; color: #0B1526;
}
.btn-on-deep:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(0,0,0,0.5); }
.btn-deep-ghost {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
}
.btn-deep-ghost:hover { background: rgba(255,255,255,0.13); transform: translateY(-2px); }

/* ── 6 · NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease-slow), background var(--ease-slow);
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--nav-h);
}
.nav-brand a { display: flex; align-items: center; }
.nav-brand img { height: 26px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.nav-links a {
  display: inline-block;
  font-size: 14.5px; font-weight: 550; color: var(--text-2);
  padding: 8px 14px; border-radius: 999px;
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover { color: var(--text-1); background: var(--bg-sunken); }
.nav-links a.nav-active { color: var(--brand); background: var(--brand-tint); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
  background: var(--brand-grad); color: #fff;
  box-shadow: var(--shadow-brand);
  transition: transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); }

.nav-burger {
  display: none;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  place-items: center;
}
.nav-burger svg { width: 18px; height: 18px; stroke: var(--text-1); stroke-width: 2; stroke-linecap: round; fill: none; }

@media (max-width: 880px) {
  .nav-burger { display: grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-2);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--ease-slow), opacity var(--ease-slow);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; border-radius: 10px; font-size: 15.5px; }
}

/* ── 7 · HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
/* layered ambient backdrop */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 480px at 78% 18%, var(--brand-tint), transparent 65%),
    radial-gradient(560px 420px at 8% 86%, var(--cyan-tint), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(640px 480px at 72% 30%, rgba(0,0,0,0.5), transparent 72%);
  -webkit-mask-image: radial-gradient(640px 480px at 72% 30%, rgba(0,0,0,0.5), transparent 72%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.hero-text h1 { margin: 0 0 22px; }
.hero-text .lead { max-width: 520px; margin-bottom: 28px; }
.hero-text .lead strong { color: var(--text-1); font-weight: 650; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--card-line);
  padding: 9px 16px; border-radius: 999px;
}
.hp-check {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ok-tint); color: var(--ok);
  font-size: 10px; font-weight: 800;
}

/* hero artwork */
.hero-visual { position: relative; }
.hero-hub { width: 100%; height: auto; }
.hero-hub .hub-node-bg   { fill: var(--bg-raised); stroke: var(--line-strong); stroke-width: 1.4; }
.hero-hub .hub-icon      { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-hub .hub-icon-soft { fill: var(--brand-tint); stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-hub .hub-label     { font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: var(--text-2); }
.hero-hub .hub-link      { stroke: var(--brand); stroke-width: 1.5; opacity: 0.4; }
.hero-hub .hub-ring      { stroke: var(--brand-line); stroke-dasharray: 3 7; fill: none; }
.hero-hub .hub-halo      { opacity: 0.5; }

@keyframes hubFlow  { to { stroke-dashoffset: -134; } }
@keyframes hubPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.7; } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
}

/* ── 8 · SHIFT CARDS ────────────────────────────────────────── */
.shift-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shift-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl);
  padding: 30px 28px 26px;
  box-shadow: var(--shadow-1);
  transition: transform var(--ease-slow), box-shadow var(--ease-slow), border-color var(--ease-slow);
  display: flex; flex-direction: column; gap: 12px;
}
.shift-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--brand-line); }
.shift-num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--brand); letter-spacing: 0.1em;
}
.shift-card h3 { font-size: 1.18rem; }
.shift-card p { font-size: 0.95rem; line-height: 1.6; }
.shift-art {
  margin-top: auto; padding-top: 18px;
}
.shift-art svg { width: 100%; height: auto; }
.shift-art .sa-line   { stroke: var(--line-strong); stroke-width: 1.4; fill: none; }
.shift-art .sa-brand  { stroke: var(--brand); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.shift-art .sa-fill   { fill: var(--brand-tint); }
.shift-art .sa-chip   { fill: var(--bg-sunken); stroke: var(--line-strong); stroke-width: 1.2; }
.shift-art .sa-ok     { stroke: var(--ok); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.shift-art .sa-text   { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; fill: var(--text-3); }
.shift-art .sa-text-b { font-family: var(--font-body); font-size: 11px; font-weight: 600; fill: var(--text-1); }

@media (max-width: 880px) { .shift-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* capability index chips */
.cap-index {
  margin-top: clamp(48px, 6vw, 72px);
  text-align: center;
}
.cap-index h3 { margin-bottom: 24px; }
.cap-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; }
.cap-tag {
  display: inline-flex; align-items: center;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--card-line);
  padding: 10px 18px; border-radius: 999px;
  transition: color var(--ease), border-color var(--ease), background var(--ease), transform var(--ease);
}
.cap-tag:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-tint); transform: translateY(-2px); }

/* ── 9 · FEATURE SECTIONS ───────────────────────────────────── */
/* split rows */
.feature { padding: clamp(56px, 8vw, 104px) 0; }
.feature-inner {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.feature-rev .feature-inner { grid-template-columns: 1.08fr 0.92fr; }
.feature-rev .feature-copy  { order: 2; }
.feature-rev .feature-visual{ order: 1; }

.feature-copy h2 { margin-bottom: 18px; }
.feature-copy .body p { margin-bottom: 14px; font-size: 1rem; line-height: 1.7; }

.feature-kps { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.feature-kps li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem; line-height: 1.55; color: var(--text-2);
}
.feature-kps li strong { color: var(--text-1); font-weight: 600; }
.feature-kps li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 6px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
}
.feature-kps li::after {
  content: ""; position: absolute; left: 5px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.example-block {
  margin-top: 24px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.example-block .ex-tag {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand);
  display: block; margin-bottom: 8px;
}
.example-block .ex-q { font-size: 0.95rem; font-style: italic; color: var(--text-1); display: block; margin-bottom: 8px; }
.example-block .ex-a { font-size: 0.9rem; line-height: 1.6; color: var(--text-2); }

@media (max-width: 980px) {
  .feature-inner, .feature-rev .feature-inner { grid-template-columns: 1fr; gap: 36px; }
  .feature-rev .feature-copy { order: 1; }
  .feature-rev .feature-visual { order: 2; }
  .feature-visual { max-width: 600px; }
}

/* full-width tier-1 sections */
.tier1 { padding: clamp(64px, 9vw, 120px) 0; }
.tier1-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 56px); text-align: center; }
.tier1-head h2 { margin-bottom: 16px; }
.tier1-head p { font-size: clamp(1rem, 1.4vw, 1.12rem); }
.tier1-visual { max-width: 1020px; margin: 0 auto; }

/* shared "device frame" for product mocks */
.frame {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunken);
}
.frame-dots { display: flex; gap: 6px; }
.frame-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.frame-title {
  margin-left: 10px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 550; color: var(--text-3);
}
.frame-badge {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ok); background: var(--ok-tint);
  padding: 4px 10px; border-radius: 999px;
}

/* ── 10 · COMMAND CENTRE MOCK ───────────────────────────────── */
.cc-body {
  display: grid; grid-template-columns: 1.45fr 1fr;
  gap: 0;
}
.cc-chat { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 16px; }
.cc-msg { max-width: 92%; }
.cc-msg-user {
  align-self: flex-end;
  background: var(--brand-grad); color: #fff;
  font-size: 0.92rem; line-height: 1.5; font-weight: 500;
  padding: 12px 18px;
  border-radius: 16px 16px 4px 16px;
  box-shadow: var(--shadow-brand);
}
.cc-msg-ai {
  align-self: flex-start;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  padding: 16px 18px;
  width: 100%;
}
.cc-ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cc-ai-logo {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--brand-grad);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 9px; font-weight: 700; color: #fff;
}
.cc-ai-name { font-size: 12px; font-weight: 650; color: var(--text-1); }
.cc-ai-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-left: auto; }
.cc-msg-ai > p { font-size: 0.88rem; line-height: 1.55; color: var(--text-2); margin-bottom: 12px; }
.cc-msg-ai > p strong { color: var(--text-1); }

.cc-chart { display: flex; align-items: stretch; gap: 8px; height: 84px; padding: 4px 2px 0; margin-bottom: 26px; }
.cc-bar { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--brand-tint); position: relative; min-width: 20px; }
.cc-bar i {
  position: absolute; inset: auto 0 0 0; border-radius: 6px 6px 2px 2px;
  background: var(--brand-grad); display: block;
}
.cc-bar.warn i { background: linear-gradient(180deg, var(--warn), color-mix(in srgb, var(--warn) 70%, transparent)); }
.cc-bar span {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px; color: var(--text-3); padding-top: 5px;
}
.cc-sources { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; margin-top: 6px; border-top: 1px dashed var(--line-strong); }
.cc-chip {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 550;
  color: var(--brand); background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  padding: 3px 9px; border-radius: 999px;
}
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-action {
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: var(--card);
  border: 1px solid var(--brand-line);
  padding: 8px 14px; border-radius: 999px;
  transition: background var(--ease);
}
.cc-action:hover { background: var(--brand-tint); }
.cc-action.primary { background: var(--brand-grad); color: #fff; border-color: transparent; }

.cc-side {
  border-left: 1px solid var(--line);
  background: var(--bg-sunken);
  padding: clamp(20px, 3vw, 26px);
  display: flex; flex-direction: column; gap: 12px;
}
.cc-side-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 2px;
}
.cc-kpi {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.cc-kpi-label { font-size: 11.5px; font-weight: 550; color: var(--text-3); margin-bottom: 4px; }
.cc-kpi-value { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--text-1); line-height: 1.1; }
.cc-kpi-delta { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; margin-top: 4px; display: inline-block; }
.cc-kpi-delta.up   { color: var(--ok); }
.cc-kpi-delta.warn { color: var(--warn); }

@media (max-width: 760px) {
  .cc-body { grid-template-columns: 1fr; }
  .cc-side { border-left: none; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .cc-side > .cc-side-label { width: 100%; }
  .cc-kpi { flex: 1; min-width: 140px; }
}

/* ── 11 · DIAGRAM SVG (orchestration / governance / flow) ───── */
.diagram { width: 100%; height: auto; }
.diagram .d-node      { fill: var(--card); stroke: var(--card-line); stroke-width: 1.3; }
.diagram .d-node-soft { fill: var(--bg-sunken); stroke: var(--line); stroke-width: 1.2; }
.diagram .d-node-hot  { fill: var(--brand-tint); stroke: var(--brand-line); stroke-width: 1.3; }
.diagram .d-link      { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.diagram .d-link-hot  { stroke: var(--brand); stroke-width: 1.6; fill: none; opacity: 0.55; }
.diagram .d-flow      { stroke: var(--brand); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-dasharray: 3 42; animation: hubFlow 2.8s linear infinite; }
.diagram .d-title     { font-family: var(--font-body); font-size: 13px; font-weight: 650; fill: var(--text-1); }
.diagram .d-label     { font-family: var(--font-body); font-size: 11.5px; font-weight: 550; fill: var(--text-2); }
.diagram .d-micro     { font-family: var(--font-mono); font-size: 9.5px; font-weight: 550; fill: var(--text-3); letter-spacing: 0.04em; }
.diagram .d-micro-b   { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; fill: var(--brand); letter-spacing: 0.04em; }
.diagram .d-icon      { fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.diagram .d-ok        { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diagram .d-ok-text   { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; fill: var(--ok); }
.diagram .d-brand-fill{ fill: var(--brand); }
.diagram .d-grad-fill { fill: url(#dGrad); }
.diagram .d-on-grad   { fill: #fff; }

/* ── 12 · KNOWLEDGE / RESEARCH / VOICE / STUDIO MOCKS ───────── */
/* knowledge sources → answer */
.kn-wrap { display: flex; flex-direction: column; gap: 14px; }
.kn-sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kn-source {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  padding: 12px 10px; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--text-2);
}
.kn-source em { display: block; font-style: normal; font-size: 9px; color: var(--text-3); font-weight: 500; margin-top: 3px; }
.kn-route {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand);
}
.kn-route::before, .kn-route::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-line));
}
.kn-route::after { background: linear-gradient(90deg, var(--brand-line), transparent); }
.kn-answer {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--r-lg); padding: 20px 22px;
  box-shadow: var(--shadow-1);
}
.kn-answer-q { font-size: 0.92rem; font-style: italic; color: var(--text-1); margin-bottom: 14px; }
.kn-clause {
  background: var(--brand-tint);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.88rem; line-height: 1.6; color: var(--text-1);
  margin-bottom: 12px;
}
.kn-cite { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kn-cite-label { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-right: 4px; }

/* research pipeline */
.rs-wrap { display: flex; flex-direction: column; gap: 14px; }
.rs-steps { display: flex; gap: 8px; }
.rs-step {
  flex: 1; text-align: center;
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--r-md); padding: 12px 6px 10px;
  position: relative;
}
.rs-step.done { border-color: var(--brand-line); background: var(--brand-tint); }
.rs-step-num { font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: var(--brand); display: block; margin-bottom: 3px; }
.rs-step-name { font-size: 11px; font-weight: 650; color: var(--text-1); }
.rs-report {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--r-lg); padding: 22px 24px;
  box-shadow: var(--shadow-1);
}
.rs-report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rs-report-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-1); }
.rs-lines { display: flex; flex-direction: column; gap: 8px; }
.rs-line { height: 8px; border-radius: 4px; background: var(--bg-sunken); }
.rs-line.w92 { width: 92%; } .rs-line.w80 { width: 80%; } .rs-line.w66 { width: 66%; }
.rs-line.hot { background: var(--brand-tint-2); }
.rs-foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }

/* voice call mock */
.vc-card {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--r-xl); padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 16px;
  max-width: 520px; margin: 0 auto;
}
.vc-head { display: flex; align-items: center; gap: 12px; }
.vc-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-grad);
  display: grid; place-items: center; color: #fff;
}
.vc-avatar svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vc-who { font-weight: 650; font-size: 0.95rem; color: var(--text-1); }
.vc-status { font-family: var(--font-mono); font-size: 10.5px; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.vc-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: hubPulse 1.8s ease-in-out infinite; }
.vc-timer { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.vc-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 56px; }
.vc-wave i {
  width: 4px; border-radius: 2px;
  background: var(--brand);
  animation: vcWave 1.1s ease-in-out infinite;
}
@keyframes vcWave { 0%, 100% { transform: scaleY(0.45); opacity: 0.55; } 50% { transform: scaleY(1); opacity: 1; } }
.vc-line { font-size: 0.92rem; line-height: 1.55; color: var(--text-2); padding: 12px 16px; border-radius: var(--r-md); }
.vc-line.caller { background: var(--bg-sunken); border: 1px solid var(--line); }
.vc-line.agent  { background: var(--brand-tint); border: 1px solid var(--brand-line); color: var(--text-1); }
.vc-line b { display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 4px; }
.vc-line.agent b { color: var(--brand); }
.vc-trace { display: flex; flex-wrap: wrap; gap: 6px; }

/* agent studio mock */
.as-body { display: grid; grid-template-columns: 1fr 1.1fr; }
.as-config { padding: clamp(18px, 2.6vw, 26px); display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); }
.as-field-label { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 6px; display: block; }
.as-select {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-sunken); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 14px;
  font-size: 13px; font-weight: 600; color: var(--text-1);
}
.as-select span:last-child { color: var(--text-3); font-size: 11px; }
.as-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.as-toggles { display: flex; flex-direction: column; gap: 8px; }
.as-toggle { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 550; color: var(--text-2); }
.as-toggle i {
  width: 30px; height: 17px; border-radius: 999px;
  background: var(--brand); position: relative; flex-shrink: 0;
}
.as-toggle i::after {
  content: ""; position: absolute; top: 2.5px; right: 3px;
  width: 12px; height: 12px; border-radius: 50%; background: #fff;
}
.as-deploy {
  margin-top: auto;
  background: var(--brand-grad); color: #fff;
  font-size: 13.5px; font-weight: 650;
  padding: 12px 16px; border-radius: var(--r-sm);
  text-align: center;
  box-shadow: var(--shadow-brand);
}
.as-preview { padding: clamp(18px, 2.6vw, 26px); background: var(--bg-sunken); display: flex; flex-direction: column; gap: 12px; }
.as-live {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--ok);
}
.as-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: hubPulse 1.8s ease-in-out infinite; }
.as-bubble { font-size: 0.86rem; line-height: 1.55; padding: 11px 15px; border-radius: 13px; max-width: 94%; }
.as-bubble.q { background: var(--card); border: 1px solid var(--card-line); color: var(--text-2); align-self: flex-end; border-bottom-right-radius: 4px; }
.as-bubble.a { background: var(--brand-tint); border: 1px solid var(--brand-line); color: var(--text-1); align-self: flex-start; border-bottom-left-radius: 4px; }
@media (max-width: 760px) {
  .as-body { grid-template-columns: 1fr; }
  .as-config { border-right: none; border-bottom: 1px solid var(--line); }
}

/* production-ready grid */
.pr-wrap { display: flex; flex-direction: column; gap: 14px; }
.pr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pr-tile {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--r-md); padding: 16px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color var(--ease);
}
.pr-tile:hover { border-color: var(--brand-line); }
.pr-tile svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.pr-tile-name { font-size: 13px; font-weight: 650; color: var(--text-1); }
.pr-tile-sub  { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-3); margin-top: 2px; }
.pr-models {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--r-md); padding: 16px 18px;
}
.pr-models-label { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 10px; display: block; }
.pr-models-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── 13 · INTEGRATIONS ──────────────────────────────────────── */
.int-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px;
  max-width: 1080px; margin: 0 auto;
}
.int-tile {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  padding: 16px 10px; text-align: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 650;
  color: var(--text-2); letter-spacing: 0.01em;
  transition: border-color var(--ease), background var(--ease), color var(--ease), transform var(--ease);
}
.int-tile:hover { border-color: var(--brand-line); background: var(--brand-tint); color: var(--brand); transform: translateY(-3px); }
.int-more { background: var(--brand-tint); border-color: var(--brand-line); color: var(--brand); }
@media (max-width: 1080px) { .int-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px)  { .int-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── 14 · COMPARE TABLE ─────────────────────────────────────── */
.cmp-wrap {
  overflow-x: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow-1);
  background: var(--card);
}
.cmp-tbl { width: 100%; border-collapse: collapse; min-width: 760px; table-layout: fixed; }
.cmp-tbl th:first-child, .cmp-tbl td:first-child { width: 21%; }

.cmp-tbl thead th {
  padding: 18px 16px 16px; text-align: left; vertical-align: top;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
}
.cmp-col-name { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.cmp-col-sub  { font-family: var(--font-mono); font-size: 9.5px; line-height: 1.5; color: var(--text-3); font-weight: 500; }

/* highlighted x101 column */
.cmp-tbl .col-x101 { background: var(--brand-tint); border-inline: 1px solid var(--brand-line); }
.cmp-tbl thead .col-x101 { background: var(--brand-tint-2); }
.cmp-tbl thead .col-x101 .cmp-col-name { color: var(--brand); display: flex; align-items: center; gap: 8px; }
.cmp-pill {
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--brand-grad); color: #fff;
  padding: 3px 8px; border-radius: 999px;
}

.cmp-tbl tbody tr { border-bottom: 1px solid var(--line); transition: background var(--ease); }
.cmp-tbl tbody tr:last-child { border-bottom: none; }
.cmp-tbl tbody tr:hover { background: var(--bg-sunken); }
.cmp-tbl tbody tr:hover .col-x101 { background: var(--brand-tint-2); }
.cmp-tbl tbody td { padding: 17px 16px; vertical-align: middle; }

.cmp-row-title { font-size: 13.5px; font-weight: 650; color: var(--text-1); line-height: 1.35; margin-bottom: 3px; }
.cmp-row-sub   { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); line-height: 1.45; }

.cv { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; }
.cv::before {
  flex-shrink: 0; display: inline-grid; place-items: center;
  width: 17px; height: 17px; border-radius: 50%;
  font-size: 9px; font-weight: 800; line-height: 1; margin-top: 1px;
}
.cv-yes  { font-weight: 650; color: var(--ok); }
.cv-yes::before  { content: "✓"; background: var(--ok-tint); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); }
.cv-part { font-weight: 500; color: var(--warn); }
.cv-part::before { content: "◐"; background: var(--warn-tint); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }

.cmp-legend {
  margin-top: 16px; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3);
}

/* ── 15 · CLOSE / CTA BAND ──────────────────────────────────── */
.close-band {
  position: relative;
  background:
    radial-gradient(820px 420px at 50% -8%, rgba(54,163,236,0.28), transparent 62%),
    linear-gradient(145deg, #0A1428 0%, #102040 100%);
  color: var(--text-on-deep);
  padding: clamp(72px, 10vw, 128px) 0;
  overflow: hidden;
}
.close-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(160,190,235,0.18) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(640px 420px at 50% 0%, rgba(0,0,0,0.7), transparent 75%);
  -webkit-mask-image: radial-gradient(640px 420px at 50% 0%, rgba(0,0,0,0.7), transparent 75%);
}
.close-band .container { position: relative; z-index: 1; }
.close-head { text-align: center; max-width: 800px; margin: 0 auto clamp(44px, 6vw, 64px); }
.close-head .eyebrow {
  color: #9CC4FF; background: rgba(122,170,255,0.12); border-color: rgba(122,170,255,0.32);
}
.close-head .eyebrow::before { background: #9CC4FF; }
.close-head h2 { color: #fff; margin-bottom: 16px; }
.close-head p { color: var(--text-on-deep-2); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 620px; margin: 0 auto; }

.close-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 64px); align-items: start;
}
@media (max-width: 900px) { .close-inner { grid-template-columns: 1fr; } }

.close-bullets { display: flex; flex-direction: column; gap: 12px; }
.close-bullet {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(160,190,235,0.16);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: border-color var(--ease), background var(--ease);
}
.close-bullet:hover { border-color: rgba(122,170,255,0.4); background: rgba(255,255,255,0.07); }
.close-bullet-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: rgba(79,141,255,0.16);
  border: 1px solid rgba(122,170,255,0.35);
  display: grid; place-items: center;
}
.close-bullet-icon svg { width: 18px; height: 18px; stroke: #9CC4FF; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.close-bullet h4 { color: #fff; font-size: 0.98rem; margin-bottom: 4px; }
.close-bullet p { font-size: 0.875rem; line-height: 1.55; color: var(--text-on-deep-2); }

/* lead form */
.lead-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(160,190,235,0.22);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 36px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 64px -24px rgba(0,0,0,0.55);
}
.lead-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.lead-card-sub { font-size: 0.9rem; color: var(--text-on-deep-2); margin-bottom: 24px; }
.lead-form { display: flex; flex-direction: column; gap: 15px; }
.lead-field label {
  display: block;
  font-size: 12.5px; font-weight: 600; color: rgba(237,242,251,0.88);
  margin-bottom: 6px;
}
.lead-field .opt { color: rgba(237,242,251,0.45); font-weight: 500; }
.lead-input, .lead-select, .lead-textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(160,190,235,0.26);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff; font-size: 14px; font-family: var(--font-body);
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.lead-input::placeholder, .lead-textarea::placeholder { color: rgba(237,242,251,0.38); }
.lead-input:focus, .lead-select:focus, .lead-textarea:focus {
  outline: none;
  border-color: #6FA3FF;
  background: rgba(255,255,255,0.11);
  box-shadow: 0 0 0 3px rgba(111,163,255,0.22);
}
.lead-textarea { resize: vertical; min-height: 76px; }
.lead-select {
  appearance: none; -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(237,242,251,0.6) 50%),
    linear-gradient(135deg, rgba(237,242,251,0.6) 50%, transparent 50%);
  background-position: calc(100% - 19px) 53%, calc(100% - 14px) 53%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.lead-select option { background: #102040; color: #fff; }
.lead-submit {
  margin-top: 6px;
  background: var(--brand-grad); color: #fff;
  font-size: 15px; font-weight: 650;
  padding: 15px 20px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 28px -8px rgba(20,103,230,0.6);
  transition: transform var(--ease), box-shadow var(--ease);
}
.lead-submit:hover { transform: translateY(-2px); }
.lead-foot { margin-top: 16px; text-align: center; font-size: 12px; color: rgba(237,242,251,0.5); }
.lead-foot a { color: #9CC4FF; text-decoration: underline; }

/* ── 16 · FOOTER ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: clamp(40px, 6vw, 64px) 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-brand img { height: 24px; width: auto; margin-bottom: 10px; }
.footer-brand-sub { font-size: 13px; color: var(--text-3); max-width: 280px; line-height: 1.6; }
.footer-cols { display: flex; gap: clamp(32px, 5vw, 72px); margin-left: auto; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-3); margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: var(--text-2); transition: color var(--ease); }
.footer-col a:hover { color: var(--brand); }
.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding-top: 24px;
}
.footer-copy { font-size: 12.5px; color: var(--text-3); text-align: center; }
.footer-social { display: flex; gap: 8px; justify-self: end; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--text-3);
  transition: color var(--ease), border-color var(--ease), transform var(--ease);
}
.footer-social a:hover { color: var(--brand); border-color: var(--brand-line); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }
@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .footer-brand-sub { max-width: none; }
  .footer-social { justify-self: center; }
}

/* ── 17 · PLATFORM PAGE ─────────────────────────────────────── */
/* architecture layers */
.arch { display: flex; flex-direction: column; gap: 0; max-width: 900px; margin: 0 auto; }
.arch-layer {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-1);
}
.arch-layer.hot {
  background: linear-gradient(145deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  border-color: rgba(122,170,255,0.3);
}
.arch-layer-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.arch-layer-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-1); }
.arch-layer.hot .arch-layer-name { color: #fff; }
.arch-layer-sub { font-size: 12.5px; color: var(--text-3); }
.arch-layer.hot .arch-layer-sub { color: rgba(237,242,251,0.6); }
.arch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-chip {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  background: var(--bg-sunken); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}
.arch-layer.hot .arch-chip {
  background: rgba(122,170,255,0.1); border-color: rgba(122,170,255,0.3); color: #CFE0FF;
}
.arch-chip.glow { background: var(--brand-tint); border-color: var(--brand-line); color: var(--brand); }
.arch-connector {
  display: flex; align-items: center; justify-content: center;
  height: 44px; position: relative;
}
.arch-connector::before {
  content: ""; width: 2px; height: 100%;
  background: linear-gradient(180deg, var(--brand-line), var(--brand));
}
.arch-connector span {
  position: absolute;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand);
  background: var(--bg); padding: 3px 10px;
  border: 1px solid var(--brand-line); border-radius: 999px;
}

/* platform hero sits right under the nav — trim the top padding */
#architecture { padding-top: clamp(28px, 4vw, 52px); }

/* layered architecture (rich) */
.archx {
  max-width: 1000px; margin: 0 auto;
  background: var(--bg-sunken);
  border: 1px solid var(--card-line);
  border-radius: var(--r-2xl);
  padding: clamp(16px, 2.6vw, 30px);
}
.archx-layer {
  border-radius: var(--r-xl);
  padding: clamp(16px, 2.4vw, 24px);
  border: 1.5px solid var(--brand-line);
  background: var(--card);
}
.archx-brain {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand-tint), var(--card) 70%);
}
.archx-systems { border-color: color-mix(in srgb, var(--ok) 42%, transparent); }

.archx-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.archx-num {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--brand-grad); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.archx-systems .archx-num { background: var(--ok); }
.archx-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-1); line-height: 1.2; }
.archx-sub  { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

.archx-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.archx-cards--sys { grid-template-columns: repeat(5, 1fr); }
.archx-card {
  background: var(--bg-raised);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-md);
  padding: 16px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center;
  transition: transform var(--ease), border-color var(--ease);
}
.archx-card:hover { transform: translateY(-3px); }
.archx-card svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.archx-card span { font-size: 12px; font-weight: 650; color: var(--text-1); line-height: 1.25; }
.archx-card.sys { border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.archx-card.sys svg { stroke: var(--ok); }

.archx-brain-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.archx-bcard {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  padding: 14px 12px; text-align: center;
}
.archx-bcard b { display: block; font-family: var(--font-display); font-size: 0.95rem; color: var(--text-1); margin-bottom: 7px; }
.archx-bcard span { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); line-height: 1.8; }

.archx-flow { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 16px 0; }
.archx-flow-down, .archx-flow-up {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  padding: 7px 16px; border-radius: 999px;
}
.archx-flow-down { color: var(--brand); background: var(--brand-tint); border: 1px solid var(--brand-line); }
.archx-flow-up   { color: var(--ok); background: var(--ok-tint); border: 1px solid color-mix(in srgb, var(--ok) 42%, transparent); }

@media (max-width: 820px) {
  .archx-cards, .archx-cards--sys { grid-template-columns: repeat(3, 1fr); }
  .archx-brain-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .archx-cards, .archx-cards--sys { grid-template-columns: repeat(2, 1fr); }
  .archx-flow { flex-direction: column; gap: 8px; }
}

/* six-stage rail */
.stage-rail {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  position: relative;
}
.stage-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  cursor: pointer;
  transition: transform var(--ease-slow), border-color var(--ease-slow), box-shadow var(--ease-slow), opacity var(--ease-slow);
}
.stage-card:hover { transform: translateY(-4px); border-color: var(--brand-line); box-shadow: var(--shadow-1); }
.stage-rail.has-focus .stage-card:not(.is-focused) { opacity: 0.45; }
.stage-card.is-focused {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring), var(--shadow-2);
  transform: translateY(-4px);
}
.stage-num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--brand-tint); border: 1px solid var(--brand-line);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--brand);
  margin-bottom: 10px;
}
.stage-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.stage-desc { font-size: 12px; line-height: 1.55; color: var(--text-2); margin-bottom: 12px; }
.stage-art {
  background: var(--bg-sunken); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px;
  font-family: var(--font-mono); font-size: 10px; line-height: 1.8; color: var(--text-2);
}
.stage-art .k  { color: var(--brand); font-weight: 600; margin-right: 6px; }
.stage-art .n  { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; background: var(--brand-tint); color: var(--brand); font-size: 8.5px; font-weight: 700; margin-right: 6px; }
.stage-art .dot{ display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 7px; }
.stage-art .t  { color: var(--text-3); }
.stage-art .ok { color: var(--ok); font-weight: 700; margin-right: 6px; }
.stage-art .res{ font-weight: 650; color: var(--text-1); font-family: var(--font-body); font-size: 11.5px; }
.stage-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

.query-pill {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 550;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  padding: 10px 20px; border-radius: 999px;
  margin-top: 18px;
}
.rail-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  margin-top: 28px;
}
.rail-foot-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-right: 6px; }

@media (max-width: 1060px) { .stage-rail { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .stage-rail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .stage-rail { grid-template-columns: 1fr; } }

/* generic micro-chip used in many mocks */
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  color: var(--brand); background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}
.chip-ok   { color: var(--ok);   background: var(--ok-tint);   border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.chip-mute { color: var(--text-3); background: var(--bg-sunken); border-color: var(--line); }

/* ── 18 · REVEAL ANIMATION ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

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