/* =================================================================
   Regulaytics — Landing Page v2 ("Modern institutional")
   Cohesive light/dark tokens with restrained teal and indigo accents.
   ================================================================= */

/* ----------------------------- Tokens ---------------------------- */
:root {
  color-scheme: light;

  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 12px);

  --bg: #f6f8fb;
  --fg: #17202a;
  --card: #ffffff;
  --surface-2: #eef3f7;
  --muted: #e8eef5;
  --muted-fg: #627187;
  --border: rgba(32, 45, 61, 0.13);

  --brand: #0f766e;
  --brand-hover: #0b5f59;
  --brand-contrast: #ffffff;
  --accent: #3659d6;
  --accent-soft: #e6f4f1;
  --accent-soft-fg: #0b5f59;
  --brand-mark: linear-gradient(135deg, #0f766e 0%, #3659d6 100%);

  --navy: #0e1824;
  --navy-deep: #07111c;
  --on-navy: #f8fbff;
  --on-navy-soft: rgba(221, 232, 244, 0.78);
  --on-navy-faint: rgba(221, 232, 244, 0.56);
  --navy-line: rgba(227, 238, 249, 0.14);
  --navy-surface: rgba(255, 255, 255, 0.07);
  --navy-accent: #5eead4;

  --success: #16a34a;
  --warning: #d97706;
  --destructive: #dc2626;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 36px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.15);

  --header-h: 72px;
  --container: 1200px;
}

.dark {
  color-scheme: dark;

  --bg: #0b1117;
  --fg: #eef4f8;
  --card: #111a23;
  --surface-2: #0f1720;
  --muted: #182330;
  --muted-fg: #a8b4c3;
  --border: rgba(174, 190, 207, 0.16);

  --brand: #2dd4bf;
  --brand-hover: #5eead4;
  --brand-contrast: #041513;
  --accent: #8ea4ff;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-soft-fg: #9fe7db;
  --brand-mark: linear-gradient(135deg, #0f766e 0%, #4f46e5 100%);

  --navy: #0d1722;
  --navy-deep: #071019;
  --on-navy: #f8fbff;
  --on-navy-soft: rgba(218, 229, 241, 0.8);
  --on-navy-faint: rgba(218, 229, 241, 0.58);
  --navy-line: rgba(226, 238, 249, 0.14);
  --navy-surface: rgba(255, 255, 255, 0.075);
  --navy-accent: #67e8d5;

  --success: #4ade80;
  --warning: #fbbf24;
  --destructive: #fb7185;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.46);
}

/* ----------------------------- Reset ----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

::selection {
  background-color: color-mix(in oklab, var(--brand) 28%, transparent);
  color: var(--fg);
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* --------------------------- Layout ------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.section {
  padding-block: 104px;
  scroll-margin-top: var(--header-h);
}

.section-muted {
  background: linear-gradient(
    180deg,
    var(--surface-2) 0%,
    color-mix(in oklab, var(--surface-2) 72%, var(--bg)) 100%
  );
}

/* ---------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  transition: background-color 0.18s ease, transform 0.12s ease,
    border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.985);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.btn-lg {
  font-size: 15px;
  padding: 14px 26px;
}

.btn-primary {
  background-color: var(--brand);
  color: var(--brand-contrast);
  box-shadow: 0 10px 24px color-mix(in oklab, var(--brand) 22%, transparent);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
}

.btn-glass {
  background-color: rgba(255, 255, 255, 0.075);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------------------------- Header ----------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.scrolled {
  background-color: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--brand-mark);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.brand-name {
  font-size: 19px;
  letter-spacing: 0;
  color: var(--fg);
  transition: color 0.25s ease;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.primary-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-fg);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.primary-nav a:hover {
  color: var(--fg);
  background-color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  color: var(--muted-fg);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background-color: var(--muted);
  color: var(--fg);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-fg);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  background-color: var(--muted);
  color: var(--fg);
}

.icon-sun {
  display: none;
}

.dark .icon-sun {
  display: block;
}

.dark .icon-moon {
  display: none;
}

.nav-toggle {
  display: none;
}

.icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Transparent header over the navy hero (page at top) */
.site-header:not(.scrolled) .brand-name {
  color: #ffffff;
}

.site-header:not(.scrolled) .primary-nav a,
.site-header:not(.scrolled) .icon-btn,
.site-header:not(.scrolled) .lang-btn {
  color: rgba(255, 255, 255, 0.8);
}

.site-header:not(.scrolled) .primary-nav a:hover,
.site-header:not(.scrolled) .icon-btn:hover,
.site-header:not(.scrolled) .lang-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.site-header:not(.scrolled) .header-cta {
  background-color: #ffffff;
  color: var(--navy-deep);
}

.site-header:not(.scrolled) .header-cta:hover {
  background-color: #e7eef6;
}

/* ----------------------------- Hero ------------------------------ */
.hero {
  position: relative;
  background:
    linear-gradient(118deg, rgba(15, 118, 110, 0.24), transparent 32%),
    linear-gradient(146deg, var(--navy-deep) 0%, #0b1824 52%, #101625 100%);
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 56px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 70vw;
  min-width: 720px;
  height: 42%;
  transform: translateX(-18%) skewY(-8deg);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(45, 212, 191, 0.14) 36%,
    rgba(142, 164, 255, 0.1) 64%,
    transparent 100%
  );
  opacity: 0.86;
}

.hero-bg::before {
  top: 2%;
}

.hero-bg::after {
  bottom: -16%;
  transform: translateX(-82%) skewY(7deg);
  opacity: 0.56;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 86%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 86%);
  opacity: 0.18;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #d8f8f3;
  background-color: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 13px;
  border-radius: 999px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--navy-accent);
  color: var(--navy-accent);
  animation: pulse 2.4s ease-out infinite;
}

