/* =====================================================================
   AURA — MARKETING SITE DESIGN SYSTEM
   =====================================================================
   A premium, midnight interface. Soft-white typography on a deep aubergine
   night sky. ONE brand gradient (violet → cyan) carries "One Aura"; each
   product owns one accent — Aura AI = violet, Aura Management = cyan.

   Structure of this file:
     0  Fonts + reset
     1  Tokens (colour, type, space, motion)
     2  Base elements & typography
     3  Layout primitives (container, section, eyebrow, grid)
     4  Buttons & links
     5  Navigation
     6  Hero + animated Aura orb / light field
     7  Scroll-reveal animation utilities
     8  Product panels
     9  Interface previews (browser frame, chat, console, tables, pills)
     10 Feature layouts (editorial rows, capability lists)
     11 Forms (contact)
     12 Footer
     13 Page-specific (privacy, 404)
     14 Responsive
     15 Reduced motion & print
   ===================================================================== */

/* ---- 0. FONTS + RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(139,92,246,.35); color: #fff; }
[hidden] { display: none !important; }

/* ---- 1. TOKENS -------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Night-sky neutrals */
  --bg-0:      #05050c;   /* deepest — page base */
  --bg-1:      #0a0a16;   /* sections */
  --bg-2:      #0f0f20;   /* raised bands */
  --surface:   rgba(255,255,255,.035);        /* glass card fill */
  --surface-2: rgba(255,255,255,.06);         /* raised card fill */
  --surface-3: rgba(255,255,255,.09);         /* hover */

  --ink-0: #f6f7fc;   /* headings */
  --ink-1: #e4e6f1;   /* strong body */
  --ink-2: #b7bbd2;   /* body */
  --ink-3: #8a8fac;   /* muted / secondary */
  --ink-4: #61668a;   /* faint / metadata */

  --line:        rgba(255,255,255,.09);   /* default hairline */
  --line-soft:   rgba(255,255,255,.055);  /* inner dividers */
  --line-strong: rgba(255,255,255,.16);   /* emphasised */

  /* Brand — Aura AI violet */
  --violet:        #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-deep:   #6d28d9;
  --violet-glow:   rgba(139,92,246,.45);

  /* Brand — Aura Management cyan */
  --cyan:        #22d3ee;
  --cyan-bright: #67e8f9;
  --cyan-deep:   #0891b2;
  --cyan-glow:   rgba(34,211,238,.40);

  /* Semantic (kept distinct from brand) */
  --ok:   #34d399;
  --warn: #fbbf24;
  --bad:  #fb7185;
  --ok-soft:   rgba(52,211,153,.14);
  --warn-soft: rgba(251,191,36,.14);
  --bad-soft:  rgba(251,113,133,.14);
  --info-soft: rgba(139,92,246,.14);

  /* The "One Aura" gradient */
  --grad-aura: linear-gradient(110deg, var(--violet-bright) 0%, var(--violet) 34%, #4aa8e0 66%, var(--cyan) 100%);
  --grad-aura-soft: linear-gradient(110deg, rgba(167,139,250,.9), rgba(103,232,249,.9));

  /* Active accent (pages override via .theme-* on <body>) */
  --accent:        var(--violet);
  --accent-bright: var(--violet-bright);
  --accent-deep:   var(--violet-deep);
  --accent-glow:   var(--violet-glow);
  --accent-rgb:    139,92,246;

  /* Typography */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2.85rem, 7vw, 5.5rem);
  --fs-h1:      clamp(2.1rem, 4.4vw, 3.4rem);
  --fs-h2:      clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3:      1.3rem;
  --fs-h4:      1.05rem;
  --fs-lead:    clamp(1.05rem, 1.8vw, 1.32rem);
  --fs-body:    1rem;
  --fs-sm:      .875rem;
  --fs-xs:      .78rem;
  --fs-eyebrow: .74rem;

  --lh-tight: 1.05;
  --lh-head:  1.14;
  --lh-body:  1.65;

  /* Space — 4px scale */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.25rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem;
  --s-20: 5rem; --s-24: 6rem; --s-32: 8rem;

  /* Geometry */
  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --radius-xl: 26px; --radius-pill: 999px;
  --container: 1200px;
  --container-wide: 1320px;
  --container-text: 46rem;
  --nav-h: 72px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 12px 34px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.55);
  --shadow-glow: 0 20px 60px -20px var(--accent-glow);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-fast: 140ms; --dur: 260ms; --dur-slow: 520ms;
}

/* Per-product accent themes */
body.theme-ai   { --accent: var(--violet); --accent-bright: var(--violet-bright); --accent-deep: var(--violet-deep); --accent-glow: var(--violet-glow); --accent-rgb: 139,92,246; }
body.theme-mgmt { --accent: var(--cyan);   --accent-bright: var(--cyan-bright);   --accent-deep: var(--cyan-deep);   --accent-glow: var(--cyan-glow);   --accent-rgb: 34,211,238; }

/* ---- 2. BASE ---------------------------------------------------------- */
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  background: var(--bg-0);
  overflow-x: hidden;
  position: relative;
}

/* The persistent night-sky backdrop: fixed nebula washes + faint star grain */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 78% -8%, rgba(139,92,246,.20), transparent 60%),
    radial-gradient(60% 50% at 12% 6%, rgba(34,211,238,.13), transparent 58%),
    radial-gradient(90% 70% at 50% 120%, rgba(109,40,217,.16), transparent 60%),
    var(--bg-0);
}
.sky::after {   /* subtle star/noise texture, very faint */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.5) .5px, transparent .5px);
  background-size: 3px 3px;
  opacity: .022;
}

