/* ==========================================================================
   QAILinks — shared design system
   Palette: midnight navy (trust) · cyan→teal→green accent (logo-derived)
   ========================================================================== */

:root {
  /* Neutrals */
  --navy-950: #040b18;
  --navy-900: #071327;
  --navy-850: #0a1a33;
  --navy-800: #0e2242;
  --navy-700: #183358;
  --ink: #0b1b32;
  --text: #3d4f66;
  --muted: #5c6e84;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef3f8;

  /* Brand */
  --brand: #0a7ea4;
  --brand-600: #086a8b;
  --brand-50: #e9f6fa;
  --cyan: #22d3ee;
  --cyan-200: #a5f3fc;
  --cyan-300: #67e8f9;
  --teal: #2dd4bf;
  --green: #34d399;
  --verify: #059669;
  --grad: linear-gradient(100deg, #38bdf8 0%, #22d3ee 38%, #2dd4bf 68%, #4ade80 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(52, 211, 153, .12));

  /* On dark */
  --d-text: #b4c3d6;
  --d-muted: #8da2b9;
  --d-line: rgba(148, 197, 255, .14);
  --d-card: rgba(255, 255, 255, .035);

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape & depth */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 50, .06), 0 1px 1px rgba(11, 27, 50, .03);
  --shadow: 0 1px 2px rgba(11, 27, 50, .05), 0 10px 30px -12px rgba(11, 27, 50, .16);
  --shadow-lg: 0 2px 4px rgba(11, 27, 50, .04), 0 28px 60px -24px rgba(11, 27, 50, .28);

  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.018em;
  text-wrap: balance;
}
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }
ul { margin: 0; padding: 0; }
::selection { background: rgba(34, 211, 238, .28); }

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Icons */
.i {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .6);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px -16px rgba(11, 27, 50, .25);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin-right: auto;
}
.brand { display: block; flex: none; border-radius: 8px; }
/* Crop the transparent margins of the logo artwork */
.brand-logo-frame {
  display: block;
  position: relative;
  width: 130px;
  height: 55px;
  overflow: hidden;
}
.brand-logo-frame img {
  position: absolute;
  width: 158px;
  height: auto;
  max-width: none;
  top: -43px;
  left: -14px;
}
.brand-tagline {
  max-width: 230px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.brand-tagline strong { color: var(--brand); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: #334155;
  transition: color .2s, background-color .2s;
}
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--surface-3); }
.site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.site-nav .nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1180px) {
  .brand-tagline { display: none; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(16px, 4vw, 32px) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(11, 27, 50, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .site-nav a:not(.btn) {
    padding: 14px 4px;
    font-size: 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:not(.btn):hover { background: transparent; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav .nav-cta { margin: 16px 0 0; width: 100%; }
}
@media (max-width: 570px) {
  :root { --header-h: 64px; }
  .brand-logo-frame { width: 113px; height: 48px; }
  .brand-logo-frame img { width: 137px; top: -37px; left: -12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.btn .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px -10px rgba(10, 126, 164, .7);
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* Buttons on dark surfaces */
.on-dark .btn-primary, .btn-glow {
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 45%, #2dd4bf 100%);
  color: #032430;
  box-shadow: 0 0 0 1px rgba(103, 232, 249, .35), 0 12px 32px -10px rgba(34, 211, 238, .65);
}
.on-dark .btn-primary:hover, .btn-glow:hover {
  background: linear-gradient(135deg, #a5f3fc 0%, #67e8f9 45%, #5eead4 100%);
  transform: translateY(-1px);
}
.on-dark .btn-secondary {
  background: rgba(255, 255, 255, .04);
  color: #fff;
  border-color: rgba(148, 197, 255, .3);
}
.on-dark .btn-secondary:hover { border-color: var(--cyan-300); color: var(--cyan-200); background: rgba(34, 211, 238, .08); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Eyebrows / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  flex: none;
}
.on-dark .eyebrow { color: var(--cyan-300); }

.small { font-size: 13px; line-height: 1.6; color: var(--muted); }
.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 900px;
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.note .i { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.on-dark .note, .on-dark .note .i { color: var(--d-muted); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.section--subtle { background: var(--surface-2); }
.section--dark {
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(52, 211, 153, .08), transparent 60%),
    var(--navy-900);
  color: var(--d-text);
  overflow: hidden;
}
.section--dark::before, .hero::before, .cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 197, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
}
.section--dark > .wrap { position: relative; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark strong { color: #fff; }
.on-dark p { color: var(--d-text); }

.section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2, .h2 {
  font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.6rem);
  margin-bottom: 18px;
}
.section-head p { font-size: 1.0625rem; line-height: 1.7; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Five items: 3 on top, 2 below, full width */
.grid-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-5 > * { grid-column: span 2; }
.grid-5 > :nth-child(4):nth-last-child(2),
.grid-5 > :nth-child(5):last-child { grid-column: span 3; }

@media (max-width: 1000px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 > *, .grid-5 > :nth-child(4):nth-last-child(2) { grid-column: span 3; }
  .grid-5 > :nth-child(5):last-child { grid-column: span 6; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-5 { grid-template-columns: minmax(0, 1fr); }
  .grid-5 > *, .grid-5 > :nth-child(4):nth-last-child(2), .grid-5 > :nth-child(5):last-child { grid-column: auto; }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe0ea; }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 10px; }
.card p { font-size: .95rem; line-height: 1.65; }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(10, 126, 164, .16);
  color: var(--brand);
}
.card-num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
}
.card-num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.card-head .card-icon { margin-bottom: 0; }
.card-head .card-num { margin-bottom: 0; }
.card-head .card-num::after { display: none; }

/* Dark variant */
.on-dark .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border-color: var(--d-line);
  box-shadow: none;
}
.on-dark .card:hover { border-color: rgba(103, 232, 249, .35); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }
.on-dark .card p { color: var(--d-muted); }
.on-dark .card-icon {
  background: rgba(34, 211, 238, .1);
  border-color: rgba(103, 232, 249, .25);
  color: var(--cyan-300);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(34, 211, 238, .2), transparent 60%),
    radial-gradient(900px 520px at 4% 108%, rgba(52, 211, 153, .12), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-850) 100%);
  color: var(--d-text);
}
.hero::before { z-index: -1; }
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 72% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 85% at 72% 40%, #000 25%, transparent 78%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, .45), transparent);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 1.35rem + 2.9vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -.026em;
}
.hero h1 em, .grad-text {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  max-width: 620px;
  margin-top: 28px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--d-text);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px) clamp(120px, 12vw, 168px);
}
.hero-simple { padding-block: clamp(64px, 9vw, 120px); }
.hero-simple .hero-copy { max-width: 900px; }
.hero-simple h1 { font-size: clamp(2.1rem, 1.3rem + 2.7vw, 3.4rem); }
.hero-simple .lead { max-width: 820px; }

.scef-intro {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, .95rem + .8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--cyan-300);
}

