/* ============================================================
   Consilium — marketing site
   Built on the Consilium UI design system tokens (colors,
   typography, spacing, radius, shadows, motion). Font stack is
   system-native by design: this site ships zero third-party
   requests (see CSP in <head>), so no Google Fonts CDN is used.
   ============================================================ */


/* ===== tokens/colors (inlined for production) ===== */
/* Consilium UI — Color tokens
   Base ramps (numeric, 50→900) + semantic aliases consumed by components.
   Light theme lives on :root. Dark theme overrides via [data-theme="dark"].
   Toggle with document.documentElement.setAttribute('data-theme','dark'). */

:root {
  /* ---- Base: Primary (blue) ---- */
  --blue-50:  #EFF4FF;
  --blue-100: #DBE7FF;
  --blue-200: #B8CFFF;
  --blue-300: #8AB0FF;
  --blue-400: #5C8DFF;
  --blue-500: #3B5BFF;
  --blue-600: #2A43E0;
  --blue-700: #1F32B3;
  --blue-800: #1A2A8C;
  --blue-900: #16236B;

  /* ---- Base: Neutral (cool graphite) ---- */
  --gray-0:   #FFFFFF;
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --gray-950: #0A0D12;

  /* ---- Base: Semantic hues ---- */
  --green-50:  #EFFBF3;
  --green-500: #16A34A;
  --green-600: #0F8A3D;
  --green-700: #0A6E30;

  --amber-50:  #FFF8EB;
  --amber-500: #D97706;
  --amber-600: #B75E05;
  --amber-700: #92480A;

  --red-50:  #FEF2F2;
  --red-500: #DC2626;
  --red-600: #B91C1C;
  --red-700: #921818;

  /* ---- Semantic: surfaces ---- */
  --surface-app:      var(--gray-50);
  --surface-canvas:   var(--gray-0);
  --surface-card:     var(--gray-0);
  --surface-sunken:   var(--gray-100);
  --surface-overlay:  var(--gray-0);
  --surface-inverse:  var(--gray-900);
  --surface-backdrop: rgba(10, 13, 18, 0.48);

  /* ---- Semantic: text ---- */
  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary:  var(--gray-400);
  --text-disabled:  var(--gray-300);
  --text-inverse:   var(--gray-0);
  --text-link:      var(--blue-600);
  --text-link-hover:var(--blue-700);

  /* ---- Semantic: borders ---- */
  --border-subtle:  var(--gray-200);
  --border-default: var(--gray-300);
  --border-strong:  var(--gray-400);
  --border-focus:   var(--blue-500);

  /* ---- Semantic: brand / accent ---- */
  --accent-primary:        var(--blue-500);
  --accent-primary-hover:  var(--blue-600);
  --accent-primary-active: var(--blue-700);
  --accent-subtle:         var(--blue-50);
  --accent-subtle-border:  var(--blue-200);
  --on-accent:             var(--gray-0);

  /* ---- Semantic: feedback ---- */
  --success-fg: var(--green-600);
  --success-bg: var(--green-50);
  --success-border: #BFE8CC;

  --warning-fg: var(--amber-600);
  --warning-bg: var(--amber-50);
  --warning-border: #F5DBA6;

  --danger-fg: var(--red-600);
  --danger-bg: var(--red-50);
  --danger-border: #F3C3C3;

  --info-fg: var(--blue-600);
  --info-bg: var(--blue-50);
  --info-border: var(--blue-200);

  /* ---- Semantic: interactive states (neutral surfaces) ---- */
  --hover-overlay:  rgba(17, 24, 39, 0.04);
  --active-overlay: rgba(17, 24, 39, 0.08);
  --focus-ring:     rgba(59, 91, 255, 0.35);
}

[data-theme="dark"] {
  --surface-app:      var(--gray-950);
  --surface-canvas:   #0E1116;
  --surface-card:     #12151B;
  --surface-sunken:   #171B22;
  --surface-overlay:  #171B22;
  --surface-inverse:  var(--gray-0);
  --surface-backdrop: rgba(0, 0, 0, 0.6);

  --text-primary:   #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-tertiary:  #6B7280;
  --text-disabled:  #454B56;
  --text-inverse:   var(--gray-900);
  --text-link:      var(--blue-400);
  --text-link-hover:var(--blue-300);

  --border-subtle:  #1F242C;
  --border-default: #2A303A;
  --border-strong:  #3A4149;
  --border-focus:   var(--blue-400);

  --accent-primary:        var(--blue-500);
  --accent-primary-hover:  var(--blue-400);
  --accent-primary-active: var(--blue-300);
  --accent-subtle:         rgba(59, 91, 255, 0.14);
  --accent-subtle-border:  rgba(59, 91, 255, 0.32);
  --on-accent:             var(--gray-0);

  --success-fg: #4ADE80;
  --success-bg: rgba(22, 163, 74, 0.12);
  --success-border: rgba(74, 222, 128, 0.28);

  --warning-fg: #FBBF24;
  --warning-bg: rgba(217, 119, 6, 0.14);
  --warning-border: rgba(251, 191, 36, 0.28);

  --danger-fg: #F87171;
  --danger-bg: rgba(220, 38, 38, 0.14);
  --danger-border: rgba(248, 113, 113, 0.28);

  --info-fg: #93B4FF;
  --info-bg: rgba(59, 91, 255, 0.14);
  --info-border: rgba(59, 91, 255, 0.32);

  --hover-overlay:  rgba(255, 255, 255, 0.06);
  --active-overlay: rgba(255, 255, 255, 0.1);
  --focus-ring:     rgba(92, 141, 255, 0.4);
}


/* ===== tokens/typography (inlined for production) ===== */
/* Consilium UI — Typography tokens */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale — 8px-grid-friendly line heights, tight enterprise tracking */
  --text-display-size: 40px;
  --text-display-line: 48px;
  --text-display-weight: 700;
  --text-display-tracking: -0.02em;

  --text-h1-size: 30px;
  --text-h1-line: 38px;
  --text-h1-weight: 700;
  --text-h1-tracking: -0.015em;

  --text-h2-size: 24px;
  --text-h2-line: 32px;
  --text-h2-weight: 600;
  --text-h2-tracking: -0.01em;

  --text-h3-size: 18px;
  --text-h3-line: 26px;
  --text-h3-weight: 600;
  --text-h3-tracking: -0.005em;

  --text-body-lg-size: 16px;
  --text-body-lg-line: 24px;
  --text-body-lg-weight: 400;

  --text-body-size: 14px;
  --text-body-line: 20px;
  --text-body-weight: 400;

  --text-body-medium-weight: 500;

  --text-caption-size: 12px;
  --text-caption-line: 16px;
  --text-caption-weight: 500;
  --text-caption-tracking: 0.01em;

  --text-mono-size: 13px;
  --text-mono-line: 20px;
}


/* ===== tokens/spacing (inlined for production) ===== */
/* Consilium UI — Spacing (strict 8px grid, 4px half-step for tight UI) */

:root {
  --space-0:  0px;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --layout-page-margin: 32px;
  --layout-sidebar-width: 264px;
  --layout-content-max: 1120px;
}


/* ===== tokens/radius (inlined for production) ===== */
/* Consilium UI — Corner radii (crisp, restrained — not overly rounded) */

:root {
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
}


/* ===== tokens/shadows (inlined for production) ===== */
/* Consilium UI — Elevation
   Shadows are subtle and cool-toned; used sparingly (cards, popovers, modals).
   No inner glows or colored shadows. Dark theme trades shadow for a lighter border. */

:root {
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.08), 0 2px 4px -2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
  --shadow-xl: 0 20px 24px -4px rgba(16, 24, 40, 0.1), 0 8px 8px -4px rgba(16, 24, 40, 0.04);

  --shadow-focus-ring: 0 0 0 3px var(--focus-ring);
}

[data-theme="dark"] {
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 16px -4px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 24px -4px rgba(0, 0, 0, 0.55);
}


/* ===== tokens/motion (inlined for production) ===== */
/* Consilium UI — Motion
   Motion is quiet and functional: short durations, standard easing, no bounce. */