h1, h2, h3, h4 { color: var(--ink-0); line-height: var(--lh-head); font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { color: var(--ink-2); }
strong { color: var(--ink-1); font-weight: 600; }
small { font-size: var(--fs-sm); }

a { text-decoration: none; transition: color var(--dur-fast) var(--ease); }
main a.inline { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--accent-rgb),.4); }
main a.inline:hover { text-decoration-color: var(--accent-bright); }

/* ---- 3. LAYOUT PRIMITIVES -------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-6); }
.container.wide { max-width: var(--container-wide); }
.container.text { max-width: var(--container-text); }

.section { padding-block: clamp(var(--s-16), 9vw, var(--s-32)); position: relative; }
.section.tight { padding-block: clamp(var(--s-12), 6vw, var(--s-20)); }
.section.band { background: linear-gradient(180deg, transparent, rgba(255,255,255,.02) 12%, rgba(255,255,255,.02) 88%, transparent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-bright);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.eyebrow.center::before { display: none; }

.section-head { max-width: 42rem; margin-bottom: var(--s-12); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: var(--s-4); }
.section-head p { margin-top: var(--s-4); font-size: var(--fs-lead); color: var(--ink-3); }

.lead { font-size: var(--fs-lead); color: var(--ink-2); }
.text-grad {
  background: var(--grad-aura); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-accent { color: var(--accent-bright); }

.grid { display: grid; gap: var(--s-6); }
.divider { height: 1px; background: var(--line-soft); border: 0; margin-block: var(--s-16); }

/* ---- 4. BUTTONS ------------------------------------------------------- */
.btn {
  --_bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: .8rem 1.4rem; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--_bg); color: var(--ink-0);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  border: 0; color: #0b0713;
  background: var(--grad-aura);
  background-size: 160% 160%;
  box-shadow: 0 12px 34px -10px var(--accent-glow), inset 0 0 0 1px rgba(255,255,255,.18);
  animation: shimmer 9s var(--ease) infinite;
}
.btn-primary:hover { box-shadow: 0 18px 48px -12px var(--accent-glow), inset 0 0 0 1px rgba(255,255,255,.3); }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.btn-ghost { background: var(--surface); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }

.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent-bright); }
.btn-outline:hover { background: rgba(var(--accent-rgb),.1); }

.btn.sm { min-height: 40px; padding: .55rem 1rem; }
.btn.lg { min-height: 54px; padding: .95rem 1.8rem; font-size: var(--fs-body); }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn[aria-disabled="true"], .btn:disabled {
  opacity: .5; cursor: not-allowed; pointer-events: none;
  background: var(--surface); color: var(--ink-3); border-color: var(--line);
  animation: none; box-shadow: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row.center { justify-content: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--accent-bright); font-weight: 600; font-size: var(--fs-sm);
}
.link-arrow .arrow { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---- 5. NAVIGATION ---------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,18,.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .container { height: 100%; display: flex; align-items: center; gap: var(--s-4); }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; color: var(--ink-0); }

.nav__links { display: flex; align-items: center; gap: var(--s-1); margin-left: var(--s-3); }
.nav__link {
  padding: .5rem .72rem; border-radius: var(--radius-sm); white-space: nowrap;
  color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink-0); background: var(--surface); }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: var(--s-3); }

/* Applications dropdown */
.nav__menu { position: relative; }
.nav__menu-btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: .5rem .8rem; border-radius: var(--radius-sm);
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500;
}
.nav__menu-btn:hover { color: var(--ink-0); background: var(--surface); }
.nav__menu-btn .chev { transition: transform var(--dur) var(--ease); width: 14px; height: 14px; }
.nav__menu[data-open="true"] .chev { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 300px;
  background: rgba(14,14,28,.96); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--s-3);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__menu[data-open="true"] .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.appitem {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-3); border-radius: var(--radius); text-align: left; width: 100%;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast);
}
.appitem:hover { background: var(--surface); border-color: var(--line); }
.appitem__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.appitem.ai .appitem__dot { background: var(--violet); box-shadow: 0 0 12px var(--violet-glow); }
.appitem.mgmt .appitem__dot { background: var(--cyan); box-shadow: 0 0 12px var(--cyan-glow); }
.appitem__name { color: var(--ink-0); font-weight: 600; font-size: var(--fs-sm); }
.appitem__desc { color: var(--ink-3); font-size: var(--fs-xs); }
.appitem__status { font-size: var(--fs-xs); color: var(--ink-4); margin-top: 2px; }
.appitem[aria-disabled="true"] { opacity: .6; cursor: default; }
.appitem[aria-disabled="true"]:hover { background: transparent; border-color: transparent; }

/* Mobile nav */
.nav__toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink-0); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur); position: relative; }
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---- 6. HERO + AURA ORB ---------------------------------------------- */
.hero { position: relative; padding-top: clamp(var(--s-16), 12vw, 9rem); padding-bottom: clamp(var(--s-16), 10vw, 8rem); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 60rem; margin-inline: auto; }
.hero__inner::before {   /* dark scrim keeps text legible over the bright orb */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 44%;
  transform: translate(-50%, -50%);
  width: min(96%, 860px); height: 128%;
  background: radial-gradient(58% 52% at 50% 46%, rgba(5,5,12,.78), rgba(5,5,12,.42) 44%, transparent 72%);
  filter: blur(14px); pointer-events: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display); font-weight: 600; line-height: .98;
  letter-spacing: -.035em; color: var(--ink-0);
  margin-top: var(--s-6);
  text-shadow: 0 2px 40px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4);
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
.hero__lead { margin: var(--s-6) auto 0; max-width: 40rem; font-size: var(--fs-lead); color: var(--ink-1); text-shadow: 0 1px 20px rgba(0,0,0,.55); }
.hero .btn-row { margin-top: var(--s-8); }
.hero__note { margin-top: var(--s-6); font-size: var(--fs-xs); color: var(--ink-4); letter-spacing: .02em; }

