/* Bionicverse design system: tokens, base, components, sections */
:root {
  --navy-950: #060b14;
  --navy-900: #0a1220;
  --navy-800: #101b2e;
  --navy-700: #1a2942;
  --ink: #0d1b2a;
  --ink-soft: #4a5b70;
  --paper: #ffffff;
  --mist: #f3f7fa;
  --line: #dde6ee;
  --line-dark: rgba(148, 178, 210, .16);
  --text-dark: #f4f8fc;
  --text-dark-soft: #a4b6cb;
  --brand: #3f718b;
  --blue: #6aa9d8;
  --teal: #74d6c9;
  --grad: linear-gradient(110deg, var(--blue), var(--teal));

  /* one accent per solution family */
  --f-auto: #74d6c9;
  --f-intel: #8fa8ff;
  --f-trust: #f0b86e;
  --f-fin: #6fd39b;
  --f-industry: #6aa9d8;

  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font); background: var(--navy-950); color: var(--text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }

h1, h2, h3, h4 { line-height: 1.1; font-weight: 600; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.15rem); }
h3 { font-size: 1.35rem; }
.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent, var(--teal)); margin-bottom: 14px; }
.lead { font-size: 1.14rem; color: var(--text-dark-soft); max-width: 62ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

section { padding: clamp(76px, 9vw, 128px) 0; position: relative; }
.light { background: var(--paper); color: var(--ink); --accent: var(--brand); }
.mist { background: var(--mist); color: var(--ink); --accent: var(--brand); }
.light .lead, .mist .lead { color: var(--ink-soft); }
.head { margin-bottom: 52px; display: grid; gap: 4px; }
.head p.lead { margin-top: 18px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--grad); color: var(--navy-950); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(106, 196, 210, .35); }
.btn-ghost { border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

.tag { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }
.note { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; opacity: .6; }

/* header */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-head.scrolled, .site-head.open { background: rgba(6, 11, 20, .92); backdrop-filter: blur(14px); border-color: var(--line-dark); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; font-size: .96rem; color: var(--text-dark-soft); }
.nav a:hover { color: var(--text-dark); }
.nav-demo { display: none; }
.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--text-dark); margin: auto; position: relative; }
.menu-btn span::before { position: absolute; top: -7px; }
.menu-btn span::after { position: absolute; top: 7px; }

/* hero */
.hero { padding: 150px 0 90px; overflow: hidden; background: radial-gradient(900px 520px at 82% 8%, rgba(116, 214, 201, .16), transparent 70%), radial-gradient(760px 520px at 8% 90%, rgba(106, 169, 216, .16), transparent 70%), var(--navy-950); }
#net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 5.6rem); line-height: .98; letter-spacing: -.035em; margin-bottom: 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.panel { background: linear-gradient(180deg, rgba(26, 41, 66, .82), rgba(10, 18, 32, .92)); border: 1px solid var(--line-dark); border-radius: 24px; box-shadow: 0 40px 90px rgba(0,0,0,.45); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-dark); font-size: .9rem; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(116,214,201,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(116,214,201,0); } 100% { box-shadow: 0 0 0 0 rgba(116,214,201,0); } }
.panel-bar .note { margin-inline-start: auto; }
.feed { padding: 10px; height: 372px; overflow: hidden; }
.feed li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; animation: in .5s ease both; }
.feed li + li { border-top: 1px solid rgba(148,178,210,.08); }
@keyframes in { from { opacity: 0; transform: translateY(-12px); } }
.ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-family: var(--mono); font-size: .72rem; font-weight: 600; background: rgba(116,214,201,.13); color: var(--teal); }
.feed b { display: block; font-weight: 500; font-size: .95rem; }
.feed small { color: var(--text-dark-soft); font-size: .8rem; }
.state { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.state.wait { color: var(--f-trust); }

/* facts */
.facts { border-block: 1px solid var(--line-dark); background: var(--navy-900); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 28px 22px; border-inline-start: 1px solid var(--line-dark); }
.facts li:first-child { border: 0; padding-inline-start: 0; }
.facts b { display: block; font-size: 1.14rem; font-weight: 600; }
.facts span { color: var(--text-dark-soft); font-size: .9rem; }

/* automation map */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tabs button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font-weight: 500; transition: .2s; }
.tabs button:hover { border-color: var(--brand); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--text-dark); }
.flow { background: var(--navy-900); color: var(--text-dark); border-radius: 24px; padding: clamp(24px, 4vw, 44px); }
.flow-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-bottom: 34px; }
.flow-top p { color: var(--text-dark-soft); max-width: 60ch; margin-top: 8px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 18px; border-radius: 14px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.025); animation: in .45s ease both; animation-delay: calc(var(--i) * 70ms); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .72rem; color: var(--teal); margin-bottom: 12px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; inset-inline-end: -15px; width: 15px; height: 1px; background: var(--teal); opacity: .5; }
.steps li.human { border-color: rgba(240,184,110,.55); background: rgba(240,184,110,.08); }
.steps li.human::before { color: var(--f-trust); }
.steps em { display: block; margin-top: 10px; font-style: normal; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--f-trust); }
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; font-size: .84rem; color: var(--text-dark-soft); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--teal); margin-inline-end: 8px; }
.legend i.h { background: var(--f-trust); }

