/* ==========================================================================
   COREQ Technologies — Core Stylesheet
   Template-based static site system. Re-skin by editing :root tokens only.
   Author: Core Q Technologies LLC FZ
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS  — change these to re-brand the whole site
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (sampled from the COREQ logo) */
  --c-navy-900: #050f33;
  --c-navy-800: #08174a;
  --c-navy-700: #0b1f5c;
  --c-navy-600: #122c7a;
  --c-blue-600: #1b3fa0;
  --c-blue-500: #2456c9;
  --c-blue-400: #4e7fd6;
  --c-blue-300: #8db2ea;
  --c-lime-500: #7fe01e;
  --c-lime-400: #96ea45;
  --c-lime-300: #b6f47c;

  /* Semantic roles */
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --bg-deep: var(--c-navy-800);
  --bg-deeper: var(--c-navy-900);
  --surface: #ffffff;
  --surface-dark: rgba(255, 255, 255, 0.04);
  --border: #e2e8f4;
  --border-dark: rgba(255, 255, 255, 0.12);

  --text: #101a33;
  --text-muted: #566080;
  --text-invert: #ffffff;
  --text-invert-muted: #b9c4de;

  --accent: var(--c-lime-500);
  --accent-ink: #0a2005;
  --primary: var(--c-blue-600);
  --primary-hover: var(--c-blue-500);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--c-blue-600) 0%, var(--c-navy-700) 100%);
  --grad-hero: radial-gradient(1200px 700px at 12% -10%, rgba(36, 86, 201, 0.45) 0%, transparent 60%),
               radial-gradient(900px 600px at 95% 10%, rgba(127, 224, 30, 0.16) 0%, transparent 55%),
               linear-gradient(160deg, var(--c-navy-900) 0%, var(--c-navy-800) 55%, #0a1f66 100%);
  --grad-accent: linear-gradient(120deg, var(--c-lime-500), var(--c-blue-400));

  /* Typography */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.1rem, 0.4vw + 1rem, 1.25rem);
  --fs-h4: clamp(1.15rem, 0.5vw + 1rem, 1.35rem);
  --fs-h3: clamp(1.35rem, 0.9vw + 1.05rem, 1.75rem);
  --fs-h2: clamp(1.75rem, 2.2vw + 1rem, 2.85rem);
  --fs-h1: clamp(2.15rem, 4vw + 1rem, 4.1rem);

  /* Spacing / layout */
  --wrap: 1220px;
  --wrap-narrow: 820px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 7vw, 7rem);

  /* Radii + elevation */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-sm: 0 2px 8px rgba(11, 31, 92, 0.06);
  --sh-md: 0 12px 30px -12px rgba(11, 31, 92, 0.18);
  --sh-lg: 0 28px 60px -22px rgba(11, 31, 92, 0.30);
  --sh-glow: 0 0 0 1px rgba(127, 224, 30, 0.35), 0 12px 40px -10px rgba(127, 224, 30, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.55s;

  --header-h: 82px;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;      /* nothing may scroll the page sideways */
  width: 100%;
}

body {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open,
body.modal-open { overflow: hidden; }

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

a { color: var(--primary); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  margin: 0 0 0.6em;
  line-height: 1.16;
  letter-spacing: -0.022em;
  font-weight: 750;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

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

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

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

:focus-visible {
  outline: 3px solid var(--c-lime-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--c-lime-500); color: var(--accent-ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--c-navy-800);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 650;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.25rem); }

.section--dark {
  background: var(--bg-deep);
  color: var(--text-invert-muted);
  position: relative;
  overflow: hidden;
}
.section { overflow-x: clip; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-invert); }
.section--dark strong { color: #fff; }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.85rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.stack > * + * { margin-top: 1.15rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHIC UTILITIES
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--c-lime-400); }

.lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.68;
}
.section--dark .lead { color: var(--text-invert-muted); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; }

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

.hl { color: var(--c-lime-400); }
.text-muted { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 680;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-3px); box-shadow: var(--sh-md); color: var(--btn-fg); }
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Comfortable tap target everywhere */
.btn, .nav__link, .acc-btn, .arrow-link { touch-action: manipulation; }

.btn--primary { --btn-bg: var(--primary); box-shadow: 0 10px 26px -12px rgba(27, 63, 160, 0.85); }
.btn--primary:hover { --btn-fg: var(--accent-ink); }
.btn--primary:hover::after { opacity: 1; }

