/* ==========================================================================
   DeeAROps — main.css
   Design tokens sourced from DeeAROps Brand Guidelines v1.1 (authoritative).
   Colors, type (Sora/Manrope), 8-pt spacing, radii, shadows, gradient rules.
   ========================================================================== */

:root {
  /* Primary palette */
  --navy: #14264C;
  --midnight: #0B1730;
  --steel: #71767C;
  /* Secondary & accent */
  --horizon: #2E5EAA;
  --horizon-dark: #274F90;
  --sky-steel: #7E9BD4;
  --cloud-blue: #DCE4F0;
  /* Neutrals */
  --ink: #10151F;
  --graphite: #3C424B;
  --silver: #9AA1AC;
  --mist: #EDF1F7;
  --paper: #F7F9FC;
  --white: #FFFFFF;

  /* The only permitted gradient: navy depth, 135deg */
  --grad-navy: linear-gradient(135deg, #14264C 0%, #0B1730 100%);

  /* Soft navy-tinted shadow */
  --shadow: 0 10px 30px rgba(20, 38, 76, 0.12);
  --shadow-sm: 0 4px 14px rgba(20, 38, 76, 0.10);

  /* Corner radius: 8 controls / 16 cards / 24 feature panels */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;

  /* 8-point spacing scale */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-6: 48px; --s-8: 64px; --s-12: 96px;

  /* Type */
  --font-head: "Sora", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;

  --fs-display: clamp(2.625rem, 5.5vw, 4.25rem);
  --fs-h1: clamp(2.125rem, 4vw, 3rem);
  --fs-h2: clamp(1.625rem, 2.8vw, 2.125rem);
  --fs-h3: 1.3125rem;
  --fs-h4: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.6vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-caption: 0.8125rem;

  --container: 1200px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--horizon); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--horizon);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.display { font-size: var(--fs-display); line-height: 1.08; }
h1 { font-size: var(--fs-h1); line-height: 1.15; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.3;
  color: var(--navy);
}
p.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--graphite); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--horizon);
  display: block;
  margin-bottom: var(--s-2);
}
.on-dark .eyebrow { color: var(--sky-steel); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .display, .on-dark h4 { color: #fff; }
.on-dark p { color: rgba(255, 255, 255, 0.82); }
.muted { color: var(--steel); font-size: var(--fs-small); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 + p, .section-head h1 + p { margin-top: var(--s-2); }
.bg-paper { background: var(--paper); }
.bg-mist { background: var(--mist); }
.band-navy { background: var(--grad-navy); color: #fff; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--horizon); color: #fff; }
.btn-primary:hover { background: var(--horizon-dark); box-shadow: var(--shadow-sm); }
.btn-secondary { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.on-dark .btn-primary { background: #fff; color: var(--navy); }
.on-dark .btn-primary:hover { background: var(--cloud-blue); }
.on-dark .btn-secondary { border-color: rgba(255,255,255,0.6); color: #fff; }
.on-dark .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.text-link {
  font-weight: 700;
  color: var(--horizon);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link .arr { transition: transform 0.2s ease; }
.text-link:hover .arr { transform: translateX(4px); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.1;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--steel);
  text-transform: uppercase;
  margin-top: 2px;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  list-style: none;
  padding: 0;
}
.site-nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--graphite);
  padding: 8px 2px;
}
.site-nav a:hover { color: var(--navy); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--horizon);
}
.nav-cta { white-space: nowrap; }
.nav-cta .btn { min-height: 44px; padding: 10px 22px; }
.mobile-only { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  border-radius: var(--r-sm);
}
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 1080px) {
  .mobile-only { display: block; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--grad-navy);
    display: none;
    padding: var(--s-4) clamp(20px, 6vw, 48px);
    overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-nav li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .site-nav a {
    display: block;
    width: 100%;
    padding: 16px 4px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.25rem;
  }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sky-steel); box-shadow: none; }
  .nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .brand-tag { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-navy);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(72px, 10vw, 128px);
}
.hero .display { color: #fff; }
.hero p.lead { color: rgba(255, 255, 255, 0.85); margin-top: var(--s-3); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.hero-eyebrow {
  color: var(--sky-steel);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
  display: block;
}
.hero-visual { position: relative; min-height: 320px; }
.hero-visual svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* Hero network animation (CSS-driven, honors reduced motion) */
.net-line {
  stroke: var(--sky-steel);
  stroke-opacity: 0.35;
  stroke-width: 1.5;
  fill: none;
}
.net-flow {
  stroke: #fff;
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 10 140;
  stroke-linecap: round;
  animation: flow 4.5s linear infinite;
}
.net-flow.f2 { animation-delay: -1.6s; }
.net-flow.f3 { animation-delay: -3.1s; }
@keyframes flow { to { stroke-dashoffset: -150; } }
.net-node { fill: var(--midnight); stroke: var(--sky-steel); stroke-width: 1.5; }
.net-node-core { fill: var(--horizon); stroke: #fff; }
.net-pulse {
  fill: none;
  stroke: var(--sky-steel);
  stroke-width: 1;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: pulse 3.6s ease-out infinite;
}
.net-pulse.p2 { animation-delay: 1.2s; }
.net-pulse.p3 { animation-delay: 2.4s; }
@keyframes pulse {
  0% { opacity: 0.7; transform: scale(0.4); }
  70%, 100% { opacity: 0; transform: scale(2.2); }
}
.net-label { font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; fill: var(--sky-steel); }

/* Stats strip */
.stats-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.stats-strip .grid { padding-block: var(--s-4); gap: var(--s-3); }
.stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  color: #fff;
  line-height: 1.1;
}
.stat-label { color: var(--sky-steel); font-size: var(--fs-small); font-weight: 600; margin-top: 4px; }
.stat-sub { color: rgba(255,255,255,0.6); font-size: var(--fs-caption); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-md);
  padding: var(--s-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cloud-blue); }
.card h3, .card h4 { margin-bottom: var(--s-1); }
.card p { font-size: var(--fs-small); }
.card .text-link { margin-top: var(--s-2); font-size: var(--fs-small); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--mist);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-2);
}
.card-icon svg { width: 26px; height: 26px; stroke: currentColor; }
.feature-panel {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 48px);
}
.on-dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.on-dark .card p { color: rgba(255, 255, 255, 0.78); }

