/* ==========================================================================
   AI OS theme — design system
   Hand-written semantic CSS. Dark graphite surfaces, signal-green accent.
   No frameworks. No jQuery.
   ========================================================================== */

:root {
  /* Surfaces: near-black graphite */
  --ink-950: #08090b;
  --ink-900: #0d0e11;
  --ink-850: #131519;
  --ink-800: #1a1d23;
  --ink-700: #242832;

  /* Lines & text */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --fog-100: #f4f6f5;
  --fog-300: #c9cfd4;
  --fog-500: #9aa1a8;
  --fog-600: #6e757c;

  /* Brand accent: refined signal green */
  --signal-300: #7de3ae;
  --signal-400: #4fd795;
  --signal-500: #3ecf8e;
  --signal-600: #2eae76;
  --signal-950: #0c1f16;

  /* Typography: native system stack (Apple-like); display grotesque for headlines */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Montserrat", var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* Shape & elevation */
  --radius-card: 1.25rem;
  --radius-panel: 0.875rem;
  --shadow-panel: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset, 0 24px 64px -32px rgba(0, 0, 0, 0.7);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-award: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* ——— Reset / base ——— */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--fog-100);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; }

::selection {
  background: var(--signal-500);
  color: #06110b;
}

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

/* ——— Type & layout primitives ——— */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fog-500);
  margin: 0;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin: 0;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  margin: 0;
}

.lede {
  color: var(--fog-500);
  text-wrap: pretty;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  margin: 0;
}

.wrap {
  margin-inline: auto;
  width: 100%;
  max-width: 72rem; /* 6xl */
  padding-inline: 1.25rem;
}
@media (min-width: 640px) {
  .wrap { padding-inline: 2rem; }
}

.section-pad { padding-block: 5rem; }
@media (min-width: 640px) {
  .section-pad { padding-block: 7rem; }
}

.card {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--ink-900);
  box-shadow: var(--shadow-panel);
}

.accent { color: var(--signal-400); }

/* ——— Page entrance: subtle crossfade ——— */
@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
main { animation: page-in 0.55s var(--ease-out); }

/* ——— Buttons: one design language ——— */
.btn-primary {
  display: inline-block;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: var(--fog-100);
  color: var(--ink-950);
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px -10px rgba(244, 246, 245, 0.35);
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fog-100);
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, background-color 0.25s ease;
}
.btn-secondary:hover {
  transform: scale(1.03);
  border-color: var(--fog-500);
  background-color: rgba(255, 255, 255, 0.04);
}
.btn-secondary:active { transform: scale(0.98); }

/* ——— Cards: lift + glow on hover (award-style: card rises over its neighbours) ——— */
.card-lift {
  position: relative;
  transition: transform 0.3s var(--ease-award), border-color 0.3s ease, box-shadow 0.5s ease;
  will-change: transform;
}
.card-lift:hover {
  z-index: 2;
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(62, 207, 142, 0.45);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
    0 32px 72px -24px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(62, 207, 142, 0.18),
    0 12px 40px -12px rgba(62, 207, 142, 0.25);
}

/* ——— Signature diagram motion: calm task-flow pulses ——— */
@keyframes flow-dash { to { stroke-dashoffset: -28; } }
@keyframes node-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.flow-line {
  stroke-dasharray: 5 9;
  animation: flow-dash 2.6s linear infinite;
}
.flow-dot { animation: node-pulse 2.4s ease-in-out infinite; }
.flow-traveler { filter: drop-shadow(0 0 6px rgba(62, 207, 142, 0.9)); }

/* ——— Scroll reveal (progressive enhancement) ——— */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-group > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.34s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.42s; }
.reveal-group.is-visible > *:nth-child(7) { transition-delay: 0.5s; }
.reveal-group.is-visible > * { opacity: 1; transform: none; }

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  background: transparent;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 9, 11, 0.85);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--fog-100);
}
.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-nav { display: none; }
@media (min-width: 768px) {
  .site-nav { display: flex; align-items: center; gap: 2rem; }
}
.site-nav a {
  position: relative;
  font-size: 0.9rem;
  color: var(--fog-500);
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--signal-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-award);
}
.site-nav a:hover { color: var(--fog-100); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--fog-100); font-weight: 500; }
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: block; } }
.header-cta a {
  display: inline-block;
  border-radius: 999px;
  background: var(--fog-100);
  color: var(--ink-950);
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.header-cta a:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 36px -8px rgba(244, 246, 245, 0.4);
}
.header-cta a:active { transform: scale(0.98); }

/* ——— Language switcher EN | UA ——— */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-switch__opt {
  color: var(--fog-500);
  text-decoration: none;
  transition: color 0.2s ease;
}
.lang-switch__opt:hover { color: var(--fog-100); }
.lang-switch__opt.is-on { color: var(--signal-400); }
.lang-switch__sep { color: var(--fog-600); font-weight: 400; }
@media (max-width: 767px) {
  .lang-switch { padding: 0.4rem 0.6rem; font-size: 0.72rem; gap: 0.35rem; }
}
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem; /* 48px touch target */
  padding: 0.5rem 1.1rem;
  margin-left: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fog-100);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.menu-toggle:active { background: rgba(255, 255, 255, 0.1); }
.menu-toggle-label { line-height: 1; }
/* Icon state derives from body.drawer-open (single source of truth), so the
   hamburger and the X can never show together even if JS state ever drifts. */
.menu-toggle [data-icon-close] { display: none; }
body.drawer-open .menu-toggle [data-icon-open] { display: none; }
body.drawer-open .menu-toggle [data-icon-close] { display: block; }
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* Desktop drawer trigger — plain "Menu" text next to the nav. */
.drawer-toggle {
  display: none;
  position: relative;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fog-500);
  cursor: pointer;
  transition: color 0.3s ease;
}
@media (min-width: 768px) { .drawer-toggle { display: block; } }
.drawer-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--signal-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-award);
}
.drawer-toggle:hover { color: var(--fog-100); }
.drawer-toggle:hover::after { transform: scaleX(1); }

/* ——— Slide-out drawer: full site index, all screens ——— */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
body.drawer-open .drawer-overlay {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(22rem, 88vw);
  display: flex;
  flex-direction: column;
  background: #0b0d10;
  border-left: 1px solid var(--line);
  transform: translateX(103%);
  transition: transform 0.38s var(--ease-award);
  visibility: hidden;
}
body.drawer-open .drawer {
  transform: translateX(0);
  visibility: visible;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog-500);
}
.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fog-100);
  cursor: pointer;
}
.drawer-close:hover { background: rgba(255, 255, 255, 0.1); }
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.25rem 1.25rem;
}
.drawer-menu,
.drawer-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer-group-title {
  display: block;
  padding: 1.1rem 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog-500);
}
.drawer-menu .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-bottom: 0.4rem;
}
.drawer-menu .sub-menu a {
  display: block;
  border-radius: 0.625rem;
  padding: 0.55rem 0.9rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fog-100);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.drawer-menu .sub-menu a:hover { background: var(--ink-800); }
.drawer-menu .sub-menu a[aria-current="page"] { color: var(--signal-400); }
.drawer-cta {
  display: block;
  margin: 0 1.25rem 1.25rem;
  text-align: center;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-overlay { transition: none; }
}

/* Anchor offset for fixed header */
main { padding-top: 0; }
section[id], div[id] { scroll-margin-top: 5rem; }

/* ——— Hero ——— */
.hero {
  padding-top: 9rem;
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) { .hero { padding-top: 11rem; padding-bottom: 5rem; } }
.hero-inner { max-width: 56rem; margin-inline: auto; }
.hero .eyebrow { margin-bottom: 1.25rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { max-width: 44rem; margin: 0 auto 2.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-note {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--fog-600);
}
/* ——— Simple inner hero (legacy alias; templates use .inner-hero-simple) ——— */
.inner-hero { text-align: left; padding-top: 9rem; padding-bottom: 3.5rem; position: relative; overflow: hidden; }
@media (min-width: 640px) { .inner-hero { padding-top: 11rem; } }
.inner-hero-simple { text-align: left; padding-top: 9rem; padding-bottom: 2rem; position: relative; overflow: hidden; }
@media (min-width: 640px) { .inner-hero-simple { padding-top: 11rem; } }
.inner-hero-simple .eyebrow { margin-bottom: 1.25rem; }

/* ——— Inner hero with schematic figure ——— */
.inner-hero-fig { position: relative; overflow: hidden; padding-top: 9rem; padding-bottom: 4rem; }
@media (min-width: 640px) { .inner-hero-fig { padding-top: 11rem; padding-bottom: 5rem; } }
.inner-hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .inner-hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.inner-hero-grid .eyebrow { margin-bottom: 1.25rem; }
.inner-hero-grid h1 { margin-bottom: 1.25rem; }
.inner-hero-grid .lede { margin-bottom: 2rem; }
.hero-ctas.left { justify-content: flex-start; }
.hero-note.left { text-align: left; }
.fig-frame { margin: 0; }
.fig-svg { width: 100%; height: auto; display: block; }

/* Hero stagger entrance */
.hero-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-rise 0.9s var(--ease-out) forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.15s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.25s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.35s; }
.hero-stagger > *:nth-child(5) { animation-delay: 0.45s; }
@keyframes hero-rise { to { opacity: 1; transform: none; } }