/* The orb / flowing light field */
.orb-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: grid; place-items: center; }
.orb-field__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.orb {
  position: relative;
  width: min(52vw, 540px); aspect-ratio: 1;
  transform: translateZ(0);
}
.orb__core, .orb__ring, .orb__halo {
  position: absolute; inset: 0; border-radius: 50%;
  will-change: transform, opacity;
}
.orb__halo {
  background: radial-gradient(circle at 50% 50%, rgba(139,92,246,.32), rgba(34,211,238,.10) 45%, transparent 68%);
  filter: blur(26px);
  animation: orb-breathe 9s var(--ease) infinite;
}
.orb__core {
  inset: 16%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.92), rgba(167,139,250,.6) 22%, transparent 45%),
    conic-gradient(from 210deg, var(--violet), #4aa8e0, var(--cyan), var(--violet-bright), var(--violet));
  filter: blur(3px) saturate(120%);
  box-shadow: inset 0 0 60px rgba(255,255,255,.25), inset 0 0 120px rgba(34,211,238,.25);
  animation: orb-spin 26s linear infinite;
  opacity: .96;
}
.orb__core::after {   /* glassy highlight */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 62% 74%, rgba(6,6,16,.55), transparent 42%);
}
.orb__ring {
  inset: 4%;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 0 60px rgba(139,92,246,.25) inset;
  animation: orb-tilt 18s var(--ease) infinite;
}
.orb__ring.two { inset: -6%; border-color: rgba(34,211,238,.14); animation-duration: 24s; animation-direction: reverse; }
.orb__spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 2px rgba(255,255,255,.8); }

@keyframes orb-spin  { to { transform: rotate(360deg); } }
@keyframes orb-tilt  { 0%,100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.04); } }
@keyframes orb-breathe { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }

/* Hero orbit dots */
.orbit { position: absolute; inset: -4%; border-radius: 50%; animation: orb-spin 40s linear infinite; }
.orbit.rev { animation-direction: reverse; animation-duration: 55s; inset: -14%; }
.orbit__dot { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
.orbit__dot.v { background: var(--violet-bright); box-shadow: 0 0 14px 2px var(--violet-glow); }
.orbit__dot.c { background: var(--cyan-bright); box-shadow: 0 0 14px 2px var(--cyan-glow); left: auto; right: 0; }

/* ---- 7. SCROLL REVEAL ------------------------------------------------- */
/* Hidden state only applies when JS is present (html.js), so content is never
   invisible if JavaScript is disabled or fails. */
.reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-scale { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal-scale { opacity: 0; transform: scale(.96); }
html.js .reveal.in, html.js .reveal-scale.in, .reveal.in, .reveal-scale.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* Chat demo replay: only hide messages while actively playing (JS-driven).
   Without JS or with reduced motion the full conversation is simply shown. */
.chat__log.playing .bubble { opacity: 0; transform: translateY(10px); }
.chat__log.playing .bubble.shown { opacity: 1; transform: none; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.is-disabled { opacity: .55; cursor: not-allowed; }
.contact-line a.is-empty, [data-contact].is-empty { color: var(--ink-4); }

/* ---- 8. PRODUCT PANELS ----------------------------------------------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--surface); backdrop-filter: blur(6px);
  padding: clamp(var(--s-6), 3vw, var(--s-10));
  display: flex; flex-direction: column; gap: var(--s-5);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.panel::before {   /* top accent wash */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -20%, rgba(var(--_rgb),.20), transparent 60%);
  opacity: .8; transition: opacity var(--dur) var(--ease);
}
.panel > * { position: relative; z-index: 1; }
.panel.ai   { --_rgb: 139,92,246; }
.panel.mgmt { --_rgb: 34,211,238; }
.panel:hover { transform: translateY(-4px); border-color: rgba(var(--_rgb),.5); box-shadow: 0 30px 70px -30px rgba(var(--_rgb),.5); }
.panel:hover::before { opacity: 1; }

.panel__badge {
  display: inline-flex; align-items: center; gap: var(--s-2); align-self: flex-start;
  padding: .35rem .75rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(var(--_rgb),.35); background: rgba(var(--_rgb),.1);
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
}
.panel__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--_rgb)); box-shadow: 0 0 10px rgb(var(--_rgb)); }
.panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-family: var(--font-display); }
.panel__desc { color: var(--ink-2); }
.panel__list { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.panel__list li { display: flex; gap: var(--s-3); align-items: baseline; color: var(--ink-2); font-size: var(--fs-sm); }
.panel__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--_rgb)); flex-shrink: 0; transform: translateY(-1px); }
.panel__foot { margin-top: auto; padding-top: var(--s-2); }

/* ---- 9. INTERFACE PREVIEWS ------------------------------------------- */
/* Browser / app frame */
.frame {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: #0c0c1a; box-shadow: var(--shadow-md);
}
.frame__bar { display: flex; align-items: center; gap: var(--s-2); padding: .6rem .9rem; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line-soft); }
.frame__dots { display: flex; gap: 6px; }
.frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.frame__url { flex: 1; margin-left: var(--s-2); font-size: var(--fs-xs); color: var(--ink-4); font-family: var(--font-display); letter-spacing: .02em; text-align: center; }
.frame__body { padding: var(--s-4); }

/* "Illustrative" label */
.demo-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); color: var(--ink-4); letter-spacing: .03em;
}
.demo-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }

/* Chat preview (Aura AI) */
.chat { display: flex; flex-direction: column; gap: var(--s-3); min-height: 300px; }
.chat__head { display: flex; align-items: center; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line-soft); }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-aura); display: grid; place-items: center; font-size: 14px; }
.chat__title { font-weight: 600; color: var(--ink-0); font-size: var(--fs-sm); }
.chat__status { font-size: var(--fs-xs); color: var(--ok); display: flex; align-items: center; gap: 5px; }
.chat__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.chat__log { display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.bubble { max-width: 82%; padding: .7rem .9rem; border-radius: 14px; font-size: var(--fs-sm); line-height: 1.5; }
.bubble.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink-1); }
.bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--violet-deep), var(--violet)); color: #fff; border-bottom-right-radius: 4px; }
.bubble .tool { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--violet-bright); font-family: var(--font-display); }
.bubble.card { background: var(--surface-2); border: 1px solid rgba(139,92,246,.4); }
.bubble.card .row { display: flex; justify-content: space-between; gap: var(--s-3); padding: 3px 0; font-size: var(--fs-xs); }
.bubble.card .row span:first-child { color: var(--ink-3); }
.bubble.card .row span:last-child { color: var(--ink-0); font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: .8rem .9rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typing 1.2s var(--ease) infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__composer { display: flex; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line-soft); }
.chat__composer .fake-input { flex: 1; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-4); font-size: var(--fs-xs); }
.chat__composer .send { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-aura); border: 0; display: grid; place-items: center; }

/* Console / dashboard preview (Aura Management) */
.console { display: grid; grid-template-columns: 132px 1fr; min-height: 300px; }
.console__rail { background: linear-gradient(180deg, rgba(34,211,238,.08), rgba(8,20,26,.4)); border-right: 1px solid var(--line-soft); padding: var(--s-3); display: flex; flex-direction: column; gap: 3px; }
.console__brand { display: flex; align-items: center; gap: 8px; padding: 4px 6px var(--s-3); font-family: var(--font-display); font-weight: 600; color: var(--ink-0); font-size: var(--fs-sm); }
.console__brand i { width: 16px; height: 16px; border-radius: 5px; background: var(--grad-aura); }
.railitem { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; font-size: var(--fs-xs); color: var(--ink-3); }
.railitem .ic { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-3); flex-shrink: 0; }
.railitem.active { background: rgba(34,211,238,.14); color: var(--ink-0); }
.railitem.active .ic { background: var(--cyan); box-shadow: 0 0 10px var(--cyan-glow); }
.console__main { padding: var(--s-4); min-width: 0; }
.console__topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.console__topbar h4 { font-size: var(--fs-sm); color: var(--ink-0); }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-bottom: var(--s-4); }
.kpi { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--s-3); background: var(--surface); }
.kpi__label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); }
.kpi__value { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink-0); font-weight: 600; margin-top: 3px; }
.kpi__delta { font-size: 10px; color: var(--ok); }
.kpi__delta.down { color: var(--warn); }

/* Mini table */
.minitable { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.minitable th { text-align: left; color: var(--ink-4); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
.minitable td { padding: 8px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.minitable tr:last-child td { border-bottom: 0; }
.minitable .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-1); }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.bad { color: var(--bad); background: var(--bad-soft); }
.pill.info { color: var(--accent-bright); background: var(--info-soft); }
.pill.mute { color: var(--ink-3); background: var(--surface-2); }

/* Order lifecycle stepper (animated demo) */
.stepper { display: flex; align-items: center; gap: 0; margin: var(--s-4) 0; }
.stepper__node { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.stepper__dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; color: var(--ink-3); background: var(--bg-2); transition: all var(--dur) var(--ease); }
.stepper__label { font-size: 10px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .05em; }
.stepper__line { flex: 1; height: 2px; background: var(--line-strong); position: relative; overflow: hidden; }
.stepper__line::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--cyan); transition: width var(--dur-slow) var(--ease); }
.stepper__node.done .stepper__dot { border-color: var(--cyan); color: #04121a; background: var(--cyan); box-shadow: 0 0 16px var(--cyan-glow); }
.stepper__node.done .stepper__label { color: var(--ink-1); }
.stepper__line.done::after { width: 100%; }

/* Demo control (pause) */
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); }
.demo-play { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 6px 14px; font-size: var(--fs-xs); color: var(--ink-1); cursor: pointer; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast); }
.demo-play:hover { background: var(--surface-3); border-color: var(--accent); }
.demo-play .icon { width: 12px; height: 12px; }

/* ---- 10. FEATURE LAYOUTS --------------------------------------------- */
/* Editorial alternating rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--s-8), 5vw, var(--s-16)); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(var(--s-16), 8vw, var(--s-24)); }
.feature-row.flip .feature-row__media { order: -1; }
.feature-row__body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-family: var(--font-display); }
.feature-row__body .eyebrow { margin-bottom: var(--s-3); }
.feature-row__body p { margin-top: var(--s-4); color: var(--ink-2); }
.feature-row__points { list-style: none; padding: 0; margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.feature-row__points li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.feature-row__points .tick { width: 20px; height: 20px; border-radius: 6px; background: rgba(var(--accent-rgb),.16); color: var(--accent-bright); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.feature-row__points .tick svg { width: 12px; height: 12px; }

/* Capability cards (used sparingly, editorial) */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s-5); }
.cap {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-6);
  background: var(--surface); position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur);
}
.cap:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb),.4); background: var(--surface-2); }
.cap__icon { width: 42px; height: 42px; border-radius: 11px; background: rgba(var(--accent-rgb),.14); color: var(--accent-bright); display: grid; place-items: center; margin-bottom: var(--s-4); }
.cap__icon svg { width: 21px; height: 21px; }
.cap h4 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.cap p { font-size: var(--fs-sm); color: var(--ink-3); }