.pulse-dot-success {
  background-color: var(--success);
  color: var(--success);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.hero-title {
  margin-top: 24px;
  font-size: 3.85rem;
  line-height: 1.07;
  letter-spacing: 0;
  font-weight: 800;
  color: #ffffff;
}

.hero-title .accent {
  color: var(--navy-accent);
  text-shadow: 0 0 28px rgba(94, 234, 212, 0.18);
}

.hero-subtitle {
  margin-top: 22px;
  font-size: 17px;
  color: var(--on-navy-soft);
  max-width: 540px;
}

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

.hero-micro {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-navy-faint);
}

.hero-micro svg {
  color: var(--success);
  flex-shrink: 0;
}

/* ----------------------- Hero flow scene ------------------------- */
.hero-visual {
  perspective: 1600px;
}

.flow-scene {
  position: relative;
  min-height: 510px;
  background:
    radial-gradient(circle at 54% 48%, rgba(94, 234, 212, 0.2), transparent 27%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(8, 15, 23, 0.92));
  border: 1px solid rgba(226, 238, 249, 0.14);
  border-radius: var(--radius-2xl);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform 0.45s ease;
  backdrop-filter: blur(18px);
}

.flow-scene::before {
  content: "";
  position: absolute;
  inset: 42px 0 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 74%);
}

.hero-visual:hover .flow-scene {
  transform: rotateY(0) rotateX(0);
}

.flow-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background-color: rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.flow-dots {
  display: inline-flex;
  gap: 6px;
}

.flow-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.18);
}

.flow-toolbar-title {
  font-size: 13px;
  font-weight: 700;
  color: #eef4fb;
}

.flow-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
}

.flow-map {
  position: relative;
  z-index: 1;
  min-height: 398px;
  padding: 34px 28px 24px;
}

.flow-lines {
  position: absolute;
  inset: 18px 4px 0;
  width: calc(100% - 8px);
  height: calc(100% - 18px);
  opacity: 0.88;
  pointer-events: none;
}

.flow-line {
  stroke: url("#flowGradient");
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
  animation: flow-dash 1.4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(94, 234, 212, 0.28));
}

.flow-line-b,
.flow-line-e {
  animation-duration: 1.8s;
  opacity: 0.72;
}

.flow-line-c,
.flow-line-f {
  animation-duration: 2s;
  animation-direction: reverse;
  opacity: 0.62;
}

@keyframes flow-dash {
  to {
    stroke-dashoffset: -20;
  }
}

.data-packet {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 0 5px rgba(94, 234, 212, 0.12),
    0 0 18px rgba(94, 234, 212, 0.86);
  opacity: 0;
}

.packet-a {
  top: 100px;
  left: 92px;
  animation: packet-to-core 4.2s linear infinite;
}