:root {
  --ease-standard: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --ease-in: cubic-bezier(0.4, 0, 1, 1); /* @kind other */
  --ease-out: cubic-bezier(0, 0, 0.2, 1); /* @kind other */

  --duration-fast: 120ms; /* @kind other */
  --duration-base: 160ms; /* @kind other */
  --duration-slow: 240ms; /* @kind other */
}



:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 68px;
  --container: 1200px;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-slower: 480ms;

  /* Apple (dark canvas) + matte controls */
  --apple-bg: #070707;
  --apple-text: #f5f5f7;
  --apple-muted: #86868b;
  --matte-white: #f5f5f7;
  --matte-black: #1d1d1d;
  --matte-border-dark: rgba(255, 255, 255, 0.22);
  --matte-border-light: rgba(0, 0, 0, 0.14);

  /* Armani (light canvas) */
  --armani-bg: #ffffff;
  --armani-alt: #f7f7f7;
  --armani-text: #111111;
  --armani-muted: #6e6e73;
  --armani-border: #e8e8e8;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}
html[data-theme="dark"] { color-scheme: dark; }
html:not([data-theme="dark"]) { color-scheme: light; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47;
  font-weight: 400;
  color: var(--armani-text);
  background: var(--armani-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  overflow-x: clip;
  transition: background var(--duration-slow) var(--ease-standard), color var(--duration-slow) var(--ease-standard);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container { width: min(var(--container), 100%); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1, h2 { letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-5);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--armani-muted);
}

.section-head { max-width: 720px; margin: 0 0 clamp(48px, 6vw, 80px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-5);
  color: var(--armani-text);
}
.section-head p {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
  font-weight: 300;
  color: var(--armani-muted);
  max-width: 36em;
}
.section-head.center p { margin-inline: auto; }

section { padding: clamp(80px, 11vw, 140px) 0; }
.section-alt { background: var(--armani-alt); }
.section-inverse {
  background: var(--apple-bg);
  color: var(--apple-text);
  font-family: var(--font-display);
}
.section-alt, .section-inverse { position: relative; }
.section-alt::before, .section-inverse::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 50%, transparent);
}
.section-inverse::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05) 50%, transparent); }
main.stack-scroll > section.hero::before,
main.stack-scroll > section.section-inverse::before,
main.stack-scroll > section.section-contact::before {
  opacity: 0.4;
}
.section-inverse .section-head { max-width: 820px; }
.section-inverse .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--apple-text);
}
.section-inverse .section-head p {
  font-size: clamp(19px, 2.8vw, 28px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--apple-muted);
  max-width: 28em;
}
.section-inverse .eyebrow { color: var(--apple-muted); font-weight: 400; }

.text-block-heading {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--space-5);
  color: var(--armani-text);
}
.text-block-lede {
  color: var(--armani-muted);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.55;
  font-weight: 300;
  max-width: 34em;
}

/* ---------------------------------------------------------- */
/* Beta page                                                    */
/* ---------------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-6);
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
@media (prefers-reduced-motion: no-preference) { .status-pill .dot { animation: beta-blink 2s ease-in-out infinite; } }

/* roadmap phase status tags */
.phase-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-tertiary); margin-top: 2px; }
.timeline-row.is-filled .phase-tag { color: var(--success-fg); }
.timeline-row.is-active .phase-tag { color: var(--accent-primary); }

.preview-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-950);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 320px;
}
.preview-sidebar { background: rgba(255,255,255,0.03); border-right: 1px solid rgba(255,255,255,0.08); padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.preview-sidebar .ps-logo { display: flex; align-items: center; gap: 8px; color: #F3F4F6; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.preview-sidebar .ps-logo img { width: 18px; height: 18px; }
.preview-row {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 500;
  color: #B6BEC9;
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
}
.preview-row.is-active { background: rgba(59,91,255,0.18); border-color: rgba(59,91,255,0.35); color: #A8C0FF; font-weight: 600; }
.preview-main { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.preview-bubble { max-width: 76%; padding: 10px 14px; border-radius: var(--radius-md); font: 13px/1.5 var(--font-mono); color: #C9D1D9; background: rgba(255,255,255,0.05); }
.preview-bubble.is-agent { align-self: flex-start; border: 1px solid rgba(59,91,255,0.25); }
.preview-bubble.is-human { align-self: flex-end; background: var(--accent-primary); color: #fff; font-family: var(--font-sans); }
.preview-caption { text-align: center; margin-top: var(--space-3); font-size: 12.5px; color: var(--text-tertiary); }

/* dedicated light-theme treatment: a credible light application frame */
html:not([data-theme="dark"]) .preview-panel {
  background: var(--surface-card);
  border-color: var(--border-default);
  box-shadow: var(--shadow-lg);
}
html:not([data-theme="dark"]) .preview-sidebar {
  background: var(--gray-100);
  border-right-color: var(--border-subtle);
}
html:not([data-theme="dark"]) .preview-sidebar .ps-logo { color: var(--gray-900); }
html:not([data-theme="dark"]) .preview-row {
  color: var(--gray-600);
  background: rgba(17, 24, 39, 0.04);
}
html:not([data-theme="dark"]) .preview-row.is-active {
  background: var(--accent-subtle);
  border-color: var(--accent-subtle-border);
  color: var(--accent-primary);
}
html:not([data-theme="dark"]) .preview-main { background: var(--gray-50); }
html:not([data-theme="dark"]) .preview-bubble {
  background: var(--gray-0);
  border: 1px solid var(--border-subtle);
  color: var(--gray-700);
}
html:not([data-theme="dark"]) .preview-bubble.is-agent { border-color: var(--accent-subtle-border); }
html:not([data-theme="dark"]) .preview-bubble.is-human { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; }

.future-tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--text-tertiary); background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 3px 8px; margin-bottom: var(--space-4); }

@media (max-width: 768px) {
  .preview-panel { grid-template-columns: 1fr; min-height: 0; }
  .preview-sidebar {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    gap: 6px;
    scrollbar-width: none;
  }
  .preview-sidebar::-webkit-scrollbar { display: none; }
  .preview-sidebar .ps-logo { flex: 0 0 auto; margin-bottom: 0; margin-right: 4px; }
  .preview-row { flex: 0 0 auto; white-space: nowrap; height: 32px; padding: 0 12px; }
  .preview-main { padding: 16px 18px; min-width: 0; }
  .preview-bubble { max-width: 92%; font-size: 12px; line-height: 1.45; word-break: break-word; }
  .preview-caption { font-size: 12px; padding-inline: 4px; }
}
html:not([data-theme="dark"]) .preview-sidebar { border-bottom-color: var(--border-subtle); }

@media (max-width: 480px) {
  .preview-main { padding: 14px 16px; }
  .preview-bubble { max-width: 100%; }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 var(--space-6);
  border-radius: 980px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: none;
  transition: background var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.btn:active { transform: none; }
.btn-primary { background: var(--matte-black); color: var(--matte-white); border: 1px solid var(--matte-black); }
.btn-primary:hover { background: #2a2a2a; color: var(--matte-white); transform: none; box-shadow: none; }
.btn-secondary { background: var(--matte-white); color: var(--matte-black); border: 1px solid var(--matte-border-light); }
.btn-secondary:hover { background: #ebebed; color: var(--matte-black); transform: none; border-color: var(--matte-black); }
.hero .btn-primary,
.cta-banner .btn-primary,
.section-inverse .btn-primary { background: var(--matte-white); color: var(--matte-black); border-color: var(--matte-white); }
.hero .btn-primary:hover,
.cta-banner .btn-primary:hover,
.section-inverse .btn-primary:hover { background: #e8e8ed; color: var(--matte-black); }
.btn-on-dark {
  background: transparent;
  color: var(--matte-white);
  border: 1px solid var(--matte-border-dark);
  padding-inline: var(--space-6);
  height: 44px;
  font-size: 15px;
}
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.06); color: var(--matte-white); transform: none; text-decoration: none; }
.hero .btn { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; border-radius: 980px; }
.btn-lg { height: 48px; padding: 0 var(--space-8); font-size: 15px; }

/* ---------------------------------------------------------- */
/* Nav                                                         */
/* ---------------------------------------------------------- */
.global-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--duration-slow) var(--ease-premium), background var(--duration-slow) var(--ease-premium);
}
.global-nav.scrolled {
  background: rgba(0, 0, 0, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  z-index: 260;
  background: rgba(245, 245, 247, 0.55);
  transition: width 0.1s linear, opacity var(--duration-base) var(--ease-standard);
  opacity: 0;
  pointer-events: none;
}
.scroll-progress.is-visible { opacity: 1; }
.global-nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--apple-text);
}
.nav-brand img { width: 22px; height: 22px; flex-shrink: 0; opacity: 0.95; }
.nav-brand:hover { color: var(--apple-text); opacity: 0.82; }
.nav-links { display: flex; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  color: var(--apple-muted);
  white-space: nowrap;
  transition: color var(--duration-base) var(--ease-standard);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 3px;
  height: 1.5px;
  background: var(--apple-text);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-slow) var(--ease-premium);
}
.nav-links a:hover { color: var(--apple-text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: var(--space-3); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--apple-muted);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--apple-text); transform: none; }
.icon-btn svg { width: 17px; height: 17px; }
.theme-toggle { position: relative; }
.theme-toggle svg { position: absolute; top: 50%; left: 50%; margin: -8.5px 0 0 -8.5px; transition: transform var(--duration-slow) var(--ease-premium), opacity var(--duration-slow) var(--ease-premium); }
.theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-70deg) scale(0.5); }
html[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(70deg) scale(0.5); }
html[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

.nav-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--accent-subtle-border);
  transition: background var(--duration-base) var(--ease-premium), transform var(--duration-base) var(--ease-premium);
}
.nav-beta-badge:hover { background: var(--accent-subtle-border); color: var(--accent-primary); transform: translateY(-1px); }
.beta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-primary); }
@media (prefers-reduced-motion: no-preference) { .beta-dot { animation: beta-blink 2s ease-in-out infinite; } }
@keyframes beta-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-md); padding: 3px; }
.lang-switch a {
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--apple-muted);
}
.lang-switch a:hover { color: var(--apple-text); }
.lang-switch a[aria-current="page"] { color: var(--apple-bg); background: var(--apple-text); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.42); }
.nav-toggle svg { width: 20px; height: 20px; color: #ffffff; stroke: currentColor; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .global-nav-inner {
    flex-wrap: nowrap;
    gap: var(--space-3);
    min-width: 0;
  }
  .nav-brand { flex-shrink: 0; min-width: 0; }
  .nav-right {
    flex-shrink: 0;
    margin-left: auto;
    gap: var(--space-2);
  }
  /* CTA + Beta live in hero / mobile menu — keeps header single-line */
  .nav-right > .btn,
  .nav-beta-badge { display: none; }
  .icon-btn,
  .nav-toggle {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .lang-switch { flex-shrink: 0; }
  .lang-switch a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

.mobile-nav {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 190;
  background: var(--apple-bg);
  padding: var(--space-6) 24px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-premium), transform var(--duration-slow) var(--ease-premium);
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a {
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--apple-text);
  transition: color var(--duration-base) var(--ease-standard), padding-left var(--duration-base) var(--ease-premium);
}
.mobile-nav a:hover { color: var(--accent-primary); padding-left: 8px; }
.mobile-nav .btn { margin-top: var(--space-4); width: 100%; }