/* flagship products */
.products { display: grid; gap: 22px; }
.product { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-800); border: 1px solid var(--line-dark); border-radius: 26px; overflow: hidden; }
.product:nth-child(even) .copy { order: 2; }
.product .copy { padding: clamp(28px, 4.4vw, 54px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.product h3 { font-size: 2rem; }
.product .tagline { font-size: 1.18rem; color: var(--accent); }
.product p { color: var(--text-dark-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips li { font-size: .84rem; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.055); }
.visual { position: relative; min-height: 340px; padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 14px; background: radial-gradient(480px 300px at 50% 40%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 75%), var(--navy-900); }
.visual > .note { position: absolute; bottom: 12px; inset-inline-end: 18px; }
.card { background: rgba(16,27,46,.94); border: 1px solid var(--line-dark); border-radius: 16px; padding: 16px 18px; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 90px; }
.wave i { width: 5px; border-radius: 4px; background: var(--accent); height: 20%; animation: wave 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * -90ms); }
@keyframes wave { 50% { height: 95%; } }
.bubble { max-width: 82%; font-size: .9rem; }
.bubble.me { align-self: flex-end; background: color-mix(in srgb, var(--accent) 18%, var(--navy-800)); }
.bars { display: grid; gap: 14px; }
.bars div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; font-size: .84rem; color: var(--text-dark-soft); }
.bars span { height: 10px; border-radius: 9px; background: linear-gradient(90deg, var(--accent), transparent); width: var(--w); }
.doc-lines { display: grid; gap: 12px; }
.doc-lines div { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; border-bottom: 1px dashed var(--line-dark); padding-bottom: 8px; }
.redact { display: inline-block; width: 120px; height: 15px; border-radius: 3px; background: var(--accent); }
.key { font-family: var(--mono); font-size: .86rem; text-align: center; letter-spacing: .1em; color: var(--accent); }
.layers { display: grid; gap: 8px; }
.layers div { padding: 12px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.layers small { color: var(--text-dark-soft); }

/* fintech */
.fintech { --accent: var(--f-fin); background: linear-gradient(180deg, var(--navy-950), #071a1a 55%, var(--navy-950)); }
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack article { padding: 28px; border: 1px solid var(--line-dark); border-radius: var(--r); background: rgba(16,27,46,.62); transition: border-color .2s, transform .2s; }
.stack article:hover { border-color: var(--f-fin); transform: translateY(-4px); }
.stack .num { font-family: var(--mono); font-size: .72rem; color: var(--f-fin); }
.stack h3 { margin: 12px 0 14px; }
.stack li { color: var(--text-dark-soft); font-size: .95rem; padding: 5px 0 5px 18px; position: relative; }
.stack li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 2px; background: var(--f-fin); }
.disclaimer { margin-top: 28px; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line-dark); color: var(--text-dark-soft); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }

/* trust demo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.id-demo { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 70px rgba(13,27,42,.10); padding: 28px; }
.id-demo header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.id-demo dl { display: grid; }
.id-demo dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.id-demo dt { color: var(--ink-soft); }
.id-demo dd { font-weight: 600; text-align: end; }
.id-demo dd[data-secret] { font-family: var(--mono); font-weight: 500; }
.id-demo:not(.unlocked) dd[data-secret] { background: var(--navy-800); color: transparent; border-radius: 4px; user-select: none; }
.id-demo .btn { margin-top: 22px; width: 100%; justify-content: center; }
.ticks { display: grid; gap: 14px; margin-top: 28px; }
.ticks li { padding-inline-start: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 7px; height: 12px; border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* industries */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.industry { padding: 30px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; transition: transform .2s, box-shadow .2s; }
.industry:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(13,27,42,.10); }
.industry p { color: var(--ink-soft); }
.industry .tag { color: var(--brand); }
.industry .glyph { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-900); color: var(--teal); }
.glyph svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* connected stack */
.connected { display: grid; gap: 12px; }
.ring { border: 1px solid var(--line-dark); border-radius: 24px; padding: 22px; background: var(--navy-900); }
.ring > p { text-align: center; margin-bottom: 16px; }
.pipe { display: grid; grid-template-columns: 1fr 46px 1fr 46px 1fr; align-items: stretch; }
.node { padding: 26px; border-radius: var(--r); background: var(--navy-800); border-top: 3px solid var(--accent); }
.node h3 { margin-bottom: 8px; }
.node p { color: var(--text-dark-soft); font-size: .95rem; }
.link { align-self: center; height: 2px; background: linear-gradient(90deg, transparent, var(--teal), transparent); background-size: 200% 100%; animation: run 2.2s linear infinite; }
@keyframes run { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.base-bar { margin-top: 12px; text-align: center; padding: 16px; border-radius: 14px; border: 1px dashed var(--line-dark); color: var(--text-dark-soft); }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process li { border-top: 2px solid var(--ink); padding-top: 20px; }
.process span { font-family: var(--mono); font-size: .74rem; color: var(--brand); }
.process h3 { margin: 8px 0; }
.process p { color: var(--ink-soft); }

/* call to action + footer */
.cta { text-align: center; background: radial-gradient(700px 360px at 50% 100%, rgba(116,214,201,.22), transparent 75%), var(--navy-900); }
.cta img { width: 74px; margin: 0 auto 24px; }
.cta h2 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); margin-bottom: 18px; }
.cta .lead { margin: 0 auto 34px; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
footer { border-top: 1px solid var(--line-dark); padding: 70px 0 34px; font-size: .94rem; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px; }
.foot img { height: 36px; width: auto; margin-bottom: 18px; }
.foot h4 { font-size: .74rem; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.foot li { margin-bottom: 9px; color: var(--text-dark-soft); }
.foot li a:hover { color: var(--text-dark); }
.foot address { font-style: normal; color: var(--text-dark-soft); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--text-dark-soft); font-size: .84rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.reveal.on { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .hero .wrap, .split, .product { grid-template-columns: 1fr; }
  .product:nth-child(even) .copy { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { top: auto; bottom: -15px; inset-inline-end: auto; left: 24px; width: 1px; height: 15px; }
  .stack, .cards { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .facts ul, .process { grid-template-columns: 1fr 1fr; }
  .facts li, .facts li:first-child { padding: 20px 14px; border: 0; }
  .pipe { grid-template-columns: 1fr; gap: 12px; }
  .link { display: none; }
}
@media (max-width: 600px) {
  .stack, .cards, .process, .foot { grid-template-columns: 1fr; }
  .visual { padding: 22px 18px 38px; }
  .feed li { grid-template-columns: 38px 1fr; }
  .feed .state { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== multi-page ===== */
[hidden] { display: none !important; }
.js .reveal { opacity: 0; } .js .reveal.on { opacity: 1; }
html:not(.js) .reveal { opacity: 1; transform: none; }
html:not(.js) .pane[hidden] { display: block !important; }
html { scroll-padding-top: 140px; }
.nav { align-items: center; }
.nav > a[aria-current], .item > button[aria-current] { color: var(--text-dark); }
.item > button { color: inherit; padding: 8px 0; }
.item > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.item > button:hover { color: var(--text-dark); }
.drop { display: none; position: absolute; top: 70px; left: 50%; transform: translateX(-50%); width: min(760px, calc(100vw - 40px)); max-height: calc(100vh - 90px); overflow: auto; background: var(--navy-900); border: 1px solid var(--line-dark); border-radius: 18px; padding: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.drop.wide { width: min(1100px, calc(100vw - 40px)); }
.item.open .drop { display: block; }
.drop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
.drop.wide .drop-grid { grid-template-columns: repeat(5, 1fr); }
.drop h4 { font: 600 .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px 10px; }
.drop-grid a { display: block; padding: 9px 10px; border-radius: 10px; }
.drop-grid a:hover { background: rgba(255,255,255,.06); }
.drop-grid b { display: block; font-weight: 500; color: var(--text-dark); line-height: 1.3; }
.drop-grid small { display: block; font-size: .78rem; line-height: 1.4; margin-top: 3px; }
.drop-all { display: block; margin-top: 14px; padding: 12px 10px 0; border-top: 1px solid var(--line-dark); color: var(--teal); font-weight: 600; }

.page-hero { padding: 108px 0 56px; background: radial-gradient(760px 420px at 85% 0%, color-mix(in srgb, var(--accent, var(--teal)) 18%, transparent), transparent 72%), var(--navy-950); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -.03em; line-height: 1.04; margin-bottom: 20px; max-width: 20ch; }
.page-hero .actions { margin-top: 30px; }
.page-hero .visual { border: 1px solid var(--line-dark); border-radius: 24px; overflow: hidden; }
.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--text-dark-soft); margin-bottom: 34px; }
.crumbs > * + *::before { content: "/"; margin-inline-end: 8px; opacity: .5; }
.crumbs a:hover { color: var(--text-dark); }
.hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 46px; }
.hero-facts li { border-top: 2px solid var(--accent, var(--teal)); padding-top: 14px; }
.hero-facts b { display: block; font-size: 1.15rem; }
.hero-facts span { font-size: .9rem; opacity: .75; }
.hero-facts.compact { margin: 0 0 28px; }

.subnav { position: sticky; top: 76px; z-index: 40; background: rgba(10,18,32,.96); border-block: 1px solid var(--line-dark); backdrop-filter: blur(10px); }
.subnav .wrap { display: flex; gap: 24px; overflow-x: auto; align-items: center; height: 54px; white-space: nowrap; font-size: .92rem; }
.subnav b { color: var(--accent); margin-inline-end: 8px; }
.subnav a { color: var(--text-dark-soft); padding: 14px 0; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.active { color: var(--text-dark); border-color: var(--accent); }
section.light .eyebrow, section.mist .eyebrow { color: var(--brand); }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); }
.tile { padding: 26px; border-radius: var(--r); border: 1px solid var(--line-dark); background: rgba(16,27,46,.72); color: var(--text-dark); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tile h3 { font-size: 1.17rem; line-height: 1.25; }
.tile p { color: var(--text-dark-soft); font-size: .97rem; }
.light .tile, .mist .tile { background: var(--paper); border-color: var(--line); color: var(--ink); }
.light .tile p, .mist .tile p { color: var(--ink-soft); }
.link-tile { transition: transform .2s, border-color .2s, box-shadow .2s, opacity .4s; }
.link-tile:hover { transform: translateY(-4px); border-color: var(--accent, var(--brand)); box-shadow: 0 18px 40px rgba(13,27,42,.16); }
.link-tile .tag { color: var(--brand); } section:not(.light):not(.mist) .link-tile .tag { color: var(--accent, var(--teal)); }
.more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--brand); }
section:not(.light):not(.mist) .tile .more { color: var(--teal); }
.more::after { content: " →"; }

.ticks.two { grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.grid + .ticks, .table-scroll + .ticks { margin-top: 32px; }
section:not(.light):not(.mist) .ticks li::before { border-color: var(--teal); }

.tabbed .tabs button, .filters button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--text-dark-soft); font-weight: 500; background: transparent; }
.light .tabs button, .mist .tabs button { background: var(--paper); border-color: var(--line); color: var(--ink-soft); }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.pane-intro { margin-bottom: 24px; max-width: 70ch; font-size: 1.06rem; opacity: .85; }
.pane-title { margin-bottom: 12px; font-size: 1.5rem; }
.stepper { display: grid; grid-template-columns: minmax(250px, .8fr) 1.2fr; gap: 20px; align-items: start; }
.rail { display: grid; gap: 8px; }
.rail button { display: grid; grid-template-columns: 38px 1fr; text-align: start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-dark); transition: .2s; }
.rail span { grid-row: span 2; font: 600 .76rem var(--mono); color: var(--accent, var(--teal)); padding-top: 4px; }
.rail b { font-weight: 600; line-height: 1.35; } .rail small { opacity: .65; }
.light .rail button, .mist .rail button { border-color: var(--line); background: var(--paper); }
.light .rail span, .mist .rail span { color: var(--brand); }
.rail button[aria-selected="true"] { background: var(--navy-700) !important; color: var(--text-dark); border-color: var(--teal) !important; }
.rail button[aria-selected="true"] span { color: var(--teal); }
.stepper .pane { position: sticky; top: 150px; background: var(--navy-900); color: var(--text-dark); border: 1px solid var(--line-dark); border-radius: 22px; padding: clamp(26px, 4vw, 46px); min-height: 220px; }
.stepper .pane h3 { font-size: 1.7rem; margin-bottom: 16px; }
.stepper .pane p { color: var(--text-dark-soft); font-size: 1.1rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; text-align: start; font-size: .96rem; }
th, td { padding: 15px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line-dark); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font: 600 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
tbody th { font-weight: 600; }
.light .table-scroll, .mist .table-scroll { border-color: var(--line); background: var(--paper); }
.light th, .light td, .mist th, .mist td { border-color: var(--line); }
td a, .callout a { text-decoration: underline; text-underline-offset: 3px; }
.tabbed + .table-scroll { margin-top: 28px; }
.callout { margin-top: 28px; padding: 18px 22px; border-radius: 14px; border-inline-start: 3px solid var(--accent, var(--teal)); background: color-mix(in srgb, var(--accent, var(--teal)) 10%, transparent); }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line-dark); border-radius: 14px; padding: 4px 20px; }
.light .faq details, .mist .faq details { border-color: var(--line); background: var(--paper); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; }
.faq details p { padding-bottom: 18px; opacity: .8; }

