/* =========================================================
   Vistaar AI — main stylesheet
   ========================================================= */
:root {
  --brand: #7c5cff;
  --brand-2: #22d3ee;
  --brand-3: #f472b6;
  --grad: linear-gradient(120deg, var(--brand) 0%, #5b8cff 50%, var(--brand-2) 100%);
  --radius: 1.125rem;
  --radius-sm: 0.75rem;
  /* Fluid width: content spans the screen with a proportional side margin;
     only extreme ultra-wides (32:9) are capped so lines don't get absurdly long. */
  --container: 160rem;
  --gutter: clamp(1rem, 4vw, 6rem);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', var(--font);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 4.5rem;
}
/* dark (default) */
:root, [data-theme="dark"] {
  --bg: #070b1f;
  --bg-2: #0b1026;
  --surface: #111735;
  --surface-2: #161d42;
  --border: rgba(200, 210, 255, .24);
  --text: #f8f9ff;
  --muted: #c0c7e8;
  --shadow: 0 1.25rem 3.75rem -1.25rem rgba(0, 0, 0, .6);
  --glass: rgba(17, 23, 53, .6);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f5f6fc;
  --surface: #ffffff;
  --surface-2: #f0f2fb;
  --border: rgba(15, 20, 60, .1);
  --text: #0d1230;
  --muted: #5b6390;
  --shadow: 0 1.25rem 3.125rem -1.5rem rgba(30, 40, 100, .28);
  --glass: rgba(255, 255, 255, .75);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Fluid root size: everything is in rem, so the whole UI scales with the screen.
   16px up to ~1600px wide, then grows with width AND height (the smaller wins,
   so 21:9 ultra-wides don't over-scale): 1920×1080 ≈ 18px, 2560×1440 ≈ 23px, 4K TV ≈ 32px. */
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  font-size: clamp(16px, min(calc(4.57px + .714vw), calc(4.57px + 1.27vh)), 40px);
}
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, .h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
h3, .h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; margin-top: 2rem; }
.center { text-align: center; }
.center .lead, .lead.center { margin-inline: auto; }
.sr-only, .hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { flex-shrink: 0; }
.skip-link { position: absolute; left: -62.4375rem; top: 0.5rem; z-index: 999; background: var(--brand); color: #fff; padding: 0.5rem 1rem; border-radius: 0.5rem; }
.skip-link:focus { left: 0.5rem; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 0.375rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.375rem; font-family: var(--display); font-weight: 600;
  font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 0.875rem;
}
[data-theme="light"] .eyebrow { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.375rem;
  border-radius: 62.4375rem; font-weight: 600; font-size: .95rem; transition: transform .25s var(--ease), box-shadow .25s, background .25s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-sm { padding: 0.5625rem 1rem; font-size: .875rem; }
.btn-lg { padding: 0.9375rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); background-size: 200% 100%; color: #fff; box-shadow: 0 0.625rem 1.875rem -0.625rem rgba(124, 92, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 1rem 2.5rem -0.75rem rgba(124, 92, 255, .9); }
.btn-ghost { border: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(0.625rem); }
.btn-ghost:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn-light { background: #fff; color: #0d1230; }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 600; color: var(--brand-2); }
[data-theme="light"] .link-arrow { color: var(--brand); }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(0.25rem); }

/* ---------- Header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 200; }
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: transparent; transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: var(--glass); backdrop-filter: blur(1.125rem) saturate(1.4); -webkit-backdrop-filter: blur(1.125rem) saturate(1.4); border-color: var(--border); }
.nav-wrap { display: flex; align-items: center; height: 100%; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; }
/* Logo: 3.36:1 artwork, sized by height so it fits the header bar on every screen */
.logo { height: 2.75rem; width: auto; max-width: 42vw; object-fit: contain; }
.site-footer .logo { height: 3.25rem; }
[data-theme="dark"] .logo-light, [data-theme="light"] .logo-dark { display: none; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 2px; }
.main-nav { flex: 1; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; justify-content: center; }
.main-nav .nav-link { color: var(--text); }
.nav-link { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.625rem 0.875rem; border-radius: 0.625rem; font-weight: 500; font-size: .95rem; color: var(--text); transition: background .2s; }
.nav-link:hover, .has-mega.open > .nav-link { background: var(--surface-2); }
.nav-link .ico { transition: transform .25s; }
.has-mega { position: relative; }
.has-mega.open > .nav-link .ico { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 0.625rem); left: 50%; translate: calc(-50% + var(--shift, 0px)) 0.5rem; width: min(45rem, 92vw);
  display: grid; grid-template-columns: 14.375rem 1fr; gap: 1.5rem; padding: 1.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .25s, translate .25s var(--ease), visibility .25s;
}
.mega::before { content: ""; position: absolute; inset: -0.875rem 0 auto; height: 0.875rem; }
/* --shift is set by JS so a dropdown never runs off either screen edge */
.has-mega.open .mega { opacity: 1; visibility: visible; translate: calc(-50% + var(--shift, 0px)) 0; }
.mega-wide { width: min(53.75rem, 94vw); display: block; }
.mega-ind { width: min(60rem, 94vw); grid-template-columns: 14.5rem 1fr; }
.mega-links.two-col { grid-template-columns: 1fr 1fr; column-gap: .5rem; }
/* dropdown items: titles only (descriptions hidden), single-line rows */
.mega-links small { display: none !important; }
.mega-links a { align-items: center; padding: .55rem .65rem; }
.mega-links strong { font-weight: 600; }
.mega-links .mi { width: 2.1rem; height: 2.1rem; }
.clamp2 { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-narrow { width: 16.25rem; display: block; padding: 0.75rem; }
.mega-intro { padding: 1.125rem; border-radius: var(--radius-sm); background: linear-gradient(160deg, rgba(124,92,255,.18), rgba(34,211,238,.08)); }
.mega-intro p { color: var(--muted); font-size: .92rem; }
.mega-links { display: grid; gap: 0.25rem; }
.mega-links a, .app-list a { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.625rem; border-radius: 0.75rem; transition: background .2s; }
.mega-links a:hover { background: var(--surface-2); }
.mega-links strong, .app-list strong { display: block; font-size: .95rem; }
.mega-links small, .app-list small { color: var(--muted); font-size: .82rem; line-height: 1.4; display: block; }
.mi { display: inline-grid; place-items: center; width: 2.375rem; height: 2.375rem; border-radius: 0.6875rem; background: rgba(124, 92, 255, .14); color: var(--brand); flex-shrink: 0; }
.mi.lg { width: 3.25rem; height: 3.25rem; border-radius: 0.875rem; margin-bottom: 1rem; }
[data-theme="dark"] .mi { color: #d2c8ff; background: rgba(124, 92, 255, .22); }
/* Dark theme: brighter secondary elements for clear visibility */
[data-theme="dark"] .hcard-ico { color: #dde2ff; }
[data-theme="dark"] .wordmark { opacity: .85; }
[data-theme="dark"] .badge { color: #d5dbf5; }
[data-theme="dark"] .socials a { color: #d5dbf5; }
[data-theme="dark"] .link-arrow { color: #4ee6fb; }
/* Small uppercase labels / headers: brighter + slightly bolder in dark mode */
[data-theme="dark"] .eyebrow, [data-theme="dark"] .tag, [data-theme="dark"] .hcard-cat.ex { color: #72efff; }
[data-theme="dark"] .hcard-cat.cx { color: #ffa3d6; }
[data-theme="dark"] .hcard-cat, [data-theme="dark"] .eyebrow, [data-theme="dark"] .tag { font-weight: 700; text-shadow: 0 0 .9rem rgba(114, 239, 255, .25); }
[data-theme="dark"] .hcard-cat.cx { text-shadow: 0 0 .9rem rgba(255, 163, 214, .25); }
[data-theme="dark"] .mini { color: #e6eafb; font-weight: 700; }
[data-theme="dark"] .chat-topic { color: #72efff; border-color: rgba(114, 239, 255, .4); }
[data-theme="dark"] .ticks .ico, [data-theme="dark"] .badge .ico { color: #4ff0b0; }
[data-theme="dark"] .nav-link .ico, [data-theme="dark"] .app-list a > .ico:last-child { color: #e6e9ff; }
/* Lead / intro paragraphs (e.g. hero "Build, deploy and govern…") and descriptive text: brighter in dark mode */
[data-theme="dark"] .lead { color: #e4e8fb; }
[data-theme="dark"] .page-hero:has(.page-hero-bg) .lead { color: rgba(255, 255, 255, .92); }
[data-theme="dark"] .card p, [data-theme="dark"] .post-body p, [data-theme="dark"] .pillar p,
[data-theme="dark"] .app-body p, [data-theme="dark"] .step p, [data-theme="dark"] .app-list small,
[data-theme="dark"] .mega-links small, [data-theme="dark"] .mega-intro p, [data-theme="dark"] .ind-overlay p { color: #d6dcf4; }
/* Inputs, search box and filter chips: visible outlines + readable placeholders in dark mode */
[data-theme="dark"] .int-search, [data-theme="dark"] .chip,
[data-theme="dark"] .form-card input:not([type=checkbox]), [data-theme="dark"] .form-card select, [data-theme="dark"] .form-card textarea,
[data-theme="dark"] .newsletter input { border-color: rgba(190, 200, 255, .42); color: #f8f9ff; }
[data-theme="dark"] .int-search, [data-theme="dark"] .chip { background: #151c40; }
[data-theme="dark"] .int-search::placeholder, [data-theme="dark"] .form-card ::placeholder, [data-theme="dark"] .newsletter input::placeholder { color: #c3cae9; opacity: 1; }
[data-theme="dark"] .int-search:hover, [data-theme="dark"] .chip:hover { border-color: rgba(190, 200, 255, .7); }
[data-theme="dark"] .int-search:focus { outline: none; border-color: #8f7bff; box-shadow: 0 0 0 .25rem rgba(124, 92, 255, .3); }
[data-theme="dark"] .chip.active { border-color: var(--brand); color: #fff; background: var(--brand); }
/* Contrast audit fixes (dark mode) */
[data-theme="dark"] .code-block { border-color: rgba(200, 210, 255, .26); }
[data-theme="dark"] .code-block .c { color: #9aa4d6; }
[data-theme="dark"] .media-glass { border-color: rgba(255, 255, 255, .28); }
[data-theme="dark"] .chip.active { background: #6a46f5; border-color: #8f7bff; }
[data-theme="dark"] .int-mark .bi-text { color: #5fe0e4 !important; filter: none; }
/* Footer: brighter text in dark mode */
[data-theme="dark"] .footer-cols a, [data-theme="dark"] .footer-brand p, [data-theme="dark"] .footer-bottom, [data-theme="dark"] .footer-bottom a { color: #e3e8fb; }
[data-theme="dark"] .footer-cols h3 { color: #ffffff; }
[data-theme="dark"] .footer-cols a:hover, [data-theme="dark"] .footer-bottom a:hover { color: #72efff; }
[data-theme="dark"] .socials a { color: #eef1ff; border-color: rgba(200, 210, 255, .35); }
/* Logo: lift brightness on dark backgrounds */
[data-theme="dark"] .logo-dark, body:has(.page-hero-bg) .site-header:not(.scrolled) .logo-dark { filter: brightness(1.22) saturate(1.12) drop-shadow(0 0 .6rem rgba(120, 170, 255, .35)); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.mega-thumb { position: relative; border-radius: 0.75rem; overflow: hidden; aspect-ratio: 16/9; }
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mega-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(5,8,25,.85)); }
.mega-thumb span { position: absolute; left: 0.75rem; bottom: 0.5rem; z-index: 1; color: #fff; font-weight: 600; font-size: .9rem; }
.mega-thumb:hover img { transform: scale(1.08); }
.mega-list { display: grid; }
.mega-list a { padding: 0.5625rem 0.75rem; border-radius: 0.625rem; font-size: .95rem; }
.mega-list a:hover { background: var(--surface-2); color: var(--brand-2); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-actions .nav-link { color: inherit; }
.icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); }
[data-theme="dark"] .i-sun, [data-theme="light"] .i-moon { display: none; }
.menu-toggle, .nav-cta-mobile { display: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: .85rem; color: var(--muted); padding-top: 0.875rem; position: relative; z-index: 2; }
.crumbs a:hover { color: var(--text); }
/* light text in header/crumbs while over a dark image hero */
@media (min-width: 1025px) {
  body:has(.page-hero-bg) .site-header:not(.scrolled) .nav-wrap > .nav-actions,
  body:has(.page-hero-bg) .site-header:not(.scrolled) .main-nav > ul > li > .nav-link { color: #fff; }
  [data-theme="light"] body:has(.page-hero-bg) .site-header:not(.scrolled) .logo-light { display: none; }
  [data-theme="light"] body:has(.page-hero-bg) .site-header:not(.scrolled) .logo-dark { display: block; }
}
body:has(.page-hero-bg) .crumbs, body:has(.page-hero-bg) .crumbs a:hover { color: rgba(255,255,255,.75); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 4.375rem 0 3.75rem; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 3.75rem); overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.orb { position: absolute; border-radius: 50%; filter: blur(5rem); z-index: -2; opacity: .55; animation: float 16s ease-in-out infinite; }
.orb-1 { width: 32.5rem; height: 32.5rem; background: #6d4bff; top: -10rem; left: -7.5rem; }
.orb-2 { width: 28.75rem; height: 28.75rem; background: #0ea5c6; bottom: -7.5rem; right: -5rem; animation-delay: -6s; }
[data-theme="light"] .orb { opacity: .25; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(3.75rem, 2.5rem) scale(1.08); } 66% { transform: translate(-2.5rem, 1.875rem) scale(.95); } }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4375rem 0.875rem; border-radius: 62.4375rem; font-size: .85rem; border: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(0.5rem); margin-bottom: 1.375rem; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 0.5rem rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.rotator { display: inline-block; min-width: 1ch; }
.rotator::after { content: "|"; -webkit-text-fill-color: var(--brand-2); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 1.875rem; }
.hero-ctas.center { justify-content: center; }

.hero-demo { position: relative; width: 100%; max-width: 36rem; justify-self: end; }
.chat-window { border-radius: 1.375rem; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(1.25rem); box-shadow: var(--shadow); overflow: hidden; }
.chat-head { display: flex; gap: 0.75rem; align-items: center; padding: 1rem 1.125rem; border-bottom: 1px solid var(--border); }
.chat-head small { display: flex; align-items: center; gap: 0.375rem; color: var(--muted); font-size: .78rem; }
.avatar-ai { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--grad); color: #fff; }
.chat-body { padding: 1.125rem; height: 21rem; overflow: hidden; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(transparent 0, #000 1.25rem); mask-image: linear-gradient(transparent 0, #000 1.25rem); }
.chat-thread { display: flex; flex-direction: column; gap: 0.625rem; min-height: 100%; justify-content: flex-end; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.chat-thread.fade { opacity: 0; transform: translateY(-0.75rem); }
.msg { max-width: 84%; padding: 0.625rem 0.875rem; border-radius: 1rem; font-size: .9rem; opacity: 0; transform: translateY(0.75rem) scale(.92); transition: opacity .35s var(--ease), transform .5s cubic-bezier(.3, 1.5, .5, 1); flex-shrink: 0; }
.msg.user { transform-origin: bottom right; } .msg.bot, .msg.tool, .msg.typing { transform-origin: bottom left; }
.msg.show { opacity: 1; transform: none; }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 0.25rem; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 0.25rem; }
.msg.tool { align-self: flex-start; display: inline-flex; gap: 0.375rem; align-items: center; font-size: .8rem; color: #34d399; background: rgba(52, 211, 153, .1); border: 1px dashed rgba(52, 211, 153, .4); }
.msg.tool.running { color: var(--brand-2); background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .4); }
.spinner { width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex-shrink: 0; }
.msg.typing { align-self: flex-start; display: inline-flex; gap: 0.25rem; padding: 0.75rem 0.875rem; background: var(--surface-2); border-bottom-left-radius: 0.25rem; }
.msg.typing i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
.receipt { display: block; text-align: right; font-size: .68rem; opacity: .75; margin-top: .15rem; }
.receipt::before { content: "✓ "; } .receipt.read::before { content: "✓✓ "; } .receipt.read { opacity: 1; }
.msg.resolved { align-self: center; display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: #34d399; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); border-radius: 999px; padding: .35rem .9rem; }
.chat-head > div { flex: 1; }
.chat-topic { font-size: .72rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; color: var(--brand-2); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .25); white-space: nowrap; }
.chat-status.is-typing, .chat-status.is-working { color: var(--brand-2); }
.chat-status.is-resolved { color: #34d399; font-weight: 600; }
.avatar-ai { position: relative; }
.avatar-ai.talking::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); animation: hubRipple 1.2s ease-out infinite; }
.ci-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-typed { color: var(--text); }
.ci-caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -0.15em; background: var(--brand-2); animation: blink 1s steps(1) infinite; }
.chat-input .send { transition: transform .2s var(--ease), box-shadow .2s; flex-shrink: 0; }
.chat-input .send.pulse { transform: scale(1.25); box-shadow: 0 0 0 .4rem rgba(124, 92, 255, .25); }
.flash { animation: cardFlash .7s var(--ease); }
@keyframes cardFlash { 30% { transform: scale(1.08); box-shadow: 0 0 0 .2rem rgba(34, 211, 238, .35), var(--shadow); } }
.typing { align-self: flex-start; display: inline-flex; gap: 0.25rem; padding: 0.75rem 0.875rem; background: var(--surface-2); border-radius: 1rem; }
.typing i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-0.3125rem); opacity: 1; } }
.chat-input { display: flex; justify-content: space-between; align-items: center; margin: 0 0.875rem 0.875rem; padding: 0.625rem 0.625rem 0.625rem 1rem; border-radius: 62.4375rem; background: var(--surface-2); color: var(--muted); font-size: .88rem; }
.chat-input .send { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--grad); color: #fff; }
.float-card { position: absolute; display: flex; gap: 0.625rem; align-items: center; padding: 0.75rem 1rem; border-radius: 0.875rem; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--brand-2); animation: bob 6s ease-in-out infinite; }
.float-card div { color: var(--text); line-height: 1.2; }
.float-card strong { font-family: var(--display); font-size: 1.2rem; }
.float-card small { display: block; color: var(--muted); font-size: .75rem; }
.fc-1 { left: -3rem; top: 4.75rem; }
.fc-2 { right: 1.25rem; top: -1.75rem; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-0.75rem); } }

.hero-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 4rem; }
.hcard { position: relative; padding: 1.375rem; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(0.75rem); display: flex; flex-direction: column; gap: 0.75rem; transition: transform .35s var(--ease), border-color .3s; }
.hcard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.hcard:hover { transform: translateY(-0.375rem); }
.hcard:hover::before { opacity: 1; }
.hcard p { font-weight: 500; flex: 1; margin: 0; }
.hcard-cat { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hcard-cat.ex { color: var(--brand-2); } .hcard-cat.cx { color: var(--brand-3); }
.hcard-ico { color: var(--muted); }

/* ---------- Logos marquee ---------- */
.logos { padding: 2.5rem 0 3.75rem; }
.logos p { font-size: .9rem; margin-bottom: 1.5rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 4rem; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.wordmark { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--muted); opacity: .6; white-space: nowrap; letter-spacing: -.02em; transition: opacity .3s; }
.wordmark:hover { opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section.alt { background: var(--bg-2); }
.section-head { margin-bottom: 3rem; display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1.5rem; }
.section-head h2 { margin: 0; flex: 1 1 25rem; }
.section-head .eyebrow { flex-basis: 100%; margin: 0; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center h2 { flex: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.feature { padding: clamp(4rem, 8vw, 6.875rem) 0; }
.feature:nth-of-type(even) { background: var(--bg-2); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature.flip .feature-media { order: 2; }
.feature-media { position: relative; border-radius: 1.5rem; overflow: hidden; aspect-ratio: 4/4.4; max-height: min(80vh, 46rem); width: 100%; box-shadow: var(--shadow); }
.feature-media img, .cover { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-media:hover img { transform: scale(1.05); }
.media-glass { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 1rem; border-radius: 1rem; background: rgba(8, 12, 35, .6); backdrop-filter: blur(0.875rem); color: #fff; border: 1px solid rgba(255,255,255,.12); }
.media-glass strong { font-family: var(--display); font-size: 1.6rem; display: block; line-height: 1.1; }
.media-glass small { font-size: .75rem; opacity: .8; }
.mini { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.75rem 0 0.625rem; font-family: var(--font); }
.app-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.app-list a { align-items: center; border: 1px solid transparent; }
.app-list a > span:nth-child(2) { flex: 1; }
.app-list a > .ico:last-child { opacity: 0; transform: translateX(-0.375rem); transition: .25s var(--ease); color: var(--brand-2); }
.app-list a:hover { background: var(--surface); border-color: var(--border); }
.app-list a:hover > .ico:last-child { opacity: 1; transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.875rem; border-radius: 62.4375rem; border: 1px solid var(--border); font-size: .88rem; font-weight: 500; background: var(--surface); transition: .2s; }
.chip:hover, .chip.active { border-color: var(--brand); color: #fff; background: var(--brand); }
.badges { display: flex; flex-wrap: wrap; gap: 0.625rem; margin: 1.75rem 0; }
.badge { display: inline-flex; align-items: center; gap: 0.375rem; font-size: .82rem; color: var(--muted); padding: 0.375rem 0.75rem; border-radius: 0.5rem; background: var(--surface-2); }
.badge .ico { color: #34d399; }

/* ---------- Platform band ---------- */
.platform-band { position: relative; padding: clamp(5rem, 10vw, 8.75rem) 0; overflow: hidden; background: radial-gradient(ellipse at 70% 40%, rgba(124, 92, 255, .25), transparent 60%), var(--bg); isolation: isolate; }
.grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 3rem 3rem; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); animation: grid 20s linear infinite; }
@keyframes grid { to { background-position: 3rem 3rem; } }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.display { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.display span { display: inline-block; }
.pillars { display: grid; gap: 1.125rem; margin: 2rem 0; }
.pillar { display: flex; gap: 1rem; }
.pillar p { color: var(--muted); margin: 0.25rem 0 0; font-size: .95rem; }
.orch { width: 100%; height: auto; overflow: visible; }
.orch-line { stroke: var(--border); stroke-width: 2; fill: none; stroke-dasharray: 6 6; animation: dash 1.5s linear infinite; }
[data-theme="dark"] .orch-line { stroke: rgba(200,210,255,.32); }
@keyframes dash { to { stroke-dashoffset: -24; } }
.orch-pulse { fill: var(--brand-2); }
.orch-box { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.orch-node text { fill: var(--text); font: 600 13px var(--font); }
.orch-node.main text { fill: #fff; }
.orch-node { animation: nodeIn 4s ease-in-out infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
@keyframes nodeIn { 50% { transform: translateY(-0.3125rem); } }
.orch-ring { fill: none; stroke: var(--brand); stroke-width: 2; opacity: .5; transform-box: fill-box; transform-origin: center; animation: ring 2.5s ease-out infinite; }
@keyframes ring { from { transform: scale(.8); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Stats ---------- */
.stats { padding: 3.5rem 0; border-block: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stats-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--muted); font-size: .95rem; }

/* ---------- Integration hub ---------- */
.hub { position: relative; aspect-ratio: 1; width: 100%; max-width: 38rem; margin-inline: auto; justify-self: center; container-type: inline-size; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-orbit { fill: none; stroke: var(--border); stroke-width: .25; stroke-dasharray: 1 1.4; transform-origin: 50px 50px; animation: spin 80s linear infinite; }
.hub-orbit.o2 { animation-duration: 50s; animation-direction: reverse; }
[data-theme="dark"] .hub-orbit { stroke: rgba(200,210,255,.3); }
.hub-ripple { fill: none; stroke: var(--brand); stroke-width: .35; transform-origin: 50px 50px; animation: hubRipple 3.2s ease-out infinite; }
.hub-ripple.r2 { animation-delay: 1.6s; }
@keyframes hubRipple { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }
.spoke { fill: none; stroke: var(--border); stroke-width: .3; transition: stroke .4s, stroke-width .4s, opacity .4s; }
[data-theme="dark"] .spoke { stroke: rgba(200,210,255,.26); }
.spoke.active { stroke: var(--c); stroke-width: .7; filter: drop-shadow(0 0 1.2px var(--c)); }
.packet { fill: var(--brand-2); opacity: .75; }
[data-theme="light"] .packet { fill: var(--brand); }
.flow-packet { fill: #fff; filter: drop-shadow(0 0 1.6px #22d3ee) drop-shadow(0 0 3px #7c5cff); opacity: 0; transition: opacity .2s; }
.flow-packet.on { opacity: 1; }
.hub-core { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; transition: transform .3s var(--ease); z-index: 2; }
.hub-core img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 1.25rem rgba(124,92,255,.65)); }
.hub-core.hit { transform: scale(1.12); }
.hub-node { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; translate: -50% -50%; z-index: 3; }
.hub-tile { display: grid; place-items: center; width: 100%; height: 100%; transition: transform .35s var(--ease), filter .35s; animation: hubBob 5s ease-in-out infinite; animation-delay: calc(var(--d) * -3); }
@keyframes hubBob { 50% { transform: translateY(-4%); } }
.hub-tile .bi { width: 100%; height: 100%; object-fit: contain; }
.hub-tile img.bi { border-radius: 22%; }
.bi { --bi-fill: var(--bc); }
[data-theme="dark"] .hub .bi, [data-theme="dark"] .int-mark .bi { --bi-fill: var(--bcd); }
.bi-text { display: grid; place-items: center; font: 700 1rem var(--display); }
.hub-node.active .hub-tile { transform: scale(1.3); filter: drop-shadow(0 0 .55rem color-mix(in srgb, var(--c) 55%, #fff)); }
.hub-label { position: absolute; left: 50%; top: calc(100% + .45rem); translate: -50% .3rem; white-space: nowrap; font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s var(--ease); }
.hub-node.active .hub-label, .hub-node:hover .hub-label { opacity: 1; translate: -50% 0; }
.hub-caption { position: absolute; left: 50%; bottom: -1.5rem; translate: -50% 0; display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; padding: .5rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 500; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--border); white-space: nowrap; transition: opacity .3s; }
.hub-caption .bi { width: 1.1rem; height: 1.1rem; vertical-align: -.2rem; }
.hc-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 .6rem #34d399; flex-shrink: 0; }
.hc-text { overflow: hidden; text-overflow: ellipsis; }
.hc-text b { font-weight: 600; }
.hc-text .arrow { color: var(--brand-2); margin-inline: .25rem; }
.hc-text small { color: var(--muted); font-size: inherit; margin-left: .35rem; }
.hub-caption.swap { opacity: 0; }
/* entrance */
.hub .hub-node { opacity: 0; scale: .4; transition: opacity .5s var(--ease), scale .6s cubic-bezier(.3, 1.6, .5, 1); transition-delay: var(--d); }
.hub.in .hub-node, .no-js .hub .hub-node { opacity: 1; scale: 1; }
@container (max-width: 26rem) {
  .hub-label { font-size: .65rem; }
  .hc-text small { display: none; }
}
/* integrations page icons */
/* frameless: just the brand icon */
.int-mark { background: none !important; border: 0; border-radius: 0; }
.int-mark .bi { width: 100%; height: 100%; object-fit: contain; }
.int-mark img.bi { border-radius: 22%; }
.int-mark .bi-text { width: auto; height: auto; font-size: .9rem; }
[data-theme="dark"] .int-mark .bi-text { filter: brightness(1.8) saturate(1.1); }

/* ---------- Testimonials ---------- */
.slider { position: relative; max-width: 53.75rem; margin-inline: auto; overflow: hidden; }
.slides { display: flex; transition: transform .7s var(--ease); }
.quote { flex: 0 0 100%; margin: 0; padding: clamp(1.75rem, 5vw, 3.5rem); border-radius: 1.5rem; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.stars { color: #fbbf24; display: flex; justify-content: center; gap: 2px; margin-bottom: 1.125rem; }
.stars .ico { fill: currentColor; }
.quote blockquote { margin: 0 0 1.75rem; font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.4; font-weight: 500; }
.quote figcaption { display: inline-flex; align-items: center; gap: 0.875rem; text-align: left; }
.quote small { display: block; color: var(--muted); }
.avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.slider-dots button { width: 0.625rem; height: 0.625rem; border-radius: 62.4375rem; background: var(--border); transition: .3s; }
.slider-dots button.active { width: 1.75rem; background: var(--brand); }

/* ---------- Cards ---------- */
.cards-2, .cards-3, .cards-4 { display: grid; gap: 1.5rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; transform-style: preserve-3d; }
.card:hover { border-color: rgba(124, 92, 255, .5); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card.compact { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; }
.post a { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease), box-shadow .35s; }
.post a:hover { transform: translateY(-0.375rem); box-shadow: var(--shadow); }
.post-img { aspect-ratio: 16/10; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post a:hover .post-img img { transform: scale(1.06); }
.post-body { padding: 1.375rem; }
.post-body p { color: var(--muted); margin: 0; font-size: .95rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-2); margin-bottom: 0.625rem; }
.app-card { display: grid; grid-template-columns: 1fr 1.2fr; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); scroll-margin-top: 6.25rem; transition: transform .35s var(--ease), box-shadow .35s; }
.app-card:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow); }
.app-img { min-height: 13.75rem; }
.app-img img { width: 100%; height: 100%; object-fit: cover; }
.app-body { padding: 1.625rem; }
.app-body .mi { margin-bottom: 0.875rem; }
.app-body p { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.step { position: relative; padding: 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step p { color: var(--muted); margin: 0; }
.step-n { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--grad); color: #fff; font: 700 1.1rem var(--display); margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; }
.ticks li { display: flex; gap: 0.625rem; align-items: center; }
.ticks .ico { color: #34d399; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: clamp(6.25rem, 14vw, 11.25rem) 0 clamp(4.375rem, 9vw, 7.5rem); margin-top: calc(var(--header-h) * -1 - 2.5rem); padding-top: calc(var(--header-h) + clamp(6.25rem, 12vw, 10rem)); overflow: hidden; isolation: isolate; }
.page-hero.compact { padding-bottom: 2.5rem; background: radial-gradient(ellipse at 20% 0%, rgba(124, 92, 255, .25), transparent 60%); }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 11, 31, .95) 0%, rgba(7, 11, 31, .75) 50%, rgba(7, 11, 31, .35) 100%); }
.page-hero:has(.page-hero-bg) { color: #fff; }
.page-hero:has(.page-hero-bg) .lead { color: rgba(255, 255, 255, .8); }
.page-hero:has(.page-hero-bg) .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -1%); } }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ind-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.4; color: #fff; }
.ind-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ind-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; background: linear-gradient(transparent 25%, rgba(5, 8, 25, .92)); }
.ind-overlay h2 { font-size: 1.5rem; margin-bottom: 0.375rem; }
.ind-overlay p { font-size: .92rem; opacity: .85; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); margin: 0; }
.ind-overlay .link-arrow { color: #fff; margin-top: 0.625rem; }
.ind-card:hover img { transform: scale(1.08); }
.ind-card:hover p { max-height: 6.25rem; }

/* ---------- Integrations page ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; align-items: center; }
.int-search { flex: 0 1 18.75rem; padding: 0.75rem 1.125rem; border-radius: 62.4375rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr)); gap: 1rem; }
.int-card { display: flex; gap: 0.875rem; align-items: center; padding: 1.125rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s, opacity .3s; }
.int-card:hover { transform: translateY(-0.25rem); border-color: var(--brand); }
.int-card.hide { display: none; }
.int-card small { display: block; color: var(--muted); font-size: .8rem; }
.int-mark { display: grid; place-items: center; width: 2.875rem; height: 2.875rem; border-radius: 0.75rem; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font: 700 .9rem var(--display); }
.code-block { margin: 0; padding: 1.75rem; border-radius: var(--radius); background: #0a0e24; color: #d6dbff; font: 0.88rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); }
.code-block .c { color: #6b7399; } .code-block .s { color: #7dd3fc; }

/* ---------- About ---------- */
.rounded { border-radius: 1.5rem; width: 100%; object-fit: cover; }
.mini-cards { margin-top: 1.5rem; gap: 0.75rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.member { text-align: center; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1.375rem; margin-bottom: 0.875rem; filter: grayscale(.4); transition: filter .4s, transform .4s var(--ease); }
.member:hover img { filter: none; transform: translateY(-0.25rem); }
.member small { display: block; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-section { padding-top: 2.5rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: 0.875rem; }
.contact-list li { display: flex; align-items: center; gap: 0.875rem; }
.contact-img img { aspect-ratio: 16/10; }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 1.5rem; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1.25rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card label { display: grid; gap: 0.375rem; font-size: .88rem; font-weight: 500; }
.form-card input:not([type=checkbox]), .form-card select, .form-card textarea, .newsletter input {
  width: 100%; padding: 0.75rem 0.875rem; border-radius: 0.75rem; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus, .newsletter input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 0.25rem rgba(124, 92, 255, .18); }
.form-card .check { display: flex; gap: 0.625rem; align-items: center; font-weight: 400; color: var(--muted); }
.form-card .check a { color: var(--brand-2); }
.form-msg { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-msg.ok { color: #34d399; } .form-msg.err { color: #f87171; }
.btn.loading { pointer-events: none; opacity: .7; }

.prose { max-width: 47.5rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose a { color: var(--brand-2); }

/* ---------- CTA ---------- */
.cta-band { padding: 0 0 clamp(4rem, 9vw, 7.5rem); }
.section + .cta-band, .stats + .cta-band { padding-top: 0; }
.cta-box { position: relative; overflow: hidden; text-align: center; padding: clamp(1.75rem, 3.5vw, 3rem) 1.5rem; border-radius: 2rem; background: linear-gradient(130deg, #4c2fe0 0%, #6d4bff 40%, #0ea5c6 100%); color: #fff; isolation: isolate; }
.cta-box .lead { color: rgba(255, 255, 255, .85); margin-inline: auto; }
.cta-box h2 { max-width: 47.5rem; margin-inline: auto; }
/* compact CTA: tighter vertical rhythm */
.cta-box h2 { margin-bottom: .35em; font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
.cta-box .lead { margin-bottom: 0; }
.cta-box .hero-ctas { margin-top: 1.25rem; }
.cta-glow { position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.25), transparent 30%); animation: spin 10s linear infinite; }

/* trademark / attribution notes */
.tm-note { font-size: .78rem; line-height: 1.5; color: var(--muted); margin: 1.5rem 0 0; max-width: 40rem; }
.tm-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tm-note a:hover { color: var(--text); }
.tm-note.center { margin-inline: auto; margin-top: 2.5rem; text-align: center; }
/* footer trademark line: last line of the page, deliberately subdued */
.footer-tm { max-width: none; margin: 1.25rem 0 0; font-size: .72rem; color: var(--muted); opacity: .55; }
.footer-tm a:hover { color: inherit; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 4.5rem 0 1.75rem; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 20rem 1fr; gap: 3.5rem; }
.footer-brand p { color: var(--muted); margin: 1rem 0; }
.newsletter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.newsletter input { flex: 1 1 10rem; padding: 0.625rem 0.875rem; }
.newsletter .form-msg { flex-basis: 100%; }
.socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.socials a { display: grid; place-items: center; width: 2.375rem; height: 2.375rem; border-radius: 0.625rem; border: 1px solid var(--border); font: 700 .72rem var(--display); color: var(--muted); transition: .2s; }
.socials a svg { width: 1.1rem; height: 1.1rem; }
.socials a:hover { color: var(--sc, #fff); background: color-mix(in srgb, var(--sc, var(--brand)) 14%, transparent); border-color: var(--sc, var(--brand)); transform: translateY(-2px); }
[data-theme="light"] .socials a[aria-label="X"]:hover, [data-theme="light"] .socials a[aria-label="GitHub"]:hover { color: #0d1230; border-color: #0d1230; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.75rem; }
.footer-cols h3 { font-size: .8rem; font-family: var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 0.875rem; }
.footer-cols a { display: block; color: var(--muted); padding: 0.25rem 0; transition: color .2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--text); }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: grid; place-items: center; width: 2.875rem; height: 2.875rem; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(1.25rem); transition: .3s; }
.to-top .ico { rotate: -90deg; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.cookie { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 95; max-width: 26.25rem; padding: 1.125rem 1.25rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 0.75rem; font-size: .9rem; animation: up .5s var(--ease); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; color: var(--muted); }
.cookie a { color: var(--brand-2); }
.cookie div { display: flex; gap: 0.5rem; justify-content: flex-end; }
@keyframes up { from { transform: translateY(1.875rem); opacity: 0; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(1.875rem); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .signin { display: none; }
}
@media (max-width: 1024px) {
  :root { --header-h: 4rem; }
  .menu-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 1rem 1.25rem 2.5rem; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s linear .4s; flex: none;
  }
  .main-nav.open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--border); }
  .nav-link { width: 100%; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1.05rem; border-radius: 0; }
  .nav-link:hover, .has-mega.open > .nav-link { background: none; }
  .mega, .mega-wide, .mega-narrow { position: static; translate: none !important; width: auto; opacity: 1; visibility: visible; display: none; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 1rem; background: none; }
  .has-mega.open .mega { display: grid; }
  .has-mega.open .mega-wide, .has-mega.open .mega-narrow { display: block; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-cta-mobile { display: block; margin-top: 1.5rem; }
  .nav-actions .btn { display: none; }
  .nav-actions { margin-left: auto; }
  .hero-inner, .feature-grid, .platform-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature.flip .feature-media { order: 0; }
  .feature-media { aspect-ratio: 16/11; }
  .hero-demo { max-width: 32.5rem; margin-inline: auto; width: 100%; justify-self: center; }
  .cards-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .form-card { position: static; }
  .app-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --gutter: 1rem; }
  .hero { padding-top: calc(var(--header-h) + 2.25rem); }
  .hero-cards { grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 3rem; }
  .hcard { padding: 1rem; }
  .chat-body { height: 18rem; }
  .hcard:last-child { grid-column: 1 / -1; }
  .hero-demo { margin-bottom: 2.25rem; }
  .fc-1 { left: .5rem; top: auto; bottom: -2.75rem; } .fc-2 { right: -0.375rem; top: -1.25rem; }
  .cards-2, .cards-3, .cards-4, .steps, .industry-grid { grid-template-columns: 1fr; }
  .stats-grid, .stats-grid.three { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .media-glass strong { font-size: 1.2rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .ind-overlay p { max-height: 6.25rem; }
  .cookie { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .mega-links.two-col { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   Device-adaptive layer
   ========================================================= */
/* Large laptops & desktop monitors: use more of the width */
/* Full-HD+ monitors, wide screens */
@media (min-width: 1800px) {
  .hero-inner { gap: 5rem; grid-template-columns: 1.2fr .8fr; }
  .lead { max-width: 46rem; }
  .slider { max-width: 64rem; }
}
/* 21:9 / 32:9 ultra-wide: cap line length, keep composition centred */
@media (min-aspect-ratio: 21/9) and (min-width: 2200px) {
  .lead { max-width: 44rem; }
  /* ultra-wide: balance the hero — demo centred in its half instead of pinned to the far edge */
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-demo { justify-self: center; }
}
/* Smart TVs (10-foot UI): bigger focus rings, no reliance on hover */
@media (min-width: 1800px) and (hover: none), (min-width: 3000px) {
  :focus-visible { outline-width: 4px; outline-offset: 6px; }
  .btn:focus-visible, .chip:focus-visible, .nav-link:focus-visible { transform: scale(1.05); }
  .cookie { max-width: 32rem; }
}
/* Small laptops 1025–1280 (and iPad Pro landscape): tighten nav */
@media (min-width: 1025px) and (max-width: 1280px) {
  .main-nav > ul { gap: 0; }
  .nav-link { padding: .6rem .6rem; font-size: .9rem; }
  .nav-wrap { gap: 1rem; }
  .hero-inner { gap: 2.5rem; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
/* Tablets / iPad portrait 681–1024 */
@media (min-width: 681px) and (max-width: 1024px) {
  /* 5 cards on a 6-column grid: 3 on top (span 2), 2 wider below (span 3) — no empty slot */
  .hero-cards { grid-template-columns: repeat(6, 1fr); }
  .hero-cards .hcard { grid-column: span 2; }
  .hero-cards .hcard:nth-child(n+4) { grid-column: span 3; }
  .media-glass { left: 1.25rem; right: 1.25rem; }
  .contact-img { display: none; }
}
/* Touch devices: show hover-only affordances */
@media (hover: none) {
  .app-list a > .ico:last-child { opacity: 1; transform: none; }
  .ind-overlay p { max-height: 6.25rem; }
  .marquee-track { animation-duration: 30s; }
}
/* Small phones (≤380px: iPhone SE, small Androids) */
@media (max-width: 380px) {
  .hero-cards { grid-template-columns: 1fr; }
  .hcard:last-child { grid-column: auto; }
  .stats-grid, .stats-grid.three { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .logo { height: 2.25rem; }
  .media-glass { grid-template-columns: 1fr 1fr 1fr; padding: .75rem; gap: .25rem; }
  .media-glass strong { font-size: 1rem; }
  .float-card { display: none; }
}
/* Phones in landscape / very short screens */
@media (max-height: 500px) and (orientation: landscape) {
  .hero, .page-hero { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 2rem; }
  .hero-inner { grid-template-columns: 1.2fr .8fr; gap: 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .chat-body { min-height: 0; max-height: 12rem; overflow: hidden; }
  .float-card { display: none; }
  .main-nav { padding-bottom: 5rem; }
}
/* Print */
@media print {
  .site-header, .hero-canvas, .orb, .to-top, .cookie, .progress, .cta-band, .newsletter { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
}