.btn--accent {
  --btn-bg: var(--c-lime-500);
  --btn-fg: var(--accent-ink);
  font-weight: 750;
  box-shadow: 0 10px 28px -12px rgba(127, 224, 30, 0.9);
}
.btn--accent:hover { --btn-bg: var(--c-lime-400); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { --btn-bg: var(--bg-alt); border-color: var(--c-blue-300); }

.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: #fff;
  border-color: var(--border-dark);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.14); }

.btn--sm { padding: 0.68rem 1.25rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.btn-row.center { justify-content: center; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 680;
  font-size: var(--fs-sm);
  color: var(--primary);
}
.arrow-link svg { transition: transform 0.3s var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }
.section--dark .arrow-link { color: var(--c-lime-400); }

/* --------------------------------------------------------------------------
   6. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--c-navy-900);
  color: var(--text-invert-muted);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar a { color: var(--text-invert-muted); display: inline-flex; align-items: center; gap: 0.42rem; }
.topbar a:hover { color: var(--c-lime-400); }
.topbar__list { display: flex; gap: 1.5rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.topbar__list li { margin: 0; }
.topbar__tag { color: var(--c-lime-400); font-weight: 650; letter-spacing: 0.04em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh-md); background: rgba(255, 255, 255, 0.96); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand__mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 820;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: var(--c-navy-700);
}
.brand__name span { color: var(--c-lime-500); }
.brand__sub {
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 620;
}

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

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 620;
  color: var(--text);
  white-space: nowrap;
}
.nav__link:hover, .nav__link:focus-visible { color: var(--primary); background: var(--bg-alt); }
.nav__link[aria-current="page"] { color: var(--primary); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav__caret { width: 10px; height: 10px; transition: transform 0.3s var(--ease); }
.has-drop:hover .nav__caret, .has-drop:focus-within .nav__caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 330px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 0.6rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.has-drop:hover > .dropdown,
.has-drop:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.dropdown li { margin: 0; }
.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 640;
}
.dropdown a small { font-weight: 450; color: var(--text-muted); font-size: 0.78rem; line-height: 1.45; }
.dropdown a:hover { background: var(--bg-alt); color: var(--primary); }

.nav__cta { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--c-navy-700);
  border-radius: 2px;
  transition: background 0.25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--c-navy-700);
  border-radius: 2px;
  transition: transform 0.32s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav__menu { display: none; }
}

@media (max-width: 560px) {
  .nav__quote { display: none; }
  .topbar { display: none; }
}

/* --------------------------------------------------------------------------
   6b. MOBILE NAVIGATION — full-screen list, every page in one place
   -------------------------------------------------------------------------- */
.mnav { position: fixed; inset: 0; z-index: 500; }
.mnav[hidden] { display: none; }

.mnav__panel {
  position: absolute;
  inset: 0;
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.28s var(--ease), transform 0.32s var(--ease);
}
.mnav.is-open .mnav__panel { opacity: 1; transform: translateY(0); }

/* Header row: brand on the left, close on the right */
.mnav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mnav__head .brand__mark { width: 38px; height: 38px; }
.mnav__head .brand__name { font-size: 1.18rem; }

.mnav__close {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-navy-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.mnav__close:hover, .mnav__close:active { background: var(--bg-alt); color: var(--primary); }

.mnav__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 1.15rem;
}

/* Full-width rows separated by hairlines */
.mnav__link {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 620;
  line-height: 1.3;
}
.mnav__link:last-child { border-bottom: 0; }
.mnav__link:hover, .mnav__link:active { color: var(--primary); }
.mnav__link[aria-current="page"] { color: var(--primary); font-weight: 720; }

/* Service pages sit slightly indented beneath the Services row */
.mnav__link--sub {
  padding-left: 1.35rem;
  min-height: 54px;
  font-size: 0.96rem;
  font-weight: 540;
  color: var(--text-muted);
  position: relative;
}
.mnav__link--sub::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--c-lime-500);
}
.mnav__link--sub:hover { color: var(--primary); }

.mnav__link--minor { font-size: 0.88rem; font-weight: 540; color: var(--text-muted); min-height: 50px; }

