/* AIR-Core marketing site. No external resources: system fonts, inline SVG icons. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --app-backdrop: radial-gradient(1200px 600px at 15% -10%, rgba(2, 159, 187, 0.28), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(44, 195, 221, 0.18), transparent 60%),
    linear-gradient(180deg, #04192a 0%, #062a40 100%);
  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;

}

/* Colour tokens. .theme-dark is always dark (header, hero, CTA band, footer);
   .theme-page follows the visitor's colour scheme (e.g. the demo window inside the dark hero). */
:root, .theme-page {
  --bg: #ffffff;
  --bg-soft: #f4f8fa;
  --bg-deep: #04192a;
  --surface: #ffffff;
  --surface-2: #f6f9fb;
  --surface-3: #edf3f6;
  --border: #dfe5ea;
  --border-strong: #cfd8df;
  --text: #0b2236;
  --text-muted: #5b6b7a;
  --text-subtle: #5b6b7a;
  --accent: #029fbb;
  --accent-2: #2cc3dd;
  --accent-text: #00758a;
  --accent-soft: rgba(2, 159, 187, 0.1);
  --accent-ring: rgba(2, 159, 187, 0.45);
  --btn-bg: #017f96;
  --btn-bg-hover: #016a7d;
  --btn-text: #ffffff;
  --btn2-bg: #ffffff;
  --btn2-text: #0b2236;
  --btn2-border: #dfe5ea;
  --btn2-border-hover: #029fbb;
  --positive: #0a6e4a;
  --negative: #c2410c;
  --warn: #a35a00;
  --header-bg: rgba(255, 255, 255, 0.72);
  --shadow-sm: 0 1px 2px rgba(4, 25, 42, 0.06);
  --shadow: 0 1px 2px rgba(4, 25, 42, 0.05), 0 8px 24px -8px rgba(4, 25, 42, 0.12);
  --shadow-lg: 0 1px 2px rgba(4, 25, 42, 0.2), 0 24px 64px rgba(4, 25, 42, 0.45);
  --glow-a: rgba(44, 195, 221, 0.22);
  --glow-b: rgba(2, 95, 140, 0.12);
  --grid-line: rgba(4, 25, 42, 0.05);
  --logo-ink: #012e4e;
  --logo-accent: #029fbb;
  color: var(--text);
}
.theme-dark {
  --bg: #04192a;
  --bg-soft: #052135;
  --bg-deep: #031320;
  --surface: #062a40;
  --surface-2: #08304a;
  --surface-3: #0b3955;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #eaf3f8;
  --text-muted: #a6bccb;
  --text-subtle: #8fa8b8;
  --accent: #2cc3dd;
  --accent-2: #029fbb;
  --accent-text: #5fd4e8;
  --accent-soft: rgba(44, 195, 221, 0.12);
  --accent-ring: rgba(44, 195, 221, 0.55);
  --btn-bg: #017f96;
  --btn-bg-hover: #016a7d;
  --btn-text: #ffffff;
  --btn2-bg: transparent;
  --btn2-text: #ffffff;
  --btn2-border: rgba(255, 255, 255, 0.18);
  --btn2-border-hover: rgba(255, 255, 255, 0.45);
  --positive: #3fd09a;
  --negative: #ff8a5c;
  --warn: #f5b84a;
  --header-bg: rgba(4, 25, 42, 0.78);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px -8px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.25), 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --glow-a: rgba(44, 195, 221, 0.2);
  --glow-b: rgba(2, 120, 170, 0.22);
  --grid-line: rgba(255, 255, 255, 0.045);
  --logo-ink: #ffffff;
  --logo-accent: #2cc3dd;
  color: var(--text);
}
@media (prefers-color-scheme: dark) {
  :root, .theme-page {
    --bg: #04192a;
    --bg-soft: #052135;
    --bg-deep: #031320;
    --surface: #062a40;
    --surface-2: #08304a;
    --surface-3: #0b3955;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --text: #eaf3f8;
    --text-muted: #a6bccb;
    --text-subtle: #8fa8b8;
    --accent: #2cc3dd;
    --accent-2: #029fbb;
    --accent-text: #5fd4e8;
    --accent-soft: rgba(44, 195, 221, 0.12);
    --accent-ring: rgba(44, 195, 221, 0.55);
    --btn-bg: #017f96;
    --btn-bg-hover: #016a7d;
    --btn-text: #ffffff;
    --btn2-bg: transparent;
    --btn2-text: #ffffff;
    --btn2-border: rgba(255, 255, 255, 0.18);
    --btn2-border-hover: rgba(255, 255, 255, 0.45);
    --positive: #3fd09a;
    --negative: #ff8a5c;
    --warn: #f5b84a;
    --header-bg: rgba(4, 25, 42, 0.78);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px -8px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.25), 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    --glow-a: rgba(44, 195, 221, 0.2);
    --glow-b: rgba(2, 120, 170, 0.22);
    --grid-line: rgba(255, 255, 255, 0.045);
    --logo-ink: #ffffff;
    --logo-accent: #2cc3dd;
    color: var(--text);
  }
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 68px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.022em; font-weight: 680; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 1.4rem + 4.2vw, 4.4rem); letter-spacing: -0.035em; line-height: 1.04; font-weight: 720; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.85rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); letter-spacing: -0.012em; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 640; }
code, kbd { font-family: var(--font-mono); font-size: 0.9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
::selection { background: var(--accent-soft); color: var(--text); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-text); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(820px + var(--gutter) * 2); }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 44px; --btn-pad-x: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 var(--btn-pad-x);
  font: inherit; font-size: 0.95rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.005em;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 1px 2px rgba(4, 25, 42, 0.2); }