/* ——— Section headers ——— */
.section-head { max-width: 48rem; margin-bottom: 3.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head .h2 { margin-bottom: 1.25rem; }

/* ——— Sticky section headers: the header stays while its section scrolls ——— */
.section-head.is-sticky {
  position: sticky;
  top: 4rem;
  z-index: 5;
  margin-bottom: 2.5rem;
  padding-block: 1.25rem;
  background: linear-gradient(180deg, var(--ink-950) 55%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.section-head.is-sticky .h2 {
  transition: font-size 0.3s var(--ease-award), margin 0.3s var(--ease-award);
}
.section-head.is-sticky .lede {
  overflow: hidden;
  max-height: 12rem;
  opacity: 1;
  transition: max-height 0.3s var(--ease-award), opacity 0.3s ease, margin 0.3s ease;
}
.section-head.is-sticky.is-stuck .h2 { font-size: 1.5rem; margin-bottom: 0; }
.section-head.is-sticky.is-stuck .lede { max-height: 0; opacity: 0; margin: 0; }
.section-head.is-sticky.is-stuck .eyebrow { margin-bottom: 0.5rem; }

/* ——— Grids ——— */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ——— Cards ——— */
.card-pad { padding: 1.75rem; }
@media (min-width: 640px) { .card-pad { padding: 2rem; } }
.card h3 { margin: 0 0 0.75rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--fog-500); line-height: 1.65; font-size: 0.98rem; }
.card .card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--signal-400);
  margin-bottom: 0.75rem;
}
a.card { text-decoration: none; display: block; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--signal-400);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s var(--ease-award), color 0.3s ease;
}
.card-lift:hover .card-link,
a.card:hover .card-link {
  gap: 0.7rem;
  color: var(--signal-300);
}

/* ——— Architecture diagram ——— */
.arch { position: relative; }
.arch-node {
  border: 1px solid var(--line);
  background: var(--ink-900);
  border-radius: var(--radius-panel);
  padding: 1.25rem 1.5rem;
  text-align: center;
  position: relative;
}
.arch-node .node-name { font-weight: 600; letter-spacing: 0.06em; font-size: 0.95rem; }
.arch-node .node-sub { color: var(--fog-500); font-size: 0.85rem; margin-top: 0.35rem; font-family: var(--font-mono); }
.arch-core { border-color: rgba(62, 207, 142, 0.4); background: var(--signal-950); }
.arch-row { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-block: 0.25rem; }
.arch-caption { text-align: center; color: var(--fog-500); font-size: 0.92rem; max-width: 46rem; margin: 2rem auto 0; line-height: 1.65; }
.arch-flow { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }

/* ——— Product window mockup ——— */
.product-window {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--ink-900);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  margin-top: 3.5rem;
  text-align: left;
}
.pw-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--ink-850);
}
.pw-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--ink-700); }
.pw-label { margin-left: 0.5rem; font-size: 0.8rem; color: var(--fog-600); }
.pw-body { padding: 1.75rem; }
@media (min-width: 640px) { .pw-body { padding: 2.5rem; } }

/* ——— Command Center mockup ——— */
.cmd-center { display: grid; gap: 0; }
@media (min-width: 900px) {
  .cmd-center { grid-template-columns: 200px 1fr 260px; }
}
.cmd-sidebar {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem;
}
@media (min-width: 900px) {
  .cmd-sidebar { border-bottom: 0; border-right: 1px solid var(--line); }
}
.cmd-sidebar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.cmd-sidebar li {
  font-size: 0.88rem;
  color: var(--fog-600);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}
.cmd-sidebar li.is-active { color: var(--fog-100); background: var(--ink-800); }
.cmd-main { padding: 1.5rem; min-width: 0; }
.cmd-input {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  color: var(--fog-600);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.cmd-thread { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.cmd-msg { display: flex; gap: 0.75rem; font-size: 0.92rem; line-height: 1.6; }
.cmd-msg .bubble-user {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.7rem 1rem;
  color: var(--fog-100);
}
.cmd-msg .bubble-system { color: var(--fog-500); padding: 0.4rem 0; }
.cmd-tasks { border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 1.25rem; }
.cmd-tasks h4, .cmd-activity h4 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fog-500);
}
.cmd-task { display: flex; align-items: flex-start; gap: 0.75rem; padding-block: 0.6rem; font-size: 0.9rem; }
.cmd-task + .cmd-task { border-top: 1px solid var(--line); }
.cmd-task .t-name { color: var(--fog-100); }
.cmd-task .t-status { color: var(--fog-600); font-size: 0.82rem; }
.task-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-top: 0.4rem; flex-shrink: 0; }
.task-dot.done { background: var(--signal-500); }
.task-dot.active { background: var(--signal-400); animation: node-pulse 2.4s ease-in-out infinite; }
.task-dot.waiting { background: var(--fog-600); }
.cmd-activity {
  border-top: 1px solid var(--line);
  padding: 1.25rem;
}
@media (min-width: 900px) {
  .cmd-activity { border-top: 0; border-left: 1px solid var(--line); }
}
.cmd-activity ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.cmd-activity li { display: flex; gap: 0.75rem; font-size: 0.85rem; }
.cmd-activity time { color: var(--fog-600); font-family: var(--font-mono); flex-shrink: 0; }
.cmd-activity span { color: var(--fog-500); }
.mockup-note { text-align: center; color: var(--fog-600); font-size: 0.82rem; margin-top: 1.25rem; }

/* ——— Demo (CommandExecutionDemo) ——— */
.demo-box { text-align: left; }
.demo-command {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--fog-100);
  border-left: 2px solid var(--signal-500);
  padding-left: 1.25rem;
  margin: 0 0 2rem;
  font-style: italic;
}
.demo-steps { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 0; }
.demo-step { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.demo-step:last-child { border-bottom: 0; }
.demo-step .step-marker {
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.75rem; color: var(--fog-600);
}
.demo-step.is-active .step-marker { border-color: var(--signal-500); color: var(--signal-400); }
.demo-step.is-done .step-marker { background: var(--signal-500); border-color: var(--signal-500); color: #06110b; }
.demo-step .step-label { font-weight: 600; font-size: 0.95rem; }
.demo-step .step-detail { color: var(--fog-500); font-size: 0.88rem; margin-top: 0.2rem; font-family: var(--font-mono); }
.demo-cols { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .demo-cols { grid-template-columns: 1fr 1fr; } }
.demo-cols h4 {
  margin: 0 0 0.9rem;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fog-500);
}
.demo-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.demo-cols li { font-size: 0.92rem; color: var(--fog-300); display: flex; gap: 0.6rem; align-items: baseline; }
.demo-cols li::before { content: "✓"; color: var(--signal-400); font-size: 0.85rem; }
.demo-complete {
  display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.08);
  border-radius: var(--radius-panel);
  padding: 1rem 1.25rem;
  font-weight: 600; color: var(--signal-300);
}
.demo-footnote { color: var(--fog-600); font-size: 0.82rem; margin-top: 1.5rem; }
.demo-actions { margin-bottom: 2rem; }
.demo-sim { font-size: 0.78rem; color: var(--fog-600); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem; }

/* ——— Agents ——— */
.agent-glyph {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(62, 207, 142, 0.3);
  background: rgba(62, 207, 142, 0.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--signal-400);
  margin-bottom: 1.25rem;
}
.coordination-note {
  text-align: center; color: var(--fog-500); font-size: 0.98rem;
  max-width: 46rem; margin: 2.5rem auto 0; line-height: 1.7;
}

/* ——— Voice pipeline / automation pipeline ——— */
.pipeline { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: center; margin-top: 2rem; }
.pipeline .pipe-step {
  border: 1px solid var(--line);
  background: var(--ink-900);
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
  color: var(--fog-300);
}
.pipeline .pipe-arrow { color: var(--signal-500); font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.5rem; }
.chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  color: var(--fog-300);
  background: var(--ink-900);
}