.mnav__foot {
  flex-shrink: 0;
  padding: 1.1rem 1.15rem calc(1.1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.mnav__contact { display: grid; gap: 0.25rem; margin-top: 0.9rem; }
.mnav__contact a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  font-size: var(--fs-sm);
  font-weight: 620;
  color: var(--text-muted);
  word-break: break-word;
}
.mnav__contact a:hover { color: var(--primary); }
.mnav__contact svg { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: var(--text-invert-muted);
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 8rem) clamp(4rem, 8vw, 7rem);
  isolation: isolate;
}
.hero h1 { color: #fff; }

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(closest-side at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 40%, #000 40%, transparent 100%);
  animation: gridDrift 34s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, 64px 64px; }
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
}
.hero__orb--a { width: 420px; height: 420px; background: rgba(36, 86, 201, 0.75); top: -110px; left: -90px; animation: floatA 17s ease-in-out infinite; }
.hero__orb--b { width: 320px; height: 320px; background: rgba(127, 224, 30, 0.42); bottom: -120px; right: 6%; animation: floatB 21s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(60px, 45px, 0); } }
@keyframes floatB { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-55px, -40px, 0); } }

.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 960px) { .hero__inner { grid-template-columns: 1fr; } }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem 0.5rem 0.55rem;
  border: 1px solid rgba(127, 224, 30, 0.35);
  background: rgba(127, 224, 30, 0.08);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 640;
  color: #dff8c2;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}
.hero__badge i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-lime-500);
  box-shadow: 0 0 0 4px rgba(127, 224, 30, 0.22);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 3px rgba(127,224,30,0.25); }
  50% { box-shadow: 0 0 0 8px rgba(127,224,30,0); }
}

.hero__rotator {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
}
.hero__rotator span {
  grid-area: 1 / 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.hero__rotator span.is-active { opacity: 1; transform: translateY(0); }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
}
.hero__stat b {
  display: block;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero__stat small { font-size: var(--fs-xs); color: var(--text-invert-muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* Hero visual — animated network SVG panel */
.hero__visual {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-dark);
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px);
  padding: 1.35rem;
  box-shadow: var(--sh-lg);
}
.hero__visual svg { width: 100%; height: auto; }

/* Traffic dots on the topology connectors.
   Scaled via transform rather than the `r` attribute so the radius set in the
   markup is respected and support is universal. */
.pulse-node {
  animation: nodePulse 2.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 5px rgba(127, 224, 30, 0.75));
}
.pulse-node:nth-of-type(2) { animation-delay: 0.35s; }
.pulse-node:nth-of-type(3) { animation-delay: 0.7s; }
.pulse-node:nth-of-type(4) { animation-delay: 1.05s; }
.pulse-node:nth-of-type(5) { animation-delay: 1.4s; }
.pulse-node:nth-of-type(6) { animation-delay: 1.75s; }
@keyframes nodePulse {
  0%, 100% { opacity: 0.45; transform: scale(0.75); }
  50%      { opacity: 1;    transform: scale(1.2); }
}

.flow-line {
  stroke-dasharray: 7 9;
  animation: flowDash 2.2s linear infinite;
}
.flow-line:nth-of-type(2) { animation-delay: 0.2s; }
.flow-line:nth-of-type(3) { animation-delay: 0.4s; }
.flow-line:nth-of-type(4) { animation-delay: 0.6s; }
.flow-line:nth-of-type(5) { animation-delay: 0.8s; }
.flow-line:nth-of-type(6) { animation-delay: 1s; }
@keyframes flowDash { to { stroke-dashoffset: -32; } }

/* --------------------------------------------------------------------------
   8. PAGE BANNER (interior pages)
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  background: var(--grad-hero);
  color: var(--text-invert-muted);
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}
.page-banner h1 { color: #fff; margin-bottom: 0.55rem; }
.page-banner .lead { max-width: 720px; }
.page-banner__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  font-size: var(--fs-xs);
  color: var(--text-invert-muted);
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: 0.45rem; }
.crumbs li + li::before { content: "/"; opacity: 0.45; }
.crumbs a { color: var(--c-lime-400); }
.crumbs a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   9. CARDS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
  height: 100%;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
/* Hover lift only on devices with a real pointer — otherwise the transform
   sticks after a tap on touchscreens. */
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); border-color: var(--c-blue-300); }
  .card:hover::before { transform: scaleX(1); }
}
.card:focus-within { border-color: var(--c-blue-300); box-shadow: var(--sh-md); }
.card:focus-within::before { transform: scaleX(1); }
@media (hover: none) {
  .card:active { transform: scale(0.995); border-color: var(--c-blue-300); }
  .card::before { transform: scaleX(1); transform-origin: left; }
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }

.card--dark {
  background: var(--surface-dark);
  border-color: var(--border-dark);
  backdrop-filter: blur(6px);
}
.card--dark p { color: var(--text-invert-muted); }
.card--dark:hover { border-color: rgba(127, 224, 30, 0.4); }

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(27,63,160,0.10), rgba(127,224,30,0.14));
  border: 1px solid var(--border);
  margin-bottom: 1.15rem;
  transition: transform 0.45s var(--ease);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__icon svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card--dark .card__icon { background: rgba(255,255,255,0.06); border-color: var(--border-dark); }
.card--dark .card__icon svg { stroke: var(--c-lime-400); }

.card__list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.35rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.card__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.card--dark .card__list { color: var(--text-invert-muted); }

.card--num { padding-top: 2.4rem; }
.card__num {
  position: absolute;
  top: 1.1rem;
  right: 1.35rem;
  font-size: 3.2rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(27, 63, 160, 0.07);
}
.card--dark .card__num { color: rgba(255,255,255,0.07); }

/* Stat cards */
.stat-card { text-align: center; padding: clamp(1.5rem, 3vw, 2.25rem) 1rem; }
.stat-card b {
  display: block;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 820;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card span { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }
.section--dark .stat-card span { color: var(--text-invert-muted); }

/* Feature row with icon */
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: rgba(127, 224, 30, 0.14);
  border: 1px solid rgba(127, 224, 30, 0.3);
}
.feature__icon svg { width: 21px; height: 21px; stroke: var(--c-navy-700); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.section--dark .feature__icon svg { stroke: var(--c-lime-400); }
.feature h4 { margin-bottom: 0.25rem; font-size: var(--fs-base); }
.feature p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.section--dark .feature p { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   10. CHECK LIST
   -------------------------------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 2.05rem;
  margin-bottom: 0.8rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(127, 224, 30, 0.18);
  border: 1px solid rgba(127, 224, 30, 0.45);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 0.6em;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--c-navy-700);
  border-bottom: 2px solid var(--c-navy-700);
  transform: rotate(-45deg);
}
.section--dark .check-list li { color: var(--text-invert-muted); }
.section--dark .check-list li::after { border-color: var(--c-lime-400); }