/* ---------------------------------------------------------- */
/* Hero — Orbit Nodes                                          */
/* ---------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(72px, 10vw, 120px);
  background: var(--apple-bg);
  color: var(--apple-text);
  font-family: var(--font-display);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(59,91,255,0.18), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: ambient-breathe 11s var(--ease-standard) infinite; }
}
@keyframes ambient-breathe {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
}
.hero-copy { max-width: 560px; will-change: transform; }
.hero-copy .eyebrow { color: var(--apple-muted); font-size: 12px; letter-spacing: 0.12em; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 9.5vw, 96px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 var(--space-6);
  color: var(--apple-text);
}
.hero-sub {
  font-size: clamp(19px, 2.8vw, 28px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--apple-muted);
  margin: 0 0 var(--space-10);
  max-width: 22em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-10); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.hero-trust-item dt { font-size: 14px; font-weight: 600; color: var(--apple-text); margin-bottom: 4px; letter-spacing: -0.01em; }
.hero-trust-item dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--apple-muted); max-width: 20em; }

/* orbit visual */
.orbit-wrap {
  position: relative;
  aspect-ratio: 1;
  width: min(560px, 100%);
  margin-inline: auto;
  transition: transform 0.5s var(--ease-premium);
  will-change: transform;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(59,91,255,0.22);
}
.orbit-ring.r2 { inset: 15%; border-color: rgba(156,163,175,0.16); }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-svg .link { stroke: rgba(156,163,175,0.3); stroke-width: 1; }
.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 25%;
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: #12151B;
  border: 1px solid rgba(59,91,255,0.45);
  box-shadow: 0 0 0 10px rgba(59,91,255,0.06), var(--shadow-xl);
  display: grid;
  place-items: center;
  transition: box-shadow 0.4s var(--ease-standard);
}
.orbit-core::after {
  content: "";
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #93b4ff, var(--accent-primary) 55%, #1a2a8c);
  box-shadow: 0 0 24px rgba(59, 91, 255, 0.45);
}
.orbit-node {
  position: absolute;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #171B22;
  border: 1px solid rgba(59,91,255,0.4);
  display: grid;
  place-items: center;
  font: 700 clamp(9px,1.4vw,12px)/1 var(--font-mono);
  color: #E5E7EB;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-premium), border-color 0.3s var(--ease-standard);
}
.orbit-node:hover { transform: scale(1.12); border-color: rgba(59,91,255,0.8); }
.orbit-node[data-pos="1"] { top: 2%; left: 50%; transform: translate(-50%,0); }
.orbit-node[data-pos="1"]:hover { transform: translate(-50%,0) scale(1.12); }
.orbit-node[data-pos="2"] { top: 24%; right: 0%; }
.orbit-node[data-pos="3"] { bottom: 6%; right: 12%; }
.orbit-node[data-pos="4"] { bottom: 6%; left: 12%; }
.orbit-node[data-pos="5"] { top: 24%; left: 0%; }

@media (prefers-reduced-motion: no-preference) {
  .orbit-ring { animation: orbit-spin 40s linear infinite; }
  .orbit-ring.r2 { animation: orbit-spin-rev 30s linear infinite; }
  .orbit-core { animation: orbit-pulse 5s var(--ease-standard) infinite; }
}
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-spin-rev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes orbit-pulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(59,91,255,0.06), var(--shadow-xl); }
  50% { box-shadow: 0 0 0 16px rgba(59,91,255,0.1), var(--shadow-xl); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .orbit-wrap { width: min(380px, 80vw); }
}

