/* Faa Intelligence — shared styles
   Direction: "Boundary" — precise, AI-forward. Light by default, dark via [data-theme="dark"]. */

:root {
  --bg: #FBFBFA;
  --bg-2: #F3F5F4;
  --surface: #FFFFFF;
  --ink: #0D1B2A;
  --ink-2: #2F3C49;
  --muted: #5B6875;
  --line: #E3E7EB;
  --line-2: #D3D9DF;
  --teal: #0F9D8A;
  --teal-ink: #0A7466;
  --teal-soft: #E2F5F1;
  --violet: #6D5DF6;
  --violet-ink: #5141D9;
  --violet-soft: #EEEBFF;
  --blue-soft: #E8F1FB;
  --blue-ink: #1F5FBF;
  --amber-soft: #FFF1D6;
  --amber-ink: #8A5800;
  --green-soft: #E1F5EA;
  --green-ink: #12693E;
  --grey-soft: #EEF0F3;
  --rose-soft: #FCEDEC;
  --screen: #0B1118;
  --surface-2: #FCFCFB;
  --on-ink: #FFFFFF;
  --success: #12693E;
  --danger: #B42318;
  --danger-ink: #A2342B;
  --header-bg: rgba(251, 251, 250, .82);
  --hover: rgba(13, 27, 42, .04);
  --dot: rgba(13, 27, 42, .09);
  --stripe: rgba(13, 27, 42, .018);
  --ring: rgba(13, 27, 42, .14);
  --core-a: #FFFFFF;
  --core-b: #F6F8F8;
  --zoom-bg: rgba(255, 255, 255, .92);
  --btn-shadow: rgba(13, 27, 42, .6);
  --field-rgb: 13, 27, 42;
  --grad-mid: #3D7FD9;
  color-scheme: light;

  --grad: linear-gradient(100deg, var(--teal) 0%, var(--grad-mid) 55%, var(--violet) 100%);
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --radius-xl: 40px;
  --shadow-s: 0 1px 2px rgba(13, 27, 42, .06), 0 4px 12px -6px rgba(13, 27, 42, .12);
  --shadow: 0 24px 48px -28px rgba(13, 27, 42, .32), 0 2px 6px -2px rgba(13, 27, 42, .06);
  --shadow-l: 0 60px 120px -60px rgba(13, 27, 42, .38), 0 6px 18px -8px rgba(13, 27, 42, .1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --arabic: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --bg: #0A0F15;
  --bg-2: #0D141C;
  --surface: #111A24;
  --surface-2: #151F2A;
  --ink: #E8EEF4;
  --ink-2: #C4CED8;
  --muted: #8F9CA9;
  --line: #213040;
  --line-2: #2D3D4E;
  --teal: #2CC7B0;
  --teal-ink: #5EDCC8;
  --teal-soft: rgba(44, 199, 176, .14);
  --violet: #8C80FF;
  --violet-ink: #B3ABFF;
  --violet-soft: rgba(140, 128, 255, .16);
  --blue-soft: rgba(96, 165, 250, .14);
  --blue-ink: #93C5FD;
  --amber-soft: rgba(251, 191, 36, .14);
  --amber-ink: #FCD34D;
  --green-soft: rgba(52, 211, 153, .14);
  --green-ink: #6EE7B7;
  --grey-soft: rgba(148, 163, 184, .12);
  --rose-soft: rgba(248, 113, 113, .15);
  --on-ink: #0A0F15;
  --success: #1F9D5B;
  --danger: #F97066;
  --danger-ink: #FCA5A5;
  --header-bg: rgba(10, 15, 21, .78);
  --hover: rgba(255, 255, 255, .05);
  --dot: rgba(255, 255, 255, .075);
  --stripe: rgba(255, 255, 255, .025);
  --ring: rgba(255, 255, 255, .13);
  --core-a: #172331;
  --core-b: #101923;
  --zoom-bg: rgba(17, 26, 36, .92);
  --btn-shadow: rgba(0, 0, 0, .6);
  --field-rgb: 214, 226, 238;
  --grad-mid: #5B9BF0;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px -6px rgba(0, 0, 0, .5);
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .7), 0 2px 6px -2px rgba(0, 0, 0, .35);
  --shadow-l: 0 60px 120px -60px rgba(0, 0, 0, .8), 0 6px 18px -8px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:lang(ar), .ar { font-family: var(--arabic); }

:focus-visible { outline: 2px solid var(--violet); 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;
}
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px rgba(15, 157, 138, .16);
  animation: ping 2.4s ease-out infinite;
}
.eyebrow--plain::before { display: none; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(15, 157, 138, .35); }
  70% { box-shadow: 0 0 0 8px rgba(15, 157, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 157, 138, 0); }
}
.display {
  font-size: clamp(44px, 7.2vw, 96px); line-height: 1; font-weight: 600;
  letter-spacing: -.05em; margin-top: 22px;
}
.h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -.04em; margin-top: 16px; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 680px; }
.line { display: block; }
/* Extra bottom padding so descenders (g, y, p) sit inside the clipped gradient. */
.grad-text { padding-bottom: .14em; margin-bottom: -.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--ink); color: var(--on-ink); box-shadow: 0 10px 24px -12px var(--btn-shadow); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px var(--btn-shadow); }
.btn[disabled] { cursor: progress; opacity: .8; transform: none; }
.btn-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--teal-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand .ar { font-weight: 500; color: var(--muted); font-size: 16px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 10px; transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--hover); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-s); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, background .2s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(13, 27, 42, .3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 18px; padding: 14px 12px; }
  .nav .nav-cta { display: flex; margin-top: 10px; }
}
.nav a.nav-cta, .nav a.nav-cta:hover { color: var(--on-ink); background: var(--ink); justify-content: center; }
@media (min-width: 961px) { .nav .nav-cta { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 40px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--teal-ink); }
.footer-tagline { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 18px; max-width: 320px; line-height: 1.25; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: 1px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- AI field (canvas background) ---------- */
.ai-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 360px at 30% 30%, rgba(15, 157, 138, .10), transparent 70%),
    radial-gradient(640px 380px at 75% 40%, rgba(109, 93, 246, .10), transparent 70%);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.page-hero .display { max-width: 1000px; }