/* --------------------------------------------------------------------------
   11. PARTNER MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  color: var(--c-navy-700);
  white-space: nowrap;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.chip:hover { border-color: var(--c-lime-500); transform: translateY(-3px); }
.chip i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-accent);
  flex-shrink: 0;
}
.section--dark .chip { background: rgba(255,255,255,0.05); border-color: var(--border-dark); color: #fff; }

/* --------------------------------------------------------------------------
   12. PROCESS TIMELINE
   -------------------------------------------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li {
  position: relative;
  padding: 0 0 2.1rem 3.1rem;
  margin: 0;
  border-left: 2px solid var(--border);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: -19px;
  top: -4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 750;
  box-shadow: 0 0 0 6px var(--bg);
}
.timeline { counter-reset: step; }
.section--alt .timeline li::before { box-shadow: 0 0 0 6px var(--bg-alt); }
.section--dark .timeline li { border-left-color: var(--border-dark); }
.section--dark .timeline li::before { box-shadow: 0 0 0 6px var(--bg-deep); background: var(--c-lime-500); color: var(--accent-ink); }
.timeline h4 { margin-bottom: 0.25rem; }
.timeline p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.section--dark .timeline p { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   13. ACCORDION (FAQ)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 680;
  font-size: var(--fs-base);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.acc-btn:hover { color: var(--primary); }
.acc-btn i {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.acc-btn i::before, .acc-btn i::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 9px; height: 2px;
  background: var(--c-navy-700);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
  border-radius: 2px;
}
.acc-btn i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-btn[aria-expanded="true"] i { background: var(--c-lime-500); border-color: var(--c-lime-500); }
.acc-btn[aria-expanded="true"] i::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel {
  overflow: hidden;
  height: 0;
  transition: height 0.42s var(--ease);
}
.acc-panel__inner { padding: 0 0 1.35rem; color: var(--text-muted); font-size: var(--fs-sm); max-width: 78ch; }

/* --------------------------------------------------------------------------
   14. FORMS
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  box-shadow: var(--sh-md);
}
.form-grid { display: grid; gap: 1.05rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.field label .req { color: #d33; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--c-blue-400);
  box-shadow: 0 0 0 4px rgba(78, 127, 214, 0.16);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #e05a5a; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note { font-size: var(--fs-xs); color: var(--text-muted); }
.form-status {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 620;
  margin-bottom: 1rem;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: rgba(127, 224, 30, 0.14); border: 1px solid rgba(127, 224, 30, 0.45); color: #2f5a08; }
.form-status.is-err { background: rgba(224, 90, 90, 0.1); border: 1px solid rgba(224, 90, 90, 0.4); color: #8f2020; }

/* --------------------------------------------------------------------------
   15. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.6rem);
  overflow: hidden;
  isolation: isolate;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); }
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: rgba(127, 224, 30, 0.28);
  filter: blur(90px);
  right: -80px; bottom: -180px;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
  justify-content: space-between;
}
.cta-band__inner > div { flex: 1 1 420px; }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-deeper);
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
  padding-top: clamp(3rem, 6vw, 4.75rem);
}
.site-footer h4 {
  color: #fff;
  font-size: var(--fs-sm);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer a { color: var(--text-invert-muted); }
.site-footer a:hover { color: var(--c-lime-400); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.75rem;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 0.55rem; }

.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: var(--text-invert-muted); }
.footer__brand p { margin-top: 1.15rem; max-width: 42ch; }

.footer__contact { list-style: none; padding: 0; margin: 1.35rem 0 0; }
.footer__contact li { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 0.7rem; }
.footer__contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 0.28em; stroke: var(--c-lime-400); fill: none; stroke-width: 1.8; }

.socials { display: flex; gap: 0.55rem; margin-top: 1.35rem; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.socials a:hover { background: rgba(127,224,30,0.15); border-color: var(--c-lime-500); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

.footer__bar {
  border-top: 1px solid var(--border-dark);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
}
.footer__bar ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer__bar li { margin: 0; }

/* --------------------------------------------------------------------------
   17. FLOATING ACTIONS
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.15rem 0.7rem 0.7rem;
  background: #25d366;
  color: #06331a;
  border-radius: var(--r-pill);
  font-weight: 720;
  font-size: var(--fs-sm);
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.9);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.wa-float:hover { color: #06331a; background: #1fbe5b; transform: translateY(-3px); }
.wa-float__icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.wa-float__icon svg { width: 20px; height: 20px; fill: #25d366; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: waRing 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes waRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.16); opacity: 0; }
}
.wa-float__close {
  position: absolute;
  top: -7px; right: -7px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.wa-float__close:hover { background: var(--bg-alt); color: var(--text); }

@media (max-width: 520px) {
  .wa-float { padding: 0.6rem; left: 16px; bottom: 16px; }
  .wa-float__label { display: none; }
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--c-navy-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-lime-500); border-color: var(--c-lime-500); }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 520px) { .to-top { right: 16px; bottom: 16px; } }

/* Scroll progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad-accent);
  z-index: 400;
  transition: width 0.12s linear;
}

/* --------------------------------------------------------------------------
   18. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"] { transform: scale(0.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   19. MISC
   -------------------------------------------------------------------------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.9rem;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 640;
  color: var(--text-muted);
}
.section--dark .pill { background: rgba(255,255,255,0.05); border-color: var(--border-dark); color: var(--text-invert-muted); }

.note {
  border-left: 3px solid var(--c-lime-500);
  background: var(--bg-alt);
  padding: 1.1rem 1.35rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.9rem; }
.prose li { color: var(--text-muted); font-size: var(--fs-sm); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-weight: 700; color: var(--text); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

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

/* --------------------------------------------------------------------------
   20. QUOTE MODAL
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 600; }
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 51, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: 0 40px 90px -30px rgba(5, 15, 51, 0.6);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.modal.is-open .modal__dialog { opacity: 1; transform: translateY(0) scale(1); }

/* centre the dialog */
.modal { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal__close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }

.modal__head {
  flex-shrink: 0;
  background: var(--grad-brand);
  color: #fff;
  padding: 1.6rem 1.75rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.modal__head::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -140px;
  border-radius: 50%;
  background: rgba(127, 224, 30, 0.3);
  filter: blur(60px);
}
.modal__head h2 {
  color: #fff;
  font-size: var(--fs-h3);
  margin-bottom: 0.35rem;
  padding-right: 2.5rem;
  position: relative;
}
.modal__head p {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-sm);
  margin: 0;
  position: relative;
}