/* ---------------------------------------------------------- */
/* Feature / platform grid                                     */
/* ---------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}
.feature-card {
  background: var(--armani-bg);
  border: 1px solid var(--armani-border);
  border-radius: 0;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: none;
  transition: border-color var(--duration-slow) var(--ease-premium), background var(--duration-slow) var(--ease-premium);
}
.feature-card:hover { border-color: var(--armani-text); background: var(--armani-alt); transform: none; box-shadow: none; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent-primary);
  margin-bottom: var(--space-4);
  transition: transform var(--duration-slow) var(--ease-premium);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 15px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 var(--space-3); color: var(--armani-text); }
.feature-card p { font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--armani-muted); margin: 0; }

/* ---------------------------------------------------------- */
/* AI Council — full-height board                              */
/* ---------------------------------------------------------- */
.council-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(32px, 6vh, 56px);
  flex: 1;
  min-height: 0;
}
#agents .section-head { margin-bottom: 0; }
.council-board {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 48px);
  flex: 1;
  justify-content: center;
}
.council-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 16px);
}
.council-role {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(28px, 4vh, 44px) clamp(16px, 2vw, 22px);
  min-height: clamp(168px, 24vh, 240px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.council-code {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}
.council-role h3 {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--apple-text);
}
.council-role p {
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.55;
  color: var(--apple-muted);
  margin: 0;
  flex: 1;
}
.council-sequence {
  text-align: center;
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.council-sequence-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(8px, 1.2vw, 14px);
  margin-bottom: clamp(16px, 2.5vh, 24px);
}
.council-sequence-track span {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.council-sequence-track i {
  display: block;
  width: clamp(20px, 3vw, 36px);
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  flex: 0 0 auto;
}
.council-sequence-note {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  max-width: 40em;
  margin-inline: auto;
}

/* ---------------------------------------------------------- */
/* Workflow timeline — even grid + single signal track          */
/* ---------------------------------------------------------- */
.timeline {
  --cols: 6;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 0;
}
.timeline.is-roadmap { --cols: 3; }
.timeline-row { display: flex; justify-content: center; min-width: 0; }
.timeline-step { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); min-width: 0; max-width: 100%; text-align: center; padding: 0 var(--space-3); }
.timeline-step h3 { font-size: 14px; font-weight: 700; margin: 0 0 2px; }
.timeline-step p { font-size: 12.5px; color: var(--text-secondary); margin: 0; max-width: 24ch; }

/* single connector track behind the node centers */
.timeline-track {
  position: absolute;
  top: 27px;
  left: calc(100% / (var(--cols) * 2));
  right: calc(100% / (var(--cols) * 2));
  height: 2px;
  border-radius: 2px;
  background: var(--border-subtle);
  z-index: 0;
  pointer-events: none;
}
.timeline-track-fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--blue-400));
  box-shadow: 0 0 10px rgba(59,91,255,0.45);
  transition: width 950ms cubic-bezier(0.45, 0, 0.25, 1);
}
.timeline-comet {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--blue-300) 55%, transparent 75%);
  box-shadow: 0 0 16px 4px rgba(59,91,255,0.55);
  opacity: 0;
  transition: left 950ms cubic-bezier(0.45, 0, 0.25, 1), opacity 0.5s var(--ease-standard);
  pointer-events: none;
}
.timeline.is-running .timeline-comet { opacity: 1; }
.timeline.is-complete .timeline-comet { opacity: 0; }

.timeline-node {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-subtle-border);
  color: var(--accent-primary);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-slow) var(--ease-premium), box-shadow var(--duration-slow) var(--ease-premium), background var(--duration-slow) var(--ease-premium), border-color var(--duration-slow) var(--ease-premium), color var(--duration-slow) var(--ease-premium);
}
/* nodes sit on an opaque pad so the dormant track never shows through */
.timeline-node { background-clip: padding-box; }
.timeline-node .node-num, .timeline-node .node-check {
  grid-area: 1 / 1;
  transition: opacity 0.35s var(--ease-premium), transform 0.35s var(--ease-premium);
}
.timeline-node .node-check { opacity: 0; transform: scale(0.4) rotate(-20deg); }
.timeline-node .node-check svg { width: 20px; height: 20px; }
.timeline-row.is-filled .timeline-node .node-num { opacity: 0; transform: scale(0.4) rotate(20deg); }
.timeline-row.is-filled .timeline-node .node-check { opacity: 1; transform: scale(1) rotate(0deg); }
.timeline-row.is-filled .timeline-node { background: var(--accent-primary); color: #fff; border-color: var(--accent-primary); box-shadow: 0 0 0 5px var(--accent-subtle), 0 8px 20px -6px rgba(59,91,255,0.5); }

/* stable, quiet completion glow on the final stage once the run ends */
.timeline.is-complete .timeline-row:last-child .timeline-node {
  box-shadow: 0 0 0 6px var(--accent-subtle), 0 0 24px rgba(59,91,255,0.35);
}

/* roadmap variant keeps status coloring, no bookend styling */
.timeline.is-roadmap .timeline-node { background: var(--accent-subtle); color: var(--accent-primary); border-color: var(--accent-subtle-border); }
.timeline.is-roadmap .timeline-row.is-filled .timeline-node { background: var(--accent-primary); color: #fff; border-color: var(--accent-primary); }

/* active ("next") node pulses gently */
.timeline-row.is-active .timeline-node { animation: node-breathe 2.2s var(--ease-standard) infinite; }
@keyframes node-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,91,255,0.28); }
  50% { box-shadow: 0 0 0 7px rgba(59,91,255,0); }
}

/* workflow (6 steps): stack before labels crowd on tablet */
@media (max-width: 900px) {
  .timeline:not(.is-roadmap) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .timeline:not(.is-roadmap) .timeline-track { display: none; }
  .timeline:not(.is-roadmap) .timeline-row {
    flex-direction: row;
    justify-content: flex-start;
    flex: 0 0 auto;
    align-items: flex-start;
    position: relative;
    padding-bottom: var(--space-6);
  }
  .timeline:not(.is-roadmap) .timeline-row:last-child { padding-bottom: 0; }
  .timeline:not(.is-roadmap) .timeline-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-4);
    flex: 0 0 auto;
    width: 100%;
    padding: 0;
  }
  .timeline:not(.is-roadmap) .timeline-step .timeline-node { flex: 0 0 auto; }
  .timeline:not(.is-roadmap) .timeline-step p { max-width: none; }
  .timeline:not(.is-roadmap) .timeline-step-inline { display: flex; flex-direction: column; padding-top: 14px; min-width: 0; }
  .timeline:not(.is-roadmap) .timeline-row:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 56px;
    left: 27px;
    width: 2px;
    height: calc(100% - 24px);
    background: var(--border-subtle);
    z-index: 0;
  }
  .timeline:not(.is-roadmap) .timeline-row:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 56px;
    left: 27px;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, var(--accent-primary), var(--blue-400));
    transition: height 0.7s var(--ease-premium) 0.1s;
    z-index: 0;
  }
  .timeline:not(.is-roadmap) .timeline-row.is-filled:not(:last-child)::after { height: calc(100% - 24px); }
}

@media (max-width: 1024px) and (min-width: 821px) {
  .timeline.is-roadmap .timeline-step { padding: 0 var(--space-2); }
  .timeline.is-roadmap .timeline-step h3 { font-size: 13.5px; }
  .timeline.is-roadmap .timeline-step p { font-size: 12px; max-width: 22ch; }
  .timeline.is-roadmap .timeline-node { width: 52px; height: 52px; }
  .timeline.is-roadmap .timeline-track { top: 25px; }
}

@media (max-width: 820px) {
  .timeline.is-roadmap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 520px;
    margin-inline: auto;
  }
  .timeline.is-roadmap .timeline-track { display: none; }
  .timeline.is-roadmap .timeline-row {
    flex-direction: row;
    justify-content: flex-start;
    flex: 0 0 auto;
    align-items: flex-start;
    position: relative;
    padding-bottom: var(--space-6);
    width: 100%;
    max-width: 440px;
  }
  .timeline.is-roadmap .timeline-row:last-child { padding-bottom: 0; }
  .timeline.is-roadmap .timeline-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-4);
    flex: 0 0 auto;
    width: 100%;
    padding: 0;
  }
  .timeline.is-roadmap .timeline-step .timeline-node { flex: 0 0 auto; }
  .timeline.is-roadmap .timeline-step p { max-width: none; }
  .timeline.is-roadmap .timeline-step-inline { display: flex; flex-direction: column; padding-top: 14px; min-width: 0; }
  .timeline.is-roadmap .timeline-row:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 56px;
    left: 27px;
    width: 2px;
    height: calc(100% - 24px);
    background: var(--border-subtle);
    z-index: 0;
  }
}