.btn-secondary { background: var(--btn2-bg); color: var(--btn2-text); border-color: var(--btn2-border); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-lg { --btn-h: 48px; --btn-pad-x: 22px; font-size: 1rem; }
.btn-sm { --btn-h: 38px; --btn-pad-x: 14px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--btn-bg-hover); }
  .btn-secondary:hover { border-color: var(--btn2-border-hover); }
  .btn-ghost:hover { background: var(--accent-soft); }
  .btn:hover .arrow { transform: translateX(3px); }
}

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent-text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(3px); } .link-arrow:hover { text-decoration: underline; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); border-radius: 8px; flex-shrink: 0; }
.brand svg { height: 34px; width: auto; }
.logo-ink { fill: var(--logo-ink); }
.logo-accent { fill: var(--logo-accent); }
.logo-soft { fill: var(--logo-accent); opacity: 0.37; }
.primary-nav { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.primary-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; color: var(--text-muted); text-decoration: none; font-size: 0.925rem; font-weight: 520;
  transition: color 160ms ease, background-color 160ms ease;
}
.primary-nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
@media (hover: hover) and (pointer: fine) { .primary-nav a:hover { color: var(--text); } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn-ghost { display: none; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--btn2-border); background: transparent; color: var(--text); cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.nav-toggle:active { transform: scale(0.95); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-panel {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 12px var(--gutter) 24px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.mobile-panel[data-open="true"] { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s; }
.mobile-panel ul { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-panel li + li { border-top: 1px solid var(--border); }
.mobile-panel a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; color: var(--text); text-decoration: none; font-size: 1.05rem; font-weight: 560; }
.mobile-panel a.m-link[aria-current="page"] { color: var(--accent-text); }
.mobile-panel .m-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }

@media (min-width: 1040px) {
  .primary-nav { display: block; }
  .nav-toggle, .mobile-panel { display: none; }
  .header-actions .btn-ghost { display: inline-flex; }
}
@media (max-width: 400px) { .header-actions .btn-primary { --btn-pad-x: 14px; } }
@media (max-width: 359px) { .header-actions .btn-primary { display: none; } }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: clamp(64px, 6vw + 32px, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 4vw + 24px, 88px) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin: 0 0 clamp(36px, 3vw + 20px, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:not(.eyebrow) { font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); color: var(--text-muted); margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: 0.8rem; font-weight: 640; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.8; }
.center .eyebrow::before { display: none; }
.lede { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem); color: var(--text-muted); line-height: 1.55; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted);
  font-size: 0.85rem; font-weight: 520; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.pill:active { transform: scale(0.98); }
.pill .pill-tag { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; }
.pill svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { a.pill:hover { border-color: var(--accent); } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.01em; line-height: 1.4; white-space: nowrap; }
.badge-soon { background: rgba(245, 184, 74, 0.14); color: var(--warn); border: 1px solid rgba(245, 184, 74, 0.35); }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }
.badge-outline { border: 1px solid var(--border-strong); color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 6vw + 16px, 104px) 0 clamp(56px, 6vw, 96px); overflow: hidden; isolation: isolate; }
.hero-lights { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-lights::before {
  content: ""; position: absolute; left: 50%; top: -280px; width: min(1400px, 160vw); height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 50% 40%, var(--glow-a), transparent 70%),
    radial-gradient(closest-side at 20% 60%, var(--glow-b), transparent 70%),
    radial-gradient(closest-side at 82% 55%, var(--glow-b), transparent 70%);
}
.hero-lights::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-copy { text-align: center; max-width: 920px; margin: 0 auto; }
.hero-copy .pill { margin-bottom: 24px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { max-width: 680px; margin: 0 auto 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--text-muted); font-size: 0.88rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent-text); }

/* ---------- Product demo (home) ---------- */
.demo-wrap { margin-top: clamp(40px, 4vw + 16px, 72px); position: relative; }
.demo-wrap::before {
  content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, var(--glow-a), transparent); filter: blur(24px); opacity: 0.9;
}
.window {
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: var(--surface);
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 1080px; margin: 0 auto;
}
.window-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window-url { flex: 1; min-width: 0; display: flex; justify-content: center; }
.window-url span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-subtle); background: var(--bg); border: 1px solid var(--border); padding: 3px 12px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.demo-label { font-size: 0.72rem; font-weight: 650; color: var(--text-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.demo-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }

.demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.demo-tab {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px 16px; min-width: 0;
  background: none; border: 0; border-right: 1px solid var(--border); color: var(--text-muted); font: inherit; font-size: 0.9rem; font-weight: 560; text-align: left; cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease;
}
.demo-tab:last-child { border-right: 0; }
.demo-tab:active .demo-tab-num { transform: scale(0.94); }
.demo-tab[aria-selected="true"] { color: var(--text); background: var(--accent-soft); }
.demo-tab-num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0;
  background: var(--surface-3); color: var(--text-muted); font-size: 0.78rem; font-weight: 700;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.demo-tab[aria-selected="true"] .demo-tab-num { background: var(--btn-bg); color: var(--btn-text); }
.demo-tab-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-tab-text small { display: block; font-size: 0.76rem; color: var(--text-subtle); font-weight: 450; }
.demo-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; overflow: hidden; }
.demo-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@media (hover: hover) and (pointer: fine) { .demo-tab:hover { color: var(--text); } }
@media (max-width: 719px) {
  .demo-tab { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 6px 14px; text-align: center; font-size: 0.8rem; }
  .demo-tab-text small { display: none; }
}

.demo-stage { position: relative; min-height: 400px; }
.demo-panel {
  position: absolute; inset: 0; padding: clamp(16px, 2.5vw, 28px);
  opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s linear 160ms;
}
.demo-panel.is-active { opacity: 1; visibility: visible; transition: opacity 240ms var(--ease-out), visibility 0s; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 0.8rem; color: var(--text-subtle); }
.demo-play { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border-strong); color: var(--text-muted); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: transform 160ms var(--ease-out), color 160ms ease; }
.demo-play:active { transform: scale(0.96); }
.demo-play svg { width: 12px; height: 12px; }
.demo-play .icon-play { display: none; }
.demo-play[aria-pressed="false"] .icon-play { display: block; }
.demo-play[aria-pressed="false"] .icon-pause { display: none; }