.modal__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.5rem 1.75rem calc(1.75rem + env(safe-area-inset-bottom));
}
.modal__body .field textarea { min-height: 92px; }

@media (max-width: 560px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(100%);
  }
  .modal.is-open .modal__dialog { transform: translateY(0); }
  .modal__head { padding: 1.35rem 1.25rem 1.15rem; }
  .modal__body { padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------------------------
   21. MOBILE REFINEMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .split { gap: 2.25rem; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__inner .btn-row { width: 100%; }
  .cta-band__inner .btn-row .btn { flex: 1 1 200px; }
}

@media (max-width: 767px) {
  :root {
    --section-y: 3.25rem;
    --header-h: 68px;
    --fs-md: 1rem;
  }

  body { line-height: 1.66; }

  /* Nothing may push the layout sideways */
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }

  h1 { letter-spacing: -0.028em; }
  h2 { letter-spacing: -0.02em; }

  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 1.15rem; }
  .brand__sub { font-size: 0.52rem; letter-spacing: 0.28em; }

  .hero { padding-block: 2.75rem 3.25rem; }
  .hero__inner { gap: 2rem; }
  .hero__visual { padding: 0.9rem; order: 2; }
  .hero__badge { font-size: 0.7rem; padding: 0.42rem 0.8rem 0.42rem 0.5rem; margin-bottom: 1.15rem; }
  .hero__stats { gap: 1.15rem 1.5rem; margin-top: 1.85rem; padding-top: 1.5rem; }
  .hero__stat { flex: 1 1 100px; }
  .hero__orb--a { width: 260px; height: 260px; }
  .hero__orb--b { width: 200px; height: 200px; }

  /* Rotating words take a full line instead of overflowing */
  .hero__rotator { display: grid; width: 100%; }

  .btn-row .btn { flex: 1 1 100%; }
  .btn { padding: 0.9rem 1.4rem; min-height: 48px; }

  .page-banner { padding-block: 2.25rem 2.5rem; }
  .crumbs { font-size: 0.72rem; }

  .section-head { margin-bottom: 1.85rem; }
  .card { padding: 1.35rem 1.25rem; }
  .card__icon { width: 48px; height: 48px; margin-bottom: 0.9rem; }
  .card__num { font-size: 2.4rem; }

  .stat-card { padding: 1.35rem 0.85rem; }

  .timeline li { padding: 0 0 1.6rem 2.4rem; }
  .timeline li::before { width: 30px; height: 30px; left: -16px; }

  .acc-btn { padding: 1.05rem 0; font-size: 0.97rem; min-height: 52px; }

  .form-card { padding: 1.35rem 1.15rem; border-radius: var(--r-lg); }
  .form-grid { grid-template-columns: 1fr; }
  /* 16px minimum stops iOS Safari zooming on focus */
  .field input, .field select, .field textarea { font-size: 16px; padding: 0.85rem 0.9rem; min-height: 48px; }
  .field textarea { min-height: 120px; }

  .cta-band { padding: 1.6rem 1.35rem; border-radius: var(--r-lg); }

  .marquee__track { animation-duration: 26s; }
  .chip { padding: 0.65rem 1rem; font-size: 0.8rem; }

  .footer__grid { gap: 2rem; padding-bottom: 2rem; }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .footer__bar ul { gap: 1rem; }
  .footer__list li { margin-bottom: 0.7rem; }
  .site-footer a { display: inline-block; min-height: 30px; }

  .table-wrap { font-size: 0.85rem; }
  th, td { padding: 0.7rem 0.8rem; }

  .note { padding: 0.95rem 1.1rem; }
  .prose h2 { margin-top: 1.9rem; }
}

@media (max-width: 400px) {
  :root { --gutter: 1rem; }
  .brand__sub { display: none; }
  .mnav__head .brand__sub { display: block; }
  .hero__stat b { font-size: 1.45rem; }
}

/* Landscape phones — keep drawers and modals usable */
@media (max-height: 520px) and (orientation: landscape) {
  .modal__dialog { max-height: 96vh; }
  .modal__head { padding-block: 1rem; }
  .mnav__foot { padding-block: 0.75rem; }
}

/* --------------------------------------------------------------------------
   23. MOTION PREFERENCES / PRINT
   -------------------------------------------------------------------------- */
@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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .site-footer, .wa-float, .to-top, .progress-bar, .topbar { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero, .page-banner, .section--dark { background: none !important; color: #000 !important; }
}