/* ---------------------------------------------------------- */
/* Architecture split                                          */
/* ---------------------------------------------------------- */
.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.arch-list { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
.arch-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.arch-item .check {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-fg);
  display: grid; place-items: center;
  margin-top: 2px;
}
.arch-item .check svg { width: 12px; height: 12px; }
.arch-item h4 { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.arch-item p { font-size: 14px; color: var(--text-secondary); margin: 0; }

.console-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-950);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
}
.console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.console-bar span.dot { width: 9px; height: 9px; border-radius: 50%; }
.console-bar .r { background: #F87171; } .console-bar .y { background: #FBBF24; } .console-bar .g { background: #4ADE80; }
.console-bar .file { margin-left: auto; font: 12px var(--font-mono); color: #6B7280; }
.console-body { padding: 20px 22px; font-family: var(--font-mono); font-size: 13px; line-height: 2.1; color: #9CA3AF; }
.console-body .agent-planner { color: #5C8DFF; } .console-body .agent-architect { color: #4ADE80; }
.console-body .agent-engineer { color: #FBBF24; } .console-body .agent-qa { color: #F87171; }
.console-body .agent-security { color: #93B4FF; }
.console-body .approved { color: #F3F4F6; font-weight: 700; }

@media (max-width: 900px) {
  .arch-grid { grid-template-columns: 1fr; }
  .arch-grid .console-panel { order: -1; }
}

/* ---------------------------------------------------------- */
/* Delivery modes                                               */
/* ---------------------------------------------------------- */
.modes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.mode-card {
  background: var(--armani-bg);
  border: 1px solid var(--armani-border);
  border-radius: 0;
  padding: clamp(32px, 5vw, 48px);
  box-shadow: none;
  transition: border-color var(--duration-slow) var(--ease-premium), background var(--duration-slow) var(--ease-premium);
}
.mode-card:hover { transform: none; box-shadow: none; border-color: var(--armani-text); background: var(--armani-alt); }
.mode-card.is-featured { border-color: var(--accent-subtle-border); box-shadow: var(--shadow-lg); }
.recommended-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-subtle-border);
  border-radius: var(--radius-sm);
  padding: 3px 9px;
  margin-bottom: var(--space-3);
}
.mode-card h3 { font-size: var(--text-h2-size); font-weight: 700; margin: 0 0 var(--space-1); }
.mode-card .mode-tag { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 var(--space-5); }
.mode-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.mode-card li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 14px; color: var(--text-primary); }
.mode-card li svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--success-fg); margin-top: 2px; }
.mode-card li.is-muted { color: var(--text-tertiary); }
.mode-card li.is-muted svg { color: var(--text-tertiary); }

/* ---------------------------------------------------------- */
/* CTA banner                                                   */
/* ---------------------------------------------------------- */
.cta-banner {
  border-radius: 0;
  background: var(--apple-bg);
  color: var(--apple-text);
  font-family: var(--font-display);
  padding: clamp(56px, 8vw, 96px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.cta-banner h2 {
  font-size: clamp(32px, 5.5vw, 64px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
  max-width: 16em;
}
.cta-banner p { font-size: clamp(17px, 2.2vw, 21px); color: var(--apple-muted); margin: 0; line-height: 1.4; }
.cta-banner .cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---------------------------------------------------------- */
/* FAQ                                                          */
/* ---------------------------------------------------------- */
#faq .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#faq .section-head { margin-bottom: clamp(32px, 5vh, 48px); }
#faq .section-head p { max-width: 36em; margin-inline: auto; }
.faq-list {
  max-width: 840px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}
.faq-item { border: 1px solid var(--armani-border); border-radius: 0; background: var(--armani-bg); overflow: hidden; transition: border-color var(--duration-base) var(--ease-standard); }
.faq-item:hover { border-color: var(--armani-text); }
.faq-item.is-open { border-color: var(--armani-text); box-shadow: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  text-align: left;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
}
.faq-q svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--text-tertiary); transition: transform var(--duration-slow) var(--ease-premium), color var(--duration-base) var(--ease-standard); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); color: var(--accent-primary); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height var(--duration-slower) var(--ease-premium); }
.faq-a-inner { padding: 0 var(--space-6) var(--space-5); font-size: clamp(14px, 1.5vw, 16px); color: var(--text-secondary); line-height: 1.65; }

/* ---------------------------------------------------------- */
/* Contact                                                       */
/* ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: flex-start; }
.contact-links { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-5); }
.contact-chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: 0;
  border: 1px solid var(--armani-border);
  background: var(--armani-bg);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--armani-text);
  transition: border-color var(--duration-base) var(--ease-premium), transform var(--duration-base) var(--ease-premium), background var(--duration-base) var(--ease-premium), box-shadow var(--duration-base) var(--ease-premium);
}
.contact-chip:hover { border-color: var(--armani-text); background: var(--armani-alt); color: var(--armani-text); transform: none; box-shadow: none; }
.contact-chip img { width: 22px; height: 22px; transition: transform var(--duration-base) var(--ease-premium); }
.contact-chip:hover img { transform: scale(1.1); }

.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-field input, .form-field textarea {
  border: 1px solid var(--armani-border);
  border-radius: 0;
  background: var(--armani-bg);
  color: var(--armani-text);
  font: inherit;
  font-size: 16px;
  font-weight: 300;
  padding: 14px 16px;
  resize: vertical;
  transition: border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus-ring);
}
.form-note { font-size: 12.5px; color: var(--text-tertiary); margin: 0; }
.form-status { font-size: 13px; font-weight: 600; min-height: 1em; }
.form-status.is-success { color: var(--success-fg); }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- */
/* Footer                                                        */
/* ---------------------------------------------------------- */
.site-footer {
  background: var(--apple-bg);
  color: var(--apple-muted);
  font-family: var(--font-display);
  padding: clamp(40px, 5vw, 56px) 0 24px;
}
.section-contact {
  background: var(--apple-bg);
  color: var(--apple-text);
}
.section-contact .contact-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
}
.section-contact .text-block-heading { color: var(--apple-text); }
.section-contact .text-block-lede { color: var(--apple-muted); }
.section-contact .form-field label { color: rgba(255, 255, 255, 0.55); }
.section-contact .form-field input,
.section-contact .form-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--apple-text);
}
.section-contact .form-field input:focus,
.section-contact .form-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
.section-contact .form-note { color: rgba(255, 255, 255, 0.38); }
.section-contact .btn-primary {
  background: var(--matte-white);
  color: var(--matte-black);
  border-color: var(--matte-white);
}
.section-contact .btn-primary:hover {
  background: #e8e8ed;
  color: var(--matte-black);
}
.section-contact .contact-grid { gap: clamp(32px, 5vw, 56px); align-items: center; }
.section-contact .contact-form { gap: var(--space-4); }
.section-contact .form-field textarea { min-height: 112px; }
.section-contact .contact-icon {
  color: #fff;
  opacity: 0.94;
}
.section-contact .contact-icon:hover {
  color: #fff;
  opacity: 1;
}
.section-contact .contact-icon img,
.section-contact .contact-icon svg {
  width: 28px;
  height: 28px;
}
.section-contact .contact-icon svg {
  stroke-width: 1.75;
}
.contact-icon--brand img {
  width: 28px;
  height: 28px;
  display: block;
  opacity: 0.94;
  transition: opacity var(--duration-base) var(--ease-standard);
}
.contact-icon--brand:hover img { opacity: 1; }
.section-contact .site-footer {
  margin-top: auto;
  padding-top: clamp(32px, 5vh, 48px);
  padding-bottom: 20px;
}
.section-contact .footer-top { padding-bottom: var(--space-6); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-8); padding-bottom: var(--space-10); border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--apple-text); margin-bottom: var(--space-3); letter-spacing: -0.01em; }
.footer-tagline { font-size: 14px; color: var(--apple-muted); max-width: 26em; line-height: 1.55; font-weight: 400; }
.footer-col h3 { font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: #6B7280; margin: 0 0 var(--space-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { color: #9CA3AF; font-size: 14px; transition: color var(--duration-base) var(--ease-standard), padding-left var(--duration-base) var(--ease-premium); }
.footer-col a:hover { color: #fff; padding-left: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); font-size: 12.5px; color: #6B7280; }
.footer-bottom a { color: #6B7280; }
.footer-bottom a:hover { color: #fff; }

/* ---------------------------------------------------------- */
/* Dedicated tablet & mobile rhythm (not a naive scale-down)    */
/* Desktop (>1080px) is untouched — all rules below are scoped */
/* ---------------------------------------------------------- */
@media (max-width: 1024px) {
  html { overflow-x: clip; }
  .container { padding-inline: clamp(20px, 4vw, 28px); }
  .section-head { margin-bottom: var(--space-10); }
  .contact-grid { gap: var(--space-10); }
  .arch-grid { gap: var(--space-10); }
  .console-panel { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .console-body { word-break: break-word; }
  .council-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .council-role { min-height: 0; }
  .faq-q { min-height: 44px; }
  .form-field input,
  .form-field textarea {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }
  .form-field textarea { min-height: 132px; }
  .contact-form .btn { width: 100%; }
}

@media (max-width: 1080px) and (min-width: 641px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .council-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .council-role { min-height: clamp(140px, 18vh, 200px); }
  .hero-grid { gap: var(--space-10); }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 64px; }
  .hero-copy { max-width: none; }
  .hero-sub { font-size: 17px; }
  .orbit-wrap { width: min(420px, 72vw); }
  .modes-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .hero-grid { gap: var(--space-8); }
  .modes-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 52px 0 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .footer-bottom { gap: var(--space-5); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  section { padding: clamp(52px, 8vw, 72px) 0; }
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 52px; }
  .hero h1 { font-size: clamp(40px, 9vw, 64px); line-height: 1.05; }
  .hero-sub { font-size: clamp(18px, 3.5vw, 24px); line-height: 1.35; margin-bottom: var(--space-6); }
  .hero-actions { gap: var(--space-3); }
  .hero-trust { gap: var(--space-5); }
  .hero-trust-item { flex: 1 1 100%; }
  .orbit-wrap { width: min(340px, 82vw); margin-top: var(--space-4); }
  .council-roster { grid-template-columns: 1fr; }
  .council-role { min-height: 0; }
  .council-sequence-track i { width: 16px; }
  .contact-grid { gap: var(--space-8); }
  .contact-links { margin-top: var(--space-5); }
  .text-block-heading { font-size: clamp(26px, 7vw, 34px); }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .container { padding-inline: 20px; }
  section { padding: 56px 0; }
  .eyebrow { font-size: 11px; }

  .nav-right { gap: var(--space-2); }
  .lang-switch a { padding: 7px 8px; font-size: 11.5px; }

  .hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 44px; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); line-height: 1.06; }
  .hero-sub { font-size: clamp(17px, 4.5vw, 22px); margin-bottom: var(--space-5); max-width: none; }
  .section-inverse .section-head h2 { font-size: clamp(32px, 9vw, 48px); }
  .hero-actions { flex-direction: column; align-items: stretch; margin-bottom: var(--space-7); }
  .hero-actions .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: var(--space-4); }
  .orbit-wrap { width: min(300px, 78vw); }
  .orbit-node { width: 17%; }

  .section-head { margin-bottom: var(--space-8); }
  .section-head h2 { font-size: clamp(26px, 8vw, 32px); }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: var(--space-5); }

  .cta-banner { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .cta-banner .cta-actions { width: 100%; flex-direction: column; }
  .cta-banner .btn { width: 100%; }

  .mode-card { padding: var(--space-6); }
  .console-body, .transcript-body { font-size: 12px; padding: 16px 18px; }
  .transcript-bar .file,
  .console-bar .file { font-size: 11px; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .footer-top { grid-template-columns: 1fr; gap: var(--space-7); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-chip { padding: 14px 16px; min-height: 44px; }
  .mobile-nav { padding: var(--space-5) 20px var(--space-8); }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .nav-brand { gap: 8px; font-size: 15px; }
  .lang-switch { padding: 2px; }
  .lang-switch a { padding: 6px 7px; font-size: 11px; }

  .hero h1 { font-size: clamp(28px, 8.8vw, 34px); }
  .hero-sub { font-size: 15px; }
  .section-head h2 { font-size: clamp(24px, 7.5vw, 28px); }
  .feature-card h3, .council-role h3 { font-size: 16px; }
  .timeline-node { width: 52px; height: 52px; }
  .timeline:not(.is-roadmap) .timeline-row:not(:last-child)::before,
  .timeline:not(.is-roadmap) .timeline-row:not(:last-child)::after,
  .timeline.is-roadmap .timeline-row:not(:last-child)::before { top: 52px; left: 25px; }
  .site-footer { padding: 44px 0 24px; }
  .footer-col h3 { margin-bottom: var(--space-2); }
  .footer-bottom { font-size: 12px; }
}

@media (max-width: 430px) {
  .container { padding-inline: 16px; }
  .global-nav-inner { gap: var(--space-2); }
  .nav-right { gap: 6px; }
  .orbit-wrap { width: min(280px, 84vw); }
  .cta-banner { padding: 28px 20px; }
  .faq-q { font-size: 14px; padding: var(--space-4); }
}

@media (max-width: 375px) {
  .container { padding-inline: 14px; }
  .hero h1 { font-size: clamp(26px, 8.2vw, 32px); }
  .btn-lg { height: 46px; font-size: 14px; }
}

@media (max-width: 360px) {
  .lang-switch a { padding: 6px 6px; font-size: 10.5px; }
  .nav-brand span { max-width: 7.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 320px) {
  .container { padding-inline: 12px; }
  .hero-trust-item dd { max-width: none; }
  .contact-chip { font-size: 14px; }
}

/* ---------------------------------------------------------- */
/* Reveal-on-scroll                                              */
/* ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity var(--duration-slower) var(--ease-premium), transform var(--duration-slower) var(--ease-premium); will-change: transform, opacity; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px) scale(0.99); transition: opacity var(--duration-slower) var(--ease-premium), transform var(--duration-slower) var(--ease-premium); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.03s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.27s; }
.reveal-stagger.visible > * { opacity: 1; transform: none; }

/* Light Armani sections — respect user dark theme toggle */
html[data-theme="dark"] body {
  background: var(--surface-app);
  color: var(--text-primary);
}
html[data-theme="dark"] .section-alt { background: var(--surface-sunken); }
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .text-block-heading { color: var(--text-primary); }
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .text-block-lede,
html[data-theme="dark"] .eyebrow { color: var(--text-secondary); }
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .mode-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .contact-chip {
  background: var(--surface-card);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .mode-card .mode-tag { color: var(--text-secondary); }
html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field textarea {
  background: var(--surface-card);
  border-color: var(--border-default);
  color: var(--text-primary);
}
html[data-theme="dark"] .btn-secondary { color: var(--text-primary); border-color: var(--border-default); }

/* ---------------------------------------------------------- */
/* Static hero · matte UI · icon contacts (no motion / no blue) */
/* ---------------------------------------------------------- */
.orbit-wrap { display: none !important; }

.theme-toggle { display: none !important; }

.container--wide {
  width: 100%;
  max-width: min(1440px, 100%);
  padding-inline: clamp(20px, 6vw, 80px);
}

.hero-wide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: calc(100svh - var(--nav-h));
  padding-block: clamp(32px, 6vw, 72px);
}
.hero-wide .hero-copy {
  max-width: none;
  width: 100%;
  text-align: left;
}
.hero-wide .hero-sub {
  max-width: 48em;
  font-size: clamp(20px, 2.4vw, 30px);
}
.hero-wide .hero-actions {
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: 0;
}
.hero-wide .hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  width: 100%;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-wide .hero-trust-item dd { max-width: none; }

.hero-single { max-width: none; }
.hero-single .hero-copy { max-width: none; text-align: left; }
.hero::before { display: none; }

#workflow .section-head { max-width: 900px; margin-inline: auto; }
#workflow .timeline { display: none !important; }

/* ---------------------------------------------------------- */
/* Stacked sections — next panel slides over the previous      */
/* ---------------------------------------------------------- */
main.stack-scroll > section {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 9vh, 120px) 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  isolation: isolate;
}
main.stack-scroll > section > .container,
main.stack-scroll > section.hero > .container {
  width: 100%;
  flex: 0 1 auto;
}
main.stack-scroll > section:nth-child(1) { z-index: 1; }
main.stack-scroll > section:nth-child(2) { z-index: 2; }
main.stack-scroll > section:nth-child(3) { z-index: 3; }
main.stack-scroll > section:nth-child(4) { z-index: 4; }
main.stack-scroll > section:nth-child(5) { z-index: 5; }
main.stack-scroll > section:nth-child(6) { z-index: 6; }
main.stack-scroll > section:nth-child(7) { z-index: 7; }
main.stack-scroll > section:nth-child(8) { z-index: 8; }
main.stack-scroll > section:nth-child(9) { z-index: 9; }
main.stack-scroll > section:nth-child(10) { z-index: 10; }

main.stack-scroll > section.hero,
main.stack-scroll > section.section-inverse {
  background: var(--apple-bg);
}
main.stack-scroll > section.section-alt {
  background: var(--armani-alt);
}
main.stack-scroll > section:not(.hero):not(.section-inverse):not(.section-alt) {
  background: var(--armani-bg);
}

main.stack-scroll > section:not(:first-child) {
  box-shadow: 0 -88px 160px -28px rgba(0, 0, 0, 0.26);
}
main.stack-scroll > section.section-alt:not(:first-child),
main.stack-scroll > section:not(.hero):not(.section-inverse):not(.section-alt):not(#contact):not(#beta-close):not(:first-child) {
  box-shadow: 0 -72px 130px -32px rgba(0, 0, 0, 0.12);
}
main.stack-scroll > section:not(:first-child)::after {
  content: "";
  position: absolute;
  top: 0;
  left: -6%;
  right: -6%;
  height: clamp(96px, 20vh, 260px);
  pointer-events: none;
  z-index: 6;
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
main.stack-scroll > section.section-alt:not(:first-child)::after,
main.stack-scroll > section:not(.hero):not(.section-inverse):not(.section-alt):not(#contact):not(#beta-close):not(:first-child)::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.05) 42%,
    transparent 100%
  );
  backdrop-filter: blur(36px) saturate(1.08);
  -webkit-backdrop-filter: blur(36px) saturate(1.08);
}
main.stack-scroll > section.hero:not(:first-child)::after,
main.stack-scroll > section.section-inverse:not(:first-child)::after,
main.stack-scroll > section.section-contact:not(:first-child)::after,
main.stack-scroll > section#contact:not(:first-child)::after,
main.stack-scroll > section#beta-close:not(:first-child)::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 36%,
    transparent 100%
  );
  backdrop-filter: blur(44px) saturate(1.2) brightness(1.05);
  -webkit-backdrop-filter: blur(44px) saturate(1.2) brightness(1.05);
}
main.stack-scroll > section.hero,
main.stack-scroll > section.section-inverse,
main.stack-scroll > section.section-contact,
main.stack-scroll > section#contact {
  background-color: var(--apple-bg);
  background-image: none;
}

