/* ==========================================================================
   InfoSec Governance — main stylesheet
   Single file, no build step. Organised as: tokens, reset, primitives,
   layout, components, page blocks, utilities, motion, print.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:             #060a14;
  --bg-alt:         #090f1d;
  --surface:        #0d1424;
  --surface-glass:  rgba(255, 255, 255, 0.024);
  /* Note: any new surface lighter than --surface must be checked against
     --text-4, which only has ~0.2 of headroom above the 4.5:1 threshold. */

  /* Lines */
  --line:           rgba(148, 163, 184, 0.13);
  --line-2:         rgba(148, 163, 184, 0.22);
  --line-accent:    rgba(34, 211, 238, 0.38);

  /* Text */
  --text:           #e9eefb;   /* 17.04:1 on --bg */
  --text-2:         #b6c2d6;   /* 11.00:1 */
  --text-3:         #8494ad;   /*  5.97:1 on --surface */
  /* --text-4 is the dimmest step. It must clear WCAG AA 4.5:1 against
     --surface, the lightest background it ever sits on (footer links, field
     hints, .muted.small). Was #64748b, which measured 3.86:1 and failed. */
  --text-4:         #748199;   /*  4.68:1 on --surface */

  /* Accent */
  --accent:         #22d3ee;
  --accent-2:       #3b82f6;
  --accent-3:       #818cf8;
  --accent-ink:     #062430;
  /* Label colour for anything sitting on --gradient. The gradient's indigo end
     (#6366f1) is its lightest point, so the ink is measured against that:
     #04121c gave 4.24:1 and failed; pure black gives 4.70:1 and passes at
     every stop along the ramp. */
  --on-gradient:    #000000;
  --accent-soft:    rgba(34, 211, 238, 0.10);
  --accent-softer:  rgba(34, 211, 238, 0.05);
  --gradient:       linear-gradient(120deg, #22d3ee 0%, #3b82f6 55%, #6366f1 100%);
  --gradient-text:  linear-gradient(100deg, #67e8f9 0%, #60a5fa 60%, #a5b4fc 100%);

  /* Per-service accent hues, used for card iconography */
  --hue-cyan:   #22d3ee;
  --hue-blue:   #3b82f6;
  --hue-indigo: #818cf8;
  --hue-teal:   #2dd4bf;
  --hue-sky:    #38bdf8;
  --hue-violet: #a78bfa;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.89rem);
  --step-0:  clamp(0.98rem, 0.95rem + 0.16vw, 1.06rem);
  --step-1:  clamp(1.12rem, 1.05rem + 0.34vw, 1.3rem);
  --step-2:  clamp(1.32rem, 1.18rem + 0.66vw, 1.72rem);
  --step-3:  clamp(1.6rem, 1.32rem + 1.2vw, 2.2rem);
  --step-4:  clamp(1.9rem, 1.5rem + 1.8vw, 2.85rem);
  --step-5:  clamp(2.25rem, 1.6rem + 2.8vw, 3.6rem);

  /* Space */
  --gap:        1.5rem;
  --section-y:  clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:    0 18px 40px -22px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 40px 80px -40px rgba(2, 8, 20, 0.95);
  --glow:      0 0 0 1px var(--line-accent), 0 24px 60px -30px rgba(34, 211, 238, 0.5);

  --container: 1200px;
  --ease: cubic-bezier(0.22, 0.75, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.68;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.028em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
h4 { font-size: var(--step-1); letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: #67e8f9; }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25rem; }
li { margin-bottom: 0.4em; }

strong { color: var(--text); font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }

/* --------------------------------------------------------------------------
   3. Primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.container--narrow { max-width: 860px; }

.icon { width: 1.5rem; height: 1.5rem; flex: none; }
.icon--sm { width: 1.15rem; height: 1.15rem; }
.icon--xs { width: 0.95rem; height: 0.95rem; }
.icon--lg { width: 2rem; height: 2rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--accent-ink); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--lg { padding: 0.95rem 1.85rem; font-size: var(--step-0); }

.btn--primary {
  background: var(--gradient);
  color: var(--on-gradient);
  box-shadow: 0 12px 30px -14px rgba(34, 211, 238, 0.75);
}
.btn--primary:hover { color: var(--on-gradient); box-shadow: 0 18px 40px -14px rgba(34, 211, 238, 0.9); }

.btn--ghost {
  background: var(--surface-glass);
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--line-accent); background: var(--accent-softer); color: var(--text); }

.btn--link {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
}
.btn--link:hover { transform: none; text-decoration: underline; text-underline-offset: 4px; }

/* Eyebrow pill ----------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.15rem;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-pill);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.lede { font-size: var(--step-1); color: var(--text-2); line-height: 1.62; }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sections --------------------------------------------------------------- */
.section { position: relative; padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(3rem, 2rem + 3.5vw, 5rem); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 1.8rem + 2.4vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-3); font-size: var(--step-1); margin-bottom: 0; }

/* Decorative backgrounds -------------------------------------------------- */
.bg-grid::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 197, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

.bg-glow::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50rem 30rem at 18% 8%, rgba(34, 211, 238, 0.11), transparent 60%),
    radial-gradient(46rem 30rem at 88% 82%, rgba(59, 130, 246, 0.11), transparent 62%);
  pointer-events: none;
}

.section > .container { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(6, 10, 20, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 11px;
  background: var(--gradient);
  color: var(--on-gradient);
  box-shadow: 0 10px 24px -12px rgba(34, 211, 238, 0.8);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.022em; }
.brand__tag { font-size: 0.68rem; color: var(--accent); letter-spacing: 0.13em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }

.nav a,
.nav .nav__link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.925rem;
  font-weight: 550;
}
.nav a:hover { color: var(--text); background: var(--surface-glass); }
.nav .is-active { color: var(--accent); }

.nav__cta { margin-left: 0.25rem; }
.nav__cta:hover { color: var(--on-gradient); }

/* Services submenu */
.nav__item.has-submenu { position: relative; display: flex; align-items: center; }
.nav__toggle {
  display: grid; place-items: center;
  width: 1.5rem; height: 1.5rem;
  margin-left: -0.5rem;
  padding: 0;
  border: 0; background: none;
  color: var(--text-3);
  cursor: pointer;
  transition: transform 0.22s var(--ease), color 0.2s var(--ease);
}
.nav__item:hover .nav__toggle,
.nav__toggle[aria-expanded="true"] { color: var(--accent); transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: -0.75rem;
  z-index: 20;
  width: min(30rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.6rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  /* Closing is forgiving: a 300ms grace period means crossing the gap between
     the trigger and the panel, or clipping a corner, does not slam it shut. */
  transition-delay: 300ms;
}
.nav__item:hover > .submenu,
.nav__item:focus-within > .submenu,
.submenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

/* Opening waits for intent, so merely sweeping the cursor past "Services"
   no longer fires the panel. Keyboard focus opens immediately — a Tab is
   already an unambiguous intent signal and must not feel laggy. */
.nav__item:hover > .submenu { transition-delay: 120ms; }
.nav__item:focus-within > .submenu,
.submenu.is-open { transition-delay: 0s; }

.submenu li { margin: 0; }
.submenu a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
}
.submenu a:hover { background: var(--accent-softer); color: var(--text); }
.submenu strong { display: block; color: var(--text); font-size: 0.9rem; font-weight: 620; }
.submenu small { display: block; color: var(--text-4); font-size: 0.775rem; line-height: 1.45; }
.submenu__icon {
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  flex: none;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}
.submenu__all { margin-top: 0.35rem; border-top: 1px solid var(--line); padding-top: 0.35rem; }
.submenu__all a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent); font-weight: 600; }