/* ——— Differentiator: chatbot vs AI OS ——— */
.vs-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .vs-grid { grid-template-columns: 1fr 1fr; } }
.vs-card { padding: 2rem; }
.vs-card ol { list-style: none; margin: 1.25rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.vs-card ol li {
  font-size: 0.85rem; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.45rem 0.95rem; color: var(--fog-300); background: var(--ink-850);
}
.vs-card ol li + li::before { content: none; }
.vs-note { color: var(--fog-600); font-size: 0.88rem; font-style: italic; }
.vs-card.is-aios { border-color: rgba(62, 207, 142, 0.35); }
.vs-card.is-aios ol li { border-color: rgba(62, 207, 142, 0.35); color: var(--signal-300); background: rgba(62, 207, 142, 0.06); }

/* ——— Philosophy strip ——— */
.philosophy { display: grid; gap: 1.5rem; text-align: center; }
@media (min-width: 768px) { .philosophy { grid-template-columns: repeat(3, 1fr); } }
.philosophy h3 { margin: 0 0 0.6rem; font-size: 1.15rem; font-weight: 600; }
.philosophy p { margin: 0; color: var(--fog-500); line-height: 1.65; font-size: 0.97rem; }

/* ——— Layer stack (platform page) ——— */
.layer-stack { display: flex; flex-direction: column; gap: 0.35rem; max-width: 52rem; margin-inline: auto; }
.layer {
  border: 1px solid var(--line);
  background: var(--ink-900);
  border-radius: var(--radius-panel);
  padding: 1.5rem 1.75rem;
  display: grid;
  gap: 0.4rem;
}
@media (min-width: 640px) {
  .layer { grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: baseline; }
}
.layer .layer-head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.layer .layer-name { font-weight: 600; letter-spacing: 0.05em; }
.layer .layer-tag {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--signal-400);
}
.layer p { margin: 0; color: var(--fog-500); font-size: 0.95rem; line-height: 1.65; }
.layer.is-core { border-color: rgba(62, 207, 142, 0.4); background: var(--signal-950); }
.flow-note { text-align: center; color: var(--fog-600); font-size: 0.88rem; margin-top: 1.75rem; }

/* ——— Cycle steps (platform) ——— */
.cycle-grid { display: grid; gap: 1.25rem; counter-reset: cycle; }
@media (min-width: 640px) { .cycle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cycle-grid { grid-template-columns: repeat(3, 1fr); } }
.cycle-step { padding: 1.75rem; position: relative; }
.cycle-step::before {
  counter-increment: cycle;
  content: "0" counter(cycle);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--signal-400);
  margin-bottom: 0.9rem;
  letter-spacing: 0.1em;
}

/* ——— Permission matrix table ——— */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--ink-900); }
table.matrix { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 34rem; }
table.matrix th, table.matrix td { text-align: left; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
table.matrix thead th {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fog-500);
}
table.matrix tbody tr:last-child td { border-bottom: 0; }
table.matrix td.level { font-family: var(--font-mono); font-size: 0.85rem; color: var(--signal-300); white-space: nowrap; }
.matrix-note { color: var(--fog-600); font-size: 0.88rem; margin-top: 1.25rem; font-style: italic; }

/* ——— Code sketch (developers) ——— */
.code-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #0a0c0e;
  overflow: hidden;
  margin-top: 2rem;
}
.code-block pre {
  margin: 0; padding: 1.75rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.88rem; line-height: 1.75;
  color: var(--fog-300);
  overflow-x: auto;
}
.code-block .tok-comment { color: var(--fog-600); }
.code-caption { text-align: center; color: var(--fog-600); font-size: 0.85rem; margin-top: 1rem; font-style: italic; }

/* ——— Voice pipeline connector direction ——— */
.voice-conn .conn-v { display: inline; }
.voice-conn .conn-h { display: none; }
@media (min-width: 768px) {
  .voice-conn .conn-v { display: none; }
  .voice-conn .conn-h { display: inline; }
}

/* ——— Inline links ——— */
.link {
  color: var(--signal-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover { color: var(--signal-400); }

/* ——— Character counter ——— */
.char-count {
  font-size: 0.8rem; color: var(--fog-600);
  text-align: right; margin-top: 0.4rem;
}

/* ——— Contact page layout ——— */
/* ——— Contact page: form on top, info cards in a compact row ——— */
.contact-cards { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.contact-cards > * { min-width: 0; }
.contact-cards .card { height: 100%; }
@media (min-width: 800px) {
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ——— Invalid form fields (client-side validation) ——— */
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.15);
}

/* ==========================================================================
   Restored styles (reconstructed 2026-09-20)
   ========================================================================== */

/* ——— Hero atmosphere ——— */
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42rem 22rem at 50% -4rem, rgba(62, 207, 142, 0.12), transparent 65%),
    radial-gradient(30rem 18rem at 85% 30%, rgba(62, 207, 142, 0.05), transparent 60%);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(48rem 30rem at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(48rem 30rem at 50% 0%, black 30%, transparent 75%);
}

/* ——— Living hero background: slow-drifting green aurora ——— */
.hero-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-aurora::before,
.hero-aurora::after {
  content: "";
  position: absolute;
  width: 58rem;
  height: 58rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.hero-aurora::before {
  background: radial-gradient(circle, rgba(62, 207, 142, 0.20), transparent 65%);
  top: -20rem;
  left: -14rem;
  animation: aurora-drift 24s ease-in-out infinite alternate;
}
.hero-aurora::after {
  background: radial-gradient(circle, rgba(62, 207, 142, 0.13), transparent 65%);
  bottom: -24rem;
  right: -12rem;
  animation: aurora-drift 32s ease-in-out infinite alternate-reverse;
}
@keyframes aurora-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(9rem, 6rem) scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-aurora::before, .hero-aurora::after { animation: none; }
}

/* ——— Tinted sections ——— */
.section-tint {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.03));
  border-block: 1px solid var(--line);
}

/* ——— Hairline grid (capabilities / principles) ——— */
.hairline {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.hairline > * {
  padding: 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hairline > * h3 { margin: 0 0 0.75rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.hairline > * p { margin: 0; color: var(--fog-500); font-size: 0.95rem; line-height: 1.65; }
@media (min-width: 640px) {
  .hairline.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .hairline.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hairline.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.cell-index {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--fog-600);
  letter-spacing: 0.08em; margin: 0 0 1rem;
}

/* ——— Small notes ——— */
.dot-note { display: flex; align-items: center; justify-content: center; gap: 0.6rem; color: var(--fog-500); font-size: 0.92rem; }
.dot-note .gdot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--signal-400); flex-shrink: 0; }
.teaser-note { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; color: var(--fog-500); font-size: 0.9rem; }
.eg { color: var(--fog-600); }

/* ——— Check lists ——— */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--fog-300); font-size: 0.95rem; line-height: 1.6; }
.check-circle {
  width: 1.35rem; height: 1.35rem; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(62, 207, 142, 0.45); color: var(--signal-400);
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem;
  margin-top: 0.15rem;
}

/* ——— Cycle steps arrows ——— */
.cycle-step .cycle-arrow {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: var(--signal-400); font-size: 1.1rem;
  transition: transform 0.3s var(--ease-out);
}
.cycle-step:hover .cycle-arrow { transform: translateX(5px); }

/* ——— Capability cards: link row ——— */
.cap-link-row {
  display: flex; align-items: center; gap: 0.45rem;
  margin-top: 1rem; color: var(--signal-400);
  font-weight: 600; font-size: 0.95rem;
}
.cap-link-row .arr { transition: transform 0.3s var(--ease-out); }
a:hover .cap-link-row .arr { transform: translateX(4px); }
.cap-spacer { height: 1.35rem; margin-top: 1rem; }
a.hairline-cell { text-decoration: none; display: block; }

/* ——— Code tokenizer ——— */
.tok-str { color: var(--signal-300); }
.tok-com { color: var(--fog-600); }

/* ——— Router panels ——— */
.router-panels { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) {
  .router-panels { flex-direction: row; }
  .router-panels > * { flex: 1; }
}

/* ——— Coordination note (agents) ——— */
.coord-cell {
  grid-column: 1 / -1;
  text-align: center; color: var(--fog-500); font-size: 0.98rem;
  max-width: 46rem; margin: 0.5rem auto 0; line-height: 1.7;
}

/* ——— Demo extras ——— */
.step-head { display: flex; align-items: center; gap: 0.85rem; }
.step-num {
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.75rem; color: var(--fog-600);
  transition: all 0.3s var(--ease-out);
}
.demo-step.is-active .step-num { border-color: var(--signal-500); color: var(--signal-400); }
.demo-step.is-done .step-num { background: var(--signal-500); border-color: var(--signal-500); color: #06110b; }
.step-label { font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.step-live {
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--signal-400); opacity: 0;
}
.demo-step.is-active .step-live { opacity: 1; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.demo-result::before { content: none; }
.demo-result .r-check { color: var(--signal-400); font-size: 0.85rem; }
.demo-result { opacity: 0.35; transition: opacity 0.4s var(--ease-out); }
.demo-result.is-on { opacity: 1; }
.btn-demo {
  font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(62, 207, 142, 0.1);
  border: 1px solid rgba(62, 207, 142, 0.4);
  color: var(--signal-300);
  padding: 0.7rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  transition: all 0.25s var(--ease-out);
}
.btn-demo:hover { background: rgba(62, 207, 142, 0.18); transform: translateY(-1px); }

/* ——— Agent pills (demo) ——— */
.agent-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.agent-pill {
  font-size: 0.8rem; color: var(--fog-500);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.35rem 0.8rem;
  opacity: 0.4; transition: all 0.4s var(--ease-out);
}
.agent-pill.is-on { opacity: 1; border-color: rgba(62, 207, 142, 0.45); color: var(--signal-300); }

/* ——— Agents grid ——— */
/* ——— Floating UI: chat hint bubble + back-to-top ——— */
.chat-hint {
  position: fixed;
  right: 30px;
  bottom: 102px;
  z-index: 80;
  max-width: 15rem;
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  padding: 0.85rem 2rem 0.85rem 1rem;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  opacity: 0;
  translate: 0 8px;
  scale: 0.96;
  transform-origin: bottom right;
  transition: opacity 0.35s var(--ease-out), translate 0.35s var(--ease-out), scale 0.35s var(--ease-out);
  pointer-events: none;
}
.chat-hint.is-visible { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
.chat-hint::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--ink-800);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.chat-hint strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--fog-100); }
.chat-hint span { display: block; font-size: 0.8rem; color: var(--fog-500); margin-top: 0.15rem; line-height: 1.45; }
.chat-hint-close {
  position: absolute;
  top: 0.3rem;
  right: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: none;
  border: 0;
  border-radius: 0.5rem;
  color: var(--fog-500);
  cursor: pointer;
}
.chat-hint-close:hover { color: var(--fog-100); background: rgba(255, 255, 255, 0.06); }