/* Stage animations: elements start hidden and animate when their panel is .is-active.
   Only transform and opacity animate. */
.d-in { opacity: 0; transform: translateY(8px); transition: opacity 160ms ease, transform 160ms ease; }
.is-active .d-in { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out); transition-delay: var(--d, 0ms); }

.d-grid { display: grid; gap: 16px; height: 100%; }
.d-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 16px; min-width: 0; }
.d-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.8rem; font-weight: 650; color: var(--text-muted); margin-bottom: 12px; }
.d-kicker { font-size: 0.72rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-subtle); }

/* Step 1: connect */
.d-connect { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); }
.d-sources { display: grid; gap: 8px; }
.d-source { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.85rem; background: var(--surface); }
.d-source svg { width: 18px; height: 18px; color: var(--accent-text); }
.d-source.is-picked { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.d-source small { margin-left: auto; color: var(--text-subtle); font-size: 0.72rem; }
.d-file { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); background: var(--surface-2); font-size: 0.82rem; }
.d-file-row { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; }
.d-file-row svg { width: 16px; height: 16px; color: var(--accent-text); }
.d-bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.d-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform-origin: left; transform: scaleX(0.02); transition: transform 160ms ease; }
.is-active .d-bar i { transform: scaleX(1); transition: transform 1400ms var(--ease-in-out) 300ms; }
.d-file-done { display: flex; align-items: center; gap: 6px; color: var(--positive); font-weight: 600; font-size: 0.8rem; }
.d-file-done svg { width: 14px; height: 14px; }
.d-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.d-table th, .d-table td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.d-table th { font-weight: 650; color: var(--text-muted); font-size: 0.74rem; }
.d-table th span { display: block; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; color: var(--accent-text); }
.d-table td.num { text-align: right; }
.d-table th.num { text-align: right; }
.d-table-wrap { overflow: hidden; }

/* Step 2: visualize */
.d-viz { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); background: var(--surface); }
.d-chip svg { width: 13px; height: 13px; }
.d-chip.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.d-chart { position: relative; height: 100%; min-height: 220px; }
.d-chart svg { width: 100%; height: 100%; overflow: visible; }
.d-chart .gridline { stroke: var(--border); stroke-width: 1; }
.d-chart .axis-label { fill: var(--text-subtle); font-size: 11px; font-family: var(--font-sans); }
.d-chart .bar { fill: var(--accent); opacity: 0.85; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0.04); transition: transform 160ms ease; }
.d-chart .bar.alt { fill: var(--accent-2); opacity: 0.45; }
.is-active .d-chart .bar { transform: scaleY(1); transition: transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.d-chart .line { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.d-chart .line-wrap { clip-path: inset(0 100% 0 0); transition: clip-path 160ms ease; }
.is-active .d-chart .line-wrap { clip-path: inset(0 0 0 0); transition: clip-path 1100ms var(--ease-in-out) 500ms; }
.d-chart .dot { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
.d-legend { display: flex; gap: 14px; font-size: 0.74rem; color: var(--text-muted); }
.d-legend span { display: inline-flex; align-items: center; gap: 6px; }
.d-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.d-legend i.alt { background: var(--accent-2); opacity: 0.5; }
.d-legend i.ln { height: 2px; border-radius: 2px; background: var(--text); }

/* Step 3: predict */
.d-predict { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.d-metric { display: flex; align-items: baseline; gap: 8px; }
.d-metric strong { font-size: 1.9rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.d-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.82rem; }
.d-steps li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.d-steps svg { width: 16px; height: 16px; color: var(--positive); }
.d-gauge { margin: 6px 0 14px; }
.d-risk { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 14px; }
.d-risk b { font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.d-risk .badge { background: rgba(255, 138, 92, 0.14); color: var(--negative); }
.d-shap { display: grid; gap: 9px; }
.d-shap-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 48px; align-items: center; gap: 10px; font-size: 0.78rem; }
.d-shap-row span:first-child { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-shap-track { position: relative; height: 10px; }
.d-shap-track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--border-strong); }
.d-shap-track i { position: absolute; top: 0; height: 100%; border-radius: 3px; transform: scaleX(0.02); transition: transform 160ms ease; }
.d-shap-track i.pos { left: 50%; background: var(--negative); transform-origin: left; }
.d-shap-track i.neg { right: 50%; background: var(--positive); transform-origin: right; }
.is-active .d-shap-track i { transform: scaleX(1); transition: transform 650ms var(--ease-out); transition-delay: var(--d, 0ms); }
.d-shap-row em { font-style: normal; font-family: var(--font-mono); font-size: 0.74rem; text-align: right; color: var(--text-muted); }
.d-explain { margin-top: 14px; font-size: 0.8rem; color: var(--text-muted); padding: 10px 12px; border-left: 2px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }

/* Step 4: dashboard */
.d-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; }
.d-kpi .d-card-title { margin-bottom: 4px; }
.d-kpi strong { display: block; font-size: 1.55rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.d-kpi small { font-size: 0.74rem; font-weight: 600; }
.d-kpi small.up { color: var(--positive); }
.d-kpi small.down { color: var(--negative); }
.d-dash .d-wide { grid-column: span 2; }
.d-spark { width: 100%; height: 120px; }
.d-spark path.area { fill: var(--accent-soft); }
.d-spark path.ln { fill: none; stroke: var(--accent); stroke-width: 2; }
.d-donut { display: grid; place-items: center; height: 100%; }
.d-donut svg { width: 116px; height: 116px; }
.d-donut circle { fill: none; stroke-width: 12; }
.d-donut .track { stroke: var(--surface-3); }
.d-donut .seg-a { stroke: var(--accent); }
.d-donut .seg-b { stroke: var(--accent-2); opacity: 0.55; }
.d-share { position: absolute; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 0.8rem; font-weight: 600; box-shadow: var(--shadow-lg); }
.d-share svg { width: 14px; height: 14px; color: var(--positive); }
.d-share.d-in { transform: translateY(12px) scale(0.96); }
.is-active .d-share.d-in { transform: none; }

@media (max-width: 859px) {
  .demo-stage { min-height: 0; display: grid; }
  .demo-panel { position: relative; inset: auto; grid-area: 1 / 1; }
  .d-connect, .d-predict { grid-template-columns: 1fr; }
  .d-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-dash .d-wide { grid-column: span 2; }
  .d-dash .d-hide-sm { display: none; }
  .d-table .opt { display: none; }
}
@media (max-width: 479px) {
  .d-hide-xs { display: none; }
  .d-kpi strong { font-size: 1.25rem; }
  .d-share { position: static; justify-self: start; margin-top: 4px; }
}

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.trust ul { list-style: none; margin: 0; padding: 20px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 28px; }
.trust li { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-muted); }
.trust li strong { color: var(--text); display: block; font-size: 0.92rem; }
.trust .ico { width: 36px; height: 36px; }

/* ---------- Icon tile ---------- */
.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--border); flex-shrink: 0; }
.ico svg { width: 20px; height: 20px; }