/* Path cards (choose your starting point) */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.path {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-8) var(--s-6);
  background: var(--surface); text-align: center; display: flex; flex-direction: column; gap: var(--s-4); align-items: center;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur);
}
.path:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.path.ai:hover { border-color: rgba(139,92,246,.5); }
.path.mgmt:hover { border-color: rgba(34,211,238,.5); }
.path.both:hover { border-color: rgba(255,255,255,.3); }
.path__glyph { width: 56px; height: 56px; }
.path h3 { font-size: var(--fs-h3); }
.path p { font-size: var(--fs-sm); color: var(--ink-3); flex: 1; }

/* Stat / fact strip (facts only, no invented numbers) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: var(--s-8) var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(var(--s-6), 4vw, var(--s-10)); background: var(--surface); }
.fact { text-align: center; min-width: 0; }
.fact + .fact { position: relative; }
.fact__k { font-family: var(--font-display); font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 600; line-height: 1.2; text-wrap: balance; overflow-wrap: break-word; }
.fact__v { font-size: var(--fs-sm); color: var(--ink-3); margin-top: var(--s-3); text-wrap: balance; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(var(--s-12), 8vw, var(--s-24)) var(--s-6);
  background: radial-gradient(120% 140% at 50% -30%, rgba(139,92,246,.22), transparent 55%), radial-gradient(120% 140% at 50% 130%, rgba(34,211,238,.16), transparent 55%), var(--surface);
}
.cta h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; margin-inline: auto; }
.cta p { margin: var(--s-4) auto 0; max-width: 40rem; color: var(--ink-2); font-size: var(--fs-lead); }
.cta .btn-row { margin-top: var(--s-8); }

/* ---- 11. FORMS -------------------------------------------------------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--s-8), 5vw, var(--s-16)); align-items: start; }
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-1); }
.field .req { color: var(--accent-bright); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-4); }
.input, .textarea, .select {
  width: 100%; padding: .85rem 1rem; min-height: 50px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--ink-0); font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.18); background: var(--surface-3); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8fac' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: .6rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: var(--fs-sm); color: var(--ink-2); transition: all var(--dur-fast) var(--ease); cursor: pointer; }
.choice input:checked + span { border-color: var(--accent); background: rgba(var(--accent-rgb),.14); color: var(--ink-0); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.2); }
.form__status { font-size: var(--fs-sm); padding: var(--s-3) var(--s-4); border-radius: var(--radius); display: none; }
.form__status.show { display: block; }
.form__status.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid rgba(52,211,153,.3); }
.form__status.bad { background: var(--bad-soft); color: var(--bad); border: 1px solid rgba(251,113,133,.3); }
.form__status.info { background: var(--info-soft); color: var(--accent-bright); border: 1px solid rgba(var(--accent-rgb),.3); }

.contact-aside { display: grid; gap: var(--s-5); }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-6); background: var(--surface); }
.contact-card h3 { font-size: var(--fs-h4); margin-bottom: var(--s-3); }
.contact-line { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; color: var(--ink-2); font-size: var(--fs-sm); }
.contact-line .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(var(--accent-rgb),.14); color: var(--accent-bright); display: grid; place-items: center; flex-shrink: 0; }
.contact-line a { color: var(--ink-1); }
.contact-line a:hover { color: var(--accent-bright); }

/* ---- 12. FOOTER ------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-16) var(--s-8); margin-top: var(--s-16); position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: var(--s-8); }
.footer__brand p { color: var(--ink-3); font-size: var(--fs-sm); margin-top: var(--s-4); max-width: 30ch; }
.footer__col h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); margin-bottom: var(--s-4); }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.footer__col a { color: var(--ink-2); font-size: var(--fs-sm); }
.footer__col a:hover { color: var(--ink-0); }
.footer__col .muted { color: var(--ink-4); font-size: var(--fs-sm); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center; margin-top: var(--s-16); padding-top: var(--s-6); border-top: 1px solid var(--line-soft); }
.footer__bottom p { font-size: var(--fs-xs); color: var(--ink-4); }
.footer__legal { display: flex; gap: var(--s-5); }
.footer__legal a { font-size: var(--fs-xs); color: var(--ink-4); }
.footer__legal a:hover { color: var(--ink-2); }

/* ---- 13. PAGE-SPECIFIC ------------------------------------------------ */
/* Sub-page hero */
.subhero { padding-top: clamp(var(--s-16), 10vw, 7rem); padding-bottom: clamp(var(--s-10), 6vw, var(--s-16)); position: relative; overflow: hidden; }
.subhero__inner { position: relative; z-index: 2; max-width: 52rem; }
.subhero h1 { font-family: var(--font-display); font-size: var(--fs-h1); margin-top: var(--s-4); letter-spacing: -.03em; }
.subhero p { margin-top: var(--s-5); font-size: var(--fs-lead); color: var(--ink-2); max-width: 42rem; }
.subhero .btn-row { margin-top: var(--s-8); }
.subhero__glow { position: absolute; top: -30%; right: -10%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; z-index: 1; }
body.theme-ai .subhero__glow { background: radial-gradient(circle, rgba(139,92,246,.4), transparent 66%); }
body.theme-mgmt .subhero__glow { background: radial-gradient(circle, rgba(34,211,238,.34), transparent 66%); }