.to-top {
  position: fixed;
  right: 102px;
  bottom: 30px;
  z-index: 80;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 14, 17, 0.85);
  border: 1px solid var(--line-strong);
  color: var(--fog-100);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  translate: 0 8px;
  pointer-events: none;
  transition: opacity 0.3s ease, translate 0.3s ease, background-color 0.25s ease, transform 0.25s var(--ease-out);
}
.to-top.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: rgba(26, 29, 35, 0.95); }
.to-top:active { transform: scale(0.94); }
@media (prefers-reduced-motion: reduce) {
  .chat-hint, .to-top { transition: none; }
}

/* ——— Scroll-spy: sticky capability index ——— */
.spy-layout { display: grid; gap: 2rem; }
.spy-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.spy-nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.9rem 0.55rem 1.5rem;
  border-radius: 0.6rem;
  color: var(--fog-500);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.spy-nav a::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  translate: 0 -50%;
  width: 3px;
  height: 0;
  border-radius: 2px;
  background: var(--signal-500);
  transition: height 0.3s var(--ease-out);
}
.spy-nav a:hover { color: var(--fog-100); }
.spy-nav a.is-active { color: var(--fog-100); background: rgba(62, 207, 142, 0.07); }
.spy-nav a.is-active::before { height: 60%; }
.spy-panel {
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.spy-panel:last-child { border-bottom: 0; }
.spy-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--signal-400);
  margin: 0 0 0.75rem;
}
.spy-panel h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
}
.spy-desc { font-size: 1.08rem; line-height: 1.65; color: var(--fog-300); margin: 0; max-width: 38rem; }
.spy-panel .cell-note { margin-top: 0.9rem; max-width: 38rem; }
@media (min-width: 960px) {
  .spy-layout { grid-template-columns: 15rem 1fr; gap: 3.5rem; align-items: start; }
  .spy-nav { position: sticky; top: 6rem; }
}
@media (max-width: 959px) {
  .spy-nav {
    position: sticky;
    top: 4rem;
    z-index: 20;
    margin-inline: -1.25rem;
    padding: 0.6rem 1.25rem;
    background: rgba(8, 9, 11, 0.88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-block: 1px solid var(--line);
  }
  .spy-nav ul { flex-direction: row; overflow-x: auto; gap: 0.5rem; scrollbar-width: none; }
  .spy-nav ul::-webkit-scrollbar { display: none; }
  .spy-nav a { white-space: nowrap; padding: 0.5rem 0.95rem; }
  .spy-nav a::before { display: none; }
  .spy-panel { min-height: 0; padding: 1.5rem 0; }
}

/* ——— Bento grid (agents) ——— */
.bento-grid { display: grid; gap: 1.25rem; }
.bento-grid .agent-card { margin: 0; }
.bento-xl { border-color: rgba(62, 207, 142, 0.35); }
@media (min-width: 700px) {
  .bento-grid { grid-template-columns: repeat(6, 1fr); }
  .bento-grid .bento-xl { grid-column: span 4; }
  .bento-grid .bento-m { grid-column: span 3; }
  .bento-grid .bento-s { grid-column: span 2; }
  .bento-grid .bento-full { grid-column: 1 / -1; }
}
.agent-card .agent-glyph { margin-bottom: 1.25rem; }

/* ——— Command Center extras ——— */
.cmd-msg.user { display: flex; justify-content: flex-end; }
.cmd-input-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cmd-send {
  width: 2rem; height: 2rem; border-radius: 50%; flex-shrink: 0;
  background: var(--signal-500); color: #06110b;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.task-check {
  width: 1.25rem; height: 1.25rem; border-radius: 50%; flex-shrink: 0;
  background: rgba(62, 207, 142, 0.15); color: var(--signal-400);
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem;
  margin-top: 0.15rem;
}
.pw-badge { margin-left: auto; }

/* ——— Voice pipeline ——— */
.voice-pipe { list-style: none; margin: 2.5rem 0 0; padding: 0; display: flex; flex-direction: column; }
@media (min-width: 768px) { .voice-pipe { flex-direction: row; align-items: stretch; } }
.voice-pipe li { display: flex; flex: 1; align-items: stretch; }
.voice-step { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; flex: 1; text-align: center; }
.voice-num {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--signal-400);
  border: 1px solid rgba(62, 207, 142, 0.35); border-radius: 999px;
  padding: 0.3rem 0.75rem; letter-spacing: 0.06em;
}
.voice-label { font-weight: 500; font-size: 0.95rem; max-width: 12rem; }
.voice-conn { display: flex; align-items: center; justify-content: center; color: var(--fog-600); padding: 0.25rem; }
@media (min-width: 768px) { .voice-conn { padding-inline: 0.25rem; } }

/* ——— Differentiator ——— */
.diff-steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; align-items: center; gap: 0.75rem; }
.diff-steps li {
  border: 1px solid var(--line-strong); border-radius: var(--radius-panel);
  padding: 0.7rem 1.2rem; font-weight: 600; font-size: 0.95rem; color: var(--fog-300);
}
.diff-sep { color: var(--fog-600); }
.diff-aios-steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.diff-aios-steps li { display: flex; align-items: center; gap: 0.5rem; }
.diff-num {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--signal-400);
  border: 1px solid rgba(62, 207, 142, 0.35); border-radius: 50%;
  width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center;
}
.diff-pill {
  border: 1px solid rgba(62, 207, 142, 0.3); background: rgba(62, 207, 142, 0.06);
  border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.88rem; font-weight: 500;
}

/* ——— Philosophy strip ——— */
.philo-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal-400); letter-spacing: 0.1em; margin: 0; }

/* ——— Devices ——— */
.devices-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .devices-grid { grid-template-columns: repeat(4, 1fr); } }
.device-card { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; color: var(--fog-300); font-weight: 500; }
.device-card svg { color: var(--signal-400); }

/* ——— Audit timeline ——— */
.audit-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .audit-grid { grid-template-columns: 1fr 1fr; } }
.audit-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.audit-timeline li { display: flex; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.audit-timeline li:last-child { border-bottom: 0; }
.audit-dot {
  width: 0.6rem; height: 0.6rem; border-radius: 50%; flex-shrink: 0; margin-top: 0.4rem;
  background: var(--signal-500);
}
.audit-dot.waiting { background: transparent; border: 1px solid var(--signal-400); animation: pulse 1.6s ease-in-out infinite; }
.audit-text { display: flex; justify-content: space-between; gap: 1rem; flex: 1; font-size: 0.95rem; }
.audit-text time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--fog-600); white-space: nowrap; }
.audit-text.is-waiting { color: var(--signal-300); }

/* ——— 404 ——— */
.not-found { text-align: center; padding: 10rem 0 6rem; }
.not-found .eyebrow { margin-bottom: 1.25rem; }
.not-found .display { margin-bottom: 1.5rem; }
.not-found .lede { max-width: 36rem; margin: 0 auto 2.5rem; }

/* ——— Platform: layer separators ——— */
.layer-sep { display: flex; justify-content: center; padding: 0.35rem 0; }

/* ——— Spotlight (capabilities) ——— */
.spot-card { max-width: 52rem; margin-inline: auto; padding: 2.5rem; text-align: center; }
@media (min-width: 640px) { .spot-card { padding: 3.5rem; } }
.spot-request {
  font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em;
  margin: 1rem 0 2.5rem; font-style: italic;
}
.spot-steps { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 0; text-align: left; max-width: 36rem; margin-inline: auto; }
.spot-steps li { display: flex; gap: 1rem; align-items: flex-start; padding: 0.8rem 0; border-bottom: 1px solid var(--line); color: var(--fog-300); font-size: 0.95rem; }
.spot-steps li:last-child { border-bottom: 0; }
.spot-steps li::before {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; flex-shrink: 0; margin-top: 0.4rem;
  border: 1px solid var(--signal-500); box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.12);
}
.spot-result {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid rgba(62, 207, 142, 0.35); background: rgba(62, 207, 142, 0.08);
  border-radius: var(--radius-panel); padding: 0.9rem 1.4rem;
  color: var(--signal-300); font-weight: 600; font-size: 0.95rem;
}