/* Numbered step */
.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--horizon);
  background: var(--mist);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: var(--s-2);
}
.on-dark .step-num { background: rgba(255,255,255,0.1); color: var(--sky-steel); }

/* Value / numbered list rows */
.value-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--mist);
}
.value-row:last-child { border-bottom: 0; }
.value-row .idx {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--cloud-blue);
  line-height: 1;
}

/* ---------- Tabs ---------- */
.tabs { border-bottom: 2px solid var(--mist); display: flex; gap: 4px; flex-wrap: wrap; }
.tab-btn {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--steel);
  min-height: 48px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--horizon); }
.tab-panel { padding-top: var(--s-4); }
.tab-panel[hidden] { display: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--mist); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; min-width: 560px; background: #fff; }
caption { text-align: left; padding: var(--s-2); font-weight: 700; color: var(--navy); font-family: var(--font-head); }
th, td { text-align: left; padding: 14px 18px; font-size: var(--fs-small); }
thead th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
tbody tr:nth-child(even) { background: var(--paper); }
tbody th { font-weight: 700; color: var(--navy); }
td { color: var(--graphite); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--horizon); }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 6px 0 6px 30px; position: relative; font-size: var(--fs-small); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--horizon);
  border-bottom: 2.5px solid var(--horizon);
  transform: rotate(-45deg);
}