main.stack-scroll .hero-wide {
  min-height: auto;
  padding-block: clamp(24px, 5vh, 56px);
}
main.stack-scroll .hero {
  padding-top: 0;
  padding-bottom: 0;
}

main.stack-scroll > section .council-layout,
main.stack-scroll > section .contact-grid,
main.stack-scroll > section .arch-grid,
main.stack-scroll > section .contact-shell {
  width: 100%;
}

main.stack-scroll > section#agents > .container,
main.stack-scroll > section#faq > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
main.stack-scroll > section#contact,
main.stack-scroll > section#beta-close {
  background: var(--apple-bg);
  justify-content: stretch;
  padding-bottom: clamp(32px, 5vh, 48px);
}
main.stack-scroll > section#contact > .contact-shell,
main.stack-scroll > section#beta-close > .contact-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}
main.stack-scroll > section#roadmap > .container,
main.stack-scroll > section#preview > .container,
main.stack-scroll > section#access > .container,
main.stack-scroll > section#plans > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.beta-hero-copy {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  text-align: left;
}
.beta-hero-copy .hero-sub {
  margin-inline: 0;
  max-width: 48em;
}
.beta-hero-copy .hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.section-contact .cta-banner {
  width: 100%;
  margin: 0;
  background: transparent;
  padding: clamp(24px, 4vh, 40px) 0;
}