/* ——— Data boundary (private AI) ——— */
.boundary-panel {
  display: grid; gap: 1.5rem; max-width: 56rem; margin-inline: auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius-card);
  padding: 2rem; background: var(--ink-900);
}
@media (min-width: 768px) { .boundary-panel { grid-template-columns: 1fr 1fr; } }
.boundary-cell ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.boundary-cell li { color: var(--fog-500); font-size: 0.93rem; padding-left: 1.25rem; position: relative; }
.boundary-cell li::before { content: "–"; position: absolute; left: 0; color: var(--fog-600); }
.boundary-title { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; margin: 0; }
.bdot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--fog-600); flex-shrink: 0; }
.boundary-cell.is-inside .bdot { background: var(--signal-400); box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.15); }
.boundary-cell.is-inside { border: 1px solid rgba(62, 207, 142, 0.25); border-radius: var(--radius-panel); padding: 1.25rem; }

/* ——— Permission matrix (security) ——— */
.matrix-card {
  border: 1px solid var(--line-strong); border-radius: var(--radius-card);
  background: var(--ink-900); overflow: hidden;
}
.matrix-head, .matrix-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 1.5rem;
}
.matrix-head {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fog-600); border-bottom: 1px solid var(--line);
}
.matrix-row { border-bottom: 1px solid var(--line); }
.matrix-row:last-child { border-bottom: 0; }
.m-action { font-weight: 500; font-size: 0.95rem; }
.level-pill {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.35rem 0.8rem; color: var(--fog-500); white-space: nowrap;
}
.level-pill.ask { border-color: rgba(62, 207, 142, 0.5); color: var(--signal-300); }
.level-pill.auto { border-color: rgba(62, 207, 142, 0.5); background: rgba(62, 207, 142, 0.08); color: var(--signal-300); }

/* ——— Permission level cards ——— */
.level-card { position: relative; overflow: hidden; }
.level-accent {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--signal-400), var(--signal-600));
}
.level-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.level-name { margin: 0; font-size: 1.05rem; }
.level-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fog-600); }
.level-example { margin-top: 0.9rem; font-size: 0.85rem; color: var(--fog-600); }

/* ——— Code window (developers sketch) ——— */
.code-win { border: 1px solid var(--line); border-radius: var(--radius-card); background: #0a0c0e; overflow: hidden; }
.code-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.code-bar .cdot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--ink-700); }
.code-file { margin-left: 0.75rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--fog-500); }

/* ——— Updates timeline ——— */
.timeline { display: flex; flex-direction: column; gap: 1.25rem; max-width: 48rem; list-style: none; margin: 0; padding: 0; }
.timeline-item { padding: 1.75rem; }
.timeline-item .t-date {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--signal-400); margin: 0 0 0.6rem;
}
.timeline-item h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.timeline-item p { margin: 0; color: var(--fog-500); font-size: 0.95rem; line-height: 1.65; }
.timeline-note { color: var(--fog-600); font-size: 0.9rem; font-style: italic; margin-top: 2rem; }

/* ——— Legal / prose ——— */
.prose-narrow { max-width: 46rem; }
.prose-block { margin-bottom: 2.5rem; }
.prose-block h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.9rem; }
.prose-block p { margin: 0; color: var(--fog-500); line-height: 1.75; font-size: 1rem; }
.prose-closing { color: var(--fog-600); font-size: 0.92rem; font-style: italic; line-height: 1.7; }

/* ——— Forms ——— */
.aios-form { max-width: 40rem; }
.form-grid { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field-full { grid-column: 1 / -1; }
}
.form-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-field label { font-size: 0.9rem; font-weight: 600; color: var(--fog-300); }
.form-field .optional { font-weight: 400; color: var(--fog-600); font-size: 0.82rem; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea,
.form-field select {
  font: inherit;
  color: var(--fog-100);
  background: var(--ink-850);
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  padding: 0.8rem 1.1rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fog-600); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--signal-500);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.15);
}
.form-field textarea { resize: vertical; min-height: 6rem; }