/* ---------- Tech badges (typographic, per brand rules) ---------- */
.badge-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--cloud-blue);
  border-radius: var(--r-sm);
  padding: 8px 14px 8px 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--graphite);
}
.tech-badge .abbr {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
  min-width: 38px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding-inline: 6px;
}
.pill {
  display: inline-block;
  background: var(--mist);
  color: var(--navy);
  font-weight: 700;
  font-size: var(--fs-caption);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- Technology ecosystem (interactive logo wall) ---------- */
.eco-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s-4);
  overflow-x: auto;
  padding-bottom: 4px;
}
.eco-filter {
  background: var(--mist);
  border: 1.5px solid transparent;
  color: var(--graphite);
  font-weight: 700;
  font-size: var(--fs-caption);
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.eco-filter:hover { border-color: var(--cloud-blue); }
.eco-filter[aria-selected="true"] { background: var(--navy); color: #fff; }

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-3);
}
.eco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--r-md);
  padding: var(--s-3);
  min-height: 168px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.eco-card:hover, .eco-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--eco-c, var(--cloud-blue));
}
.eco-card[hidden] { display: none; }
.eco-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--eco-c, var(--navy));
  background: color-mix(in srgb, var(--eco-c, var(--navy)) 12%, #fff);
  border: 2px solid var(--eco-c, var(--navy));
}
.eco-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.eco-hint {
  position: absolute;
  inset: auto 0 0 0;
  background: var(--grad-navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-caption);
  line-height: 1.5;
  padding: var(--s-2) var(--s-3);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.eco-card:hover .eco-hint, .eco-card:focus-visible .eco-hint {
  transform: translateY(0);
  opacity: 1;
}

.eco-modal {
  max-width: 460px;
  width: calc(100% - 40px);
  border: 0;
  border-radius: var(--r-lg);
  padding: 0;
  box-shadow: var(--shadow);
}
.eco-modal::backdrop { background: rgba(11, 23, 48, 0.6); backdrop-filter: blur(2px); }
.eco-modal-inner { padding: clamp(24px, 4vw, 40px); position: relative; }
.eco-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.eco-modal-close:hover { background: var(--cloud-blue); }
.eco-modal-inner .eco-mark { margin-bottom: var(--s-2); }
.eco-modal-inner .pill { margin-bottom: var(--s-2); }
.eco-modal-inner h3 { margin-bottom: var(--s-2); }
.eco-modal-inner p { margin-bottom: var(--s-3); color: var(--graphite); }

@media (max-width: 560px) {
  .eco-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .eco-card { min-height: 148px; }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.form-field.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--navy);
  margin-bottom: 8px;
}
.form-field .req { color: var(--horizon); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1.5px solid var(--cloud-blue);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 13px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--horizon);
  box-shadow: 0 0 0 3px rgba(46, 94, 170, 0.18);
}
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #B3261E; }
.field-error {
  display: none;
  color: #B3261E;
  font-size: var(--fs-caption);
  font-weight: 600;
  margin-top: 6px;
}
.field-error.visible { display: block; }
.form-note { font-size: var(--fs-caption); color: var(--steel); }
.form-status {
  display: none;
  border-radius: var(--r-sm);
  padding: 16px 20px;
  font-weight: 600;
  font-size: var(--fs-small);
  margin-top: var(--s-3);
}
.form-status.visible { display: flex; gap: 12px; align-items: flex-start; }
.form-status.success { background: #EDF7EF; color: #1E5631; border: 1px solid #BFE3C6; }
.form-status.error { background: #FBEDEC; color: #8C1D18; border: 1px solid #F2C4C0; }
.btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-navy); color: rgba(255, 255, 255, 0.8); }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-6);
  padding-block: var(--s-8) var(--s-6);
}
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand img { height: 44px; margin-bottom: var(--s-2); }
.footer-brand .tagline {
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  font-size: 1.0625rem;
  max-width: 280px;
}
.footer-col h4 {
  color: #fff;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-2);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.8); font-size: var(--fs-small); }
.footer-col a:hover { color: #fff; }
.footer-col li { font-size: var(--fs-small); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: space-between;
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .display { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.cta-band p.lead { margin: var(--s-3) auto 0; max-width: 640px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Reveal on scroll (JS-gated: fully visible without JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--grad-navy);
  color: #fff;
  padding-block: clamp(56px, 8vw, 96px);
}
.page-hero h1 { color: #fff; max-width: 780px; }
.page-hero p.lead { color: rgba(255, 255, 255, 0.85); margin-top: var(--s-2); max-width: 680px; }

/* ---------- Insights ---------- */
.insight-card summary {
  cursor: pointer;
  list-style: none;
  display: block;
}
.insight-card summary::-webkit-details-marker { display: none; }
.insight-card summary .text-link .arr { transition: transform 0.25s ease; }
.insight-card[open] summary .text-link .arr { transform: rotate(90deg); }
.insight-body { padding-top: var(--s-2); }
.insight-body p { margin-bottom: var(--s-2); }

/* ---------- Misc ---------- */
.divider { border: 0; border-top: 1px solid var(--mist); margin-block: var(--s-6); }
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sticky-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 900px) { .sticky-aside { position: static; } }

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

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: var(--s-3);
  bottom: var(--s-3);
  z-index: 150;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--horizon); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- Honeypot (anti-spam, invisible to real users) ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- FAQ (reuses insight-card disclosure pattern) ---------- */
.faq-list { display: grid; gap: var(--s-2); }
.faq-item {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--r-md);
  padding: var(--s-3);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .arr { transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item[open] summary .arr { transform: rotate(90deg); }
.faq-item .insight-body { padding-top: var(--s-2); }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 72ch; }
.legal-body h2 { margin-top: var(--s-6); margin-bottom: var(--s-2); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--graphite); margin-bottom: var(--s-2); }
.legal-body ul { padding-left: 1.25em; }
.legal-updated { color: var(--steel); font-size: var(--fs-small); margin-bottom: var(--s-4); }