/* ---------- Cards / bento ---------- */
.card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(20px, 2vw, 28px); box-shadow: var(--shadow-sm); min-width: 0; }
.card h3 { margin-top: 16px; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card .card-foot { margin-top: 16px; }
a.card { color: inherit; text-decoration: none; transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease; }
a.card:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { a.card:hover { border-color: var(--accent-ring); box-shadow: var(--shadow); } }

.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento > .span-2 { grid-column: span 2; }
  .bento > .span-3 { grid-column: span 3; }
  .bento > .span-4 { grid-column: span 4; }
}
.bento .card { display: flex; flex-direction: column; overflow: hidden; }
.bento .card .art { margin: 20px -8px -8px; flex: 1; display: flex; align-items: flex-end; }

/* Mini illustrations */
.art-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); font-size: 0.8rem; font-weight: 560; color: var(--text-muted); white-space: nowrap; }
.tag svg { width: 14px; height: 14px; color: var(--accent-text); }
.art-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; width: 100%; padding: 0 8px; }
.art-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); opacity: 0.85; transform-origin: bottom; }
.art-bars i:nth-child(even) { opacity: 0.45; }
.art-bars i.h1 { height: 38%; } .art-bars i.h2 { height: 62%; } .art-bars i.h3 { height: 48%; } .art-bars i.h4 { height: 80%; }
.art-bars i.h5 { height: 58%; } .art-bars i.h6 { height: 92%; } .art-bars i.h7 { height: 70%; } .art-bars i.h8 { height: 100%; }
.art-shap { display: grid; gap: 10px; width: 100%; padding: 0 8px 8px; }
.art-shap div { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-muted); }
.art-shap b { display: block; height: 10px; border-radius: 4px; background: var(--accent); }
.art-shap b.n { background: var(--negative); opacity: 0.85; }
.art-shap .w1 { width: 90%; } .art-shap .w2 { width: 64%; } .art-shap .w3 { width: 40%; } .art-shap .w4 { width: 22%; }
.art-code { width: 100%; margin: 0; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-deep); color: #cfe3ee; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7; overflow-x: auto; white-space: pre; border: 1px solid var(--border); }
.art-code .k { color: #7fdcef; } .art-code .s { color: #9fe3b8; } .art-code .c { color: #7d97a8; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--btn-bg); color: var(--btn-text); margin-bottom: 18px; }
.step p { color: var(--text-muted); margin: 0; }
.step ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Split layouts ---------- */
.split { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .split.reverse > :first-child { order: 2; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text-muted); }
.checklist li strong { color: var(--text); }
.checklist svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-text); }

/* ---------- AI chat demo ---------- */
.chat { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 0.85rem; font-weight: 600; }
.chat-head .ico { width: 28px; height: 28px; border-radius: 8px; }
.chat-head .ico svg { width: 15px; height: 15px; }
.chat-head .demo-label { margin-left: auto; }
.chat-log { height: 360px; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: auto; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: opacity 260ms var(--ease-out), transform 300ms var(--ease-out); }
.msg.shown { opacity: 1; transform: none; }
.msg-user { align-self: flex-end; background: var(--btn-bg); color: var(--btn-text); border-bottom-right-radius: 6px; }
.msg-ai { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg-ai .ai-tag { display: block; font-size: 0.7rem; font-weight: 650; color: var(--text-subtle); margin-bottom: 4px; letter-spacing: 0.02em; }
.tool-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tool-list li { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-family: var(--font-mono); color: var(--text-muted); opacity: 0; transform: translateY(4px); transition: opacity 240ms var(--ease-out), transform 280ms var(--ease-out); }
.tool-list li.shown { opacity: 1; transform: none; }
.tool-list svg { width: 14px; height: 14px; color: var(--positive); }
.msg-actions { display: flex; gap: 8px; margin-top: 12px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-subtle); animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-prompts { border-top: 1px solid var(--border); padding: 12px; display: flex; gap: 8px; flex-wrap: wrap; background: var(--surface-2); }
.prompt-chip {
  font: inherit; font-size: 0.82rem; font-weight: 560; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; text-align: left;
  transition: transform 160ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}
.prompt-chip:active { transform: scale(0.97); }
.prompt-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.prompt-chip:disabled { cursor: progress; }
@media (hover: hover) and (pointer: fine) { .prompt-chip:hover { border-color: var(--accent); } }

/* ---------- Pricing ---------- */
.billing { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 40px; }
.segmented { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); isolation: isolate; }
.segmented button {
  position: relative; z-index: 1; font: inherit; font-size: 0.9rem; font-weight: 600; padding: 9px 20px; border: 0; background: none; color: var(--text-muted);
  border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color 200ms ease, transform 160ms var(--ease-out);
}
.segmented button:active { transform: scale(0.97); }
.segmented button[aria-checked="true"] { color: var(--text); }
.segmented button .save { margin-left: 6px; font-size: 0.72rem; font-weight: 700; color: var(--positive); }
.segmented-indicator { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); transition: transform 280ms var(--ease-out), width 0s; }
html:not(.js) .segmented-indicator { display: none; }
html:not(.js) .segmented button[aria-checked="true"] { background: var(--surface); box-shadow: var(--shadow); }
html:not(.js) .billing { display: none; }
.billing-note { font-size: 0.85rem; color: var(--text-muted); text-align: center; }

