/* RAID Risk Management - shared styles for every page.
   Layout: a floating pill navigation over a deep-navy ground; each page opens
   with its own header band, then wide, quiet sections with rounded cards and
   a soft electric-blue glow taken from the RAID AI Security artwork. */
:root {
  --bg: #050b18;
  --bg-2: #08132a;
  --card: #0b1830;
  --card-hi: #102142;
  --border: rgba(140, 180, 255, .13);
  --border-hi: rgba(26, 155, 255, .55);
  --ink: #f1f5ff;
  --mute: #a3b3cf;
  --faint: #7f90ad;
  --blue: #1a9bff;
  --blue-2: #0563d6;
  --glow: rgba(26, 155, 255, .35);
  --ok: #3ddc97;
  --warn: #ffbf4d;
  --alert: #ff6b7a;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Quicksand", "Trebuchet MS", system-ui, sans-serif;
  --radius: 18px;
  --wrap: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased;
  padding-inline: 20px; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; text-wrap: balance; margin: 0; line-height: 1.12; }
p { margin: 0; }
.grad { background: linear-gradient(100deg, #7cc6ff 0%, var(--blue) 45%, #4a7dff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--mute); font-size: 1.15rem; max-width: 62ch; }
.muted { color: var(--mute); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue-2); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* eyebrow pill */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(26, 155, 255, .07); font: 600 13px/1 var(--body); color: #cfe3ff; letter-spacing: .01em; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  font: 700 15px/1 var(--body); padding: 15px 22px; border-radius: 999px; color: #fff; background: var(--blue-2);
  box-shadow: 0 8px 30px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.18); transition: background .15s, transform .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: #0b74f0; transform: translateY(-1px); }
.btn.ghost { background: rgba(255,255,255,.03); border-color: var(--border); box-shadow: none; color: var(--ink); }
.btn.ghost:hover { border-color: var(--border-hi); background: rgba(26,155,255,.08); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.link { color: var(--blue); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-top: 14px; }
.bar { max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 18px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(8, 19, 42, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg { width: 30px; height: 34px; flex: none; }
.logo b { display: block; font: 600 1.3rem/1 var(--logo); letter-spacing: .06em; }
.logo small { display: block; font: 500 .68rem/1.25 var(--logo); color: var(--mute); }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--mute); }
.menu a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.menu a[aria-current="page"] { color: var(--ink); background: rgba(26,155,255,.14); }
.bar .btn { padding: 12px 18px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.burger .x { display: none; }
.burger[aria-expanded="true"] .x { display: block; }
.burger[aria-expanded="true"] .l { display: none; }
.drawer { max-width: var(--wrap); margin: 8px auto 0; padding: 10px; border: 1px solid var(--border); border-radius: 22px; background: rgba(8,19,42,.96); backdrop-filter: blur(16px); }
.drawer a { display: flex; justify-content: space-between; padding: 15px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.drawer a[aria-current="page"] { background: rgba(26,155,255,.14); }
.drawer a::after { content: "→"; color: var(--blue); }
.drawer .btn { margin-top: 8px; width: 100%; justify-content: center; }
.drawer .btn::after { content: none; }
/* NervOS link in the NervOS look: its mark on black, white "Nerv", teal "OS" */
.nerv { --teal: #19c9be; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; text-decoration: none;
  background: #000; border: 1px solid rgba(25, 201, 190, .45); box-shadow: 0 0 18px -6px rgba(25, 201, 190, .55); transition: border-color .15s, box-shadow .15s; white-space: nowrap; }
.nerv:hover { border-color: var(--teal); box-shadow: 0 0 22px -4px rgba(25, 201, 190, .7); }
.nerv img { width: 28px; height: 28px; border-radius: 50%; }
.nerv-word { font: 700 15px/1 "Sora", var(--body); color: #fff; letter-spacing: -.01em; }
.nerv-word em { font-style: normal; color: var(--teal); }
.nerv-out { color: var(--teal); font-size: 13px; font-weight: 700; }
.drawer .nerv-wide { display: flex; margin-top: 6px; padding: 10px 14px 10px 10px; border-radius: 14px; }
.drawer .nerv-wide::after { content: none; }
.drawer .nerv-wide .nerv-out { margin-left: auto; }
.drawer .nerv-wide img { width: 32px; height: 32px; }
.drawer .nerv-wide .nerv-word { font-size: 17px; }

@media (max-width: 1100px) {
  .menu, .bar > .btn, .bar > .nerv { display: none; }
  .burger { display: grid; }
}

/* ---------- page header (inner pages) ---------- */
.page-head { position: relative; padding-block: 88px 64px; text-align: center; }
.page-head::before { content: ""; position: absolute; inset: -120px -20px 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 20%, rgba(5, 99, 214, .35), transparent 70%),
              linear-gradient(rgba(140,180,255,.05) 1px, transparent 1px) 0 0 / 56px 56px,
              linear-gradient(90deg, rgba(140,180,255,.05) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.page-head .wrap { display: grid; justify-items: center; gap: 20px; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); max-width: 18ch; }
.page-head .lede { margin-inline: auto; }
.crumbs { font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.subnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.subnav a { padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--mute); background: rgba(255,255,255,.02); }
.subnav a:hover { color: var(--ink); border-color: var(--border-hi); }

/* ---------- sections ---------- */
.sec { padding-block: 96px; }
.sec.tight { padding-block: 64px; }
.sec-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 760px; }
.sec-head.center { text-align: center; justify-items: center; margin-inline: auto; }
.sec-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
[id] { scroll-margin-top: 110px; }
@media (max-width: 700px) { .sec { padding-block: 64px; } .page-head { padding-block: 56px 40px; } }

/* cards */
.card { position: relative; background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; min-width: 0; }
a.card { text-decoration: none; display: block; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(26,155,255,.12); border: 1px solid rgba(26,155,255,.35); box-shadow: 0 0 24px -6px var(--glow); }
.icon svg { width: 26px; height: 26px; stroke: #9fd3ff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--mute); font-size: 1rem; }
.card .link { margin-top: 18px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; font-size: .97rem; color: #d6e2f7; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: rgba(26,155,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a9bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- home hero ---------- */
.hero { position: relative; padding-block: 72px 40px; }
.hero::before { content: ""; position: absolute; inset: -140px -20px -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 55% at 75% 40%, rgba(5, 99, 214, .45), transparent 70%),
              radial-gradient(30% 40% at 10% 10%, rgba(26, 155, 255, .12), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; min-width: 0; }
.hero-art img { width: 100%; aspect-ratio: 760 / 980; object-fit: cover; border-radius: 28px;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: rgba(8, 19, 42, .78); border: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); font-size: 14px; }
.float b { display: block; font-size: 14px; }
.float span { color: var(--mute); font-size: 12.5px; }
.float .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.float.f1 { left: 0; top: 16%; } .float.f1 .dot { background: var(--alert); box-shadow: 0 0 12px var(--alert); }
.float.f2 { right: 0; top: 46%; } .float.f2 .dot { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.float.f3 { left: 8%; bottom: 10%; } .float.f3 .dot { background: var(--blue); box-shadow: 0 0 12px var(--blue); }
@media (prefers-reduced-motion: no-preference) { .float { animation: bob 6s ease-in-out infinite; } .float.f2 { animation-delay: -2s; } .float.f3 { animation-delay: -4s; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 520px; justify-self: center; width: 100%; } }
@media (max-width: 480px) { .float { position: static; margin-top: 10px; } .hero-art img { margin-bottom: 6px; } }

/* proof strip */
.strip { border-block: 1px solid var(--border); padding-block: 26px; margin-inline: -20px; padding-inline: 20px; background: rgba(255,255,255,.015); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 18px 32px; }
@media (max-width: 980px) { .strip .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .strip .wrap { grid-template-columns: 1fr; } }
.strip div { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #d6e2f7; }
.strip svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-block: 16px 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev > :first-child { order: 0; } }

/* console mock: an example alert queue */
.console { border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: #071226; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7), 0 0 0 1px rgba(26,155,255,.08); }
.console-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--mute); }
.console-top .live { display: inline-flex; gap: 8px; align-items: center; color: var(--ok); font-weight: 700; }
.console-top .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.alert-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.alert-row:last-of-type { border-bottom: 0; }
.alert-row small { display: block; color: var(--mute); font-size: 13px; }
.alert-row time { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.tag { font: 700 11.5px/1 var(--body); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.tag.r { color: #ffd0d5; background: rgba(255,107,122,.16); }
.tag.y { color: #ffe3ad; background: rgba(255,191,77,.15); }
.tag.g { color: #c3f5df; background: rgba(61,220,151,.14); }
.tag.b { color: #cfe6ff; background: rgba(26,155,255,.16); }
.console-foot { padding: 10px 18px; font-size: 12px; color: var(--faint); border-top: 1px solid var(--border); }

/* numbered steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 18px;
  font: 700 16px/1 var(--display); color: #fff; background: var(--blue-2); box-shadow: 0 0 20px -4px var(--glow); }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--mute); font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* callout */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 28px 30px; border-radius: var(--radius);
  border: 1px solid rgba(26,155,255,.35); background: linear-gradient(120deg, rgba(5,99,214,.22), rgba(26,155,255,.04)); }
.callout h3 { font-size: 1.35rem; }
.callout p { color: var(--mute); }
@media (max-width: 640px) { .callout { grid-template-columns: 1fr; } }

/* service rows on the services page */
.svc-group + .svc-group { margin-top: 88px; }
.svc-group > header { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px 56px; align-items: end; margin-bottom: 32px; }
.svc-group > header h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 14px; }
@media (max-width: 860px) { .svc-group > header { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.faq details[open] { border-color: rgba(26,155,255,.4); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 24px; font: 600 1.06rem/1.4 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(26,155,255,.14); color: var(--blue); font: 600 20px/1 var(--body); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 24px; color: var(--mute); }

/* CTA band */
.cta { position: relative; overflow: hidden; text-align: center; padding: 72px 28px; border-radius: 28px; border: 1px solid rgba(26,155,255,.35);
  background: radial-gradient(60% 120% at 50% 0%, rgba(5,99,214,.55), rgba(5,99,214,.08) 70%), var(--bg-2); }
.cta .wrap { display: grid; justify-items: center; gap: 18px; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; }
.cta .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* chips list (platform modules) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 10px 15px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.02); font-weight: 600; font-size: 14.5px; color: #d6e2f7; }
.chips span.on { border-color: rgba(26,155,255,.5); background: rgba(26,155,255,.12); color: #fff; }

/* contact page */
.contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .opts legend { font-weight: 700; font-size: 14px; color: #d6e2f7; }
.field .opt { font-weight: 500; color: var(--faint); }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem/1.4 var(--body); color: var(--ink); background: #061024; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,155,255,.18); }
.opts { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opts legend { margin-bottom: 10px; padding: 0; }
.opts label { cursor: pointer; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: inline-block; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--mute); transition: all .15s; }
.opts input:checked + span { border-color: var(--blue); color: #fff; background: rgba(26,155,255,.2); }
.opts input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.err { color: #ffb3bc; font-weight: 600; }
.msg { display: grid; gap: 10px; padding: 20px; border-radius: 14px; border: 1px solid rgba(61,220,151,.4); background: rgba(61,220,151,.08); }
.msg.fail { border-color: rgba(255,191,77,.45); background: rgba(255,191,77,.07); }
.msg pre { margin: 0; white-space: pre-wrap; font: 500 .92rem/1.5 var(--body); background: #061024; padding: 14px; border-radius: 10px; border: 1px solid var(--border); max-height: 220px; overflow: auto; }
.msg .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.small-btn { font: 700 13px/1 var(--body); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--ink); cursor: pointer; }
.small-btn:hover { border-color: var(--border-hi); }
.reach { display: grid; gap: 14px; }
.reach .card { padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; }
.reach .icon { margin: 0; grid-row: span 2; width: 46px; height: 46px; }
.reach small { color: var(--mute); font-size: 13.5px; font-weight: 600; }
.reach a, .reach .val { font: 600 1.15rem/1.3 var(--display); text-decoration: none; overflow-wrap: anywhere; }
.reach a:hover { color: var(--blue); }

/* ---------- footer ---------- */
.site-foot { margin-top: 40px; border-top: 1px solid var(--border); padding-block: 56px 40px; margin-inline: -20px; padding-inline: 20px; background: #040915; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-grid h4 { font: 700 14px/1 var(--body); color: var(--ink); margin-bottom: 16px; letter-spacing: .02em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--mute); text-decoration: none; font-size: 15px; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid p { color: var(--mute); font-size: 15px; margin-top: 16px; max-width: 34ch; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 14px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* gentle entrance; content is visible at rest */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
}
@keyframes rise { from { transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- home: the face with the six AI services around it ---------- */
.hero-face { padding-block: 56px 32px; }
.hero-face::before { background: radial-gradient(45% 50% at 50% 62%, rgba(5, 99, 214, .5), transparent 70%), radial-gradient(30% 30% at 10% 10%, rgba(26,155,255,.1), transparent 70%); }
.hero-face .rain { position: absolute; inset: -100px -20px 0; width: calc(100% + 40px); height: calc(100% + 100px); z-index: -1; opacity: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.hero-face .wrap { display: block; }
.hero-intro { display: grid; justify-items: center; text-align: center; gap: 18px; max-width: 860px; margin-inline: auto; }
.hero-intro h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); }
.hero-intro .lede { font-size: 1.2rem; color: #c9d6ee; text-wrap: balance; }
.hero-intro .lede { margin-inline: auto; }
.hero-intro .ctas { justify-content: center; }

.stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr) minmax(0, .9fr); align-items: center; gap: 0; margin-top: 28px; }
.side { display: grid; gap: 22px; position: relative; z-index: 2; }
.core { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.face-wrap { position: relative; width: 74%; aspect-ratio: 760 / 980; animation: drift 9s ease-in-out infinite; }
.face-wrap img { width: 100%; height: 100%; object-fit: cover; animation: breathe 7s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.scan { position: absolute; left: 12%; right: 12%; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #7cc6ff, transparent);
  box-shadow: 0 0 18px 4px rgba(26,155,255,.55); animation: scan 4.5s ease-in-out infinite; }
.ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring.r1 { inset: 4%; border: 1px solid rgba(26,155,255,.28); }
.ring.r1::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--blue); border-right-color: rgba(26,155,255,.4); animation: spin 10s linear infinite; }
.ring.r2 { inset: 11%; border: 1px dashed rgba(124,198,255,.22); animation: spin 40s linear infinite reverse; }
.ring.r3 { inset: -2%; border: 1px solid rgba(26,155,255,.12); }
.ring.r3::after { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.ring.r3 { animation: spin 22s linear infinite; }

.hp-panel { position: relative; display: grid; gap: 6px; padding: 18px 20px; text-decoration: none; border-radius: 16px;
  background: rgba(8, 19, 42, .78); border: 1px solid rgba(26,155,255,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 30px -12px var(--glow); transition: border-color .2s, transform .2s, box-shadow .2s; }
.hp-panel:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 0 36px -8px var(--glow); }
/* connector line and node towards the face */
.hp-panel::after { content: ""; position: absolute; top: 50%; width: clamp(24px, 4vw, 64px); height: 1px; background: linear-gradient(90deg, rgba(26,155,255,.8), rgba(26,155,255,.15)); }
.hp-panel::before { content: ""; position: absolute; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: blink 2.4s infinite; }
.hp-panel.l::after { left: 100%; }
.hp-panel.l::before { left: calc(100% + clamp(24px, 4vw, 64px) - 4px); }
.hp-panel.r::after { right: 100%; background: linear-gradient(270deg, rgba(26,155,255,.8), rgba(26,155,255,.15)); }
.hp-panel.r::before { right: calc(100% + clamp(24px, 4vw, 64px) - 4px); }
.side .hp-panel.l:nth-child(2) { margin-right: -10%; }
.side .hp-panel.r:nth-child(2) { margin-left: -10%; }
.side .hp-panel:nth-child(2)::before { animation-delay: -.8s; } .side .hp-panel:nth-child(3)::before { animation-delay: -1.6s; }
.hp-top { display: flex; align-items: center; gap: 10px; }
.hp-top b { font: 600 1rem/1.2 var(--display); color: var(--ink); }
.hp-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(26,155,255,.14); border: 1px solid rgba(26,155,255,.35); }
.hp-ic svg { width: 18px; height: 18px; stroke: #9fd3ff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-k { font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #6fb8ff; margin-top: 6px; }
.hp-v { font: 700 1.6rem/1.1 var(--display); color: var(--blue); font-variant-numeric: tabular-nums; }
.hp-v .hp-hi { color: var(--alert); }
.hp-v .hp-ok { font-size: 1rem; color: var(--ok); }
.hp-bars { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 4px; }
.hp-bars i { height: 7px; border-radius: 2px; background: var(--blue-2); }
.hp-bars i.off { background: rgba(26,155,255,.15); }
.hp-spark { width: 100%; height: 30px; }
.hp-spark path { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 3.5s ease-out forwards, pulse 3s ease-in-out 3.5s infinite; }
.hp-line { display: block; height: 6px; border-radius: 3px; background: rgba(26,155,255,.15); overflow: hidden; margin-top: 4px; }
.hp-line i { display: block; width: 83%; height: 100%; background: linear-gradient(90deg, var(--blue-2), var(--blue)); animation: grow 2.5s ease-out; }
.stage-note { text-align: center; color: var(--faint); font-size: 14px; margin-top: 18px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { 50% { transform: translateY(-10px); } }
@keyframes breathe { 50% { transform: scale(1.03); filter: brightness(1.12); } }
@keyframes scan { 0% { top: 8%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 90%; opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes grow { from { width: 0; } }

@media (max-width: 1060px) {
  .stage { grid-template-columns: 1fr 1fr; gap: 16px; }
  .core { grid-column: 1 / -1; order: -1; max-width: 520px; width: 100%; justify-self: center; }
  .side { gap: 16px; }
  .hp-panel::after, .hp-panel::before { display: none; }
  .side .hp-panel.l:nth-child(2), .side .hp-panel.r:nth-child(2) { margin: 0; }
}
@media (max-width: 560px) {
  .stage { gap: 10px; margin-top: 28px; }
  .side { gap: 10px; }
  .hp-panel { padding: 13px 13px 14px; border-radius: 14px; gap: 4px; }
  .hp-top { gap: 8px; align-items: flex-start; }
  .hp-top b { font-size: .86rem; }
  .hp-ic { width: 28px; height: 28px; border-radius: 8px; }
  .hp-ic svg { width: 15px; height: 15px; }
  .hp-k { font-size: 9.5px; letter-spacing: .08em; }
  .hp-v { font-size: 1.25rem; }
  .hp-v .hp-ok { font-size: .85rem; }
  .hp-spark { height: 22px; }
}

/* trimmed layouts */
.svc-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 24px; }
.svc-group + .svc-group { margin-top: 64px; }
.steps.next { grid-template-columns: 1fr; gap: 12px; }
.steps.next li { display: flex; align-items: center; gap: 14px; }
.steps.next li::before { margin-bottom: 0; width: 34px; height: 34px; font-size: 14px; flex: none; }
.g4 .card { padding: 26px; }
.g4 .card h3 { font-size: 1.15rem; }