.packet-b {
  top: 222px;
  left: 92px;
  animation: packet-to-core 4.8s 0.9s linear infinite;
}

.packet-c {
  top: 202px;
  left: 342px;
  background: #fbbf24;
  box-shadow:
    0 0 0 5px rgba(251, 191, 36, 0.12),
    0 0 18px rgba(251, 191, 36, 0.75);
  animation: packet-from-core 4.4s 0.4s linear infinite;
}

.packet-d {
  top: 310px;
  left: 342px;
  background: #8ea4ff;
  box-shadow:
    0 0 0 5px rgba(142, 164, 255, 0.12),
    0 0 18px rgba(142, 164, 255, 0.75);
  animation: packet-from-core-low 5s 1.4s linear infinite;
}

@keyframes packet-to-core {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.8);
  }
  10%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(230px, 88px) scale(1);
  }
}

@keyframes packet-from-core {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.8);
  }
  10%,
  76% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(248px, -104px) scale(1);
  }
}

@keyframes packet-from-core-low {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.8);
  }
  10%,
  76% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(248px, -6px) scale(1);
  }
}

.flow-column {
  position: absolute;
  top: 42px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 148px;
}

.flow-inputs {
  left: 28px;
}

.flow-outputs {
  right: 28px;
}

.flow-column-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy-faint);
}

.flow-node {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 66px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.flow-node strong {
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 800;
  color: #ffffff;
}

.flow-node small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--on-navy-faint);
}

.flow-node-alert {
  border-color: rgba(251, 191, 36, 0.34);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(251, 191, 36, 0.1) inset;
}

.flow-core {
  position: absolute;
  top: 142px;
  left: 50%;
  z-index: 4;
  width: 160px;
  height: 160px;
  transform: translateX(-50%);
}

.core-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 50%;
  animation: orbit 7s linear infinite;
}

.core-orbit::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 24px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy-accent);
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.82);
}

.core-orbit-b {
  inset: 18px;
  border-color: rgba(142, 164, 255, 0.28);
  animation-duration: 9s;
  animation-direction: reverse;
}

.core-orbit-b::before {
  top: auto;
  left: auto;
  right: 15px;
  bottom: 26px;
  background: #8ea4ff;
  box-shadow: 0 0 18px rgba(142, 164, 255, 0.72);
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

.core-card {
  position: absolute;
  inset: 34px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 18px;
  text-align: center;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(45, 212, 191, 0.22), rgba(142, 164, 255, 0.13)),
    rgba(5, 12, 21, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.34),
    0 0 40px rgba(94, 234, 212, 0.18);
}

.core-kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-accent);
}

.core-card strong {
  font-size: 12.5px;
  line-height: 1.22;
  color: #ffffff;
}

.core-meter {
  position: relative;
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.core-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 68%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy-accent), #fbbf24);
  animation: meter-scan 2.5s ease-in-out infinite;
}

@keyframes meter-scan {
  0%,
  100% {
    width: 46%;
  }
  50% {
    width: 82%;
  }
}

.flow-footer {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.05);
}

.flow-footer span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
}

.flow-footer strong {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.flow-footer small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--on-navy-faint);
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 700;
  color: var(--on-navy-soft);
}

/* --------------------------- Trust strip ------------------------- */
.trust-strip {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--navy-line);
  text-align: center;
}

.trust-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy-faint);
}

/* ----------------------------- Stats ----------------------------- */
.stats-section {
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    color-mix(in oklab, var(--surface-2) 58%, var(--bg)) 100%
  );
  border-bottom: 1px solid var(--border);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 48px;
}

.stat {
  text-align: center;
  padding-inline: 20px;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: 0;
  color: color-mix(in oklab, var(--fg) 88%, var(--brand));
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-fg);
}

/* ------------------------ Section heading ------------------------ */
.section-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin-top: 12px;
  font-size: 2.45rem;
  line-height: 1.16;
  letter-spacing: 0;
  font-weight: 800;
  color: var(--fg);
}

.section-subtitle {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--muted-fg);
}

/* ------------------------ Package workspaces --------------------- */
.package-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.package-grid::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image:
    linear-gradient(color-mix(in oklab, var(--border) 58%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--border) 58%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 72%);
  opacity: 0.46;
  pointer-events: none;
}