.page-hero .lede { margin-top: 26px; }
.page-hero--center { text-align: center; }
.page-hero--center .display, .page-hero--center .lede { margin-inline: auto; }
.page-hero--center .display { max-width: 1180px; }
.page-hero--center .btn-row { justify-content: center; }

/* ---------- Pills & chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.pill--decided { background: var(--green-soft); color: var(--green-ink); }
.pill--leaning { background: var(--amber-soft); color: var(--amber-ink); }
.pill--parked { background: var(--grey-soft); color: var(--muted); }
.pill--live { background: var(--teal-soft); color: var(--teal-ink); }
.pill--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.pill--soon { background: var(--violet-soft); color: var(--violet-ink); }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row li::before { content: ""; width: 14px; height: 1px; background: var(--teal); }
.page-hero--center .trust-row { justify-content: center; }

/* ---------- Boundary (the signature frame) ---------- */
.boundary {
  position: relative; border-radius: var(--radius-xl);
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(120deg, rgba(15, 157, 138, .75), rgba(109, 93, 246, .55) 50%, rgba(15, 157, 138, .25)) border-box;
  box-shadow: 0 0 0 10px rgba(15, 157, 138, .035), var(--shadow-l);
}
.boundary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%);
}
.boundary-label {
  position: absolute; top: -10px; left: clamp(20px, 4vw, 48px); z-index: 2;
  background: var(--bg); padding: 0 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink);
}
.boundary-label--right { left: auto; right: clamp(20px, 4vw, 48px); color: var(--muted); }

/* ---------- Hero engine (home): node-graph execution ---------- */
.engine {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) minmax(0, 1fr);
  gap: clamp(48px, 6.6vw, 100px); align-items: center;
  padding: clamp(28px, 4vw, 56px);
}
.engine-col { display: grid; gap: 18px; position: relative; z-index: 1; }
.node {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: 18px 20px;
}
.node-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.node-head .ok { color: var(--teal-ink); }

/* execution states, shared by every flow node */
.flow-node { transition: border-color .35s ease, box-shadow .35s ease; }
.flow-node::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--sweep, 0deg), transparent 0 62%, var(--teal) 82%, var(--violet) 100%);
  -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 ease;
}
.flow-node.is-running { border-color: transparent; box-shadow: 0 0 0 6px rgba(109, 93, 246, .07), var(--shadow); }
.flow-node.is-running::after { opacity: 1; animation: sweep 1.2s linear infinite; }
.flow-node.is-success { border-color: rgba(18, 105, 62, .45); box-shadow: 0 0 0 4px rgba(18, 105, 62, .06), var(--shadow); }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sweep { to { --sweep: 360deg; } }