/* Prose (privacy) */
.prose { max-width: var(--container-text); }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--s-10); margin-bottom: var(--s-3); font-family: var(--font-display); }
.prose h3 { font-size: var(--fs-h4); margin-top: var(--s-6); margin-bottom: var(--s-2); }
.prose p, .prose li { color: var(--ink-2); font-size: var(--fs-body); }
.prose p + p { margin-top: var(--s-4); }
.prose ul { margin: var(--s-3) 0; padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--accent); }
.prose .updated { color: var(--ink-4); font-size: var(--fs-sm); }
.callout { border: 1px solid rgba(251,191,36,.3); background: var(--warn-soft); border-radius: var(--radius); padding: var(--s-4) var(--s-5); margin: var(--s-6) 0; }
.callout p { color: var(--ink-1); font-size: var(--fs-sm); }
.callout strong { color: var(--warn); }

/* Table of contents */
.toc { position: sticky; top: calc(var(--nav-h) + var(--s-6)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); background: var(--surface); }
.toc h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); margin-bottom: var(--s-3); }
.toc ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.toc a { color: var(--ink-3); font-size: var(--fs-sm); }
.toc a:hover { color: var(--accent-bright); }

/* 404 */
.err { min-height: 74vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.err__code { font-family: var(--font-display); font-size: clamp(6rem, 22vw, 16rem); font-weight: 600; line-height: .9; letter-spacing: -.04em; }
.err h1 { margin-top: var(--s-4); }
.err p { margin: var(--s-4) auto 0; max-width: 32rem; color: var(--ink-3); }

/* Split layout helper */
.split { display: grid; grid-template-columns: 260px 1fr; gap: clamp(var(--s-8), 5vw, var(--s-12)); align-items: start; }

/* Reusable: code snippet, chips, note card, mini KPI list, doc preview */
.code {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #0a0a15; box-shadow: var(--shadow-sm);
}
.code__bar { display: flex; align-items: center; justify-content: space-between; padding: .5rem .8rem; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.03); }
.code__bar span { font-size: var(--fs-xs); color: var(--ink-4); font-family: var(--font-display); letter-spacing: .04em; }
.code pre { margin: 0; padding: var(--s-4); overflow-x: auto; }
.code code { font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace); font-size: var(--fs-sm); color: var(--ink-1); line-height: 1.7; }
.code .tok-tag { color: var(--cyan-bright); }
.code .tok-attr { color: var(--violet-bright); }
.code .tok-str { color: #f0abfc; }
.code .tok-com { color: var(--ink-4); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .4rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: var(--fs-xs); color: var(--ink-2); background: var(--surface); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.note-card { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: var(--s-5) var(--s-6); background: var(--surface); }
.note-card h4 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.note-card p { font-size: var(--fs-sm); color: var(--ink-3); }

.stack { display: grid; gap: var(--s-3); }
.li-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); font-size: var(--fs-sm); }
.li-row .k { color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.li-row .k .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* Knowledge/source preview */
.src { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); font-size: var(--fs-xs); color: var(--ink-3); }
.src .ic { width: 22px; height: 22px; border-radius: 6px; background: rgba(var(--accent-rgb),.16); color: var(--accent-bright); display: grid; place-items: center; flex-shrink: 0; }
.src .ic svg { width: 13px; height: 13px; }

/* Doc extraction preview */
.docx { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.docx__scan { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: var(--s-4); background: var(--surface); position: relative; overflow: hidden; }
.docx__scan .lines { display: grid; gap: 7px; }
.docx__scan .lines i { height: 7px; border-radius: 4px; background: var(--surface-3); display: block; }
.docx__scan .lines i:nth-child(1){ width: 60% } .docx__scan .lines i:nth-child(3){ width: 80% } .docx__scan .lines i:nth-child(4){ width: 45% }
.docx__fields { display: grid; gap: 8px; align-content: start; }
.docx__field { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); font-size: var(--fs-xs); }
.docx__field .lbl { color: var(--ink-4); } .docx__field .val { color: var(--ink-0); font-weight: 600; }

/* ---- 14. RESPONSIVE --------------------------------------------------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links, .nav__menu { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__mobile {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
    background: rgba(8,8,18,.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: var(--s-4) var(--s-6) var(--s-8);
    display: grid; gap: var(--s-2);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform var(--dur) var(--ease), opacity var(--dur), visibility var(--dur);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  body.nav-open .nav__mobile { transform: none; opacity: 1; visibility: visible; }
  .nav__mobile a, .nav__mobile .m-app { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--radius); color: var(--ink-1); font-size: var(--fs-body); }
  .nav__mobile a:hover { background: var(--surface); }
  .nav__mobile .m-sep { height: 1px; background: var(--line-soft); margin: var(--s-3) 0; }
  .nav__mobile .m-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); padding: var(--s-2) var(--s-4); }

  .products { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: var(--s-8); }
  .feature-row.flip .feature-row__media { order: 0; }
  .paths { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .toc { position: static; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .container { padding-inline: var(--s-5); }
  .hero { padding-top: var(--s-16); }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row.center { align-items: center; }
  .btn-row .btn { width: 100%; }
  .btn-row.center .btn { width: auto; }
  .kpis { grid-template-columns: 1fr; }
  .console { grid-template-columns: 1fr; }
  .console__rail { display: none; }
  .stepper__label { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Nav mobile hidden on desktop */
.nav__mobile { display: none; }
@media (max-width: 860px) { .nav__mobile { display: grid; } }

/* ---- 15. REDUCED MOTION & PRINT -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; }
  .orb__core, .orb__ring, .orb__halo, .orbit, .btn-primary { animation: none !important; }
  .orb__core { filter: saturate(120%); }
}

@media print {
  .nav, .footer, .orb-field, .sky, .demo-controls, .subhero__viz { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---- 16. PRODUCT-PAGE HERO VISUALS (signature animations) ------------ */
/* Split sub-hero: editorial copy on the left, an animated signature visual
   on the right. Both visuals are decorative (aria-hidden), lightweight CSS/SVG,
   and fully honoured by the global reduced-motion rules above (they simply
   settle into a clean static state). */