.package-card {
  position: relative;
  overflow: hidden;
  min-height: 258px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--accent-soft) 44%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in oklab, var(--card) 96%, #ffffff) 0%, var(--card) 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.package-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent 78%);
  opacity: 0.55;
}

.package-card::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 54px;
  height: 54px;
  border-right: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  opacity: 0.5;
}

.package-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--accent) 38%, var(--border));
  box-shadow: var(--shadow-md);
}

.package-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.package-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  color: var(--accent-soft-fg);
  background-color: var(--accent-soft);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent-soft-fg) 12%, transparent) inset;
}

.package-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background-color: var(--muted);
  color: var(--muted-fg);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.package-title,
.package-desc,
.package-output {
  position: relative;
  z-index: 1;
}

.package-title {
  font-size: 18px;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--fg);
}

.package-desc {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted-fg);
}

.package-output {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.package-output span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: color-mix(in oklab, var(--card) 72%, var(--surface-2));
  color: var(--fg);
  font-size: 11.5px;
  font-weight: 800;
}

.package-card-featured {
  border-color: color-mix(in oklab, var(--brand) 42%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--brand) 16%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in oklab, var(--card) 98%, #ffffff) 0%, var(--card) 100%);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px color-mix(in oklab, var(--brand) 10%, transparent) inset;
}

.package-card-featured .package-icon {
  color: var(--brand-contrast);
  background-color: var(--brand);
}

.package-card-featured .package-tag {
  color: var(--brand);
  background-color: color-mix(in oklab, var(--brand) 12%, var(--card));
}

.package-card-featured .package-output span {
  border-color: color-mix(in oklab, var(--brand) 24%, var(--border));
}

/* -------------------------- On-prem layer ------------------------ */
.layer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: center;
}

.layer-title,
.layer-copy .section-eyebrow {
  display: block;
}

.layer-subtitle {
  max-width: 520px;
}

.layer-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.11), transparent 38%),
    linear-gradient(180deg, color-mix(in oklab, var(--card) 95%, #ffffff) 0%, var(--card) 100%);
  box-shadow: var(--shadow-md);
}

.layer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in oklab, var(--border) 68%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--border) 68%, transparent) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.16;
  pointer-events: none;
}

.layer-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 800;
  color: var(--fg);
}

.layer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--brand-contrast);
  background-color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.layer-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
}

.layer-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg);
}

.layer-list li:last-child {
  border-bottom: 0;
}

.layer-list-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--accent-soft);
  color: var(--accent-soft-fg);
}

.layer-list-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 6px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(40deg);
}

/* --------------------- Regulated institutions -------------------- */
.regulated-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.regulated-title,
.regulated-copy .section-eyebrow {
  display: block;
}

.regulated-subtitle {
  max-width: 560px;
}

.regulated-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.regulated-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--card);
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.regulated-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, color-mix(in oklab, var(--accent-soft) 42%, transparent), transparent 42%),
    var(--card);
  box-shadow: var(--shadow-md);
}

.regulated-panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 800;
  color: var(--fg);
}

.regulated-list {
  display: grid;
}

.regulated-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 4px;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}

.regulated-list article:last-child {
  border-bottom: 0;
}

.regulated-number {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-lg);
  background-color: var(--accent-soft);
  color: var(--accent-soft-fg);
  font-size: 13px;
  font-weight: 800;
}

.regulated-list h3 {
  font-size: 15.5px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--fg);
}

.regulated-list p {
  font-size: 14px;
  color: var(--muted-fg);
}

/* ------------------------- Modules grid -------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--card) 94%, #ffffff) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0.62;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--accent) 42%, var(--border));
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background-color: var(--accent-soft);
  color: var(--accent-soft-fg);
  margin-bottom: 18px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--fg);
}

.feature-desc {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted-fg);
}

/* --------------------------- Spotlight --------------------------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.spotlight-reverse .spotlight-copy {
  order: 2;
}

.spotlight-title {
  margin-top: 12px;
  font-size: 2.25rem;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 800;
  color: var(--fg);
}

.spotlight-desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted-fg);
}

.spotlight-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg);
}

.list-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--accent-soft);
  color: var(--accent-soft-fg);
}

/* Spotlight visual card */
.spotlight-visual {
  display: flex;
  justify-content: center;
}