/* connection handles */
.handle {
  position: absolute; z-index: 3; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-2); top: 50%; margin-top: -6px;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.handle--in { left: -7px; }
.handle--out { right: -7px; }
.flow-node.is-running .handle, .flow-node.is-success .handle--out, .flow-node.has-input .handle--in { border-color: var(--teal); background: var(--teal-soft); }

/* state pill in node headers */
.state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.state.is-live { color: var(--teal-ink); }
.state.is-live::before { background: var(--teal); animation: ping 1.6s ease-out infinite; }
.state.is-done { color: var(--green-ink); }
.state.is-done::before { background: var(--green-ink); }

/* transcript feed */
.feed { min-height: 268px; display: flex; flex-direction: column; font-size: 14px; line-height: 1.5; }
.feed .t-line:first-child { border-top: 0; }
.t-line { padding: 9px 0 9px 12px; border-top: 1px dashed var(--line); position: relative; transition: opacity .4s ease, transform .4s ease, background .4s ease; animation: line-in .45s ease both; }
.t-line::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: transparent; transition: background .3s ease; }
.t-line.is-current::before { background: var(--teal); }
.t-line.is-current q { color: var(--ink); }
.t-line b { font-weight: 700; }
.t-line .ts { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 6px; }
.t-line q { display: block; margin-top: 2px; color: var(--ink-2); quotes: "“" "”"; transition: color .3s ease; }
@keyframes line-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.platform-mini { display: grid; gap: 10px; font-size: 14px; }
.platform-mini div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.platform-mini .soon { color: var(--muted); }