.subhero.has-viz .subhero__inner { max-width: none; }
.subhero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(var(--s-8), 5vw, var(--s-16));
  align-items: center;
}
.subhero__grid .subhero__inner { max-width: 40rem; }
.subhero__viz {
  position: relative; justify-self: center;
  width: 100%; max-width: 440px; aspect-ratio: 1;
  display: grid; place-items: center;
}
.subhero__viz > * { grid-area: 1 / 1; }
.viz-cap { margin-top: var(--s-4); }

/* Shared soft glow behind either visual */
.viz-glow { position: absolute; inset: 8%; border-radius: 50%; filter: blur(48px); opacity: .55; z-index: 0; }
body.theme-ai   .viz-glow { background: radial-gradient(circle, rgba(139,92,246,.50), transparent 68%); }
body.theme-mgmt .viz-glow { background: radial-gradient(circle, rgba(34,211,238,.42), transparent 68%); }

/* --- Aura AI: assistant constellation (SVG) --------------------------- */
.viz-ai { position: relative; z-index: 1; width: 100%; height: 100%; }
.viz-ai svg { width: 100%; height: 100%; overflow: visible; }
.viz-ai .rings { transform-box: fill-box; transform-origin: center; animation: viz-spin 42s linear infinite; }
.viz-ai .rings.rev { animation-duration: 58s; animation-direction: reverse; }
.viz-ai .ring   { fill: none; stroke: rgba(167,139,250,.30); stroke-width: 1; stroke-dasharray: 3 10; }
.viz-ai .ring.b { stroke: rgba(103,232,249,.22); stroke-dasharray: 2 12; }
.viz-ai .wire   { stroke: url(#viz-ai-wire); stroke-width: 1.4; stroke-dasharray: 4 8; opacity: .75; animation: viz-flow 2.4s linear infinite; }
.viz-ai .wire.d1 { animation-delay: -.8s; } .viz-ai .wire.d2 { animation-delay: -1.6s; }
.viz-ai .node       { transform-box: fill-box; transform-origin: center; animation: viz-pulse 3.6s var(--ease) infinite; }
.viz-ai .node.d1 { animation-delay: -1.2s; } .viz-ai .node.d2 { animation-delay: -2.4s; }
.viz-ai .node__ring { fill: rgba(12,12,26,.92); stroke: rgba(167,139,250,.65); stroke-width: 1.5; }
.viz-ai .node__glyph { fill: none; stroke: #e9deff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.viz-ai .core__halo { fill: url(#viz-ai-core); transform-box: fill-box; transform-origin: center; animation: viz-breathe 6.5s var(--ease) infinite; }
.viz-ai .core__disc { fill: url(#viz-ai-disc); }
.viz-ai .core__spin { transform-box: fill-box; transform-origin: center; animation: viz-spin 24s linear infinite; }
.viz-ai .core__star { fill: #fff; opacity: .95; }
.viz-ai .spark { fill: #fff; animation: viz-twinkle 3.2s ease-in-out infinite; }
.viz-ai .spark.d1 { animation-delay: -1s; } .viz-ai .spark.d2 { animation-delay: -2.1s; }

@keyframes viz-spin    { to { transform: rotate(360deg); } }
@keyframes viz-flow    { to { stroke-dashoffset: -24; } }
@keyframes viz-pulse   { 0%,100% { transform: scale(1); }   50% { transform: scale(1.13); } }
@keyframes viz-breathe { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes viz-twinkle { 0%,100% { opacity: .15; } 50% { opacity: .9; } }

/* --- Aura Management: live-operations card ---------------------------- */
.viz-ops { position: relative; z-index: 1; width: 100%; max-width: 400px; }
.viz-ops__card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(34,211,238,.07), var(--surface));
  box-shadow: var(--shadow-md); padding: var(--s-5) var(--s-5) var(--s-6);
}
.viz-ops__card::after {   /* sweeping highlight — reads as a live refresh */
  content: ""; position: absolute; top: 0; left: -65%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(103,232,249,.14), transparent);
  transform: skewX(-14deg); animation: viz-sweep 6s var(--ease) infinite;
}
@keyframes viz-sweep { 0% { left: -65%; } 60%,100% { left: 130%; } }
.viz-ops__top { display: flex; align-items: center; justify-content: space-between; }
.viz-ops__label { font-size: var(--fs-xs); color: var(--ink-4); text-transform: uppercase; letter-spacing: .08em; }
.viz-ops__live { font-size: var(--fs-xs); color: var(--cyan-bright); display: inline-flex; align-items: center; gap: 6px; }
.viz-ops__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: viz-blink 1.8s ease-in-out infinite; }
@keyframes viz-blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.viz-ops__num { font-family: var(--font-display); font-size: clamp(1.6rem, 4.4vw, 2.15rem); font-weight: 600; color: var(--ink-0); margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.viz-ops__bars { display: flex; align-items: flex-end; gap: 8px; height: 118px; margin-top: var(--s-5); }
.viz-ops__bars i {
  flex: 1; height: var(--h, 55%); border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--cyan-bright), rgba(34,211,238,.22));
  transform-origin: bottom; opacity: .92; animation: viz-bar 4.2s var(--ease) infinite;
}
@keyframes viz-bar { 0% { transform: scaleY(.32); } 16% { transform: scaleY(1); } 54% { transform: scaleY(.66); } 82% { transform: scaleY(.94); } 100% { transform: scaleY(.32); } }
.viz-ops__foot { display: flex; justify-content: space-between; margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--ink-3); }
.viz-ops__foot b { color: var(--ink-1); font-weight: 600; }
.viz-ops__chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: .4rem .7rem; border-radius: var(--radius-pill);
  background: rgba(14,14,28,.86); backdrop-filter: blur(8px);
  border: 1px solid rgba(34,211,238,.35); box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs); color: var(--ink-1); white-space: nowrap;
  animation: viz-bob 5s var(--ease) infinite;
}
.viz-ops__chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.viz-ops__chip.a { top: 6%; right: -6%; }
.viz-ops__chip.b { bottom: 10%; left: -8%; animation-delay: -2.5s; }
@keyframes viz-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 860px) {
  .subhero__grid { grid-template-columns: 1fr; gap: var(--s-10); justify-items: center; }
  .subhero.has-viz .subhero__inner { max-width: 42rem; }
  .subhero__viz { order: 2; max-width: 360px; }
}
@media (max-width: 560px) {
  .subhero__viz { max-width: 290px; }
  .viz-ops__chip { display: none; }
  .viz-ops__bars { height: 92px; }
}