.hero-points {
  max-width: 620px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.hero-points li {
  position: relative;
  padding-left: 22px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--d-text);
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(34, 211, 238, .45);
}
.hero-points strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cyan-300);
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-bottom: 120px; }
}

/* ---------- Workflow visual (home hero) ---------- */
.workflow {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(17, 38, 72, .78), rgba(8, 22, 45, .82));
  border: 1px solid rgba(148, 197, 255, .18);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.workflow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(103, 232, 249, .55), transparent 35%, transparent 65%, rgba(52, 211, 153, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.workflow .eyebrow { margin-bottom: 8px; }
.workflow h3 { color: #fff; font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); margin-bottom: 20px; }

.owners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.owner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(148, 197, 255, .13);
  transition: border-color .3s, background-color .3s;
}
.owner:hover { border-color: rgba(103, 232, 249, .4); background: rgba(34, 211, 238, .06); }
.owner-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(103, 232, 249, .25);
  color: var(--cyan-300);
}
.owner-icon .i { width: 19px; height: 19px; }
.owner-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.owner strong { font-size: 13.5px; line-height: 1.3; color: #fff; }
.owner-text > span { font-size: 12px; color: #a9bdd2; }
.owner small { font-size: 11px; line-height: 1.4; color: #7f96ae; }

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 38px;
}
.flow span {
  position: relative;
  justify-self: center;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(103, 232, 249, .1), rgba(103, 232, 249, .55));
  overflow: visible;
}
.flow span::after {
  content: "";
  position: absolute;
  left: -2.5px;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-300);
  box-shadow: 0 0 10px 2px rgba(34, 211, 238, .8);
  animation: flow-down 2.4s var(--ease) infinite;
}
.flow span:nth-child(2)::after { animation-delay: .6s; }
.flow span:nth-child(3)::after { animation-delay: 1.2s; }
.flow span:nth-child(4)::after { animation-delay: 1.8s; }
@keyframes flow-down {
  0% { transform: translateY(-4px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(34px); opacity: 0; }
}

.hub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 16px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(45, 212, 191, .12) 55%, rgba(52, 211, 153, .14));
  border: 1px solid rgba(103, 232, 249, .45);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .06), 0 0 48px -8px rgba(34, 211, 238, .5);
}
.hub strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: .06em;
  color: #fff;
}
.hub > span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--cyan-200);
}
.hub small { font-size: 11.5px; color: #9fb3c8; }

.outcomes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.outcomes span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, .1);
  border: 1px solid rgba(52, 211, 153, .3);
  font-size: 11.5px;
  white-space: nowrap;
  font-weight: 500;
  color: #c9f7e3;
}
.outcomes .i { width: 14px; height: 14px; color: var(--green); stroke-width: 2.5; }
.workflow .caption {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  color: var(--d-muted);
}
@media (max-width: 460px) {
  .owner { flex-direction: column; gap: 8px; padding: 12px; }
  .owner strong { font-size: 12.5px; }
  .hub strong { font-size: 24px; }
  .hub > span { font-size: 10.5px; }
}