/* the AI core: a rounded-square node */
.core-col { position: relative; z-index: 1; display: grid; place-items: center; }
.core {
  width: 100%; aspect-ratio: 1; border-radius: 30px; padding: clamp(18px, 2vw, 26px);
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(160deg, var(--core-a) 0%, var(--core-b) 100%);
  box-shadow: 0 0 0 10px rgba(15, 157, 138, .04), var(--shadow-l);
}
.core-top { display: flex; align-items: center; gap: 12px; }
.core-icon { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: #0D1B2A; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.core-icon svg { width: 26px; height: 26px; }
.core-title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.core-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.exec-badge {
  position: absolute; top: -11px; right: 18px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); white-space: nowrap;
}
.flow-node.is-running .exec-badge { color: var(--violet-ink); border-color: rgba(109, 93, 246, .45); }
.flow-node.is-success .exec-badge { color: var(--green-ink); border-color: rgba(18, 105, 62, .45); }
.core-status { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--violet-ink); min-height: 18px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(109, 93, 246, .2); border-top-color: var(--violet); flex: none; animation: spin .8s linear infinite; }
.core.is-success .spinner, .core:not(.is-running) .spinner { animation: none; border-color: var(--success); background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.core.is-success .core-status, .core:not(.is-running) .core-status { color: var(--green-ink); }
.core.is-idle .spinner { background: none; border-color: var(--line-2); border-top-color: var(--teal); animation: spin 1.6s linear infinite; }
.core.is-idle .core-status { color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.extract { flex: 1; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px 16px; display: grid; align-content: start; gap: 6px; }
.extract.is-fresh { animation: rise .4s ease both; }
.extract-text { font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.extract-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.pill--action { background: var(--blue-soft); color: var(--blue-ink); }
.core-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.core-counts div { border-radius: 12px; background: var(--grey-soft); padding: 8px 10px; }
.core-counts dt { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.core-counts dd { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.core-counts dd.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.18); color: var(--teal-ink); } }

/* output nodes */
.out { display: flex; gap: 14px; align-items: flex-start; }
.out h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.out p { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.out .exec-badge { right: 16px; }
.icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
}
.icon svg { width: 20px; height: 20px; }
.icon--violet { background: var(--violet-soft); color: var(--violet-ink); }
.icon--teal { background: var(--teal-soft); color: var(--teal-ink); }
.icon--blue { background: var(--blue-soft); color: var(--blue-ink); }
.icon--ink { background: var(--grey-soft); color: var(--ink); }

/* edges */
.flow-edges { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.edge-base { fill: none; stroke: var(--line-2); stroke-width: 2; transition: stroke .4s ease; }
.edge-flow { fill: none; stroke: url(#edge-grad); stroke-width: 2.5; stroke-dasharray: 7 9; stroke-linecap: round; opacity: 0; transition: opacity .25s ease; }
.edge.is-flowing .edge-flow { opacity: 1; animation: dash .55s linear infinite; }
.edge.is-done .edge-base { stroke: rgba(15, 157, 138, .55); }
.edge-dot { fill: var(--teal); filter: drop-shadow(0 0 5px rgba(15, 157, 138, .9)); opacity: 0; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.edge-label {
  position: absolute; z-index: 2; transform: translate(-50%, -50%); padding: 2px 8px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; color: var(--teal-ink);
  white-space: nowrap; pointer-events: none; transition: opacity .3s ease;
}
.edge-label:empty { opacity: 0; }

@media (max-width: 1080px) {
  .engine { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; gap: 44px; }
  .platform-node { display: none; }
  .transcript-node .handle--out { top: auto; bottom: -7px; right: auto; left: 50%; margin: 0 0 0 -6px; }
  .core .handle--in { top: -7px; left: 50%; margin: 0 0 0 -6px; }
  .core .handle--out { top: auto; bottom: -7px; right: auto; left: 30px; margin: 0; }
  .core { aspect-ratio: auto; }
  .extract { min-height: 120px; }
}
@media (max-width: 480px) {
  .edge-label { display: none; }
}


/* ---------- Availability: logo band ---------- */
.logo-band { display: grid; gap: clamp(28px, 3vw, 40px); }
.logo-band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; }
.logo-band-head h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; line-height: 1.1; font-weight: 600; max-width: 560px; }
.logo-band-head p { color: var(--muted); max-width: 460px; }
.logo-groups {
  display: grid; grid-template-columns: auto minmax(0, 1.6fr) minmax(0, 1.2fr);
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
.logo-group { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 18px; align-content: start; }
.logo-group + .logo-group { border-left: 1px solid var(--line); }
.logo-group-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.logo-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px 22px; }
.brand-logo { display: grid; justify-items: center; gap: 10px; width: 84px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--ink-2); }
.brand-logo .tile {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand-logo .tile img { width: 36px; height: 36px; }
.brand-logo:hover .tile { transform: translateY(-2px); box-shadow: var(--shadow); }
.brand-logo--lead { width: 112px; font-size: 14px; }
.brand-logo--lead .tile { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 0 0 6px rgba(80, 89, 201, .07), var(--shadow); }
.brand-logo--lead .tile img { width: 50px; height: 50px; }
.logo-group--soon { background: repeating-linear-gradient(135deg, transparent 0 10px, var(--stripe) 10px 20px); }
.logo-group--soon .brand-logo { color: var(--muted); font-weight: 500; }
.logo-group--soon .tile { background: transparent; border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.logo-group--soon .tile img { opacity: .38; filter: grayscale(1); }
.logo-group--soon .brand-logo:hover .tile { transform: none; box-shadow: none; }
.logo-note { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) {
  .logo-groups { grid-template-columns: 1fr; }
  .logo-group + .logo-group { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .brand-logo { width: 72px; font-size: 12px; }
  .brand-logo .tile { width: 56px; height: 56px; border-radius: 16px; }
  .brand-logo .tile img { width: 30px; height: 30px; }
}

/* availability cards (used on inner pages) */
.teams-glyph { width: 44px; height: 44px; border-radius: 12px; background: #5059C9; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.soon-glyph { width: 44px; height: 44px; border-radius: 12px; border: 1.5px dashed var(--line-2); color: var(--muted); display: grid; place-items: center; flex: none; font-size: 20px; }

/* ---------- Screen / media frames ---------- */
.screen {
  position: relative; border-radius: 22px; padding: 10px; background: linear-gradient(160deg, #1A2633, #0B1118);
  box-shadow: var(--shadow-l), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.screen video, .screen img { width: 100%; border-radius: 14px; background: var(--screen); }
.window {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-l);
}
.window-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: var(--surface-2);
}
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.window-bar span { margin-left: 8px; }
.window-bar .right { margin-left: auto; }
.window img { width: 100%; }
.window--crop { max-height: var(--crop, 640px); }
.window--crop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.zoom-btn {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--zoom-bg); color: var(--ink); font-family: var(--mono); font-size: 12px; cursor: pointer;
}
.zoom-btn:hover { border-color: var(--ink); }
.caption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 14px; letter-spacing: .02em; }

/* video block */
.film { display: grid; grid-template-columns: 1fr; gap: 28px; }
.film-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chapter {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; position: relative; overflow: hidden;
}
.chapter .mono { font-size: 11px; color: var(--muted); font-weight: 500; }
.chapter[aria-pressed="true"] { border-color: var(--ink); }
.chapter .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad); }
.play-toggle { margin-left: auto; }

/* ---------- Receipts (interactive) ---------- */
.receipts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.decision-list { display: grid; gap: 10px; }
.decision {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; text-align: left;
  width: 100%; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; font-size: 16px; line-height: 1.45;
}
.decision:hover { border-color: var(--line-2); transform: translateX(2px); }
.decision[aria-selected="true"] { border-color: var(--ink); box-shadow: var(--shadow); }
.receipt-card { position: sticky; top: calc(var(--header-h) + 24px); }
.receipt {
  background: var(--surface); border-radius: var(--radius-l); border: 1px solid var(--line); box-shadow: var(--shadow-l);
  padding: clamp(24px, 3vw, 36px); overflow: hidden; position: relative;
}
.receipt-kicker { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.receipt blockquote { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -.025em; font-weight: 500; margin: 22px 0 22px; }
.receipt blockquote::before { content: "“"; color: var(--teal); }
.receipt blockquote::after { content: "”"; color: var(--teal); }
.speaker { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--on-ink); background: var(--ink); flex: none; }
.speaker .mono { color: var(--muted); font-size: 13px; }
.timeline { margin-top: 26px; }
.timeline-track { position: relative; height: 54px; display: flex; align-items: center; gap: 2px; }
.timeline-track i { flex: 1; border-radius: 2px; background: var(--line-2); transition: background .3s ease; }
.timeline-track i.hot { background: var(--teal); }
.timeline-marker {
  position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--violet); left: 0;
  transition: left .7s cubic-bezier(.6, 0, .2, 1);
}
.timeline-marker::before {
  content: attr(data-time); position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; color: #fff; background: var(--violet); padding: 2px 7px; border-radius: 6px; white-space: nowrap;
}
.timeline-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 8px; }
.receipt-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .receipts { grid-template-columns: 1fr; } .receipt-card { position: static; } }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split--rev > :first-child { order: 2; }
.split + .split { margin-top: clamp(80px, 10vw, 140px); }
.split--media { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); }
.split--media.split--rev { grid-template-columns: minmax(0, 1.38fr) minmax(0, .62fr); }
.split .h2 { font-size: clamp(30px, 3.6vw, 48px); }
.split p.lede { margin-top: 20px; }
.ticks { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 6px; background: var(--teal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.4' fill='none' stroke='%230A7466' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (max-width: 900px) { .split, .split--rev, .split--media, .split--media.split--rev { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* annotations over screenshots */
.annotated { position: relative; }
.note {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--on-ink); font-family: var(--mono); font-size: 12px; padding: 7px 12px; border-radius: 999px;
  box-shadow: 0 12px 24px -12px rgba(13, 27, 42, .6); white-space: nowrap;
}
.note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(15, 157, 138, .35); }
.note--violet::before { background: var(--violet); box-shadow: 0 0 0 3px rgba(109, 93, 246, .35); }
@media (max-width: 700px) { .note { display: none; } }