/* ---- 17. STUDIO SERVICES (Custom Systems + Websites) ------------------ */
/* Two build services that sit alongside the two platform products. Each owns
   one accent, kept clearly distinct from Aura AI (violet) and Aura Management
   (cyan): Custom Systems = emerald, Websites = fuchsia. Everything below is
   additive and theme-token driven, so the existing components inherit it. */
:root {
  --emerald:        #10b981;
  --emerald-bright: #34d399;
  --emerald-deep:   #047857;
  --emerald-glow:   rgba(16,185,129,.42);

  --fuchsia:        #d946ef;
  --fuchsia-bright: #e879f9;
  --fuchsia-deep:   #a21caf;
  --fuchsia-glow:   rgba(217,70,239,.42);
}

/* Per-service accent themes (mirror .theme-ai / .theme-mgmt) */
body.theme-systems { --accent: var(--emerald); --accent-bright: var(--emerald-bright); --accent-deep: var(--emerald-deep); --accent-glow: var(--emerald-glow); --accent-rgb: 16,185,129; }
body.theme-web     { --accent: var(--fuchsia); --accent-bright: var(--fuchsia-bright); --accent-deep: var(--fuchsia-deep); --accent-glow: var(--fuchsia-glow); --accent-rgb: 217,70,239; }

/* Product-panel accents for the homepage service cards */
.panel.systems { --_rgb: 16,185,129; }
.panel.web     { --_rgb: 217,70,239; }

/* Sub-hero + signature-visual glows for the two service themes */
body.theme-systems .subhero__glow { background: radial-gradient(circle, rgba(16,185,129,.34), transparent 66%); }
body.theme-web     .subhero__glow { background: radial-gradient(circle, rgba(217,70,239,.32), transparent 66%); }
body.theme-systems .viz-glow { background: radial-gradient(circle, rgba(16,185,129,.44), transparent 68%); }
body.theme-web     .viz-glow { background: radial-gradient(circle, rgba(217,70,239,.42), transparent 68%); }

/* Applications-dropdown dots, reused where a service is listed with a colour */
.appitem.systems .appitem__dot { background: var(--emerald); box-shadow: 0 0 12px var(--emerald-glow); }
.appitem.web     .appitem__dot { background: var(--fuchsia); box-shadow: 0 0 12px var(--fuchsia-glow); }

/* A light "assembling modules" visual for the Custom Systems sub-hero.
   Pure layout on existing tokens; theme-aware through --accent-rgb. */
.viz-stack { position: relative; z-index: 1; width: 100%; max-width: 400px; display: grid; gap: var(--s-3); }
.viz-stack__row {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(var(--accent-rgb),.07), var(--surface));
  box-shadow: var(--shadow-sm);
  animation: viz-rise .7s var(--ease) both;
}
.viz-stack__row:nth-child(2){ animation-delay: .12s; }
.viz-stack__row:nth-child(3){ animation-delay: .24s; }
.viz-stack__row:nth-child(4){ animation-delay: .36s; }
.viz-stack__row:nth-child(5){ animation-delay: .48s; }
.viz-stack__ic { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: rgba(var(--accent-rgb),.16); color: var(--accent-bright); }
.viz-stack__ic svg { width: 16px; height: 16px; }
.viz-stack__name { color: var(--ink-1); font-weight: 600; font-size: var(--fs-sm); flex: 1; min-width: 0; }
@keyframes viz-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Numbered process steps reuse the .cap card; make the number read as a glyph */
.cap__icon { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }

/* Score checklist used on the Websites page (checkmarks, not invented numbers) */
.scorelist { display: grid; gap: var(--s-2); }
.scoreline { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--s-3); border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); font-size: var(--fs-sm); color: var(--ink-2); }
.scoreline b { color: var(--accent-bright); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.scoreline b svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .viz-stack__row { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* With five primary links + the actions cluster, collapse to the mobile menu a
   little earlier than the layout breakpoint so the top bar never crowds. This
   re-declares the mobile-nav rules up to 1080px (the base set at 860px stays). */
@media (max-width: 1080px) {
  .nav__links, .nav__menu { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__mobile {
    display: grid;
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
    background: rgba(8,8,18,.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: var(--s-4) var(--s-6) var(--s-8);
    gap: var(--s-2);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform var(--dur) var(--ease), opacity var(--dur), visibility var(--dur);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  body.nav-open .nav__mobile { transform: none; opacity: 1; visibility: visible; }
  .nav__mobile a, .nav__mobile .m-app { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--radius); color: var(--ink-1); font-size: var(--fs-body); }
  .nav__mobile a:hover { background: var(--surface); }
  .nav__mobile .m-sep { height: 1px; background: var(--line-soft); margin: var(--s-3) 0; }
  .nav__mobile .m-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); padding: var(--s-2) var(--s-4); }
}