.plans { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 24px; box-shadow: var(--shadow-sm); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.plan.featured::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(120% 60% at 50% 0%, var(--accent-soft), transparent 60%); pointer-events: none; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan-desc { color: var(--text-muted); font-size: 0.9rem; margin: 8px 0 20px; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.price-amount { font-size: 2.6rem; font-weight: 720; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; }
.price-period { color: var(--text-muted); font-size: 0.9rem; }
.price-sub { color: var(--text-subtle); font-size: 0.82rem; min-height: 1.5em; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.plan .btn { margin-bottom: 20px; }
.plan-features { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: 0.9rem; }
.plan-features li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--text-muted); }
.plan-features li strong { color: var(--text); font-weight: 600; }
.plan-features svg { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-text); }
.plan-features .label { grid-column: 1 / -1; font-size: 0.75rem; font-weight: 650; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; display: block; }

.enterprise { margin-top: 16px; display: grid; gap: 20px; align-items: center; grid-template-columns: 1fr; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); background: linear-gradient(120deg, var(--surface) 30%, var(--accent-soft)); }
@media (min-width: 900px) { .enterprise { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; } }
.enterprise h3 { font-size: 1.35rem; margin: 0 0 6px; }
.enterprise p { margin: 0; color: var(--text-muted); }
.enterprise ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.enterprise li { display: flex; gap: 8px; align-items: center; color: var(--text-muted); }
.enterprise li svg { width: 16px; height: 16px; color: var(--accent-text); }
.enterprise .price-amount { font-size: 2rem; }

.extras { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .extras { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.extra { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.extra b { display: block; font-size: 1.2rem; letter-spacing: -0.02em; margin: 8px 0 2px; }
.extra > span { color: var(--text-muted); font-size: 0.88rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.compare th, .compare td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 0.9rem; font-weight: 680; }
.compare thead th small { display: block; font-weight: 500; color: var(--text-muted); font-size: 0.78rem; }
.compare th[scope="row"] { text-align: left; font-weight: 520; color: var(--text); position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 210px; }
.compare thead th:first-child { left: 0; z-index: 2; text-align: left; }
.compare tbody tr.group th { background: var(--surface-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); font-weight: 680; }
.compare td { color: var(--text-muted); }
.compare td svg { width: 18px; height: 18px; margin: 0 auto; color: var(--accent-text); }
.compare td .no { color: var(--text-subtle); }
.compare .featured-col { background: var(--accent-soft); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

.notes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.note { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; }
.note h3 { font-size: 1rem; margin-bottom: 6px; }
.note p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color 200ms ease; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-3); transition: transform 240ms var(--ease-out); flex-shrink: 0; }
.faq summary .chev svg { width: 16px; height: 16px; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 20px; color: var(--text-muted); }
.faq .answer p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .answer { animation: faq-in 260ms var(--ease-out); }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px); background: var(--app-backdrop); color: var(--text); text-align: center; border: 1px solid rgba(255,255,255,0.08); }

.cta-band h2 { color: var(--text); max-width: 760px; margin: 0 auto 14px; }
.cta-band p { color: var(--text-muted); max-width: 620px; margin: 0 auto 28px; font-size: 1.08rem; }


/* ---------- Subpage hero ---------- */
.page-hero { position: relative; padding: clamp(40px, 5vw, 80px) 0 clamp(40px, 4vw, 64px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border); }
.page-hero .hero-lights::before { top: -420px; opacity: 0.85; }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); max-width: 900px; }
.page-hero .lede { max-width: 720px; margin-bottom: 0; }
.page-hero .hero-ctas { justify-content: flex-start; margin-top: 28px; }
.breadcrumbs { margin-bottom: 20px; font-size: 0.85rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--text-subtle); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); }

/* In-page sub navigation */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--border); }
.subnav ul { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-size: 0.86rem; font-weight: 560; color: var(--text-muted); text-decoration: none; transition: color 160ms ease, background-color 160ms ease; }
.subnav a[aria-current="true"] { color: var(--text); background: var(--accent-soft); }
@media (hover: hover) and (pointer: fine) { .subnav a:hover { color: var(--text); } }