/* ——— Radio pills ——— */
.pill-group { border: 0; padding: 0; margin: 0 0 1.75rem; }
.pill-group legend { font-size: 0.9rem; font-weight: 600; color: var(--fog-300); padding: 0; margin-bottom: 0.75rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill { position: relative; cursor: pointer; }
.pill input {
  position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden;
}
.pill span {
  display: inline-block;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.55rem 1.15rem; font-size: 0.9rem; color: var(--fog-300);
  transition: all 0.2s var(--ease-out); background: var(--ink-900);
}
.pill:hover span { border-color: var(--fog-500); transform: translateY(-1px); }
.pill input:checked + span {
  border-color: var(--signal-500); color: var(--signal-300);
  background: rgba(62, 207, 142, 0.08);
}
.pill input:focus-visible + span { outline: 2px solid var(--signal-400); outline-offset: 3px; }

/* ——— Honeypot ——— */
.hp-field {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ——— Form status ——— */
.form-success {
  border: 1px solid rgba(62, 207, 142, 0.35); background: rgba(62, 207, 142, 0.08);
  border-radius: var(--radius-panel); padding: 1.5rem; margin-bottom: 1.5rem;
}
.form-success h3 { color: var(--signal-300); margin: 0 0 0.5rem; font-size: 1.1rem; }
.form-success p { margin: 0; color: var(--fog-300); font-size: 0.95rem; }
.form-error {
  border: 1px solid rgba(229, 72, 77, 0.4); background: rgba(229, 72, 77, 0.08);
  border-radius: var(--radius-panel); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}
.form-error h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.form-error p { margin: 0; color: var(--fog-300); font-size: 0.93rem; }
.field-error { margin: 0.45rem 0 0; font-size: 0.82rem; color: #f87171; }
.privacy-note { color: var(--fog-600); font-size: 0.85rem; margin-top: 1.25rem; }

/* ——— Contact / early-access layout ——— */
.contact-wrap { max-width: 60rem; margin-inline: auto; }
.contact-wrap .aios-form { max-width: none; }
.early-access-form-wrap .aios-form { max-width: none; }

/* ——— Footer ——— */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; margin-top: 2rem; background: var(--ink-900); }
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
/* Newsletter strip above the footer columns */
.footer-newsletter {
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0; margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer-newsletter-text { color: var(--fog-500); margin-top: 0.5rem; max-width: 28rem; }
.footer-newsletter .aios-newsletter { flex: 1 1 22rem; max-width: 30rem; }
/* EmailOctopus embed wrapper: keep the provider form tidy on dark */
.aios-newsletter { max-width: 30rem; margin-inline: auto; text-align: left; }
.footer-tagline { color: var(--fog-500); font-size: 0.92rem; line-height: 1.7; max-width: 22rem; margin: 1rem 0 0; }
.footer-company { color: var(--fog-500); font-size: 0.92rem; line-height: 1.7; margin: 0.75rem 0 0; }
.footer-company a { color: var(--fog-300); }
.footer-address { color: var(--fog-600); font-size: 0.85rem; line-height: 1.7; margin: 0.75rem 0 0; }
.footer-nav ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-nav a { color: var(--fog-500); text-decoration: none; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--signal-300); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: var(--fog-600); font-size: 0.85rem;
}

/* ——— Assigned WP menus ——— */
.site-nav .nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2rem; }
.footer-menu .nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.footer-menu a { color: var(--fog-500); text-decoration: none; font-size: 0.92rem; }
.footer-menu a:hover { color: var(--signal-300); }

/* ——— FAQ accordion (1.1.0) ——— */
.faq { max-width: 46rem; margin-inline: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item.is-open { border-color: rgba(62, 207, 142, 0.35); }
.faq-q { margin: 0; font-size: 1rem; font-weight: 600; }
.faq-q button {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: none; border: 0; cursor: pointer;
  color: var(--fog-100); font: inherit; text-align: left;
}
.faq-q button:hover { color: var(--signal-300); }
.faq-q button:focus-visible { outline: 2px solid var(--signal-500); outline-offset: -2px; border-radius: 14px; }
.faq-icon {
  position: relative; flex: none; width: 14px; height: 14px;
  transition: transform 0.25s ease;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--signal-500); border-radius: 2px;
}
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-icon::after { left: 6px; top: 0; width: 2px; height: 14px; transition: opacity 0.2s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-item.is-open .faq-icon::after { opacity: 0; }
.faq-a { padding: 0 1.25rem; }
.faq-a p { margin: 0 0 1.25rem; color: var(--fog-500); font-size: 0.95rem; line-height: 1.7; }
.faq-a p:last-child { margin-bottom: 1.25rem; }

/* ——— Pricing (1.7.3) ——— */
.pay-tabs {
  display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
  margin: 0 0 2.75rem;
}
.pay-tab {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fog-300);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.pay-tab:hover { border-color: rgba(62, 207, 142, 0.5); color: var(--fog-100); transform: translateY(-1px); }
.pay-tab:focus-visible { outline: 2px solid var(--signal-400); outline-offset: 2px; }
.pay-tab-active {
  background: var(--signal-500);
  border-color: var(--signal-500);
  color: #06110c;
}
.pay-tab-active:hover { color: #06110c; border-color: var(--signal-400); }

.tier-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) {
  .tier-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.tier-card { display: flex; flex-direction: column; position: relative; }
.tier-card .eyebrow { margin-bottom: 0.75rem; }
.tier-badge {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  margin: 0; padding: 0.35rem 1rem; border-radius: 999px;
  background: var(--signal-500); color: #06110c;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.tier-popular { border-color: rgba(62, 207, 142, 0.55) !important; box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.25), 0 24px 60px -30px rgba(62, 207, 142, 0.35); }
.tier-price {
  margin: 0 0 1.5rem;
  font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  color: var(--fog-100);
}
.tier-price .tier-per { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--fog-500); }
.tier-features {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: flex; flex-direction: column; gap: 0.7rem; flex: 1;
  color: var(--fog-300); font-size: 0.95rem; line-height: 1.55;
}
.tier-features li { position: relative; padding-left: 1.6rem; }
.tier-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--signal-400); font-weight: 700;
}
.tier-card form { margin-top: auto; }

.pay-reassure {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.5rem; padding: 0; list-style: none;
  color: var(--fog-500); font-size: 0.9rem;
}
.pay-reassure li { display: flex; align-items: center; gap: 0.5rem; }
.pay-reassure .ok { color: var(--signal-400); font-weight: 700; }

.amount-row {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 1.25rem;
}
.amount-cur { font-size: 1.5rem; font-weight: 700; color: var(--fog-300); }
.amount-input {
  width: 10rem; padding: 0.8rem 1rem; border-radius: 0.75rem;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  color: var(--fog-100); font: inherit; font-size: 1.25rem; font-weight: 600; text-align: center;
}
.amount-input:focus { outline: 2px solid var(--signal-500); outline-offset: 1px; border-color: var(--signal-500); }
.donate-amounts .btn-secondary { font-size: 1rem; padding: 0.7rem 1.25rem; }
.donate-amounts .btn-secondary.is-picked { border-color: var(--signal-500); color: var(--signal-300); }

.pay-faq { max-width: 44rem; margin: 3.5rem auto 0; }
.pay-faq h2 { font-size: 1.35rem; margin-bottom: 1.25rem; text-align: center; }
.pay-faq details {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.25rem; margin-bottom: 0.75rem; background: rgba(255, 255, 255, 0.02);
}
.pay-faq summary { cursor: pointer; font-weight: 600; color: var(--fog-100); }
.pay-faq summary:focus-visible { outline: 2px solid var(--signal-500); outline-offset: 2px; border-radius: 8px; }
.pay-faq details p { margin: 0.75rem 0 0; color: var(--fog-500); font-size: 0.95rem; line-height: 1.7; }

/* ——— Motion pack (1.7.0): blur reveal, grain, progress, parallax, sticky stack, horizontal pin, marquee, count-up, magnetic, page wipe ——— */

/* 1. Blur reveal — upgrade of the base reveal */
.reveal {
  filter: blur(10px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { filter: blur(0); }
.reveal-group > * {
  filter: blur(8px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.05s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.1s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.15s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.2s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.25s; }
.reveal-group.is-visible > *:nth-child(7) { transition-delay: 0.3s; }
.reveal-group.is-visible > * { filter: blur(0); }

/* Hero stagger entrance — now with blur */
.hero-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(12px);
  animation: hero-rise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes hero-rise { to { opacity: 1; transform: none; filter: blur(0); } }

/* 2. Film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

/* 3. Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 70;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--signal-600), var(--signal-400));
  pointer-events: none;
}

/* 4. Parallax layers (JS-driven via [data-parallax]) */
[data-parallax] { will-change: transform; }

/* 5. Sticky stack — platform layer anatomy */
.stack-motion {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 52rem;
  margin-inline: auto;
}
.stack-motion .layer {
  position: sticky;
  top: calc(84px + var(--i, 0) * 28px);
  transform: scale(calc(1 - var(--i, 0) * 0.03));
  transform-origin: center top;
  box-shadow: 0 -18px 48px -24px rgba(0, 0, 0, 0.85);
}
.stack-motion .layer-sep { display: none; }

/* 6. Horizontal pin — the loop, pinned while steps travel sideways */
.hpin { position: relative; }
.hpin.hpin-active { height: 320vh; }
.hpin-viewport { position: relative; }
.hpin.hpin-active .hpin-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hpin-track.hpin-track-active {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding-inline: max(1.25rem, calc((100vw - 72rem) / 2));
  will-change: transform;
}
.hpin-track.hpin-track-active .cycle-step { flex: 0 0 24rem; max-width: 24rem; }
.hpin-track.hpin-track-active .cycle-step::before { position: static; }

/* 6b. Control loop — living background: rotating orbit ring, travelling
   pulse, scroll-linked aurora and a progress rail. */
.loop-section { position: relative; overflow: hidden; overflow: clip; }
.loop-decor { position: absolute; inset: 0; pointer-events: none; }
.loop-section > .wrap { position: relative; z-index: 1; }
.loop-aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(42rem 30rem at 20% 30%, rgba(62,207,142,0.10), transparent 60%),
    radial-gradient(36rem 26rem at 80% 70%, rgba(46,160,200,0.08), transparent 60%);
  filter: hue-rotate(calc(var(--loop-p, 0) * 50deg));
  animation: loop-aurora-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes loop-aurora-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.06); }
}
.loop-ring {
  position: absolute; left: 50%; top: 50%;
  width: min(1100px, 160vmin); height: auto;
  transform: translate(-50%, -50%);
  animation: loop-ring-spin 120s linear infinite;
  opacity: 0.8;
}
@keyframes loop-ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.loop-pulse { filter: drop-shadow(0 0 10px #3ecf8e); }
.loop-progress {
  height: 2px; max-width: 36rem; margin: 0 auto 2.5rem;
  background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden;
}
.loop-progress-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #2ea36f, #3ecf8e);
  border-radius: 2px; box-shadow: 0 0 12px rgba(62,207,142,0.6);
}
@media (max-width: 899px) {
  .loop-progress { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .loop-ring, .loop-aurora { animation: none; }
}

/* 7. Marquee — capabilities strip */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(13, 14, 17, 0.6);
  padding: 1.1rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-half { display: flex; align-items: center; gap: 3rem; padding-right: 3rem; }
.marquee-item {
  display: flex; align-items: center; gap: 3rem;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-500);
}
.marquee-dot { color: var(--signal-500); font-size: 0.7rem; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* 8. Count-up numbers */
[data-countup] { font-variant-numeric: tabular-nums; }

/* 9. Magnetic primary buttons (JS adds .is-magnetic) */
.btn-primary.is-magnetic { transition: box-shadow 0.25s ease; will-change: transform; }

/* 10. Page wipe transition (1.11.0) — removed, superseded by the curtain. */

/* Typewriter caret */
.type-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--signal-400);
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ——— Reduced motion (1.1.0, extended 1.7.0) ——— */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1 !important; transform: none !important; transition: none !important; filter: none !important; }
  .card-lift { transition: none !important; }
  .card-lift:hover { transform: none !important; }
  .site-nav a::after { display: none !important; }
  .hero-stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .faq-icon, .faq-item { transition: none !important; }
  .flow-traveler, .flow-dot { animation: none !important; }
  .marquee-track { animation: none !important; }
  .type-caret { display: none !important; }
  .hpin.hpin-active { height: auto !important; }
  .hpin.hpin-active .hpin-viewport { position: static !important; height: auto !important; display: block !important; }
  .stack-motion .layer { position: static !important; transform: none !important; }
  html { scroll-behavior: auto !important; }
}

/* ——— Embedded Stripe checkout ——— */
#aios-pay-checkout { text-align: left; }
.aios-pay-summary { font-size: 1.2rem; font-weight: 600; margin: 0.25rem 0 0; }
.aios-pay-field { margin: 1.25rem 0 0; }
.aios-pay-field label { display: block; font-size: 0.85rem; color: var(--fog-500); margin-bottom: 0.4rem; }
.aios-pay-field input {
  width: 100%; box-sizing: border-box;
  padding: 0.7rem 1rem; border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04); color: inherit; font-size: 1rem;
}
.aios-pay-field input:focus { outline: none; border-color: var(--signal-500); box-shadow: 0 0 0 3px rgba(62,207,142,0.15); }
.aios-payment-element { margin: 1.25rem 0 0; }
.aios-pay-error {
  background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.4);
  color: #fca5a5; padding: 0.75rem 1rem; border-radius: 0.5rem;
  font-size: 0.9rem; margin: 1rem 0 0;
}
#aios-pay-submit.is-loading { opacity: 0.7; cursor: wait; }