.spot-card {
  width: 100%;
  max-width: 420px;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--card) 96%, #ffffff) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.spot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.spot-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.sev-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--destructive);
  background-color: color-mix(in oklab, var(--destructive) 15%, var(--card));
  border: 1px solid color-mix(in oklab, var(--destructive) 35%, transparent);
  padding: 3px 9px;
  border-radius: 999px;
}

.spot-code {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius-md);
  background-color: color-mix(in oklab, var(--surface-2) 82%, var(--card));
  border: 1px solid var(--border);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  font-size: 12.5px;
}

.code-line {
  color: var(--muted-fg);
  white-space: nowrap;
}

.tok-key {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

.tok-num {
  color: var(--warning);
  font-style: normal;
}

.tok-str {
  color: var(--success);
  font-style: normal;
}

.spot-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.spot-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-fg);
  background-color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
}

.spot-chip-warn {
  color: var(--warning);
  background-color: color-mix(in oklab, var(--warning) 16%, var(--card));
}

.spot-chip-brand {
  color: var(--brand-contrast);
  background-color: var(--brand);
}

/* Spotlight timeline */
.spot-timeline {
  display: flex;
  flex-direction: column;
}

.spot-timeline li {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
}

.spot-timeline li:last-child {
  padding-bottom: 0;
}

.tl-dot {
  position: relative;
  width: 12px;
  height: 12px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--accent);
}

.spot-timeline li:not(:last-child) .tl-dot::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 26px;
  background-color: var(--border);
}

.tl-dot-ok {
  background-color: var(--success);
}

.tl-dot-warn {
  background-color: var(--warning);
}

.tl-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tl-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
}

.tl-meta {
  font-size: 12px;
  color: var(--muted-fg);
}

/* ------------------------- How it works -------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--card) 94%, #ffffff) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-contrast);
  background-color: var(--brand);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.step-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--fg);
}

.step-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted-fg);
}

/* --------------------------- Security ---------------------------- */
.security-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.security-title,
.security-copy .section-eyebrow {
  display: block;
}

.security-subtitle {
  max-width: 520px;
}

.check-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: color-mix(in oklab, var(--success) 16%, var(--bg));
  color: var(--success);
}

.security-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(15, 118, 110, 0.28), transparent 38%),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--navy-line);
}

.security-panel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
}

.security-panel-content {
  position: relative;
}

.shield-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  margin-bottom: 22px;
}

.security-panel-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
  color: #ffffff;
}

.security-panel-desc {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--on-navy-soft);
}

/* -------------------------- Testimonial -------------------------- */
.quote-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(54, 89, 214, 0.18), transparent 38%),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding-block: 96px;
}

.quote-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.18;
}

.quote-content {
  position: relative;
  max-width: 820px;
  text-align: center;
}

.quote-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy-accent);
}

.quote-text {
  margin-top: 20px;
  font-size: 2rem;
  line-height: 1.34;
  letter-spacing: 0;
  font-weight: 700;
  color: #ffffff;
}

.quote-author {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
}

.quote-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-mark);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.quote-author-meta {
  text-align: left;
}

.quote-name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.quote-role {
  display: block;
  font-size: 13px;
  color: var(--on-navy-soft);
}

/* ----------------------- CTA / Request demo ---------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(126deg, rgba(15, 118, 110, 0.24), transparent 36%),
    linear-gradient(145deg, var(--navy-deep) 0%, #0e1724 100%);
  padding-block: 100px;
  scroll-margin-top: var(--header-h);
}

.cta-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.18;
}

.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.cta-content {
  max-width: 520px;
}

.cta-title {
  font-size: 2.5rem;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 800;
  color: #ffffff;
}

.cta-subtitle {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--on-navy-soft);
}

.cta-points {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-points li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  font-weight: 500;
  color: #e6eef7;
}

.cta-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(94, 234, 212, 0.14);
  color: var(--navy-accent);
}

/* Demo request card + form */
.demo-card {
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--card) 96%, #ffffff) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}

.demo-form {
  display: flex;
  flex-direction: column;
}

.demo-form-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--fg);
}

.demo-form-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted-fg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.field input {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--fg);
  background-color: color-mix(in oklab, var(--card) 70%, var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: var(--muted-fg);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}

.field input.invalid {
  border-color: var(--destructive);
}

.field input.invalid:focus {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 22%, transparent);
}

.field-error {
  font-size: 12px;
  font-weight: 600;
  color: var(--destructive);
}