/* ---------- Capabilities strip (overlaps hero) ---------- */
.capabilities {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: -88px;
}
.capabilities .card { padding: 24px; box-shadow: var(--shadow); }
.capabilities .card-icon { width: 42px; height: 42px; margin-bottom: 18px; }
.capabilities h3 { font-size: 1.02rem; margin-bottom: 8px; }
.capabilities p { font-size: .875rem; line-height: 1.6; }
@media (max-width: 1100px) {
  .capabilities { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .capabilities > * { grid-column: span 2; }
  .capabilities > :nth-child(4), .capabilities > :nth-child(5) { grid-column: span 3; }
}
@media (max-width: 760px) {
  .capabilities > *, .capabilities > :nth-child(4) { grid-column: span 3; }
  .capabilities > :nth-child(5) { grid-column: span 6; }
}
@media (max-width: 520px) {
  .capabilities { grid-template-columns: minmax(0, 1fr); }
  .capabilities > *, .capabilities > :nth-child(4), .capabilities > :nth-child(5) { grid-column: auto; }
}

.capability-summary {
  max-width: 860px;
  margin: 48px auto 0;
  padding-bottom: clamp(56px, 7vw, 88px);
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}
.capability-summary strong {
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(34, 211, 238, .22) 62%);
}

/* ---------- Industries band ---------- */
.industries {
  border-block: 1px solid var(--line);
  background: #fff;
  padding-block: 28px;
}
.industries .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.industries-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--muted);
  flex: none;
}
.industries ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(24px, 3.5vw, 48px);
  list-style: none;
}
.industries li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: #334155;
}
.industries li .i { width: 20px; height: 20px; color: var(--brand); }
@media (max-width: 560px) {
  .industries .wrap { align-items: flex-start; text-align: left; }
  .industries ul { flex-direction: column; gap: 12px; }
}

/* ---------- Platform tagline ---------- */
.platform-tagline { font-size: 1.125rem; }
.platform-tagline strong { color: var(--cyan-200); font-weight: 600; }