/* ---------- Pipeline (product hero) ---------- */
.pipeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; position: relative; }
.pipeline::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 31px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--violet)); opacity: .25;
}
.pipeline li { position: relative; padding-top: 74px; }
.pipeline .step-dot {
  position: absolute; top: 10px; left: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); font-family: var(--mono); font-size: 13px; font-weight: 500;
  transition: background .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.pipeline li.is-on .step-dot { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 0 0 0 6px rgba(15, 157, 138, .14); }
.pipeline h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.pipeline p { font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.pipeline--vertical { grid-template-columns: 1fr; gap: 0; }
.pipeline--vertical::before { left: 21px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(var(--teal), var(--violet)); }
.pipeline--vertical li { padding: 10px 0 24px 66px; }
.pipeline--vertical li:last-child { padding-bottom: 0; }
.pipeline--vertical .step-dot { top: 6px; }
@media (max-width: 960px) {
  .pipeline { grid-template-columns: 1fr; gap: 0; }
  .pipeline::before { left: 21px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(var(--teal), var(--violet)); }
  .pipeline li { padding: 10px 0 24px 66px; }
  .pipeline .step-dot { top: 6px; }
}

/* ---------- Tabs (feature explorer) ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
.tablist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tabpanel { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tabpanel .tabpanel-copy { position: sticky; top: calc(var(--header-h) + 24px); }
.tab {
  text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid transparent; background: transparent; cursor: pointer;
  display: grid; gap: 4px; transition: background .2s ease, border-color .2s ease;
}
.tab:hover { background: var(--hover); }
.tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-s); }
.tab strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.tab strong .mono { font-size: 11px; color: var(--muted); font-weight: 500; }
.tab span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.tab[aria-selected="true"] strong .mono { color: var(--teal-ink); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: rise .45s ease both; }
.tabpanel-copy { margin-bottom: 22px; max-width: 640px; }
.tabpanel-copy h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; font-weight: 600; line-height: 1.15; }
.tabpanel-copy p { margin-top: 10px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .tabpanel { grid-template-columns: 1fr; }
  .tabpanel .tabpanel-copy { position: static; }
  .tablist { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .tab { flex: none; scroll-snap-align: start; padding: 10px 14px; border-color: var(--line); background: var(--surface); }
  .tab span { display: none; }
}

/* ---------- Ask Faa (animated chat) ---------- */
.ask { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; }
.ask-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ask-head strong { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.ask-body { padding: 22px; display: grid; gap: 16px; min-height: 380px; align-content: start; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; cursor: pointer; }
.ask-chip:hover, .ask-chip[aria-pressed="true"] { border-color: var(--ink); }
.ask-input {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 18px; font-size: 15px; color: var(--muted);
}
.ask-input .typed { color: var(--ink); }
.ask-input .typed::after { content: "▍"; color: var(--violet); animation: blink 1s steps(1) infinite; }
.ask-input svg { margin-left: auto; width: 18px; height: 18px; }
.ask-q { font-weight: 700; font-size: 15px; }
.ask-a { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 15px; line-height: 1.55; animation: rise .4s ease both; }
.ask-a .thinking { display: inline-flex; gap: 4px; }
.ask-a .thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); animation: dot 1s ease-in-out infinite; }
.ask-a .thinking i:nth-child(2) { animation-delay: .15s; }
.ask-a .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.evidence { margin-top: 10px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.evidence .from { font-family: var(--mono); font-size: 11px; color: var(--teal-ink); letter-spacing: .06em; text-transform: uppercase; }
.evidence q { font-style: italic; color: var(--ink-2); }
.evidence .ts { font-family: var(--mono); font-size: 11px; background: var(--grey-soft); padding: 1px 6px; border-radius: 5px; margin-left: 6px; font-style: normal; }
.ask-a--decline { border-style: dashed; }

/* ---------- Prep brief (built visual) ---------- */
.brief { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); padding: clamp(22px, 3vw, 32px); }
.brief h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
.brief-group { margin-top: 22px; }
.brief-group h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.brief-item { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.brief-item .tag { margin-left: auto; font-family: var(--mono); font-size: 10.5px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.tag--carried { background: var(--violet-soft); color: var(--violet-ink); }
.tag--overdue { background: var(--rose-soft); color: var(--danger-ink); }
.brief-item .num { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 18px; flex: none; }

/* ---------- Language toggle ---------- */
.lang-switch { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); gap: 2px; }
.lang-switch button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.lang-switch .ar { font-family: var(--arabic); }

/* ---------- Capability list (2 col, no cards) ---------- */
.capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); }
.capability { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.capability h3 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.capability p { color: var(--muted); margin-top: 6px; font-size: 16px; }
@media (max-width: 760px) { .capabilities { grid-template-columns: 1fr; } }

/* ---------- Architecture (security) ---------- */
.arch { padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px); }
.arch-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 40px); position: relative; z-index: 1; }
.arch-step { position: relative; }
.arch-step .node { height: 100%; padding: 24px; }
.arch-step .n { font-family: var(--mono); font-size: 12px; color: var(--teal-ink); }
.arch-step h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 14px 0 8px; }
.arch-step p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.arch-step .icon { margin-top: 14px; }
.arch-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: calc(-1 * clamp(16px, 3vw, 40px)); width: clamp(16px, 3vw, 40px); height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--violet)); opacity: .5;
}
.arch-note { position: relative; z-index: 1; margin-top: 28px; font-size: 14px; color: var(--muted); max-width: 820px; }
.arch-step .node.is-on { border-color: rgba(15, 157, 138, .55); box-shadow: 0 0 0 4px rgba(15, 157, 138, .08), var(--shadow); }
@media (max-width: 960px) {
  .arch-steps { grid-template-columns: 1fr 1fr; }
  .arch-step::after { display: none; }
}
@media (max-width: 560px) { .arch-steps { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th, td { text-align: left; padding: 16px 20px; vertical-align: top; border-top: 1px solid var(--line); }
thead th { border-top: 0; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tbody th { font-weight: 600; width: 24%; }
td.is-faa, th.is-faa { background: rgba(15, 157, 138, .045); }
thead th.is-faa { color: var(--teal-ink); }
.table-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; max-width: 920px; }

/* ---------- Governance list ---------- */
.gov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.gov { padding: 26px 0; border-top: 1px solid var(--line); }
.gov h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.gov p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
@media (max-width: 900px) { .gov-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gov-grid { grid-template-columns: 1fr; } }

/* terminal */
.terminal { background: #0E1620; color: #D6E2EC; border-radius: var(--radius); font-family: var(--mono); font-size: 13.5px; padding: 18px 20px 22px; box-shadow: var(--shadow-l); }
.terminal .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.terminal .bar i { width: 9px; height: 9px; border-radius: 50%; background: #2A3746; }
.terminal .prompt { color: #5FD4C2; }
.terminal .progress { height: 6px; background: #1B2733; border-radius: 4px; margin: 14px 0 10px; overflow: hidden; }
.terminal .progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #14B8A6, #7C6CF8); transition: width .12s linear; }
.terminal .result { color: #5FD4C2; }
.terminal .dim { color: #7D8C9A; }

/* ---------- Orbit (integrations) ---------- */
.orbit-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; margin-inline: auto; }
.orbit-stage .ring { position: absolute; border-radius: 50%; border: 1px dashed var(--ring); }
.orbit-stage .ring--1 { inset: 16%; }
.orbit-stage .ring--2 { inset: 0; border-color: rgba(109, 93, 246, .2); }
.orbit-spin { position: absolute; inset: 0; border-radius: 50%; animation: spin 18s linear infinite; }
.orbit-spin::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 0 0 6px rgba(109, 93, 246, .15), 0 0 18px rgba(109, 93, 246, .6);
}
.orbit-spin--b { inset: 16%; animation-duration: 12s; animation-direction: reverse; }
.orbit-spin--b::before { background: var(--teal); box-shadow: 0 0 0 6px rgba(15, 157, 138, .15), 0 0 18px rgba(15, 157, 138, .6); }
.orbit-hub {
  position: absolute; inset: 34%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 35%, var(--core-a), var(--core-b) 75%); border: 1px solid var(--line);
  box-shadow: 0 0 0 18px rgba(15, 157, 138, .05), var(--shadow-l);
}
.orbit-hub strong { font-size: clamp(18px, 2vw, 24px); letter-spacing: -.02em; display: block; }
.orbit-hub span { font-family: var(--mono); font-size: 11px; color: var(--teal-ink); letter-spacing: .1em; text-transform: uppercase; }
.sat {
  position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; text-align: center;
  width: 120px; font-size: 13.5px; font-weight: 600; line-height: 1.25;
}
.sat .icon { width: 56px; height: 56px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sat .icon svg { width: 24px; height: 24px; }
.sat small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.sat--soon .icon { border-style: dashed; box-shadow: none; background: transparent; color: var(--muted); }
.sat--teams .icon { background: #5059C9; color: #fff; border-color: #5059C9; font-weight: 700; font-size: 20px; }
@media (max-width: 560px) { .sat { width: 90px; font-size: 12px; } .sat .icon { width: 44px; height: 44px; border-radius: 14px; } }

.platform-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.platform-card { border-radius: var(--radius-l); padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.platform-card h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.03em; font-weight: 600; margin: 18px 0 10px; }
.platform-card p { color: var(--muted); }
.platform-card--soon { background: transparent; border: 1.5px dashed var(--line-2); box-shadow: none; }
.ghost-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.ghost-tiles span {
  aspect-ratio: 1.4; border-radius: 14px; border: 1px dashed var(--line-2); position: relative; overflow: hidden;
  display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em;
}
.ghost-tiles span::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(109, 93, 246, .1), transparent); animation: shimmer 2.8s ease-in-out infinite;
}
.ghost-tiles span:nth-child(2)::after { animation-delay: .4s; }
.ghost-tiles span:nth-child(3)::after { animation-delay: .8s; }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (max-width: 860px) { .platform-grid { grid-template-columns: 1fr; } }

.m365 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.m365 .capability { grid-template-columns: auto 1fr; }
@media (max-width: 900px) { .m365 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .m365 { grid-template-columns: 1fr; } }

/* ---------- Pilot / pricing ---------- */
.pilot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.pilot > div { padding: clamp(24px, 3vw, 36px); }
.pilot > div + div { border-left: 1px solid var(--line); }
.pilot .n { font-family: var(--mono); font-size: 12px; color: var(--teal-ink); }
.pilot h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 12px 0 8px; }
.pilot p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .pilot { grid-template-columns: 1fr; } .pilot > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.included { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.included li { padding: 18px; border-radius: var(--radius); background: var(--teal-soft); color: var(--teal-ink); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .included { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 18px; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center/14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 820px; }
.faq .answer ul { padding-left: 20px; margin-top: 8px; display: grid; gap: 6px; }
.faq-group-title { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); margin: 40px 0 8px; }
.faq-group-title:first-child { margin-top: 0; }

/* ---------- About ---------- */
.letter { font-size: clamp(110px, 18vw, 260px); line-height: .9; font-family: var(--arabic); font-weight: 300; color: transparent; -webkit-text-stroke: 1.5px rgba(15, 157, 138, .55); }
.principles { counter-reset: p; display: grid; gap: 0; }
.principle { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); align-items: baseline; }
.principle .n { font-family: var(--mono); font-size: 13px; color: var(--teal-ink); }
.principle h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.principle p { color: var(--muted); }
@media (max-width: 760px) { .principle { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Form ---------- */
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .demo-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow-l); }
.field { display: grid; gap: 8px; align-content: start; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row > .field { margin-top: 0; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-family: var(--font); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109, 93, 246, .14); background: var(--surface); }
.field .error { font-size: 13.5px; color: var(--danger); min-height: 0; }
.form-error { color: var(--danger); margin-top: 14px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form-foot p { font-size: 14px; color: var(--muted); max-width: 320px; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success .icon { margin: 0 auto 18px; width: 56px; height: 56px; border-radius: 18px; }
.form-success h2 { font-size: 28px; letter-spacing: -.03em; font-weight: 600; }
.form-success p { color: var(--muted); margin-top: 10px; }
.next-steps { list-style: none; padding: 0; margin-top: 40px; display: grid; gap: 0; }
.next-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.next-steps .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.next-steps h3 { font-size: 17px; font-weight: 700; }
.next-steps p { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 80px); text-align: center; }
.cta-band .h2 { max-width: 860px; margin-inline: auto; }
.cta-band p { color: var(--muted); max-width: 620px; margin: 18px auto 0; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(13, 27, 42, .72); backdrop-filter: blur(4px); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 14px; box-shadow: var(--shadow-l); background: #fff; }
.lightbox-inner { max-height: 88vh; overflow: auto; border-radius: 14px; }
.lightbox-close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); display: grid; place-items: center; font-size: 22px; line-height: 1;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 19px; height: 19px; grid-area: 1 / 1; transition: transform .35s ease, opacity .25s ease; }
.theme-toggle .moon { opacity: 1; transform: none; }
.theme-toggle .sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .moon { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .sun { opacity: 1; transform: none; }
@media (max-width: 960px) { .theme-toggle { width: 44px; height: 44px; } }

/* ---------- Dark-theme adjustments ---------- */
:root[data-theme="dark"] .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.4' fill='none' stroke='%235EDCC8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .logo-group--soon .tile img { filter: grayscale(1) invert(.88); opacity: .5; }
:root[data-theme="dark"] .hero-glow {
  background:
    radial-gradient(600px 360px at 30% 30%, rgba(44, 199, 176, .14), transparent 70%),
    radial-gradient(640px 380px at 75% 40%, rgba(140, 128, 255, .16), transparent 70%);
}
:root[data-theme="dark"] .boundary { box-shadow: 0 0 0 10px rgba(44, 199, 176, .05), 0 0 80px -30px rgba(44, 199, 176, .35), var(--shadow-l); }
:root[data-theme="dark"] .window, :root[data-theme="dark"] .lightbox img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), var(--shadow-l); }
:root[data-theme="dark"] .screen { background: linear-gradient(160deg, #1D2A38, #0B1118); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), var(--shadow-l); }
:root[data-theme="dark"] .timeline-marker::before { color: var(--on-ink); }
:root[data-theme="dark"] .terminal { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), var(--shadow-l); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.meta-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Reduced motion ---------- */
@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; }
  .edge-dot { display: none; }
  .btn-spinner { animation: spin 1.2s linear infinite !important; }
}