/* ——— Development Status page (1.10.0) ——— */

/* Trajectory stepper */
.traj { position: relative; padding-top: 2.5rem; }
.traj-line { position: absolute; top: 0; left: 2%; right: 2%; width: 96%; height: 8px; }
.traj-track { stroke: var(--line-strong); stroke-width: 2; }
.traj-flow { stroke: var(--signal-400); stroke-width: 2; stroke-dasharray: 6 10; animation: flow-dash 2.2s linear infinite; filter: drop-shadow(0 0 6px rgba(62, 207, 142, 0.7)); }
.traj-nodes { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .traj-nodes { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
.traj-node { position: relative; padding-top: 0.25rem; }
.traj-marker { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--ink-900); margin-bottom: 0.9rem; position: relative; z-index: 1; }
.traj-check { color: var(--signal-400); font-weight: 700; font-size: 1.1rem; }
.traj-node.is-done .traj-marker { border-color: rgba(62, 207, 142, 0.55); box-shadow: 0 0 20px -6px rgba(62, 207, 142, 0.5); }
.traj-half { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: conic-gradient(var(--signal-400) 0 50%, transparent 50% 100%); border: 1px solid var(--signal-400); }
.traj-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--fog-600); }
.traj-node.is-here .traj-marker { border-color: var(--signal-400); }
.traj-node.is-here .traj-dot { background: var(--signal-400); animation: node-pulse 2s ease-in-out infinite; box-shadow: 0 0 16px 2px rgba(62, 207, 142, 0.8); }
.traj-name { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: 0.5rem; }
.traj-node.is-next { opacity: 0.45; }
.traj-desc { display: block; color: var(--fog-500); font-size: 0.92rem; line-height: 1.6; }
.traj-you { display: inline-block; margin-top: 0.6rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--ink-950); background: var(--signal-400); border-radius: 999px; padding: 0.3rem 0.8rem; animation: node-pulse 2s ease-in-out infinite; }

/* Readiness bars */
.status-bar { margin-bottom: 2.25rem; }
.status-bar:last-of-type { margin-bottom: 1.5rem; }
.status-bar-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.6rem; }
.status-bar-name { font-weight: 600; font-size: 1.1rem; }
.status-bar-pct { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; color: var(--signal-400); }
.status-bar-track { height: 0.625rem; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.status-bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--signal-600), var(--signal-400)); box-shadow: 0 0 18px -2px rgba(62, 207, 142, 0.6); transition: width 1.2s var(--ease-award); }
.status-bar-desc { color: var(--fog-500); font-size: 0.95rem; line-height: 1.65; margin-top: 0.6rem; }
.status-note { color: var(--fog-600); font-size: 0.88rem; line-height: 1.65; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.status-updated { color: var(--fog-500); font-size: 0.9rem; margin-top: 1.5rem; }

/* Readiness status labels (ТЗ §1): green / lime / yellow / gray */
.aios-rstatus { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.aios-rstatus::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.aios-rstatus.is-working-prototype { color: var(--signal-400); border-color: rgba(79, 215, 149, 0.45); background: rgba(79, 215, 149, 0.08); }
.aios-rstatus.is-internal-testing { color: #c9e265; border-color: rgba(201, 226, 101, 0.45); background: rgba(201, 226, 101, 0.08); }
.aios-rstatus.is-in-integration { color: #f2c94c; border-color: rgba(242, 201, 76, 0.45); background: rgba(242, 201, 76, 0.08); }
.aios-rstatus.is-planned { color: var(--fog-500); border-color: rgba(154, 161, 168, 0.4); background: rgba(154, 161, 168, 0.08); }
.aios-rstatus.is-active-dev { color: var(--signal-300); border-color: rgba(125, 227, 174, 0.45); background: rgba(125, 227, 174, 0.08); }
.aios-rstatus-row { margin-top: 0.9rem; }

/* Working / Remaining two-column lists under each bar */
.aios-wr { display: grid; gap: 1.25rem; margin-top: 1rem; }
@media (min-width: 640px) { .aios-wr { grid-template-columns: 1fr 1fr; } }
.aios-wr-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fog-500); margin: 0 0 0.5rem; }
.aios-wr ul { list-style: none; margin: 0; padding: 0; }
.aios-wr li { position: relative; padding-left: 1.1rem; margin-bottom: 0.35rem; color: var(--fog-300); font-size: 0.92rem; line-height: 1.55; }
.aios-wr li::before { content: "–"; position: absolute; left: 0; color: var(--fog-600); }
.aios-wr-col:first-child .aios-wr-title { color: var(--signal-400); }

/* Generic data table (Private AI: data control by deployment mode) */
.aios-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.55; }
.aios-table th, .aios-table td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.aios-table thead th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog-500); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.aios-table tbody th[scope="row"] { color: var(--fog-100); font-weight: 600; white-space: nowrap; }
.aios-table td { color: var(--fog-300); }
.aios-table tbody tr:last-child th, .aios-table tbody tr:last-child td { border-bottom: none; }
@media (max-width: 720px) { .aios-table th, .aios-table td { padding: 0.65rem 0.7rem; font-size: 0.85rem; } }

.aios-cap-status { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.aios-cap-pct { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; color: var(--signal-400); }

/* Investor stats row */
.aios-investor-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .aios-investor-stats { grid-template-columns: repeat(4, 1fr); } }
.aios-investor-stat { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--ink-800); padding: 1.25rem 1rem; text-align: center; }
.aios-investor-num { margin: 0; font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--signal-400); }
.aios-investor-label { margin: 0.5rem 0 0; color: var(--fog-500); font-size: 0.85rem; line-height: 1.5; }

/* Layer stack diagram (Tuteshko case study) */
.aios-stack { display: flex; flex-direction: column; align-items: stretch; gap: 0.35rem; }
.aios-stack-layer { border: 1px solid var(--line-strong); border-radius: var(--radius-panel); background: var(--ink-800); padding: 1.1rem 1.4rem; text-align: center; }
.aios-stack-layer.is-core { border-color: rgba(62, 207, 142, 0.55); background: var(--signal-950); box-shadow: 0 0 32px -12px rgba(62, 207, 142, 0.5); }
.aios-stack-title { margin: 0; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; }
.aios-stack-items { margin: 0.4rem 0 0; color: var(--fog-500); font-size: 0.9rem; }
.aios-stack-arrow { text-align: center; color: var(--signal-400); font-size: 1.2rem; line-height: 1; }

/* Checklist columns */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; padding-block: 0.6rem; border-bottom: 1px solid var(--line); color: var(--fog-300); }
.check-list .check { color: var(--signal-400); font-weight: 700; flex-shrink: 0; }
@media (min-width: 720px) {
  .check-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
}

/* Phases timeline */
.phases { position: relative; padding-left: 3.25rem; }
.phases-line { position: absolute; top: 0.5rem; bottom: 0.5rem; left: 1rem; width: 8px; height: calc(100% - 1rem); }
.phase { position: relative; padding-bottom: 2.5rem; }
.phase:last-child { padding-bottom: 0; }
.phase-marker { position: absolute; left: -3.25rem; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--ink-900); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--fog-300); }
.phase.is-done .phase-marker { border-color: rgba(62, 207, 142, 0.55); color: var(--signal-400); box-shadow: 0 0 20px -6px rgba(62, 207, 142, 0.5); }
.phase.is-here .phase-marker { border-color: var(--signal-400); color: var(--ink-950); background: var(--signal-400); box-shadow: 0 0 24px -4px rgba(62, 207, 142, 0.7); animation: node-pulse 2s ease-in-out infinite; }
.phase.is-next { opacity: 0.5; }
.phase-body h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.phase-body p { margin: 0; color: var(--fog-500); line-height: 1.65; }

/* Floating CTA pill */
.float-cta { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; background: var(--signal-400); color: var(--ink-950); font-weight: 700; font-size: 0.95rem; text-decoration: none; padding: 0.8rem 1.4rem; box-shadow: 0 12px 40px -8px rgba(62, 207, 142, 0.55); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s var(--ease-award); }
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: var(--signal-300); }
@media (prefers-reduced-motion: reduce) {
  .traj-flow { animation: none !important; }
  .traj-you, .traj-node.is-here .traj-dot, .phase.is-here .phase-marker { animation: none !important; }
  .status-bar-fill { transition: none !important; }
  .float-cta { transition: none !important; }
}