/* ---------- Steps (How it works) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps::before {
  content: "";
  position: absolute;
  top: 51px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--grad);
  opacity: .55;
}
.step {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--cyan-300);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), 0 0 24px -4px rgba(34, 211, 238, .6);
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { font-size: .95rem; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Evidence console ---------- */
.console {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(34, 211, 238, .12), transparent 60%),
    var(--navy-900);
  border: 1px solid var(--navy-700);
  box-shadow: var(--shadow-lg);
}
.console-track {
  position: relative;
  height: 3px;
  background: rgba(148, 197, 255, .12);
}
.console-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(1);
}
.js .console-track::after { transform: scaleX(0); transition: transform 2.2s var(--ease) .2s; }
.js .console.in .console-track::after { transform: scaleX(1); }
.console-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.console-step { padding: 28px 26px 30px; border-left: 1px solid var(--d-line); }
.console-step:first-child { border-left: 0; }
.console-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--cyan-300);
}
.console-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .15), 0 0 12px rgba(52, 211, 153, .8);
}
.console-step h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.console-step p { font-size: .925rem; color: var(--d-muted); }
@media (max-width: 1000px) {
  .console-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-step:nth-child(3) { border-left: 0; }
  .console-step:nth-child(n+3) { border-top: 1px solid var(--d-line); }
}
@media (max-width: 560px) {
  .console-steps { grid-template-columns: minmax(0, 1fr); }
  .console-step { border-left: 0; }
  .console-step:nth-child(n+2) { border-top: 1px solid var(--d-line); }
}

/* ---------- Featured use case (banking) ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.feature h3 { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.85rem); line-height: 1.25; margin-bottom: 16px; }
.feature-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.diagram {
  padding: clamp(16px, 2.5vw, 26px);
  border-radius: 18px;
  background:
    radial-gradient(400px 220px at 50% 0%, rgba(34, 211, 238, .1), transparent 70%),
    var(--surface-2);
  border: 1px solid var(--line);
}
.parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.party {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 18px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.party .card-icon { width: 42px; height: 42px; margin-bottom: 8px; }
.party strong { font-size: 14px; line-height: 1.3; }
.party > span { font-size: 12.5px; color: var(--text); }
.party small { font-size: 11.5px; color: var(--muted); }
.boundary {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 14px 0;
}
.boundary::before, .boundary::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22%;
  height: 0;
  border-top: 1px dashed var(--line-strong);
}
.boundary::before { left: 2%; }
.boundary::after { right: 2%; }
.boundary span {
  padding: 4px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.diagram .hub {
  background:
    radial-gradient(260px 120px at 50% 0%, rgba(34, 211, 238, .28), transparent 70%),
    var(--navy-900);
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 18px 40px -18px rgba(7, 19, 39, .7), 0 0 0 4px rgba(34, 211, 238, .08);
}
.diagram .hub strong { font-size: 24px; }
.down {
  display: flex;
  justify-content: center;
  height: 30px;
}
.down span {
  position: relative;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--green));
}
.down span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateX(-50%) rotate(45deg);
}
.result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(5, 150, 105, .35);
  border-radius: 14px;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .08);
}
.result-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: rgba(52, 211, 153, .15);
  color: var(--verify);
}
.result-icon .i { width: 18px; height: 18px; stroke-width: 2.5; }
.result div { display: flex; flex-direction: column; }
.result strong { font-size: 14px; }
.result div span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .party { padding: 14px 8px; }
  .boundary::before, .boundary::after { display: none; }
}

/* ---------- Split (expertise) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split > div > p { font-size: 1.0625rem; line-height: 1.7; margin-bottom: 28px; }
.card--feature { padding: clamp(24px, 3.5vw, 40px); }
.card--feature h3 { font-size: 1.4rem; }
.card--feature p { margin-bottom: 24px; }
.card--feature .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- CTA panel ---------- */
.cta-section { padding-block: clamp(24px, 4vw, 40px) clamp(72px, 9vw, 112px); }
.cta-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(600px 320px at 100% 0%, rgba(34, 211, 238, .28), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(52, 211, 153, .16), transparent 60%),
    var(--navy-900);
  color: var(--d-text);
  box-shadow: 0 40px 80px -40px rgba(7, 19, 39, .7);
}
.cta-panel::before { z-index: -1; }
.cta-panel > div { max-width: 680px; }
.cta-panel h2 { font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.6rem); margin-bottom: 16px; }
.cta-panel p { font-size: 1.0625rem; line-height: 1.7; }
.cta-panel .btn { flex: none; }
@media (max-width: 760px) {
  .cta-panel { flex-direction: column; align-items: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 40px 28px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a { font-weight: 500; color: #334155; transition: color .2s; }
.footer-nav a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-block: 24px 36px;
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * clamp(16px, 4vw, 32px)) 1px no-repeat;
  font-size: 13px;
}
.footer-bottom a { color: var(--brand); font-weight: 500; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Company page ---------- */
.structure { max-width: 1000px; margin: clamp(40px, 6vw, 64px) auto 0; }
.structure-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 520px;
  margin-inline: auto;
  padding: 18px 28px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(52, 211, 153, .1));
  border: 1px solid rgba(103, 232, 249, .4);
  box-shadow: 0 0 48px -10px rgba(34, 211, 238, .45);
}
.structure-brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
}
.structure-vision { font-size: 13.5px; color: var(--cyan-200); }
.structure-connect {
  position: relative;
  height: 48px;
}
.structure-connect::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: 24px;
  width: 1px;
  background: rgba(103, 232, 249, .5);
}
.structure-connect::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 24px;
  height: 24px;
  border: 1px solid rgba(103, 232, 249, .5);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.structure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.structure-card { padding: clamp(22px, 3vw, 32px); }
