/* Regulyst website v4 – reference build, styled to match the existing regulyst.com design system. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy: #071428;
  --navy-mid: #0a1f50;
  --blue: #0d5ea3;
  --blue-light: #1a8cd8;
  --blue-bright: #2196f3;
  --sky: #4fc3f7;
  --white: #ffffff;
  --muted: rgba(255,255,255,0.62);
  --border: rgba(255,255,255,0.09);
  --card-bg: rgba(255,255,255,0.04);
  --grad-hero: linear-gradient(135deg, #071428 0%, #0a1f50 45%, #0d5ea3 100%);
  --grad-card: linear-gradient(135deg, #0a1628 0%, #1565c0 100%);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 76px;
  --tabs-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--navy); color: var(--white); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.625rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 600; line-height: 1.3; }
p { font-size: 1rem; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(33,150,243,.45); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tc { text-align: center; }
.muted { color: var(--muted); }
section[id], div[id] { scroll-margin-top: var(--header-h); }
.feature[id] { scroll-margin-top: calc(var(--header-h) + var(--tabs-h)); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 8px; font-size: 0.93rem; font-weight: 600; font-family: var(--font); cursor: pointer; border: none; text-decoration: none; transition: all .2s ease; white-space: nowrap; }
.btn-primary { background: var(--blue-bright); color: #fff; position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); transform: translateX(-100%); transition: transform .6s ease; pointer-events: none; }
.btn-primary:hover { background: #1976d2; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(33,150,243,.4); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ---------- Header (fixed, transparent until scrolled) ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.stuck, .site-header.menu-open { background: rgba(7,20,40,.93); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 44px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { height: 36px; width: auto; max-width: none; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .88rem; font-weight: 500; transition: color .2s; position: relative; padding-bottom: 4px; }
.nav-links a::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--sky); transform: scaleX(0); transition: transform .25s; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; width: 44px; height: 44px; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--grad-hero); padding: 120px 0 88px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -15%; right: -8%; width: 640px; height: 640px; background: radial-gradient(circle, rgba(33,150,243,.14) 0%, transparent 68%); pointer-events: none; }
.hero::after { content: ""; position: absolute; bottom: -12%; left: -6%; width: 440px; height: 440px; background: radial-gradient(circle, rgba(13,94,163,.18) 0%, transparent 70%); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(79,195,247,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(79,195,247,.06) 1px, transparent 1px); background-size: 60px 60px; -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, black 30%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 40%, black 30%, transparent 75%); pointer-events: none; z-index: 0; animation: hero-grid-drift 40s linear infinite; }
.hero-aura { position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: 900px; height: 600px; background: radial-gradient(50% 40% at 30% 40%, rgba(33,150,243,.25) 0%, transparent 60%), radial-gradient(50% 40% at 70% 60%, rgba(79,195,247,.18) 0%, transparent 60%); filter: blur(60px); pointer-events: none; z-index: 0; animation: hero-aura-drift 20s ease-in-out infinite; }
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 780px; margin: 0 auto; padding-top: 32px; }
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.08rem; color: var(--muted); max-width: 560px; margin-bottom: 38px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
@keyframes hero-grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 60px 60px, 60px 60px; } }
@keyframes hero-aura-drift { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-46%) translateY(20px); } }

/* ---------- Sections ---------- */
.why, .values, .built, .platform, .frameworks, .pilot { position: relative; }
.why::after, .values::after, .built::after, .platform::after, .frameworks::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60%; max-width: 720px; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(79,195,247,.25) 50%, transparent 100%); pointer-events: none; z-index: 1; }
.why { padding: 108px 0; background: linear-gradient(#071428 0%, #071e3d 100%); }
.built { padding: 108px 0; background: linear-gradient(135deg, #071e3d 0%, #0a2d6e 100%); }
.values { padding: 108px 0; background: linear-gradient(#071428 0%, #071e3d 100%); }
.platform { padding: 108px 0 40px; background: linear-gradient(#071e3d 0%, #071428 100%); }
.frameworks { padding: 88px 0; background: linear-gradient(#071428 0%, #071e3d 100%); }
.pilot { padding: 108px 0; background: linear-gradient(135deg, #071428 0%, #0a2550 50%, #071428 100%); }

.label { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.section-head { margin-bottom: 58px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.section-head.wide p { max-width: 640px; }

/* Challenge cards */
.why-grid, .values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.why-card, .val-card { position: relative; isolation: isolate; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.why-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; padding: 32px 28px; box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35), 0 24px 56px -12px rgba(0,0,0,.5); }
.why-card:hover { border-color: rgba(33,150,243,.38); transform: translateY(-5px); box-shadow: 0 2px 4px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.5), 0 32px 72px -16px rgba(13,94,163,.35); }
.why-icon { width: 48px; height: 48px; background: rgba(96,165,250,.15); border: 1px solid rgba(96,165,250,.25); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #8dd5f8; margin-bottom: 20px; }
.why-card h3, .val-card h3 { margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: .93rem; }

/* Approach cards */
.val-card { background: var(--grad-card); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 38px 32px; }
.val-card:hover { transform: translateY(-5px); box-shadow: 0 32px 72px -16px rgba(13,94,163,.45); }
.val-card p { color: rgba(255,255,255,.72); font-size: .93rem; }
.val-card .why-icon { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }

/* Who it's for */
.built-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.built h2 { margin-bottom: 18px; }
.built .desc { color: var(--muted); margin-bottom: 0; }
.aud-head { font-size: .95rem; font-weight: 700; margin-bottom: 18px; }
.aud-list { display: flex; flex-direction: column; gap: 14px; }
.aud-list li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,.83); font-size: .94rem; }
.ck { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; background: rgba(33,150,243,.18); border: 1px solid rgba(33,150,243,.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--sky); font-size: 10px; font-weight: 800; }

/* ---------- Platform / features ---------- */
.platform-intro { color: var(--muted); font-size: 1.04rem; max-width: 640px; margin: 0 auto 40px; }
.feature-tabs { position: sticky; top: var(--header-h); z-index: 900; background: rgba(7,20,40,.93); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-tabs ul { margin: 0 auto; max-width: 1200px; padding: 12px 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.feature-tabs a { display: block; white-space: nowrap; text-decoration: none; padding: 8px 18px; border-radius: 100px; font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.14); transition: background .2s, border-color .2s, color .2s; }
.feature-tabs a:hover { color: #fff; border-color: rgba(79,195,247,.5); }
.feature-tabs a[aria-current="true"] { background: linear-gradient(135deg, rgba(33,150,243,.35), rgba(79,195,247,.18)); border-color: rgba(33,150,243,.6); color: #fff; box-shadow: 0 0 20px rgba(33,150,243,.18); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 76px; align-items: center; padding: 100px 0; }
.feature + .feature { border-top: 1px solid rgba(255,255,255,.06); }
.feature.reverse { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.feature.reverse .feature-copy { order: 2; }
.feature.reverse .feature-visual { order: 1; }
.feature-copy, .feature-visual { min-width: 0; }
.feat-tag { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, rgba(33,150,243,.18), rgba(79,195,247,.08)); border: 1px solid rgba(33,150,243,.35); color: #8dd5f8; padding: 5px 14px; border-radius: 100px; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px; box-shadow: 0 0 20px rgba(33,150,243,.12); }
.feature h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.feat-lead { color: var(--muted); margin-bottom: 22px; }
.feat-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.feat-list li { display: flex; align-items: flex-start; gap: 9px; color: rgba(255,255,255,.8); font-size: .9rem; }
.feat-list li::before { content: "→"; color: var(--sky); font-size: .82rem; line-height: 1.75; flex-shrink: 0; }
.text-link { display: inline-flex; font-size: .93rem; font-weight: 600; color: #fff; text-decoration: none; }
.text-link:hover { color: var(--sky); }

.frame { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(13,94,163,.25); border: 1px solid rgba(255,255,255,.14); }
.frame-bar { height: 34px; background: #e4eaf3; display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.frame-bar span { width: 11px; height: 11px; border-radius: 999px; background: #b8c4d6; }
.frame-bar span.url { margin-left: 16px; width: 300px; max-width: 40%; height: 20px; background: #f3f6fa; }
.ratio { position: relative; width: 100%; overflow: hidden; }
.ratio > picture, .ratio > img { position: absolute; left: 0; top: 0; width: 100%; display: block; }
.ratio > picture img { width: 100%; display: block; }

/* Regulatory programmes walkthrough */
.feature.programmes { grid-template-columns: 1fr; gap: 44px; padding-top: 72px; }
.programmes-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.programmes-top .feature-copy { flex: 1 1 520px; }
.programmes-top .feat-lead { max-width: 600px; margin-bottom: 0; }
.programmes-top .side { flex: 0 1 420px; }
.programmes-top .side .feat-list { margin-bottom: 18px; }
.ratio.walk { padding-bottom: 46.54%; background: #f4f6fa; }
.walk .shot { transition: opacity .6s ease; }
.walk .shot-detail { opacity: 0; }
.walk[data-step="3"] .shot-hierarchy { opacity: 0; }
.walk[data-step="3"] .shot-detail { opacity: 1; }
.spot { position: absolute; border: 2px solid var(--sky); border-radius: 10px; box-shadow: 0 0 0 9999px rgba(6,18,40,.55), 0 0 24px rgba(79,195,247,.55); transition: left .7s var(--ease), top .7s var(--ease), width .7s var(--ease), height .7s var(--ease); pointer-events: none; left: .2%; top: 43.8%; width: 29.4%; height: 4.3%; }
.steps { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { text-align: left; cursor: pointer; font-family: var(--font); padding: 18px 20px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border); color: #fff; display: flex; gap: 14px; align-items: flex-start; transition: background .3s, border-color .3s, box-shadow .3s; }
.step:hover { border-color: rgba(33,150,243,.38); }
.step[aria-pressed="true"] { background: linear-gradient(135deg, rgba(13,42,94,.9), rgba(21,101,192,.45)); border-color: rgba(79,195,247,.6); box-shadow: 0 0 24px rgba(33,150,243,.2); }
.step-n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s; }
.step[aria-pressed="true"] .step-n { background: var(--sky); color: var(--navy); }
.step-text { display: flex; flex-direction: column; gap: 4px; }
.step-title { font-size: .98rem; font-weight: 700; }
.step-line { font-size: .84rem; line-height: 1.45; color: var(--muted); }

/* Vendor (static) */
.vendor-card { width: 100%; max-width: 560px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 60px rgba(13,94,163,.25), 0 0 0 1px rgba(255,255,255,.14); }
.vendor-card .ratio { padding-bottom: 114.6%; }

/* Layered pairs (board, register) */
.layered { position: relative; width: 100%; }
.layered .base, .layered .over { position: absolute; border-radius: 12px; overflow: hidden; }
.layered .base { left: 0; top: 0; box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 60px rgba(13,94,163,.22); border: 1px solid rgba(255,255,255,.14); }
.layered .over { right: 0; box-shadow: 0 28px 60px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.22); }
.layered .base img, .layered .over img { width: 100%; }
.layered.board { padding-bottom: 42%; }
.layered.board .base { width: 92%; }
.layered.board .over { top: 79%; width: 72%; }
.layered.roi { padding-bottom: 56%; }
.layered.roi .base { width: 90%; }
.layered.roi .over { top: 52%; width: 48%; }

/* Risk heat map + lifecycle */
.heat-card { border-radius: 16px; background: #fff; padding: 22px 22px 14px; box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 60px rgba(13,94,163,.22), 0 0 0 1px rgba(255,255,255,.14); }
.ratio.heat { padding-bottom: 59.62%; }
.heat .before { background: #fff; clip-path: inset(0 0% 0 0); transition: clip-path .9s var(--ease); }
.heat .divider { position: absolute; top: 0; bottom: 0; left: 100%; width: 2px; margin-left: -1px; background: var(--blue-bright); box-shadow: 0 0 14px rgba(33,150,243,.6); opacity: 0; transition: left .9s var(--ease), opacity .4s; }
.rail-wrap { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.rail-labels { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.rail { position: relative; }
.rail-track, .rail-fill { position: absolute; left: 8.333%; top: 13px; height: 2px; }
.rail-track { width: 83.333%; background: rgba(255,255,255,.14); }
.rail-fill { width: 0; background: var(--sky); box-shadow: 0 0 10px rgba(79,195,247,.6); transition: width .9s var(--ease); }
.stages { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.stage { cursor: pointer; font-family: var(--font); background: none; border: 0; padding: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.45); transition: color .3s; }
.stage-dot { width: 28px; height: 28px; border-radius: 999px; background: var(--navy); border: 2px solid rgba(255,255,255,.25); color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .3s, border-color .3s, box-shadow .3s; }
.stage-name { font-size: .78rem; line-height: 1.35; font-weight: 500; text-align: center; }
.stage.done, .stage.active { color: #fff; }
.stage.done .stage-dot { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.stage.active .stage-dot { background: #fff; border-color: var(--sky); color: var(--navy); box-shadow: 0 0 0 6px rgba(79,195,247,.18); }
.stage.active .stage-name { font-weight: 700; }

/* AI assistant */
.feature.ai { padding-bottom: 120px; }
.ai-visual { display: flex; flex-direction: column; gap: 72px; }
.ai-stage { position: relative; margin-right: 6%; }
.ai-frame .frame-bar { height: 30px; padding: 0 14px; }
.ai-frame .frame-bar span { width: 10px; height: 10px; }
.ai-screen { padding-bottom: 55.6%; container-type: inline-size; }
.ai-typed { position: absolute; left: 4.1%; top: 16.5%; width: 83.6%; height: 6.9%; background: #fff; display: flex; align-items: center; padding-left: .7%; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: 1.5cqw; color: #1f2937; white-space: nowrap; overflow: hidden; }
.ai-caret { display: inline-block; width: .12cqw; min-width: 1px; height: 1.9cqw; margin-left: .15cqw; background: #2476a0; opacity: 0; }
.ai-ask { position: absolute; left: 89.4%; top: 15.6%; width: 8.7%; height: 8.7%; border-radius: .6cqw; box-shadow: 0 0 0 .35cqw rgba(79,195,247,0); transition: box-shadow .3s; }
.ai-ask.on { box-shadow: 0 0 0 .35cqw rgba(79,195,247,.9); }
.ai-mask { position: absolute; left: 0; top: 40.8%; width: 100%; height: 59.2%; background: #f4f6fb; transition: opacity .7s ease; padding: 2.5cqw 3.2cqw; display: flex; flex-direction: column; gap: 1.6cqw; }
.ai-mask.hidden { opacity: 0; }
.ai-mask i { display: block; border-radius: .4cqw; opacity: 0; background: linear-gradient(90deg, #e6ebf3 25%, #f1f4f9 50%, #e6ebf3 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.ai-mask.loading i { opacity: 1; }
.ai-mask i:nth-child(1) { width: 22%; height: 1.6cqw; }
.ai-mask i:nth-child(2) { width: 88%; height: 1.4cqw; }
.ai-mask i:nth-child(3), .ai-mask i:nth-child(4) { width: 100%; height: 10cqw; border-radius: .8cqw; }
.run { position: absolute; right: -6%; bottom: -16%; width: 46%; border-radius: 18px; background: linear-gradient(135deg, rgba(13,42,94,.96), rgba(10,31,80,.96)); border: 1px solid rgba(79,195,247,.45); box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 40px rgba(79,195,247,.15); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.run.show { opacity: 1; transform: none; }
.run-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.run-name { display: flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: #fff; white-space: nowrap; }
.run-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--sky); }
.run.working .run-dot { animation: pulse 1.2s ease-in-out infinite; }
.run.complete .run-dot { background: #34d399; }
.run-status { font-size: .72rem; font-weight: 600; color: var(--sky); white-space: nowrap; }
.run.complete .run-status { color: #6ee7b7; }
.run-steps { display: flex; flex-direction: column; gap: 9px; }
.run-step { display: flex; align-items: flex-start; gap: 12px; opacity: .45; transition: opacity .4s; }
.run-step.started { opacity: 1; }
.run-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; display: flex; align-items: center; justify-content: center; }
.run-icon::before { content: ""; width: 14px; height: 14px; border-radius: 999px; border: 2px solid rgba(255,255,255,.18); }
.run-step.running .run-icon::before { border-color: rgba(79,195,247,.25); border-top-color: var(--sky); animation: spin .8s linear infinite; }
.run-step.done .run-icon::before { content: "✓"; width: 20px; height: 20px; border: 0; background: var(--sky); color: var(--navy); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.run-text { display: flex; flex-direction: column; gap: 2px; }
.run-title { font-size: .84rem; font-weight: 600; color: #fff; }
.run-detail { font-size: .78rem; line-height: 1.35; color: var(--muted); }
.guards { display: flex; flex-wrap: wrap; gap: 10px; }
.guards li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 100px; border: 1px solid rgba(33,150,243,.35); background: linear-gradient(135deg, rgba(33,150,243,.14), rgba(79,195,247,.05)); font-size: .8rem; font-weight: 600; color: #dff3fd; }
.guards li span { color: var(--sky); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(79,195,247,.6); } 50% { box-shadow: 0 0 0 6px rgba(79,195,247,0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ---------- Frameworks ---------- */
.fw-row { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.fw-badge { width: 112px; height: 112px; border-radius: 50%; background: linear-gradient(135deg, #0d5ea3, #1a8cd8); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 8px 32px rgba(13,94,163,.42); padding: 10px; position: relative; transition: transform .3s ease, box-shadow .3s ease; animation: fw-breathe 4s ease-in-out infinite; }
.fw-badge:nth-child(2) { animation-delay: .4s; }
.fw-badge:nth-child(3) { animation-delay: .8s; }
.fw-badge:nth-child(4) { animation-delay: 1.2s; }
.fw-badge:nth-child(5) { animation-delay: 1.6s; }
.fw-badge:nth-child(6) { animation-delay: 2s; }
.fw-badge:hover { transform: translateY(-7px) scale(1.06); box-shadow: 0 18px 52px rgba(13,94,163,.6); }
.fw-label { font-size: .82rem; font-weight: 800; line-height: 1.2; }
.fw-sub { font-size: .62rem; font-weight: 600; line-height: 1.25; opacity: .85; margin-top: 3px; }
.fw-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@keyframes fw-breathe { 0%, 100% { box-shadow: 0 8px 32px rgba(13,94,163,.42); } 50% { box-shadow: 0 8px 40px rgba(26,140,216,.6); } }

/* ---------- Contact (pilot) ---------- */
.pilot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.pilot h2 { margin-bottom: 18px; }
.pilot .desc { color: var(--muted); }
.pilot-form { background: linear-gradient(135deg, rgba(13,42,94,.82), rgba(21,101,192,.28)); border: 1px solid rgba(33,150,243,.24); border-radius: 24px; padding: 40px; }
.pilot-form h3 { margin-bottom: 20px; }
.f-group { display: flex; flex-direction: column; gap: 11px; margin-bottom: 14px; }
.f-input { width: 100%; padding: 12px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: #fff; font-size: .93rem; font-family: var(--font); outline: none; transition: border-color .2s, box-shadow .2s; }
.f-input::placeholder { color: rgba(255,255,255,.32); }
.f-input:focus { border-color: rgba(33,150,243,.55); box-shadow: 0 0 0 3px rgba(33,150,243,.12); }
textarea.f-input { resize: vertical; min-height: 100px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pilot-form .btn { width: 100%; padding: 13px 26px; }
.form-status { font-size: .9rem; line-height: 1.5; font-weight: 600; margin-top: 12px; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: #6ee7b7; }
.form-status.err { color: #fca5a5; }
.form-status a { color: inherit; }
.f-note { font-size: .76rem; color: rgba(255,255,255,.38); margin-top: 10px; text-align: center; }
.f-note a { color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.footer { background: #040c1a; padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { color: rgba(255,255,255,.46); font-size: .86rem; margin-top: 12px; max-width: 260px; line-height: 1.65; }
.footer-col h2 { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 18px; line-height: 1.4; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.48); text-decoration: none; font-size: .86rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { color: rgba(255,255,255,.32); font-size: .8rem; }
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Policy pages ---------- */
.policy { padding: 150px 0 108px; background: linear-gradient(#071428 0%, #071e3d 100%); }
.policy article { max-width: 760px; margin: 0 auto; }
.policy .updated { margin-top: 12px; color: var(--muted); font-size: .93rem; }
.policy h2 { margin-top: 44px; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.policy p, .policy li { font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,.8); }
.policy p { margin-top: 14px; }
.policy ul { margin: 14px 0 0; padding-left: 22px; list-style: disc; }
.policy li + li { margin-top: 8px; }
.policy a { color: var(--sky); }
.policy strong { color: #fff; }
.table-wrap { margin-top: 16px; overflow-x: auto; }
.policy table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.55; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.policy th { background: rgba(255,255,255,.05); font-weight: 700; color: #fff; }

/* ---------- Reveal on scroll ---------- */
.js .fade-up { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .fade-up.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .built-grid, .pilot-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 48px; }
  .feature.reverse .feature-copy, .feature.reverse .feature-visual { order: 0; }
  .feature-copy { max-width: 720px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .why-grid > :last-child:nth-child(odd), .values-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .ai-stage { margin-right: 0; }
  .run { right: 2%; bottom: -14%; width: 50%; }
}

/* ---------- Phone ---------- */
@media (max-width: 768px) {
  :root { --header-h: 68px; --tabs-h: 58px; }
  .site-header { padding: 12px 0; }
  .brand img { height: 30px; }
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: rgba(7,20,40,.98); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); padding: 8px 24px 24px; flex-direction: column; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a:not(.btn) { padding: 14px 0; color: rgba(255,255,255,.85); text-decoration: none; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--border); }
  .mobile-menu .btn { margin-top: 18px; }
  .hero { padding: 104px 0 72px; }
  .hero-inner { padding-top: 8px; }
  .hero-grid, .hero-aura { animation: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .why, .built, .values, .pilot { padding: 76px 0; }
  .platform { padding: 76px 0 24px; }
  .frameworks { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .why-grid, .values-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-card { padding: 26px 22px; }
  .val-card { padding: 30px 24px; }
  .feature-tabs ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 10px 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .feature-tabs ul::-webkit-scrollbar { display: none; }
  .feature-tabs a { padding: 8px 14px; font-size: .8rem; }
  .feature { padding: 64px 0; gap: 32px; }
  .feature.programmes { padding-top: 48px; }
  .programmes-top { gap: 20px; }
  .programmes-top .feature-copy, .programmes-top .side { flex-basis: 100%; }
  .frame-bar { height: 24px; padding: 0 10px; gap: 5px; }
  .frame-bar span { width: 8px; height: 8px; }
  .frame-bar span.url { display: none; }
  .steps { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .step { padding: 12px 14px; gap: 12px; border-radius: 12px; }
  .step-n { width: 26px; height: 26px; }
  .step-title { font-size: .92rem; }
  .step-line { font-size: .8rem; }
  .spot { border-width: 1.5px; border-radius: 5px; }
  .layered.board, .layered.roi { padding-bottom: 0; display: flex; flex-direction: column; gap: 14px; }
  .layered .base, .layered .over { position: static; width: 100% !important; }
  .heat-card { padding: 12px 12px 8px; border-radius: 12px; }
  .rail-labels span:nth-child(2) { display: none; }
  .rail-track, .rail-fill { display: none; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .run { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 14px; opacity: 1; transform: none; }
  .run-title { font-size: .88rem; }
  .run-detail { font-size: .8rem; }
  .ai-visual { gap: 24px; }
  .fw-row { gap: 16px; }
  .fw-badge { width: 96px; height: 96px; padding: 8px; }
  .fw-label { font-size: .76rem; }
  .fw-sub { font-size: .56rem; }
  .pilot-form { padding: 28px 22px; border-radius: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .policy { padding: 112px 0 76px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .fade-up { opacity: 1; transform: none; }
}

/* ===== Our approach (bento) + features intro (Nov 2026) ===== */
.ap { position: relative; overflow: hidden; padding: 128px 0 120px; background: linear-gradient(#071428 0%, #071e3d 100%); }
.ap::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60%; max-width: 720px; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(79,195,247,.25) 50%, transparent 100%); pointer-events: none; }
.ap-glow { position: absolute; top: -220px; left: 50%; transform: translateX(-50%); width: 1100px; max-width: 140%; height: 560px; background: radial-gradient(50% 50% at 50% 50%, rgba(33,150,243,.2), transparent 70%); pointer-events: none; }
.ap .container { position: relative; z-index: 1; }
.ap-head, .platform .section-head { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.ap-head h2, .platform .section-head h2 { font-size: clamp(2.125rem, 4.2vw, 3.5rem); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; margin: 0 0 20px; background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.74)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.platform .section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.ap-head p { font-size: 1.15rem; line-height: 1.65; color: var(--muted); max-width: 620px; margin: 0 auto; }
.platform .section-head { margin-bottom: 48px; }
.platform .platform-intro { margin-bottom: 0; }

.ap-bento { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.ap-tile { position: relative; display: flex; flex-direction: column; border-radius: 24px; padding: 12px; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 80px -30px rgba(0,0,0,.7); }
.ap-tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(79,195,247,.45), rgba(255,255,255,.06) 35%, rgba(255,255,255,.04) 70%, rgba(33,150,243,.3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ap-tile-a { grid-row: span 2; }
.ap-viz { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,.06); background: radial-gradient(120% 90% at 50% 0%, rgba(33,150,243,.16), rgba(7,20,40,0) 60%), rgba(4,12,26,.55); }
.ap-copy { padding: 26px 24px 22px; }
.ap-copy h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; margin: 0 0 10px; color: #fff; }
.ap-copy p { font-size: .97rem; line-height: 1.65; color: rgba(255,255,255,.62); margin: 0; max-width: 520px; }

/* Tile A: register import */
.ap-import { flex: 1; min-height: 360px; display: flex; align-items: center; padding: 34px 28px; }
.ap-doc { width: 30%; flex-shrink: 0; background: #f7f9fc; border-radius: 10px; padding: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.45); transform: rotate(-3deg); }
.ap-doc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ap-doc-badge { font-size: 9px; font-weight: 800; letter-spacing: .06em; color: #fff; background: #1d7a46; border-radius: 4px; padding: 3px 5px; }
.ap-doc-name { font-size: 11px; font-weight: 600; color: #24375a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-doc-rows { display: flex; flex-direction: column; gap: 7px; }
.ap-doc-rows i { display: block; height: 8px; border-radius: 3px; background: linear-gradient(90deg, #dfe6f0 0 38%, transparent 38% 42%, #e8edf4 42% 70%, transparent 70% 74%, #e8edf4 74%); }
.ap-flow { flex: 1; position: relative; height: 2px; margin: 0 14px; background: linear-gradient(90deg, rgba(79,195,247,0), rgba(79,195,247,.85), rgba(79,195,247,0)); }
.ap-flow span { position: absolute; right: -2px; top: -4px; width: 10px; height: 10px; border-top: 2px solid #4fc3f7; border-right: 2px solid #4fc3f7; transform: rotate(45deg); }
.ap-table { width: 60%; flex-shrink: 0; background: rgba(10,31,80,.75); border: 1px solid rgba(79,195,247,.25); border-radius: 12px; padding: 0 0 6px; box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 40px rgba(33,150,243,.18); }
.ap-t-cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px 12px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.07); }
.ap-gap { color: #fbbf24; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); padding: 3px 9px; border-radius: 100px; font-size: 10.5px; white-space: nowrap; }
.ap-t-head, .ap-t-row { display: grid; grid-template-columns: minmax(0,1fr) 50px 86px; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; }
.ap-t-head { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.07); }
.ap-t-row { color: rgba(255,255,255,.88); border-bottom: 1px solid rgba(255,255,255,.05); }
.ap-t-row:last-child { border-bottom: 0; }
.ap-flag { background: linear-gradient(90deg, rgba(245,158,11,.14), rgba(245,158,11,.02)); box-shadow: inset 2px 0 0 #f59e0b; }
.ap-sc { justify-self: start; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; color: #071428; }
.ap-s-r { background: #f4a3a0; } .ap-s-a { background: #f8cf9e; } .ap-s-y { background: #f6e7b0; }
.ap-ok, .ap-warn { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ap-ok { color: #6ee7b7; } .ap-ok::before { content: "● "; font-size: 8px; }
.ap-warn { color: #fbbf24; } .ap-warn::before { content: "▲ "; font-size: 8px; }

/* Tile B: rule to evidence */
.ap-chain { height: 190px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: start; padding: 60px 16px 0; }
.ap-chain-line { position: absolute; left: calc(16px + (100% - 32px) / 8); right: calc(16px + (100% - 32px) / 8); top: 67px; height: 2px; background: linear-gradient(90deg, rgba(79,195,247,.25), #4fc3f7); box-shadow: 0 0 12px rgba(79,195,247,.5); }
.ap-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 0 4px; }
.ap-dot { width: 14px; height: 14px; border-radius: 50%; background: #071428; border: 2px solid #4fc3f7; box-shadow: 0 0 0 5px rgba(79,195,247,.12); margin-bottom: 8px; }
.ap-on .ap-dot { background: #4fc3f7; box-shadow: 0 0 0 6px rgba(79,195,247,.2), 0 0 18px #4fc3f7; }
.ap-k { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4fc3f7; }
.ap-v { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: rgba(255,255,255,.88); }
.ap-on .ap-v { color: #6ee7b7; }

/* Tile C: one evidence, many frameworks */
.ap-fan { height: 190px; display: grid; grid-template-columns: auto minmax(24px,240px) auto; justify-content: center; align-items: center; padding: 0 24px; }
.ap-fan-lines { display: block; width: 100%; height: 190px; }
.ap-file { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(10,31,80,.9); border: 1px solid rgba(79,195,247,.35); box-shadow: 0 0 30px rgba(33,150,243,.22); }
.ap-f-ic { position: relative; flex-shrink: 0; width: 26px; height: 32px; border-radius: 4px; background: linear-gradient(160deg, #e8f2fd, #b9d7f5); }
.ap-f-ic::after { content: ""; position: absolute; right: 0; top: 0; width: 9px; height: 9px; background: linear-gradient(225deg, #0a1f50 50%, #9cc6ef 50%); }
.ap-file b { display: block; font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.ap-file em { display: block; font-style: normal; font-size: 10.5px; color: rgba(255,255,255,.55); white-space: nowrap; }
.ap-chips { height: 190px; padding: 22px 0; display: flex; flex-direction: column; justify-content: space-between; }
.ap-chip { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 118px; height: 30px; padding: 0 8px 0 12px; border-radius: 100px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
.ap-chip i { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #4fc3f7; color: #071428; font-size: 10px; font-style: normal; }

/* Feature tabs: one segmented pill */
:root { --tabs-h: 74px; }
.feature-tabs ul { width: max-content; max-width: calc(100% - 32px); margin: 10px auto; padding: 5px; gap: 4px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; border-radius: 100px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.feature-tabs ul::-webkit-scrollbar { display: none; }
.feature-tabs a { border: 0; padding: 9px 18px; color: rgba(255,255,255,.62); }
.feature-tabs a:hover { color: #fff; background: rgba(255,255,255,.06); }
.feature-tabs a[aria-current="true"] { background: #fff; color: #071428; box-shadow: 0 4px 16px rgba(255,255,255,.12); }
.feature-tabs a:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

@media (max-width: 1200px) {
  .ap-import { flex-direction: column; justify-content: center; gap: 18px; padding: 28px 22px; }
  .ap-doc { width: 62%; max-width: 280px; transform: rotate(-2deg); }
  .ap-flow { flex: none; width: 2px; height: 28px; margin: 0; background: linear-gradient(180deg, rgba(79,195,247,0), #4fc3f7); }
  .ap-flow span { right: -4px; top: auto; bottom: -2px; transform: rotate(135deg); }
  .ap-table { width: 100%; max-width: 520px; }
  .ap-fan { padding: 0 16px; }
  .ap-chip { min-width: 0; }
}
@media (max-width: 1024px) {
  .ap-bento { grid-template-columns: 1fr; }
  .ap-tile-a { grid-row: auto; }
  .ap-import { min-height: 0; }
}
@media (max-width: 768px) {
  :root { --tabs-h: 68px; }
  .ap { padding: 84px 0 76px; }
  .ap-head { margin-bottom: 40px; }
  .ap-head p { font-size: 1.03rem; }
  .platform .section-head { margin-bottom: 36px; }
  .ap-bento { gap: 16px; }
  .ap-import { padding: 24px 16px; }
  .ap-doc { width: 70%; }
  .ap-t-head, .ap-t-row { grid-template-columns: minmax(0,1fr) 40px 82px; padding: 10px 12px; font-size: 12.5px; }
  .ap-t-head { font-size: 9px; }
  .ap-chain { height: 170px; padding: 44px 6px 0; }
  .ap-chain-line { left: calc(6px + (100% - 12px) / 8); right: calc(6px + (100% - 12px) / 8); top: 51px; }
  .ap-k { font-size: 9px; letter-spacing: .06em; }
  .ap-v { font-size: 11px; }
  .ap-fan { height: auto; grid-template-columns: 1fr; justify-items: center; gap: 18px; padding: 28px 16px; }
  .ap-fan-lines { display: none; }
  .ap-chips { height: auto; padding: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .ap-copy { padding: 22px 16px 16px; }
  .feature-tabs ul { margin: 8px 16px; max-width: none; width: auto; }
  .feature-tabs a { padding: 8px 14px; font-size: .8rem; }
}

/* =====================================================================
   v5 — elevated navy design (Nov 2026). Overrides earlier rules.
   ===================================================================== */
:root { --edge: linear-gradient(160deg, rgba(79,195,247,.42), rgba(255,255,255,.06) 35%, rgba(255,255,255,.04) 70%, rgba(33,150,243,.28)); --tile: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); }

/* Type */
.section-head h2, .built h2, .pilot h2 { font-size: clamp(2.125rem, 4vw, 3.25rem); line-height: 1.08; font-weight: 800; letter-spacing: -.033em; background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.74)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p, .built .desc, .pilot .desc { font-size: 1.08rem; line-height: 1.7; }
.section-head { margin-bottom: 64px; }

/* Buttons */
.btn { border-radius: 10px; padding: 13px 24px; font-size: .92rem; letter-spacing: -.005em; }
.btn-primary { background: linear-gradient(180deg, #38a3f6 0%, #1c8ae6 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 0 1px rgba(33,150,243,.6), 0 10px 28px -10px rgba(33,150,243,.8); }
.btn-primary:hover { background: linear-gradient(180deg, #4aaef8 0%, #2393ec 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 0 0 1px rgba(79,195,247,.7), 0 14px 34px -10px rgba(33,150,243,.9); }
.btn-outline { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.34); }

/* Header */
.site-header.stuck, .site-header.menu-open { background: rgba(6,15,32,.8); border-bottom-color: rgba(255,255,255,.07); }
.brand img { height: 32px; }
.nav-links { gap: 32px; }
.nav-links a { font-size: .87rem; color: rgba(255,255,255,.72); }
.nav-right .btn { padding: 9px 18px; font-size: .86rem; }

/* Hero */
.hero { padding: 164px 0 120px; background: radial-gradient(70% 55% at 50% 0%, rgba(33,150,243,.32), transparent 72%), linear-gradient(160deg, #071428 0%, #0a1f50 55%, #0b3d78 100%); }
.hero::before { top: auto; bottom: -1px; right: 0; left: 0; width: auto; height: 38%; border-radius: 0; background: linear-gradient(180deg, rgba(7,20,40,0) 0%, #071428 100%); z-index: 1; }
.hero::after { display: none; }
.hero-grid { opacity: .7; }
.hero-inner { max-width: 940px; margin: 0 auto; padding-top: 0; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.04em; margin-bottom: 24px; background: linear-gradient(180deg, #fff 40%, rgba(255,255,255,.78)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.16rem; line-height: 1.65; max-width: 640px; margin: 0 auto 40px; color: rgba(255,255,255,.66); }
.hero-ctas { justify-content: center; }

/* Why Regulyst */
.why { padding: 120px 0; background: linear-gradient(#071428 0%, #071e3d 100%); }
.why-grid { gap: 20px; }
.why-card { border-radius: 22px; padding: 34px 30px 32px; }
.why-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 40px 80px -30px rgba(13,94,163,.55); }
.why-n { position: absolute; top: 30px; right: 30px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: rgba(255,255,255,.28); font-variant-numeric: tabular-nums; }
.why-icon { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 26px; color: #8dd5f8; background: linear-gradient(180deg, rgba(79,195,247,.2), rgba(33,150,243,.06)); border: 1px solid rgba(79,195,247,.3); box-shadow: 0 0 24px rgba(33,150,243,.18); }
.why-icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 10px; }
.why-card p { font-size: .95rem; line-height: 1.65; color: rgba(255,255,255,.6); }

/* Who it's for */
.built { padding: 120px 0; background: radial-gradient(55% 70% at 85% 50%, rgba(33,150,243,.14), transparent 70%), linear-gradient(#071e3d 0%, #071428 100%); }
.built-grid { gap: 72px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.built h2 { margin-bottom: 20px; }
.aud-panel { position: relative; border-radius: 24px; padding: 30px 32px 14px; }
.aud-head { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin-bottom: 6px; }
.aud-list { gap: 0; }
.aud-list li { padding: 16px 0; gap: 14px; font-size: .96rem; line-height: 1.55; color: rgba(255,255,255,.84); border-bottom: 1px solid rgba(255,255,255,.07); }
.aud-list li:last-child { border-bottom: 0; }
.ck { width: 22px; height: 22px; margin-top: 0; background: linear-gradient(180deg, #4fc3f7, #1c8ae6); border: 0; color: #071428; font-size: 11px; box-shadow: 0 0 14px rgba(79,195,247,.35); }

/* Features */
.platform { padding-top: 128px; }
.feature { gap: 88px; padding: 112px 0; }
.feature + .feature { border-top: 1px solid rgba(255,255,255,.07); }
.feat-tag { background: rgba(79,195,247,.08); border: 1px solid rgba(79,195,247,.24); box-shadow: none; color: #8dd5f8; font-size: .7rem; letter-spacing: .09em; padding: 5px 12px; margin-bottom: 18px; }
.feature h3 { font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.feat-lead { font-size: 1.06rem; line-height: 1.65; color: rgba(255,255,255,.62); margin-bottom: 26px; }
.feat-list { gap: 13px; margin-bottom: 30px; }
.feat-list li { gap: 12px; font-size: .95rem; line-height: 1.55; color: rgba(255,255,255,.84); }
.feat-list li::before { content: ""; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: rgba(79,195,247,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fc3f7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; border: 1px solid rgba(79,195,247,.32); }
.text-link { color: #8dd5f8; gap: 6px; padding: 9px 16px; margin-left: -16px; border-radius: 10px; transition: background .2s, color .2s; }
.text-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.feature-visual, .walk-wrap { position: relative; isolation: isolate; }
.feature-visual::before, .walk-wrap::before { content: ""; position: absolute; inset: -6% -4%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(33,150,243,.22), transparent 70%); filter: blur(30px); pointer-events: none; }
.frame { box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 0 7px rgba(255,255,255,.035), 0 0 0 8px rgba(255,255,255,.07), 0 50px 100px -30px rgba(0,0,0,.75); }
.vendor-card, .heat-card { box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 0 7px rgba(255,255,255,.035), 0 0 0 8px rgba(255,255,255,.07), 0 50px 100px -30px rgba(0,0,0,.75); }
.layered .base { border: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 0 7px rgba(255,255,255,.035), 0 0 0 8px rgba(255,255,255,.07), 0 40px 90px -30px rgba(0,0,0,.7); }
.layered .over { border: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 30px 70px -16px rgba(0,0,0,.75), 0 0 50px rgba(33,150,243,.28); }
.frame-bar { background: #e9eef5; }
.step { border-radius: 14px; background: rgba(255,255,255,.035); }
.step[aria-pressed="true"] { background: linear-gradient(180deg, rgba(33,150,243,.22), rgba(33,150,243,.06)); border-color: rgba(79,195,247,.55); }
.guards li { background: rgba(79,195,247,.07); border-color: rgba(79,195,247,.24); }

.frameworks { padding: 120px 0; }

/* Contact */
.pilot { padding: 120px 0 128px; background: linear-gradient(#071e3d 0%, #071428 100%); }
.pilot-panel { position: relative; overflow: hidden; border-radius: 32px; padding: 72px 64px; background: radial-gradient(70% 90% at 0% 0%, rgba(33,150,243,.24), transparent 60%), var(--tile); }
.pilot-glow { position: absolute; right: -10%; bottom: -40%; width: 60%; height: 90%; background: radial-gradient(50% 50% at 50% 50%, rgba(79,195,247,.14), transparent 70%); pointer-events: none; }
.pilot-grid { position: relative; gap: 72px; }
.pilot-form { position: relative; background: rgba(4,12,26,.6); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: 34px 32px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.pilot-form h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.f-input { padding: 13px 16px; border-radius: 10px; background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.f-input:focus { border-color: rgba(79,195,247,.6); box-shadow: 0 0 0 4px rgba(33,150,243,.15); }

/* Footer */
.footer { background: #040b18; border-top: 0; position: relative; padding: 72px 0 32px; }
.footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80%; max-width: 960px; height: 1px; background: linear-gradient(90deg, transparent, rgba(79,195,247,.28), transparent); }
.footer-brand img { height: 28px; }

@media (max-width: 1024px) {
  .built-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature { gap: 48px; }
  .pilot-panel { padding: 56px 40px; }
  .pilot-grid { gap: 40px; }
}
@media (max-width: 768px) {
  .hero { padding: 120px 0 72px; }
  .hero h1 { font-size: clamp(2.25rem, 9.6vw, 3rem); }
  .hero-sub { font-size: 1.02rem; margin-bottom: 32px; }
  .why, .built { padding: 84px 0; }
  .platform { padding-top: 84px; }
  .section-head { margin-bottom: 40px; }
  .why-card { padding: 28px 24px; }
  .why-n { top: 26px; right: 24px; }
  .aud-panel { padding: 22px 20px 6px; border-radius: 20px; }
  .feature { padding: 72px 0; gap: 36px; }
  .text-link { margin-left: -12px; padding: 9px 12px; }
  .pilot { padding: 72px 0 84px; }
  .pilot-panel { padding: 40px 20px 20px; border-radius: 24px; }
  .pilot-form { padding: 26px 20px; }
  .frame, .vendor-card, .heat-card, .layered .base { box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 0 5px rgba(255,255,255,.04), 0 30px 60px -24px rgba(0,0,0,.75); }
}
@media (prefers-reduced-motion: reduce) {
}
.hero h1, .section-head h2, .built h2, .pilot h2, .ap-head h2, .feature h3 { text-wrap: balance; }

/* ---------- Hero: orbit ---------- */
.hero-orbit { padding: 168px 0 140px; background: radial-gradient(50% 60% at 78% 45%, rgba(33,150,243,.25), transparent 70%), linear-gradient(160deg, #050d1f 0%, #081a40 60%, #0a2a5c 100%); }
.hero-orbit::before { display: none; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; }
.hero-orbit .hero-inner { text-align: left; margin: 0; max-width: 720px; }
.hero-orbit h1 { font-size: clamp(2.5rem, 4.2vw, 3.4rem); text-wrap: pretty; }
.hero-orbit::after { display: block; content: ""; position: absolute; top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 180px; border-radius: 0; background: linear-gradient(180deg, rgba(7,20,40,0), #071428); pointer-events: none; z-index: 1; }
.hero-orbit .hero-sub { margin-left: 0; margin-right: 0; max-width: 540px; }
.hero-orbit .hero-ctas { justify-content: flex-start; }
.orbit { --s: 480px; position: relative; width: var(--s); height: var(--s); margin: 0 auto; }
.o-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(79,195,247,.18); }
.o-r1 { width: 34%; height: 34%; border-color: rgba(79,195,247,.32); background: radial-gradient(closest-side, rgba(33,150,243,.22), transparent); }
.o-r2 { width: 64%; height: 64%; }
.o-r3 { width: 96%; height: 96%; border-style: dashed; border-color: rgba(79,195,247,.14); }
.o-core { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 26px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 0 0 10px rgba(79,195,247,.05), 0 0 60px rgba(33,150,243,.6), inset 0 1px 0 rgba(255,255,255,.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.o-core img { width: 52px; height: 52px; }
.o-spin { position: absolute; inset: 0; animation: o-spin 80s linear infinite; }
.o-s3 { animation-duration: 120s; animation-direction: reverse; }
.o-node { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); }
.o-s2 .o-node { --r: calc(var(--s) * .32); }
.o-s3 .o-node { --r: calc(var(--s) * .48); }
.o-lab { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; padding: 8px 14px; border-radius: 100px; font-size: .8rem; font-weight: 700; letter-spacing: .01em; color: #fff; background: linear-gradient(180deg, rgba(20,48,98,.95), rgba(10,28,64,.95)); border: 1px solid rgba(79,195,247,.38); box-shadow: 0 10px 30px -8px rgba(0,0,0,.7), 0 0 20px rgba(33,150,243,.25); }
.o-cr { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: o-spin 80s linear infinite reverse; }
.o-s3 .o-cr { animation-duration: 120s; animation-direction: normal; }
.o-lab::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 8px var(--sky); margin-right: 8px; vertical-align: 2px; }
@keyframes o-spin { to { transform: rotate(360deg); } }

@media (max-width: 1280px) {
  .hero-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .orbit { --s: 380px; }
}
@media (max-width: 1120px) {
  .orbit { --s: 340px; }
}
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; gap: 56px; }
  .hero-orbit .hero-inner { text-align: center; margin: 0 auto; }
  .hero-orbit .hero-sub { margin: 0 auto 40px; }
  .hero-orbit .hero-ctas { justify-content: center; }
  .orbit { --s: 440px; }
}
@media (max-width: 768px) {
  .hero-orbit { padding: 120px 0 56px; }
  .orbit { --s: min(320px, 80vw); }
  .o-r3 { width: 88%; height: 88%; }
  .o-s3 .o-node { --r: calc(var(--s) * .44); }
  .o-lab { padding: 6px 10px; font-size: .7rem; }
  .o-core { width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 20px; }
  .o-core img { width: 40px; height: 40px; }
}

/* Current-page nav link (used on blog pages) */
.nav-links a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: #fff; }