/* Tablet + mobile — one continuous scroll, no stacked panels */
@media (max-width: 1080px) {
  html {
    scroll-snap-type: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  body,
  button,
  input,
  textarea,
  select,
  .btn,
  .nav-brand,
  .nav-links a,
  .mobile-nav a,
  .hero-sub,
  .text-block-lede,
  .form-field label,
  .faq-q,
  .faq-a-inner,
  .feature-card p,
  .mode-card li {
    font-family: var(--font-sans);
  }

  .hero h1,
  .section-head h2,
  .section-inverse .section-head h2,
  .text-block-heading,
  .cta-banner h2,
  .council-role h3,
  .footer-brand,
  .footer-col-title,
  .beta-hero-copy h1 {
    font-family: var(--font-display);
  }

  main.stack-scroll {
    display: block;
  }

  main.stack-scroll > section {
    position: relative;
    top: auto;
    z-index: auto;
    display: block;
    min-height: 0;
    height: auto;
    padding: clamp(48px, 8vw, 64px) 0;
    overflow: visible;
    isolation: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    box-shadow: none !important;
  }

  main.stack-scroll > section:not(:first-child)::after {
    display: none;
  }

  main.stack-scroll > section.hero,
  main.stack-scroll > section#workflow,
  main.stack-scroll > section#contact,
  main.stack-scroll > section#beta-close {
    min-height: 0;
    padding-top: clamp(48px, 8vw, 64px);
    padding-bottom: clamp(48px, 8vw, 64px);
  }

  main.stack-scroll > section.hero {
    padding-top: calc(var(--nav-h) + 28px);
  }

  main.stack-scroll > section > .container,
  main.stack-scroll > section.hero > .container,
  main.stack-scroll > section#agents > .container,
  main.stack-scroll > section#faq > .container,
  main.stack-scroll > section#roadmap > .container,
  main.stack-scroll > section#preview > .container,
  main.stack-scroll > section#access > .container,
  main.stack-scroll > section#plans > .container {
    display: block;
    flex: none;
    justify-content: flex-start;
    min-height: 0;
  }

  main.stack-scroll > section#contact > .contact-shell,
  main.stack-scroll > section#beta-close > .contact-shell {
    display: block;
    flex: none;
    min-height: 0;
  }

  .section-contact .site-footer {
    margin-top: clamp(32px, 6vh, 48px);
  }

  .section-contact .cta-banner {
    padding: 0 0 clamp(8px, 2vh, 16px);
  }

  /* Milky white mobile canvas */
  :root {
    --mobile-milk: #faf9f7;
    --mobile-milk-alt: #f3f2ef;
    --mobile-milk-card: #ffffff;
    --mobile-milk-border: #e8e6e1;
    --mobile-milk-text: #111111;
    --mobile-milk-muted: #6e6e73;
  }

  body {
    background: var(--mobile-milk);
    color: var(--mobile-milk-text);
  }

  .global-nav {
    background: rgba(250, 249, 247, 0.9);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--mobile-milk-border);
  }
  .global-nav.scrolled {
    background: rgba(250, 249, 247, 0.96);
    border-bottom-color: var(--mobile-milk-border);
  }
  .nav-brand,
  .nav-brand:hover { color: var(--mobile-milk-text); }
  .nav-toggle {
    border-color: rgba(0, 0, 0, 0.14);
  }
  .nav-toggle svg { color: var(--mobile-milk-text); }
  .lang-switch { border-color: rgba(0, 0, 0, 0.1); }
  .lang-switch a { color: var(--mobile-milk-muted); }
  .lang-switch a:hover { color: var(--mobile-milk-text); }
  .lang-switch a[aria-current="page"] {
    color: var(--mobile-milk-text);
    background: var(--mobile-milk-card);
  }
  .scroll-progress { background: rgba(17, 17, 17, 0.35); }

  .mobile-nav {
    background: var(--mobile-milk);
  }
  .mobile-nav a {
    color: var(--mobile-milk-text);
    border-bottom-color: var(--mobile-milk-border);
  }
  .mobile-nav a:hover { color: var(--mobile-milk-text); }

  main.stack-scroll > section,
  main.stack-scroll > section.hero,
  main.stack-scroll > section.section-inverse,
  main.stack-scroll > section.section-contact,
  main.stack-scroll > section#contact,
  main.stack-scroll > section#beta-close {
    background-color: var(--mobile-milk) !important;
    color: var(--mobile-milk-text);
  }

  main.stack-scroll > section.section-alt {
    background-color: var(--mobile-milk-alt) !important;
  }

  .hero,
  .hero h1,
  .hero .eyebrow,
  .hero-sub,
  .hero-trust dt {
    color: var(--mobile-milk-text);
  }
  .hero-trust dd,
  .hero .eyebrow,
  .status-pill {
    color: var(--mobile-milk-muted);
  }
  .hero-wide .hero-trust {
    border-top-color: var(--mobile-milk-border);
  }
  .hero .btn-on-dark,
  .cta-banner .btn-on-dark {
    background: var(--mobile-milk-card);
    color: var(--mobile-milk-text);
    border: 1px solid var(--mobile-milk-border);
  }
  .hero .btn-on-dark:hover,
  .cta-banner .btn-on-dark:hover {
    background: var(--mobile-milk-alt);
    color: var(--mobile-milk-text);
  }

  .section-inverse,
  .section-inverse .section-head h2,
  .section-inverse .section-head p,
  .section-inverse .eyebrow,
  .council-role h3,
  .council-sequence-note {
    color: var(--mobile-milk-text);
  }
  .council-role p,
  .council-code,
  .council-sequence-track span {
    color: var(--mobile-milk-muted);
  }
  .council-role {
    background: var(--mobile-milk-card);
    border-color: var(--mobile-milk-border);
  }
  .council-sequence {
    border-top-color: var(--mobile-milk-border);
  }
  .council-sequence-track span {
    border-color: var(--mobile-milk-border);
    color: var(--mobile-milk-text);
  }
  .council-sequence-track i {
    background: var(--mobile-milk-border);
  }

  .section-head h2,
  .text-block-heading,
  .eyebrow,
  .feature-card h3,
  .mode-card h3,
  .faq-q {
    color: var(--mobile-milk-text);
  }
  .section-head p,
  .text-block-lede,
  .feature-card p,
  .mode-card li,
  .form-note,
  .faq-a-inner {
    color: var(--mobile-milk-muted);
  }
  .feature-card,
  .mode-card,
  .faq-item {
    background: var(--mobile-milk-card);
    border-color: var(--mobile-milk-border);
  }

  .cta-banner,
  .cta-banner h2 {
    background: transparent;
    color: var(--mobile-milk-text);
  }
  .cta-banner p { color: var(--mobile-milk-muted); }

  .section-contact,
  .section-contact .text-block-heading,
  .section-contact .text-block-lede {
    color: var(--mobile-milk-text);
  }
  .section-contact .text-block-lede,
  .section-contact .form-note {
    color: var(--mobile-milk-muted);
  }
  .section-contact .form-field label {
    color: var(--mobile-milk-muted);
  }
  .section-contact .form-field input,
  .section-contact .form-field textarea,
  .form-field input,
  .form-field textarea {
    background: var(--mobile-milk-card);
    border-color: var(--mobile-milk-border);
    color: var(--mobile-milk-text);
  }
  .section-contact .btn-primary,
  .btn-primary {
    background: var(--mobile-milk-text);
    color: var(--mobile-milk);
    border-color: var(--mobile-milk-text);
  }
  .section-contact .btn-primary:hover,
  .btn-primary:hover {
    background: #2a2a2a;
    color: var(--mobile-milk);
  }
  .section-contact .contact-icon svg {
    color: var(--mobile-milk-text);
    stroke: var(--mobile-milk-text);
  }
  .section-contact .contact-icon--brand img {
    filter: brightness(0);
    opacity: 0.82;
  }
  .section-contact .contact-icon--brand:hover img { opacity: 1; }

  .section-contact .site-footer,
  .site-footer {
    background: var(--mobile-milk-alt);
    color: var(--mobile-milk-muted);
  }
  .footer-brand,
  .footer-col a:hover {
    color: var(--mobile-milk-text);
  }
  .footer-col h3,
  .footer-bottom,
  .footer-bottom a,
  .footer-tagline {
    color: var(--mobile-milk-muted);
  }
  .footer-top {
    border-bottom-color: var(--mobile-milk-border);
  }

  .console-panel,
  .preview-panel {
    background: var(--mobile-milk-card);
    border: 1px solid var(--mobile-milk-border);
  }
  .console-bar,
  .preview-sidebar {
    background: var(--mobile-milk-alt);
    border-color: var(--mobile-milk-border);
  }
  .console-body,
  .preview-bubble {
    color: var(--mobile-milk-muted);
    background: var(--mobile-milk-alt);
  }
  .preview-sidebar .ps-logo,
  .preview-row {
    color: var(--mobile-milk-text);
  }
  .preview-row.is-active {
    background: var(--mobile-milk-alt);
    border-color: var(--mobile-milk-border);
    color: var(--mobile-milk-text);
  }
}