.field-error:empty {
  display: none;
}

.btn-block {
  width: 100%;
  margin-top: 24px;
}

.demo-form-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted-fg);
  text-align: center;
}

.form-status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.form-status.is-error {
  color: var(--destructive);
}

.demo-success {
  text-align: center;
  padding: 28px 8px;
}

.demo-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: color-mix(in oklab, var(--success) 16%, var(--card));
  color: var(--success);
  margin-bottom: 18px;
}

.demo-success-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--fg);
}

.demo-success-text {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted-fg);
}

/* ---------------------------- Footer ----------------------------- */
.site-footer {
  background:
    linear-gradient(180deg, #0e1724 0%, var(--navy-deep) 100%);
  padding-top: 64px;
}

.site-footer .brand-name {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--on-navy-soft);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--on-navy-soft);
  padding: 5px 0;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 24px;
  border-top: 1px solid var(--navy-line);
  font-size: 13px;
  color: var(--on-navy-faint);
}

/* ------------------------ Scroll reveal -------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.card-grid .reveal.is-visible:nth-child(2),
.package-grid .reveal.is-visible:nth-child(2),
.steps .reveal.is-visible:nth-child(2) {
  transition-delay: 0.08s;
}
.card-grid .reveal.is-visible:nth-child(3),
.package-grid .reveal.is-visible:nth-child(3),
.steps .reveal.is-visible:nth-child(3) {
  transition-delay: 0.16s;
}
.card-grid .reveal.is-visible:nth-child(4),
.package-grid .reveal.is-visible:nth-child(4),
.steps .reveal.is-visible:nth-child(4) {
  transition-delay: 0.24s;
}
.card-grid .reveal.is-visible:nth-child(5),
.package-grid .reveal.is-visible:nth-child(5) {
  transition-delay: 0.32s;
}
.card-grid .reveal.is-visible:nth-child(6),
.package-grid .reveal.is-visible:nth-child(6) {
  transition-delay: 0.4s;
}

/* --------------------------- Responsive -------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    width: 100%;
    max-width: 660px;
  }
  .flow-scene {
    transform: none;
  }
  .spotlight {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .spotlight-reverse .spotlight-copy {
    order: 0;
  }
  .spotlight-visual {
    justify-content: flex-start;
  }
  .security-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .layer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .regulated-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .cta-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    padding: 12px 24px 18px;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  /* Mobile menu always uses themed colours, even over the navy hero */
  .site-header:not(.scrolled) .primary-nav a {
    color: var(--muted-fg);
  }
  .site-header:not(.scrolled) .primary-nav a:hover {
    color: var(--fg);
    background-color: var(--muted);
  }
  .primary-nav a {
    padding: 12px;
    font-size: 15px;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .flow-scene {
    min-height: auto;
  }
  .flow-map {
    display: grid;
    gap: 18px;
    min-height: auto;
    padding: 24px 18px;
  }
  .flow-lines,
  .data-packet {
    display: none;
  }
  .flow-column,
  .flow-core {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    transform: none;
  }
  .flow-inputs {
    order: 1;
  }
  .flow-core {
    order: 2;
    width: 176px;
    height: 176px;
    margin: 4px auto;
  }
  .flow-outputs {
    order: 3;
  }
  .flow-node {
    min-height: auto;
  }
  .flow-footer {
    grid-template-columns: 1fr;
  }
  .flow-footer span {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 18px;
  }
  .section {
    padding-block: 72px;
  }
  .hero-title {
    font-size: 2.45rem;
  }
  .stat-value {
    font-size: 1.75rem;
  }
  .section-title,
  .cta-title {
    font-size: 1.9rem;
  }
  .spotlight-title {
    font-size: 1.75rem;
  }
  .quote-text {
    font-size: 1.4rem;
  }
  .card-grid,
  .package-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .package-card {
    min-height: auto;
  }
  .package-top {
    align-items: flex-start;
  }
  .package-output span {
    flex: 1 1 auto;
  }
  .layer-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .regulated-list article {
    grid-template-columns: 1fr;
  }
  .regulated-number {
    grid-row: auto;
    margin-bottom: 6px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .stats-row {
    grid-template-columns: 1fr;
    gap: 28px 0;
  }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 28px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .demo-card {
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ----------------------- Reduced motion -------------------------- */
@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