.nav-burger {
  display: none;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-glass);
  color: var(--text);
  cursor: pointer;
}
.nav-burger__close { display: none; }
.nav-burger[aria-expanded="true"] .nav-burger__open { display: none; }
.nav-burger[aria-expanded="true"] .nav-burger__close { display: block; }

@media (max-width: 960px) {
  .nav-burger { display: grid; }

  .nav {
    position: fixed;
    inset: 4.75rem 0 auto;
    max-height: calc(100dvh - 4.75rem);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1.25rem clamp(1.1rem, 4vw, 2rem) 2rem;
    background: rgba(6, 10, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav .nav__link { padding: 0.85rem 0.25rem; font-size: 1rem; }

  .nav__item.has-submenu { flex-wrap: wrap; justify-content: space-between; }
  .nav__item.has-submenu > .nav__link { flex: 1; }
  .nav__toggle { width: 2.5rem; height: 2.5rem; margin: 0; }

  .submenu {
    position: static;
    width: 100%;
    padding: 0 0 0.75rem;
    border: 0;
    background: none;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__item:hover > .submenu { display: none; }
  .submenu.is-open { display: block; }
  .submenu small { display: none; }

  .nav__cta { margin: 1rem 0 0; justify-content: center; }

  /* Without JS the burger cannot open anything, so lay the menu out inline
     instead of leaving it permanently hidden. */
  .no-js .nav-burger { display: none; }
  .no-js .nav {
    position: static;
    max-height: none;
    padding: 0 0 1rem;
    background: none;
    border-bottom: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .submenu { display: block; }
}

/* Touch targets. Applied only on coarse pointers so the desktop footer keeps
   its tight rhythm while thumbs get a ~44px target everywhere. */
@media (pointer: coarse) {
  .footer-col a,
  .footer-legal a,
  .footer-contact a { display: inline-block; padding-block: 0.55rem; }
  .footer-col ul { gap: 0.1rem; }
  .footer-legal { gap: 0.5rem 1.5rem; }
  .nav__toggle { width: 2.75rem; height: 2.75rem; }
  .breadcrumbs a { display: inline-block; padding-block: 0.35rem; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem) clamp(3.5rem, 2rem + 6vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto;
  height: 120%;
  background:
    radial-gradient(48rem 30rem at 22% 18%, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(44rem 32rem at 82% 72%, rgba(59, 130, 246, 0.15), transparent 62%),
    radial-gradient(32rem 24rem at 60% 0%, rgba(99, 102, 241, 0.12), transparent 65%);
  z-index: -2;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 197, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 45%, #000 10%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(2.5rem, 1rem + 4vw, 4rem);
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 1.1rem; max-width: 15ch; }
.hero__text { font-size: var(--step-1); color: var(--text-2); max-width: 48ch; margin-bottom: 2rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__proof div { min-width: 7rem; }
.hero__proof dt {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__proof dd {
  margin: 0.15rem 0 0;
  font-size: 0.83rem;
  color: var(--text-4);
  letter-spacing: 0.02em;
}

/* Animated shield visual */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 30rem;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border: 1px dashed rgba(148, 197, 255, 0.16);
  border-radius: 50%;
  animation: spin 34s linear infinite;
}
.orbit--1 { inset: 20%; animation-duration: 26s; }
.orbit--2 { inset: 8%;  animation-duration: 40s; animation-direction: reverse; }
.orbit--3 { inset: 0;   animation-duration: 56s; border-style: solid; border-color: rgba(148, 197, 255, 0.08); }

.orbit__node {
  position: absolute;
  top: -1.4rem; left: 50%;
  display: grid; place-items: center;
  width: 2.8rem; height: 2.8rem;
  margin-left: -1.4rem;
  border: 1px solid var(--line-accent);
  border-radius: 12px;
  background: rgba(13, 20, 36, 0.9);
  backdrop-filter: blur(6px);
  color: var(--accent);
  box-shadow: var(--shadow);
  animation: spin-back 34s linear infinite;
}
.orbit--1 .orbit__node { animation-duration: 26s; }
.orbit--2 .orbit__node { animation-duration: 40s; animation-direction: normal; }
.orbit--3 .orbit__node { animation-duration: 56s; }
.orbit--2 .orbit__node { top: auto; bottom: -1.4rem; color: var(--accent-2); }
.orbit--3 .orbit__node { top: 50%; left: -1.4rem; margin: -1.4rem 0 0; color: var(--accent-3); }

.hero__core {
  position: relative;
  display: grid; place-items: center;
  width: 46%; aspect-ratio: 1;
  border: 1px solid var(--line-accent);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.09) 60%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 90px -20px rgba(34, 211, 238, 0.55);
  animation: float 6s ease-in-out infinite;
}
.hero__core svg { width: 44%; height: auto; color: var(--accent); stroke-width: 1.2; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-back { to { transform: rotate(-360deg); } }
@keyframes float { 50% { transform: translateY(-14px); } }

/* Declared after .hero__visual so it wins on source order, not just specificity. */
@media (max-width: 980px) {
  .hero__visual { display: none; }
  .hero h1 { max-width: none; }
}

/* --------------------------------------------------------------------------
   6. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2.5rem, 1.6rem + 3.5vw, 4rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(46rem 26rem at 22% 0%, rgba(34, 211, 238, 0.13), transparent 62%),
              radial-gradient(40rem 24rem at 85% 30%, rgba(59, 130, 246, 0.11), transparent 65%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--step-4); max-width: 20ch; }
.page-hero .lede { max-width: 62ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.breadcrumbs { margin-bottom: 1.5rem; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  list-style: none; margin: 0; padding: 0;
  font-size: 0.8rem; color: var(--text-4);
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--text-4); opacity: 0.6; }
.breadcrumbs a { color: var(--text-3); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text-2); }

/* --------------------------------------------------------------------------
   7. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem);
  background: linear-gradient(160deg, var(--surface) 0%, rgba(13, 20, 36, 0.55) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(22rem 14rem at 12% -10%, var(--card-accent, var(--accent)), transparent 65%);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
  pointer-events: none;
}
/* Hover/focus affordance belongs only to cards that actually go somewhere.
   Static cards (commitments, "what's included") keep their resting state so
   the lift never promises a click that isn't there. */
.card--link:hover,
.card--link:focus-within { transform: translateY(-4px); border-color: var(--line-accent); box-shadow: var(--shadow); }
.card--link:hover::before,
.card--link:focus-within::before { opacity: 0.09; }
.card > * { position: relative; }

.card__icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-accent, var(--accent)) 12%, transparent);
  color: var(--card-accent, var(--accent));
  transition: transform 0.28s var(--ease);
}
.card--link:hover .card__icon,
.card--link:focus-within .card__icon { transform: scale(1.07); }

.card h3 { margin-bottom: 0.55rem; font-size: var(--step-1); }
.card p { color: var(--text-3); font-size: 0.945rem; }

.card__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: auto; padding-top: 1.25rem;
  font-size: 0.875rem; font-weight: 620; color: var(--accent);
}
.card__link svg { transition: transform 0.22s var(--ease); }
.card--link:hover .card__link svg,
.card--link:focus-within .card__link svg { transform: translateX(4px); }

/* Whole-card click target without nesting interactive elements */
.card--link .card__link::after { content: ""; position: absolute; inset: 0; }

/* The click target is the whole card, so the focus ring must be too — a ring
   around just the "Learn more" text would misdescribe what Enter activates. */
.card--link:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.card--link .card__link:focus-visible { outline: none; }

/* Accent variants */
.accent-cyan   { --card-accent: var(--hue-cyan); }
.accent-blue   { --card-accent: var(--hue-blue); }
.accent-indigo { --card-accent: var(--hue-indigo); }
.accent-teal   { --card-accent: var(--hue-teal); }
.accent-sky    { --card-accent: var(--hue-sky); }
.accent-violet { --card-accent: var(--hue-violet); }

/* Feature row (icon + text, no card chrome) */
.feature { display: flex; gap: 1rem; }
.feature__icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; flex: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--accent-softer);
  color: var(--accent);
}
.feature h3, .feature h4 { margin-bottom: 0.3rem; font-size: var(--step-0); font-weight: 650; }
.feature p { color: var(--text-3); font-size: 0.925rem; margin: 0; }

/* Stats band ------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats > div {
  padding: clamp(1.4rem, 1.1rem + 1vw, 2.1rem);
  background: linear-gradient(160deg, var(--surface), rgba(9, 15, 29, 0.9));
  text-align: center;
}
.stats dt {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats dd { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--text-3); letter-spacing: 0.02em; }

/* Check list ------------------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.checklist li { display: flex; gap: 0.7rem; margin: 0; color: var(--text-2); }
.checklist svg { color: var(--accent); margin-top: 0.28rem; flex: none; }

.crosslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.crosslist li {
  display: flex; gap: 0.75rem; margin: 0;
  color: var(--text-2);
  padding-left: 0;
}
.crosslist li::before {
  content: "";
  width: 6px; height: 6px; flex: none;
  margin-top: 0.72rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* Split layout ----------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.split--top { align-items: start; }

/* Panel ------------------------------------------------------------------ */
.panel {
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  background: linear-gradient(155deg, rgba(34, 211, 238, 0.055), rgba(59, 130, 246, 0.04));
  border: 1px solid var(--line-accent);
  border-radius: var(--radius-lg);
}
.panel--plain {
  background: var(--surface);
  border-color: var(--line);
}

/* Process steps ---------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line);
         border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
         grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps > li {
  counter-increment: step;
  margin: 0;
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  background: var(--surface);
  list-style: none;
}
.steps > li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.steps h3 { font-size: var(--step-0); font-weight: 650; margin-bottom: 0.4rem; }
.steps p { color: var(--text-3); font-size: 0.92rem; margin: 0; }

/* Accordion / FAQ -------------------------------------------------------- */
.faq { display: grid; gap: 0.75rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.24s var(--ease);
}
.faq__item[open] { border-color: var(--line-accent); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.35rem;
  color: var(--text);
  font-size: var(--step-0);
  font-weight: 620;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  width: 0.65rem; height: 0.65rem; flex: none;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.24s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__item summary:hover { color: var(--accent); }
.faq__body { padding: 0 1.35rem 1.3rem; color: var(--text-3); font-size: 0.95rem; }

/* Logo / trust strip ------------------------------------------------------ */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.75rem 2rem;
  padding: 1.15rem clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
}
.trust-strip span {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 550; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-4);
}
.trust-strip svg { color: var(--accent); }
@media (max-width: 640px) { .trust-strip { border-radius: var(--radius); } }