.dialects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dialect { border: 1px solid var(--line-dark); border-top: 3px solid var(--teal); border-radius: 14px; padding: 18px; background: var(--navy-900); color: var(--text-dark); }
.dialect.tier-full { border-top-color: #00a18c; } .dialect.tier-ext { border-top-color: #0a6b5e; }
.dialect header { display: flex; justify-content: space-between; gap: 10px; }
.dialect small { color: var(--teal); } .dialect p { color: var(--text-dark-soft); font-size: .92rem; margin-top: 8px; }

.chips-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-links a { padding: 12px 20px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-weight: 500; }
.chips-links a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.after { margin-top: 24px; }
.industry .more { color: var(--brand); }

.search { display: grid; gap: 10px; font-weight: 600; margin-bottom: 20px; }
.search input, .form input, .form select, .form textarea { font: inherit; width: 100%; padding: 15px 18px; border-radius: 12px; border: 1px solid #c4d2de; background: var(--paper); color: var(--ink); }
.filters { margin-bottom: 14px; }
.count { color: var(--ink-soft); font-size: .88rem; margin-bottom: 18px; }
.empty { margin-top: 20px; }
.finder-section { padding-top: 56px; }
.finder-section .link-tile .tag { color: var(--brand); }

.split.top { align-items: start; grid-template-columns: 1.3fr .7fr; }
.form { display: grid; gap: 16px; } .form label { display: grid; gap: 7px; font-weight: 500; } .form .btn { justify-self: start; }
.hint { color: var(--ink-soft); font-size: .9rem; }
.contact-card { background: var(--navy-900); color: var(--text-dark); border-radius: 22px; padding: 32px; display: grid; gap: 10px; }
.contact-card address { font-style: normal; color: var(--text-dark-soft); }
section.light > .wrap > .id-demo { max-width: 620px; }
.leader { max-width: 360px; }
.foot p { margin-top: 14px; color: var(--text-dark-soft); }
.foot { grid-template-columns: 1.4fr repeat(4, 1fr); }

@media (max-width: 1180px) {
  .nav { gap: 18px; font-size: .9rem; }
}
@media (max-width: 1040px) {
  .hero-split, .stepper, .split.top { grid-template-columns: 1fr; }
  .g3, .dialects { grid-template-columns: 1fr 1fr; }
  .stepper .pane { position: static; }
  .foot { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .site-head .btn { display: none; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; padding: 8px 20px 24px; background: var(--navy-950); border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .site-head.open .nav { display: flex; }
  .nav > a, .item > button { padding: 13px 0; text-align: start; width: 100%; }
  .nav .nav-demo { display: block; color: var(--teal); font-weight: 600; }
  .drop, .drop.wide { position: static; transform: none; width: auto; max-height: none; box-shadow: none; padding: 14px 8px; }
  .drop-grid, .drop.wide .drop-grid { grid-template-columns: 1fr; }
  .drop.wide .drop-grid > div { margin-bottom: 10px; }
}
@media (max-width: 640px) {
  .g2, .g3, .dialects, .ticks.two, .foot { grid-template-columns: 1fr; }
}

/* ===== one dark theme: former white sections are now navy surfaces =====
   .light and .mist only alternate the shade, so pages keep their rhythm without white blocks. */
:root { color-scheme: dark; --surface: #12203a; --surface-line: rgba(148, 178, 210, .18); }
section.light, section.mist { color: var(--text-dark); --accent-text: var(--teal); }
section.light { background: var(--navy-900); }
section.mist { background: #0d182b; }
section.light, section.mist { border-block: 1px solid rgba(148, 178, 210, .07); }
.light .lead, .mist .lead { color: var(--text-dark-soft); }
.light .eyebrow, .mist .eyebrow, section.light .eyebrow, section.mist .eyebrow { color: var(--teal); }

.light .tile, .mist .tile, .industry { background: var(--surface); border-color: var(--surface-line); color: var(--text-dark); }
.light .tile p, .mist .tile p, .industry p { color: var(--text-dark-soft); }
.link-tile:hover, .industry:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, .35); border-color: var(--accent, var(--teal)); }
.link-tile .tag, .finder-section .link-tile .tag, section:not(.light):not(.mist) .link-tile .tag, .industry .tag { color: var(--accent, var(--teal)); }
.more, .industry .more, section .tile .more { color: var(--teal); }
.industry .glyph { background: rgba(116, 214, 201, .12); }

.tabs button, .light .tabs button, .mist .tabs button, .filters button { background: rgba(255, 255, 255, .03); border-color: var(--surface-line); color: var(--text-dark-soft); }
.tabs button:hover { color: var(--text-dark); border-color: var(--teal); }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { background: var(--grad) !important; border-color: transparent !important; color: var(--navy-950) !important; }

.light .rail button, .mist .rail button { background: var(--surface); border-color: var(--surface-line); }
.light .rail span, .mist .rail span { color: var(--teal); }
.stepper .pane, .flow, .contact-card { background: linear-gradient(160deg, #1a2d4d, #101d35); border: 1px solid var(--surface-line); }

.light .table-scroll, .mist .table-scroll { background: var(--surface); border-color: var(--surface-line); }
.light th, .light td, .mist th, .mist td { border-color: var(--surface-line); }
.light .faq details, .mist .faq details { background: var(--surface); border-color: var(--surface-line); }

.id-demo { background: var(--surface); border-color: var(--surface-line); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); color: var(--text-dark); }
.id-demo dl div { border-color: var(--surface-line); }
.id-demo dt { color: var(--text-dark-soft); }
.id-demo:not(.unlocked) dd[data-secret] { background: #4a6288; }
.ticks li::before, .light .ticks li::before, .mist .ticks li::before { border-color: var(--teal); }

.process li { border-color: var(--teal); }
.process span { color: var(--teal); }
.process p { color: var(--text-dark-soft); }

.search input, .form input, .form select, .form textarea { background: var(--navy-950); border-color: rgba(148, 178, 210, .3); color: var(--text-dark); }
.search input::placeholder { color: #7f93ab; }
.search input:focus, .form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(116, 214, 201, .18); }
.form select option { background: var(--navy-900); }
.count, .hint { color: var(--text-dark-soft); }
.chips-links a:hover { background: var(--grad); color: var(--navy-950); border-color: transparent; }

/* ===== language switch and Arabic (right to left) ===== */
.lang { font-family: "IBM Plex Sans Arabic", var(--font); font-size: .92rem; font-weight: 500; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--text-dark-soft); white-space: nowrap; }
.lang:hover { color: var(--text-dark); border-color: var(--teal); }
@media (max-width: 960px) { .lang { margin-inline-start: auto; } .menu-btn { margin-inline-start: 0; } }
a[href^="tel:"], a[href^="mailto:"]:not(.btn) { unicode-bidi: isolate; }
a[href^="tel:"] { direction: ltr; display: inline-block; }
[dir="rtl"] { --font: "IBM Plex Sans Arabic", "Outfit", "Segoe UI", sans-serif; --mono: "IBM Plex Sans Arabic", "JetBrains Mono", monospace; }
[dir="rtl"] body { line-height: 1.75; }
/* letter spacing breaks Arabic joining */
[dir="rtl"] *, [dir="rtl"] *::before { letter-spacing: 0 !important; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; }
[dir="rtl"] .hero h1 { font-size: clamp(2.7rem, 6.6vw, 5rem); line-height: 1.25; }
[dir="rtl"] .page-hero h1 { line-height: 1.35; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
[dir="rtl"] .eyebrow, [dir="rtl"] .tag, [dir="rtl"] .note, [dir="rtl"] .state, [dir="rtl"] .foot h4, [dir="rtl"] .drop h4 { font-size: .84rem; }
[dir="rtl"] .more::after { content: " ←"; }
[dir="rtl"] .stack li { padding: 5px 18px 5px 0; }
[dir="rtl"] .stack li::before { left: auto; right: 0; }
[dir="rtl"] .ticks li::before { left: auto; right: 4px; }
[dir="rtl"] .bars span { background: linear-gradient(270deg, var(--accent), transparent); }
[dir="rtl"] .skip { left: auto; right: -999px; } [dir="rtl"] .skip:focus { right: 12px; }
[dir="rtl"] .key, [dir="rtl"] address, [dir="rtl"] input[type="email"] { direction: ltr; }
[dir="rtl"] address { text-align: right; }
[dir="rtl"] .dialect header span { display: none; }
.subnav .wrap { overflow-y: hidden; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
/* keep the menu on one line on mid-size screens */
.nav > a, .item > button, .site-head .btn { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
  .site-head .wrap { gap: 14px; width: calc(100% - 24px); }
  .nav { gap: 12px; font-size: .82rem; }
  .brand img { height: 30px; }
  .item > button::after { margin-inline-start: 4px; }
  .site-head .btn { padding: 8px 12px; font-size: .8rem; }
  .lang { padding: 5px 10px; font-size: .8rem; }
}
@media (min-width: 961px) and (max-width: 1240px) {
  [dir="rtl"] .site-head .wrap { gap: 8px; }
  [dir="rtl"] .nav { gap: 9px; font-size: .78rem; }
  [dir="rtl"] .brand img { height: 27px; }
}
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== legal pages ===== */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.45rem; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-dark-soft); margin-bottom: 14px; }
.prose ul { list-style: disc; padding-inline-start: 22px; color: var(--text-dark-soft); }
.prose li { margin-bottom: 8px; }
.prose address { font-style: normal; color: var(--text-dark-soft); }
.legal-links { display: flex; gap: 20px; }
.legal-links a:hover { color: var(--text-dark); }
.privacy-link { font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; color: var(--text-dark-soft); }

/* ===== review fixes: readable label sizes, contrast, screen-reader headings ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.industry .tag { color: var(--teal); }
.eyebrow, .tag, .note, .state, .ico, .stack .num, .steps li::before, .steps em, thead th, .foot h4, .drop h4, .rail span { font-size: .76rem; }
.note { opacity: .75; }
.contact-card h2 { font-size: 1.35rem; }

/* ===== form, motion control and touch targets ===== */
.trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pause { font-size: .78rem; padding: 4px 12px; min-height: 28px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--text-dark-soft); }
.pause:hover { color: var(--text-dark); border-color: var(--teal); }
.btn:disabled { opacity: .6; cursor: wait; }
.foot li a, .legal-links a, .crumbs a, .prose address a { display: inline-block; min-height: 28px; padding-block: 2px; }
[dir="rtl"] .legend, [dir="rtl"] .legend span { font-size: .86rem; }