/* ——— Page transition curtain (1.11.0) ——— */
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--ink-950); visibility: hidden; transform: translateY(101%); pointer-events: none; }
html:not(.js) .curtain { display: none; }
.curtain.is-covering { visibility: visible; transform: none; pointer-events: all; }
.curtain.is-arriving { visibility: visible; pointer-events: all; transform: none; transition: transform 0.5s var(--ease-award); }
.curtain.is-leaving { visibility: visible; transform: translateY(-101%); transition: transform 0.6s var(--ease-award); }
.curtain-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--signal-400); box-shadow: 0 0 18px 2px rgba(62, 207, 142, 0.8); opacity: 0; transition: opacity 0.3s ease; }
.curtain.is-arriving .curtain-line { opacity: 1; }
.curtain.is-leaving .curtain-line { top: auto; bottom: 0; opacity: 1; transition: opacity 0.3s ease 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .curtain.is-arriving, .curtain.is-leaving { transition: none !important; }
}

/* ——— Full-viewport hero with DRENTIR Core diagram (1.12.0) ——— */
.hero-full { min-height: 100svh; display: flex; align-items: center; text-align: left; padding-top: 7.5rem; padding-bottom: 4.5rem; }
.hero-stage { display: grid; gap: 3rem; align-items: center; width: 100%; }
@media (min-width: 960px) { .hero-stage { grid-template-columns: 0.92fr 1.08fr; gap: 2.5rem; } }
.hero-full .hero-copy .eyebrow { margin-bottom: 1.25rem; }
.hero-full h1 { margin-bottom: 1.5rem; }
.hero-full .hero-copy .lede { margin: 0 0 2.5rem; max-width: 34rem; }
.hero-full .hero-ctas { margin-bottom: 1.75rem; }
.hero-visual { position: relative; }
.core-diagram { max-width: 34rem; margin-inline: auto; }
.core-caption { text-align: center; color: var(--fog-600); font-size: 0.85rem; margin-top: 1rem; max-width: 26rem; margin-inline: auto; line-height: 1.6; }
.core-orbit { transform-box: fill-box; transform-origin: center; animation: orbit-spin 70s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.core-pulse { animation: core-pulse 3.2s ease-in-out infinite; }
@keyframes core-pulse {
  0%, 100% { stroke-opacity: 0.6; }
  50% { stroke-opacity: 1; }
}

/* Corner interface data */
.hero-corners { position: absolute; inset: 0; pointer-events: none; }
.hc { position: absolute; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--fog-600); white-space: nowrap; }
.hc-tl { top: 6.5rem; left: 1.5rem; }
.hc-tr { top: 6.5rem; right: 1.5rem; }
.hc-bl { bottom: 1.75rem; left: 1.5rem; }
.hc-br { bottom: 1.75rem; right: 1.5rem; }
@media (max-width: 1099px) { .hero-corners { display: none; } }

/* Scroll hint */
.hero-scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); width: 1.6rem; height: 2.6rem; border: 1px solid var(--line-strong); border-radius: 999px; display: flex; justify-content: center; padding-top: 0.5rem; }
.hero-scroll span { width: 3px; height: 8px; border-radius: 999px; background: var(--signal-400); animation: scroll-hint 2s ease-in-out infinite; }
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .core-orbit, .core-pulse, .hero-scroll span { animation: none !important; }
}

/* ============ P1: Home v2 (§3) ============ */
.hero-status-chip {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.5rem;
	padding: 0.7rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(13, 14, 17, 0.55);
	font-size: 0.92rem;
	color: var(--fog-400);
}
.status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--green, #3ecf8e);
	box-shadow: 0 0 10px var(--green, #3ecf8e);
	flex: none;
	animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}
.video-slot {
	position: relative;
	aspect-ratio: 16 / 9;
	border: 1px dashed rgba(62, 207, 142, 0.45);
	border-radius: 18px;
	background: radial-gradient(ellipse at 50% 40%, rgba(62, 207, 142, 0.08), rgba(13, 14, 17, 0.9) 70%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.video-slot-inner {
	text-align: center;
	padding: 2rem;
	max-width: 34rem;
}
.video-play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 1px solid rgba(62, 207, 142, 0.5);
	color: var(--green, #3ecf8e);
	font-size: 1.5rem;
	margin-bottom: 1.25rem;
}
.video-slot-title {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--fog-100, #eef2f6);
}
.video-slot-note {
	margin-top: 0.75rem;
	color: var(--fog-500);
	font-size: 0.95rem;
	line-height: 1.65;
}
/* Concept preview player (replaces the "recording in progress" placeholder). */
.video-slot.has-player {
	aspect-ratio: auto;
	border-style: solid;
	display: block;
	padding: 0;
}
.video-slot.has-player .video-player {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}
/* ============ P1: Architecture diagram (§9.4) ============ */
.arch-diagram {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: 44rem;
	margin: 0 auto;
}
.arch-layer {
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(13, 14, 17, 0.6);
	padding: 1.1rem 1.4rem;
}
.arch-layer h4 {
	margin: 0;
	font-size: 1.02rem;
	color: var(--fog-100, #eef2f6);
}
.arch-layer p {
	margin: 0.4rem 0 0;
	color: var(--fog-500);
	font-size: 0.92rem;
	line-height: 1.6;
}
.arch-layer.is-control {
	border-color: rgba(62, 207, 142, 0.5);
	background: rgba(62, 207, 142, 0.06);
}
.arch-arrow {
	text-align: center;
	color: var(--green, #3ecf8e);
	font-size: 1.3rem;
	line-height: 1;
	padding: 0.35rem 0;
}

/* ============ P1: chat hint notice (§15) ============ */
.chat-hint-notice {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.78rem;
	color: var(--fog-500);
	line-height: 1.45;
}

/* ============ P1: DRENTIR Website Guide robot launcher ============ */
.bot-launcher {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bot-launcher.is-chat-open {
  right: auto;
  left: 26px;
}
.bot-launcher.is-chat-open .bot-thought {
  right: auto;
  left: 64px;
  transform-origin: bottom left;
}
.bot-launcher.is-chat-open .bot-card {
  display: none;
}
.bot-avatar {
  position: relative;
  width: 96px;
  height: 122px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  animation: bot-idle-life 9s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.bot-avatar:hover {
  transform: scale(1.07);
}
.bot-avatar .bot-glow {
  position: absolute;
  inset: -18%;
  background: radial-gradient(closest-side, rgba(62, 207, 142, 0.32), rgba(62, 207, 142, 0) 72%);
  pointer-events: none;
  animation: bot-glow-pulse 4.2s ease-in-out infinite;
}
@keyframes bot-glow-pulse {
  0%, 100% { opacity: 0.65; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}
.bot-avatar .bot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 5px rgba(62, 207, 142, 0.9)) drop-shadow(0 0 18px rgba(62, 207, 142, 0.35));
  transition: opacity 0.38s ease, filter 0.25s ease;
}
.bot-avatar .bot-img.is-visible {
  opacity: 1;
}
.bot-avatar:hover .bot-img {
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 6px rgba(62, 207, 142, 1)) drop-shadow(0 0 32px rgba(62, 207, 142, 0.5));
}
/* The robot lives its own life: bobbing, swaying, little hops — even idle. */
@keyframes bot-idle-life {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  14% { translate: 3px -9px; rotate: 1.6deg; }
  28% { translate: 0 -4px; rotate: 0deg; }
  42% { translate: -3px -10px; rotate: -1.8deg; }
  56% { translate: 0 -3px; rotate: 0deg; }
  68% { translate: 2px -13px; rotate: 1deg; }
  80% { translate: -1px -6px; rotate: -0.6deg; }
  92% { translate: 0 -2px; rotate: 0deg; }
}
/* Thought cloud: appears while the bot is "thinking". */
.bot-thought {
  position: absolute;
  top: -6px;
  right: 64px;
  display: flex;
  gap: 5px;
  align-items: center;
  background: #f4f7f5;
  border-radius: 999px;
  padding: 8px 12px;
  opacity: 0;
  transform: scale(0.6) translateY(6px);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.bot-thought::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  background: #f4f7f5;
  border-radius: 50%;
}
.bot-thought.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.bot-thought span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ecf8e;
  animation: bot-think 1.1s ease-in-out infinite;
}
.bot-thought span:nth-child(2) { animation-delay: 0.18s; }
.bot-thought span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bot-think {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}
/* Teaser card above the robot. */
.bot-card {
  position: absolute;
  right: 0;
  bottom: 100px;
  width: 15rem;
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  padding: 0.85rem 2rem 0.85rem 1rem;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.bot-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.bot-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--fog-100);
}
.bot-card span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--fog-400);
  line-height: 1.5;
}
.bot-card .chat-hint-notice { margin-top: 0.45rem; }
.bot-card-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: 0;
  color: var(--fog-500);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 0;
}
/* The robot replaces the AI Engine default trigger icon. */
.mwai-trigger { display: none !important; }
body.aios-bot-ready .mwai-trigger { display: none !important; }
@media (max-width: 640px) {
  .bot-launcher { right: 16px; bottom: 16px; }
  .bot-avatar { width: 74px; height: 94px; }
  .bot-card { width: 13rem; bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .bot-avatar { animation: none; }
  .bot-avatar .bot-glow { animation: none; }
  .bot-thought span { animation: none; }
}