/* Table of contents / side rail ------------------------------------------ */
.rail {
  position: sticky;
  top: 6.5rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.rail h2 { font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--text-4); margin-bottom: 0.9rem; }
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.rail li { margin: 0; }
.rail a { display: block; padding: 0.4rem 0.55rem; border-radius: 8px; color: var(--text-3); font-size: 0.875rem; }
.rail a:hover { background: var(--accent-softer); color: var(--accent); }

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
}
@media (min-width: 900px) { .doc-layout { grid-template-columns: 15rem minmax(0, 1fr); } }
@media (max-width: 899px) { .rail { position: static; } }

/* Prose (legal pages) ---------------------------------------------------- */
.prose { color: var(--text-2); }
.prose h2 {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-2);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.75rem; font-size: var(--step-1); }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: 0.55rem; }
.prose li::marker { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.92rem; }
.prose th, .prose td { padding: 0.75rem 0.9rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); color: var(--text); font-weight: 620; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.doc-meta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem; margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.8rem; color: var(--text-4);
}

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); letter-spacing: 0.01em; }
.field .req { color: var(--accent); }
.field__hint { font-size: 0.78rem; color: var(--text-4); }

.input, .textarea, .select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
  background: rgba(6, 10, 20, 0.9);
}
.textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.05rem;
  padding-right: 2.6rem;
}
.select option { background: #0d1424; color: var(--text); }

.field--error .input, .field--error .textarea, .field--error .select { border-color: #f87171; }
.field__error { font-size: 0.78rem; color: #fca5a5; }

.checkbox { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.86rem; color: var(--text-3); }
.checkbox input { margin-top: 0.28rem; width: 1rem; height: 1rem; accent-color: var(--accent); flex: none; }

/* Honeypot — hidden from users, visible to naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  display: flex; gap: 0.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.alert svg { flex: none; margin-top: 0.15rem; }
.alert--success { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); color: #a7f3d0; }
.alert--success svg { color: #34d399; }
.alert--error { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); color: #fecaca; }
.alert--error svg { color: #f87171; }
.alert p { margin: 0; }
.alert__list { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.alert__list li { margin-bottom: 0.3rem; }
.alert__list li:last-child { margin-bottom: 0; }
.alert__list a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.alert__list a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.footer-cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2rem;
  align-items: center;
  margin-top: calc(clamp(3rem, 2rem + 4vw, 6rem) * -1);
  margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem);
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.1), rgba(59, 130, 246, 0.07) 55%, rgba(99, 102, 241, 0.06));
  border: 1px solid var(--line-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.footer-cta__title { font-size: var(--step-3); margin-bottom: 0.7rem; }
.footer-cta__text { color: var(--text-2); margin: 0; max-width: 46ch; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }
@media (max-width: 760px) { .footer-cta__actions { justify-content: flex-start; } }

/* Pages that are themselves the call to action (contact) drop the banner and
   take normal top spacing instead. */
.site-footer--no-cta .footer-grid { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 2.5rem;
  padding-bottom: 2.75rem;
}
.footer-grid > .footer-brand { grid-column: span 1; min-width: 0; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.footer-brand__text { color: var(--text-4); font-size: 0.9rem; margin: 1.1rem 0; max-width: 34ch; }
.footer-brand__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 600; color: var(--accent); margin: 0;
}

.footer-col__title {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col li { margin: 0; }
.footer-col a { color: var(--text-4); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-contact li { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-contact svg { color: var(--accent); margin-top: 0.15rem; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem 2rem;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; font-size: 0.84rem; color: var(--text-4); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-legal li { margin: 0; }
.footer-legal a { font-size: 0.84rem; color: var(--text-4); }
.footer-legal a:hover { color: var(--accent); }

/* Back to top ------------------------------------------------------------ */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: grid; place-items: center;
  width: 2.85rem; height: 2.85rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(13, 20, 36, 0.92);
  backdrop-filter: blur(8px);
  color: var(--text-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
              visibility 0.25s, border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.to-top svg { transform: rotate(180deg); }
.to-top:hover { border-color: var(--line-accent); color: var(--accent); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* --------------------------------------------------------------------------
   10. Utilities
   -------------------------------------------------------------------------- */
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }
.muted { color: var(--text-4); }
.small { font-size: var(--step--1); }
.stack { display: grid; gap: 1.5rem; }
.stack--sm { display: grid; gap: 0.75rem; }
.cluster { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* --------------------------------------------------------------------------
   11. Scroll-reveal motion
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.07s; }
.js .reveal[data-delay="2"] { transition-delay: 0.14s; }
.js .reveal[data-delay="3"] { transition-delay: 0.21s; }
.js .reveal[data-delay="4"] { transition-delay: 0.28s; }
.js .reveal[data-delay="5"] { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   12. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .to-top, .hero__visual, .footer-cta { display: none !important; }
  body { background: #fff; color: #111; }
  h1, h2, h3, h4, strong { color: #000; }
  a { color: #000; text-decoration: underline; }
  .card, .panel, .steps > li { border: 1px solid #ccc; background: none; }
  .text-gradient, .stats dt, .hero__proof dt { color: #000 !important; -webkit-text-fill-color: #000; }
}