.structure-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-300);
}
.structure-location .i { width: 16px; height: 16px; }
.structure-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.structure-focus { font-weight: 600; color: #e2f6fb !important; margin-bottom: 16px; }
.structure-card ul { list-style: none; margin-bottom: 22px; }
.structure-card li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 14.5px;
  color: var(--d-text);
}
.structure-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.structure-card .link, .structure-note { margin-top: auto; }
.structure-note { font-size: 13px; color: var(--d-muted); }
.structure-note a { color: var(--cyan-300); font-weight: 600; }
.structure-note a:hover { text-decoration: underline; }
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--cyan-300);
}
.link .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover .i { transform: translateX(3px); }
@media (max-width: 700px) {
  .structure-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .structure-connect { height: 28px; }
  .structure-connect::before { height: 28px; }
  .structure-connect::after { display: none; }
}

/* Research cards (horizontal) */
.research .card { flex-direction: row; gap: 20px; align-items: flex-start; }
.research .card-icon { margin-bottom: 0; }
@media (max-width: 480px) {
  .research .card { flex-direction: column; gap: 0; }
  .research .card-icon { margin-bottom: 18px; }
}

/* People */
.people-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.people-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.people-grid + .people-group { margin-top: 48px; }
.person { flex-direction: row; gap: 20px; align-items: flex-start; }
.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(103, 232, 249, .55), transparent 60%),
    var(--navy-900);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(10, 126, 164, .25);
}
.person--lead .avatar { width: 68px; height: 68px; font-size: 22px; }
.person h3 { font-size: 1.15rem; margin-bottom: 8px; }
.person-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.person-link .i { width: 16px; height: 16px; color: var(--brand); opacity: .75; transition: opacity .2s; }
.person-link:hover { color: var(--brand); }
.person-link:hover .i { opacity: 1; }
.person p { font-size: .925rem; }
@media (max-width: 480px) {
  .person { flex-direction: column; gap: 16px; }
}

/* Investor panel */
.panel {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(34, 211, 238, .12), transparent 65%),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.panel::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
}
.panel h2 { max-width: 760px; }
.panel p { max-width: 860px; font-size: 1.0625rem; line-height: 1.7; margin-bottom: 28px; }

/* Services */
.service { padding: clamp(26px, 3vw, 34px); }
.service .eyebrow { margin-bottom: 0; }
.service h3 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 14px; }
.service .small {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}
.service p:not(.small) { margin-bottom: 16px; }

/* ---------- Back to top (mobile / tablet) ---------- */
.to-top {
  display: none;
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(103, 232, 249, .35);
  border-radius: 50%;
  background: rgba(7, 19, 39, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cyan-300);
  box-shadow: 0 10px 28px -8px rgba(7, 19, 39, .55), 0 0 0 4px rgba(34, 211, 238, .08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  -webkit-tap-highlight-color: transparent;
}
.to-top .i { width: 22px; height: 22px; stroke-width: 2.25; }
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
}
.to-top:active { transform: scale(.94); }
@media (max-width: 920px) {
  .to-top { display: inline-flex; }
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .8s var(--ease), translate .8s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; translate: none; }
  .js .console-track::after { transform: scaleX(1); }
  .flow span::after { display: none; }
}