@media (max-width: 768px) {
  main.stack-scroll > section {
    padding-top: clamp(40px, 7vw, 56px);
    padding-bottom: clamp(40px, 7vw, 56px);
  }

  main.stack-scroll > section.hero {
    padding-top: calc(var(--nav-h) + 20px);
  }

  main.stack-scroll .section-head { margin-bottom: clamp(24px, 5vh, 36px); }
  main.stack-scroll .council-layout { gap: clamp(20px, 4vh, 32px); }
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 4px;
  border: none;
  background: none;
  color: inherit;
  transition: opacity var(--duration-base) var(--ease-standard);
}
.contact-icon:hover {
  background: none;
  transform: none;
  box-shadow: none;
}
.contact-icon svg { width: 28px; height: 28px; display: block; }
.contact-chip { display: none; }

.footer-top { grid-template-columns: 1.4fr repeat(2, 1fr); }

.reveal,
.reveal-stagger > *,
.reveal.visible,
.reveal-stagger.visible > * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.orbit-ring,
.orbit-core,
.hero::before,
.beta-dot,
.status-pill .dot,
.timeline-row.is-active .timeline-node {
  animation: none !important;
}

.timeline-comet { display: none !important; }
.timeline-track-fill {
  width: 100% !important;
  transition: none !important;
  background: var(--matte-black) !important;
  box-shadow: none !important;
}
.timeline-row.is-filled .timeline-node {
  background: var(--matte-black) !important;
  color: var(--matte-white) !important;
  border-color: var(--matte-black) !important;
  box-shadow: none !important;
}
.timeline-node {
  background: var(--armani-alt) !important;
  color: var(--matte-black) !important;
  border-color: var(--armani-border) !important;
}
.timeline-row.is-active .timeline-node {
  box-shadow: none !important;
}

.feature-card:hover,
.mode-card:hover,
.contact-chip:hover {
  transform: none !important;
  box-shadow: none !important;
}

.mobile-nav a:hover { color: var(--apple-text); padding-left: 4px; }
.faq-item.is-open .faq-q svg { color: var(--matte-black); }
.hero a:not(.btn),
.cta-banner a:not(.btn) { color: var(--matte-white); }

@media (max-width: 900px) {
  .hero-wide .hero-trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-wide { min-height: auto; padding-block: 28px 40px; }
  .hero-wide .hero-trust { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-wide .hero-copy,
  .hero-single .hero-copy { text-align: left; }
  .hero-actions { justify-content: flex-start; width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; min-width: min(100%, 200px); }
  .contact-links { justify-content: flex-start; gap: var(--space-4); }
  .contact-icon svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  main.stack-scroll > section {
    position: relative;
    box-shadow: none;
    scroll-snap-align: none;
  }
  main.stack-scroll > section:not(:first-child)::after {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .orbit-ring, .orbit-core, .hero::before { animation: none; }
  .orbit-wrap, .hero-copy { transform: none !important; transition: none; }
  .timeline-track-fill { transition: none; width: 100% !important; }
  .timeline-comet { display: none; }
  .timeline-row.is-active .timeline-node { animation: none; }
}

/* skip link */
.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  background: var(--accent-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top var(--duration-base) var(--ease-standard);
}
.skip-link:focus { top: 12px; color: #fff; }

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

.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;
}