/* Feature blocks (product page) */
.feature-block { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .feature-block { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } .feature-block.reverse > :first-child { order: 2; } }
.feature-block h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.feature-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px; }
.feature-item h3 { font-size: 1rem; margin: 12px 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature-item p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.feature-item .ico { width: 34px; height: 34px; border-radius: 10px; }
.feature-item .ico svg { width: 17px; height: 17px; }
.feature-item ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--text-muted); font-size: 0.9rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Tabs (model types) */
.tabs { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.tablist { display: flex; gap: 4px; padding: 8px; overflow-x: auto; border-bottom: 1px solid var(--border); background: var(--surface-2); scrollbar-width: thin; }
.tablist button { font: inherit; font-size: 0.86rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 0; background: none; color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out); }
.tablist button:active { transform: scale(0.97); }
.tablist button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tabpanel { padding: clamp(20px, 3vw, 32px); display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .tabpanel { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; } }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { font-size: 1.3rem; margin-top: 0; }
.tabpanel p { color: var(--text-muted); }
.tabpanel .example { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); padding: 16px; font-size: 0.88rem; }
.tabpanel .example b { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); margin-bottom: 6px; }
@media (prefers-reduced-motion: no-preference) { .tabpanel:not([hidden]) { animation: panel-in 240ms var(--ease-out); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Architecture diagram */
.arch { display: grid; gap: 14px; grid-template-columns: 1fr; position: relative; }
.arch-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .arch-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .arch-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.arch-node { border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; position: relative; }
.arch-node h3 { font-size: 1rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.arch-node h3 .ico { width: 30px; height: 30px; border-radius: 9px; }
.arch-node h3 .ico svg { width: 16px; height: 16px; }
.arch-node p { font-size: 0.88rem; color: var(--text-muted); margin: 6px 0 0; }
.arch-node.core { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.arch-zone { border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 18px; position: relative; }
.arch-zone-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 680; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.arch-zone-label svg { width: 14px; height: 14px; }
.arch-link { display: flex; justify-content: center; color: var(--text-subtle); font-size: 0.78rem; gap: 8px; align-items: center; }
.arch-link svg { width: 16px; height: 16px; }

/* Filterable cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-btn { font: inherit; font-size: 0.88rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); cursor: pointer; transition: transform 160ms var(--ease-out), color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.filter-btn:active { transform: scale(0.97); }
.filter-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (hover: hover) and (pointer: fine) { .filter-btn:hover { border-color: var(--accent); } .filter-btn[aria-pressed="true"]:hover { border-color: var(--text); } }
.filter-status { font-size: 0.85rem; color: var(--text-subtle); margin-bottom: 24px; }
.case-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case-card { display: flex; flex-direction: column; }
.case-card[hidden] { display: none; }
.case-card.is-entering { opacity: 0; transform: translateY(8px) scale(0.98); }
.case-card.is-shown { opacity: 1; transform: none; transition: opacity 260ms var(--ease-out), transform 320ms var(--ease-out); }
.case-card .case-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.case-card h3 { margin-top: 14px; }
.case-card ul { color: var(--text-muted); font-size: 0.92rem; margin: 10px 0 0; padding-left: 1.1em; }
.case-card ul li + li { margin-top: 4px; }
.who { margin-top: 14px; font-size: 0.85rem; color: var(--text-subtle); }
.who strong { color: var(--text-muted); }

.name-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.name-list li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: 0.85rem; font-weight: 560; color: var(--text-muted); }

/* Partners */
.partner-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Contact */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card a.big { font-size: 1.05rem; font-weight: 650; word-break: break-word; }
.data-list { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.data-list div { display: grid; grid-template-columns: 1fr; gap: 2px 24px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
@media (min-width: 720px) { .data-list div { grid-template-columns: 240px 1fr; } }
.data-list div:last-child { border-bottom: 0; }
.data-list dt { font-weight: 600; color: var(--text-muted); font-size: 0.9rem; }
.data-list dd { margin: 0; word-break: break-word; }

/* Quote */
.quote { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); letter-spacing: -0.025em; line-height: 1.25; font-weight: 600; max-width: 900px; margin: 0 auto; text-align: center; text-wrap: balance; }
.quote::before { content: "“"; display: block; color: var(--accent-text); font-size: 3rem; line-height: 0.8; margin-bottom: 8px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--border-strong); }
.timeline li { position: relative; padding: 0 0 28px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline b { display: block; font-size: 0.85rem; color: var(--accent-text); letter-spacing: 0.02em; }
.timeline p { margin: 2px 0 0; color: var(--text-muted); }

/* ---------- Legal prose ---------- */
.prose { font-size: 1rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); margin: 2.4em 0 0.7em; letter-spacing: -0.02em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-size: 1.12rem; margin: 1.8em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li > ul { margin-top: 0.35em; margin-bottom: 0.2em; }
.prose blockquote { margin: 1.5em 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .table-wrap { margin: 1.4em 0; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose thead th { background: var(--surface-2); font-weight: 650; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose code { background: var(--surface-3); padding: 1px 6px; border-radius: 5px; font-size: 0.86em; }
.prose a { word-break: break-word; }
.legal-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1080px) { .legal-layout { grid-template-columns: 250px minmax(0, 1fr); } }
.toc { font-size: 0.86rem; }
.toc nav { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-right: 8px; }
.toc b { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--text-muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 1079px) { .toc { display: none; } }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.site-note { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px 20px; background: var(--surface-2); margin-bottom: 36px; }
.site-note h2 { font-size: 1.05rem !important; margin: 0 0 6px !important; display: flex; gap: 10px; align-items: center; }
.site-note p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.site-note p + p { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 64px 0 32px; margin-top: 0; font-size: 0.9rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--text-muted); max-width: 320px; margin: 14px 0 0; }
.footer-brand .brand svg { height: 28px; }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-subtle); margin: 0 0 14px; font-weight: 680; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-subtle); font-size: 0.84rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .eu { display: inline-flex; gap: 8px; align-items: center; }
.footer-bottom .eu svg { width: 16px; height: 16px; color: var(--accent-text); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent-text); letter-spacing: 0.1em; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--stagger, 0ms); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .js .reveal { transform: none; }
  .js .reveal.is-visible { transition: opacity 300ms ease; }
  .d-in, .is-active .d-in { transform: none; }
  .is-active .d-in { transition: opacity 200ms ease; transition-delay: 0ms; }
  .d-bar i, .is-active .d-bar i { transform: none; transition: none; }
  .d-chart .bar, .is-active .d-chart .bar { transform: none; transition: none; }
  .d-chart .line-wrap, .is-active .d-chart .line-wrap { clip-path: none; transition: none; }
  .d-shap-track i, .is-active .d-shap-track i { transform: none; transition: none; }
  .d-share.d-in, .is-active .d-share.d-in { transform: none; }
  .msg, .tool-list li { transform: none; transition: opacity 150ms ease; }
  .typing i { animation: none; opacity: 0.6; }
  .mobile-panel, .mobile-panel[data-open="true"] { transform: none; }
  .case-card.is-entering { transform: none; }
  .segmented-indicator { transition: none; }
  .btn:active, .filter-btn:active, .prompt-chip:active, .segmented button:active, .tablist button:active { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .subnav, .toc, .cta-band, .hero-lights, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
  a { color: #000; }
}

/* Stagger delays for the demo (CSP forbids inline style attributes, so delays are classes). */
.dl1 { --d: 60ms; } .dl2 { --d: 120ms; } .dl3 { --d: 180ms; } .dl4 { --d: 240ms; } .dl5 { --d: 300ms; } .dl6 { --d: 360ms; }
.dl7 { --d: 420ms; } .dl8 { --d: 480ms; } .dl9 { --d: 600ms; } .dl10 { --d: 800ms; } .dl11 { --d: 1100ms; } .dl12 { --d: 1500ms; } .dl13 { --d: 1800ms; } .dl14 { --d: 2300ms; }
.w-8 { width: 8%; } .w-12 { width: 12%; } .w-18 { width: 18%; } .w-27 { width: 27%; } .w-48 { width: 48%; }
.center-text { text-align: center; margin-top: 32px; }
@media (min-width: 700px) { .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .steps-5 .step { padding: 22px; } }
@media (min-width: 960px) { .feature-list.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-3 + .grid-3 { margin-top: 16px; }
.legal-layout > * { min-width: 0; }
.notfound { isolation: isolate; overflow: hidden; }
.page-ctas { justify-content: flex-start; margin-top: 24px; }
.site-note h2 svg { width: 20px; height: 20px; color: var(--accent-text); }

p:has(> .link-arrow) { margin-top: 28px; margin-bottom: 0; }
.plan .plan-link { margin-top: auto; padding-top: 8px; }
.art-alert { width: 100%; display: grid; gap: 8px; padding: 0 8px 8px; }
.art-alert div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); font-size: 0.8rem; color: var(--text-muted); }
.art-alert div svg { width: 16px; height: 16px; color: var(--accent-text); }
.art-alert code { color: var(--text); font-size: 0.78rem; }
.art-alert .arrow-sep { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.art-dash { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 8px 8px; }
.art-dash > div { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); padding: 10px 12px; font-size: 0.72rem; color: var(--text-subtle); }
.art-dash b { display: block; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.art-dash .wide { grid-column: span 2; display: flex; align-items: flex-end; gap: 5px; height: 76px; }
.art-dash .wide i { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--accent); opacity: 0.75; }
.art-dash .wide i.h1 { height: 30%; } .art-dash .wide i.h2 { height: 50%; } .art-dash .wide i.h3 { height: 42%; } .art-dash .wide i.h4 { height: 66%; } .art-dash .wide i.h5 { height: 58%; } .art-dash .wide i.h6 { height: 84%; } .art-dash .wide i.h7 { height: 100%; }
.art-dash .share { display: flex; flex-direction: column; justify-content: space-between; }
.art-dash .share span { display: inline-flex; align-items: center; gap: 6px; color: var(--positive); font-weight: 600; }
.art-dash .share svg { width: 14px; height: 14px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
@media (max-width: 639px) {
  .hide-sm { display: none; }
  .hero .hero-ctas, .page-hero .hero-ctas, .page-ctas, .cta-band .hero-ctas { flex-direction: column; align-items: stretch; max-width: 360px; }
  .hero .hero-ctas, .cta-band .hero-ctas { margin-left: auto; margin-right: auto; }
}

.compare tbody tr.group th { text-align: left; }
.plans .price-sub { min-height: 2.9em; }
.plan > .price-sub:last-child { min-height: 0; margin: 16px 0 0; }
.scroll-hint { display: none; font-size: 0.85rem; color: var(--text-subtle); margin: 0 0 10px; }
@media (max-width: 719px) {
  .scroll-hint { display: flex; align-items: center; gap: 6px; }
  .scroll-hint svg { width: 14px; height: 14px; }
  .compare { font-size: 0.85rem; }
  .compare th[scope="row"] { min-width: 150px; max-width: 170px; }
  .compare th, .compare td { padding: 11px 12px; }
}

/* App backdrop shared with app.air-core.io public pages */
.hero, .page-hero { background: var(--app-backdrop); }
.hero .hero-lights::before, .page-hero .hero-lights::before { display: none; }
.page-hero { border-bottom: 0; }
.site-header.theme-dark { border-bottom-color: rgba(255, 255, 255, 0.06); }
.theme-dark .pill { background: rgba(255, 255, 255, 0.04); }
.window.theme-page { border-color: rgba(255, 255, 255, 0.12); }
.header-actions .hide-xs { display: inline; }
@media (max-width: 400px) { .header-actions .hide-xs { display: none; } }

/* App mockups always use the app's light UI (the real app is light), whatever the page theme. */
.theme-app {
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --surface-3: #eef2f5;
  --border: #dfe5ea;
  --border-strong: #cfd8df;
  --text: #0b2236;
  --text-muted: #5b6b7a;
  --text-subtle: #5b6b7a;
  --accent: #029fbb;
  --accent-2: #0b3d5c;
  --accent-text: #00758a;
  --accent-soft: rgba(2, 159, 187, 0.1);
  --accent-ring: rgba(2, 159, 187, 0.45);
  --btn-bg: #017f96;
  --btn-bg-hover: #016a7d;
  --btn-text: #ffffff;
  --btn2-bg: #ffffff;
  --btn2-text: #0b2236;
  --btn2-border: #dfe5ea;
  --btn2-border-hover: #029fbb;
  --positive: #0a6e4a;
  --negative: #c2410c;
  --warn: #a35a00;
  --shadow-sm: 0 1px 2px rgba(4, 25, 42, 0.06);
  --shadow: 0 1px 2px rgba(4, 25, 42, 0.05), 0 8px 24px -8px rgba(4, 25, 42, 0.12);
  --shadow-lg: 0 1px 2px rgba(4, 25, 42, 0.2), 0 24px 64px rgba(4, 25, 42, 0.45);
  --logo-ink: #012e4e;
  --logo-accent: #029fbb;
  color: var(--text);
}
.window.theme-app { background: #ffffff; border-color: #dfe5ea; }
.theme-app .window-url span { background: #ffffff; }
.theme-app .d-chart .bar.alt { opacity: 0.28; }
.theme-app .d-legend i.alt { opacity: 0.35; }
.theme-app .d-donut .seg-b { opacity: 0.35; }
.chat.theme-app { background: #ffffff; border-color: #dfe5ea; }
.mock { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 12px; box-shadow: var(--shadow); }
.art .mock { width: 100%; margin: 0 8px 8px; }
.art .mock .art-alert, .art .mock .art-dash { padding: 0; }
.card.theme-app { background: #ffffff; border-color: #dfe5ea; }

/* Demo: navy sidebar like the real app */
.demo-body { display: grid; grid-template-columns: 1fr; }
.demo-main { min-width: 0; }
.demo-rail { display: none; }
@media (min-width: 860px) {
  .demo-body { grid-template-columns: 60px minmax(0, 1fr); }
  .demo-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; background: linear-gradient(180deg, #062a40 0%, #0b2236 100%); }
  .demo-rail .rail-logo { width: 30px; height: 30px; margin-bottom: 10px; }
  .demo-rail .rail-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: rgba(255, 255, 255, 0.55); transition: background-color 200ms ease, color 200ms ease; }
  .demo-rail .rail-ico svg { width: 18px; height: 18px; }
  [data-step="1"] .rail-ico.r1, [data-step="2"] .rail-ico.r2, [data-step="3"] .rail-ico.r3, [data-step="4"] .rail-ico.r4 { background: rgba(44, 195, 221, 0.16); color: #2cc3dd; }
  .demo-rail .rail-sep { flex: 1; }
}
.site-header.theme-dark { background: rgba(4, 25, 42, 0.9); }
.hero-copy { max-width: 1000px; }
.hero-copy .header-actions .hide-sm { display: inline; }
@media (max-width: 639px) { .pill .hide-sm { display: none; } }

/* ---------- MCP (headline feature) ---------- */
.mcp-section { background: radial-gradient(900px 520px at 88% 0%, rgba(2, 159, 187, 0.24), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(44, 195, 221, 0.12), transparent 60%), linear-gradient(180deg, #062a40 0%, #04192a 100%); }
.mcp-section .lede strong, .mcp-section .checklist strong { color: var(--text); }
.mcp-demo { border: 1px solid #dfe5ea; border-radius: var(--radius-lg); background: #ffffff; box-shadow: var(--shadow-lg); overflow: hidden; }
.mcp-demo .chat-head { gap: 10px; }
.mcp-conn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 650; color: var(--positive); background: rgba(10, 110, 74, 0.08); border: 1px solid rgba(10, 110, 74, 0.25); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.mcp-conn svg { width: 13px; height: 13px; }
.mcp-demo .chat-head .demo-label { margin-left: 0; }
.mcp-log { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; min-height: 400px; }
.mcp-log .msg { max-width: 92%; }
.tool-call { display: grid; grid-template-columns: 16px auto minmax(0, 1fr) 16px; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-size: 0.8rem; color: var(--text-muted); max-width: 100%; }
.tool-call > svg { width: 15px; height: 15px; color: var(--accent-text); }
.tool-call b { color: var(--text); font-weight: 650; }
.tool-call code { font-size: 0.74rem; color: var(--accent-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-call .ok { display: grid; place-items: center; color: var(--positive); opacity: 0; transform: scale(0.8); transition: opacity 200ms ease, transform 240ms var(--ease-out); }
.tool-call .ok svg { width: 15px; height: 15px; }
.tool-call.done .ok { opacity: 1; transform: none; }
.seq { opacity: 0; transform: translateY(6px); transition: opacity 160ms ease, transform 160ms ease; }
.seq.shown { opacity: 1; transform: none; transition: opacity 320ms var(--ease-out), transform 380ms var(--ease-out); }
.mcp-chart { width: 100%; max-width: 340px; height: auto; margin-top: 12px; overflow: visible; }
.mcp-chart .axis-label { fill: var(--text-muted); font-size: 11px; font-family: var(--font-sans); }
.mcp-chart .hbar { fill: var(--accent); opacity: 0.35; transform-box: fill-box; transform-origin: left; transform: scaleX(0.02); transition: transform 160ms ease; }
.mcp-chart .hbar.top { opacity: 1; }
.shown .mcp-chart .hbar { transform: scaleX(1); transition: transform 650ms var(--ease-out); transition-delay: var(--d, 0ms); }
.mcp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 0.8rem; color: var(--text-subtle); }
.mcp-steps { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 900px) { .mcp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mcp-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03); }
.mcp-steps .step-num { margin: 0; flex-shrink: 0; }
.mcp-steps h3 { font-size: 1rem; margin: 6px 0 4px; }
.mcp-steps p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.mcp-ctas { align-items: center; flex-wrap: wrap; margin-top: 32px; }
.mcp-note { color: var(--text-muted); font-size: 0.9rem; }
.mcp-tools-head { margin: clamp(48px, 5vw, 72px) 0 20px; }
.mcp-tools-title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin-bottom: 6px; }
@media (min-width: 1100px) { .feature-list.mcp-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-dark .feature-item { background: rgba(255, 255, 255, 0.03); border-color: var(--border-strong); }
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tool-tags code { font-size: 0.72rem; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); }
.plan-features li.hl { background: var(--accent-soft); border-radius: 8px; padding: 6px 8px; margin: 0 -8px; }
.plan-features li.hl strong { color: var(--text); }
.plan-features li.off { color: var(--text-subtle); }
.plan-features li.off svg { color: var(--text-subtle); }
@media (max-width: 639px) { .mcp-conn { display: none; } .mcp-log { min-height: 0; } }
@media (prefers-reduced-motion: reduce) {
  .seq, .seq.shown { transform: none; }
  .mcp-chart .hbar, .shown .mcp-chart .hbar { transform: none; transition: none; }
  .tool-call .ok { transform: none; }
}
.table-wrap { position: relative; }
