/* =================================================================
   DPDPA.support — Design System (site.css)
   "dpdpconsultants BONES, Apple SKIN."
   Light-first, generous whitespace, large clean type, restrained
   navy + single red accent. Dark cinematic bands are opt-in via
   `.section--dark`. Mobile-first. Tokens → base → layout →
   components → responsive. Owned by the design-system foundation.
   Page agents consume only — change the SKIN, not the contract.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (derived from the logo) */
  --navy-900: #101d4a;   /* deepest navy — dark bands, ink on light */
  --navy-800: #182a63;
  --navy-700: #22387f;
  --navy-600: #2f4aa0;
  --red-500:  #e3263b;   /* the single accent — CTAs/links/active only */
  --red-600:  #c81f31;   /* accent hover */
  --red-glow: rgba(227, 38, 59, 0.18);

  /* Ink + neutrals (light surfaces) */
  --ink-900: #0a0e1a;    /* near-black for dark bands background */
  --ink-800: #121829;
  --ink-700: #1b2236;

  --black:   #0b0d12;    /* primary text on light */
  --ink:     #1d2330;    /* body text on light */
  --gray-700:#3c4456;
  --gray-500:#6b7384;    /* secondary / muted text on light */
  --gray-400:#8b93a4;
  --gray-300:#c7cdd8;    /* hairline / borders */
  --gray-200:#e3e7ee;    /* light dividers */
  --gray-100:#f0f2f6;    /* alt section fill */
  --gray-50: #f6f7f9;    /* faint surface */
  --white:   #ffffff;

  /* Footer / dark-band neutrals */
  --line:    rgba(255, 255, 255, 0.12);
  --line-2:  rgba(255, 255, 255, 0.20);
  --fog-100: #eef1f7;
  --fog-300: #c5ccdd;
  --fog-500: #9aa3bd;
  --fog-600: #6f7896;

  /* Surfaces (light default) */
  --bg:        var(--white);
  --surface:   var(--white);
  --surface-2: var(--gray-50);
  --border:    var(--gray-200);
  --border-2:  var(--gray-300);
  --text:      var(--ink);
  --text-strong: var(--black);
  --text-muted:var(--gray-500);

  /* Typography — SF-like system stack first, Inter webfont fallback only */
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Inter', 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale — large, clean */
  --fs-eyebrow: 0.8125rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.1875rem, 1.05rem + 0.7vw, 1.5rem);
  --fs-h3:      clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  --fs-h2:      clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-h1:      clamp(2.6rem, 1.8rem + 4.4vw, 5rem);

  /* Spacing & layout — generous negative space */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 8.5rem;

  --container: 1180px;
  --container-narrow: 820px;
  --radius:    12px;
  --radius-lg: 20px;
  --header-h:  60px;

  /* Soft, flat, premium — minimal shadow */
  --shadow:    0 1px 2px rgba(16, 29, 74, 0.04), 0 8px 28px rgba(16, 29, 74, 0.06);
  --shadow-lg: 0 2px 6px rgba(16, 29, 74, 0.06), 0 24px 60px rgba(16, 29, 74, 0.10);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tap: 44px; /* minimum thumb target */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text-strong);
}
h1 { letter-spacing: -0.03em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Accessibility helpers ---------- */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--red-500);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: 0; top: -100%;
  background: var(--red-500); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 200;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { top: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-3); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-6); position: relative; }
.section--tight { padding-block: var(--space-5); }
/* Alt = faint light fill for gentle rhythm (NOT a dark band) */
.section--alt { background: var(--gray-50); }

/* Full-bleed DARK cinematic band — deliberate punctuation, opt-in. */
.section--dark {
  background: linear-gradient(165deg, var(--navy-900), var(--ink-900));
  color: var(--fog-100);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark .section-lead, .section--dark .card-body { color: var(--fog-300); }
.section--dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  box-shadow: none;
}
.section--dark .card:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-2); }
.section--dark .card-title { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: var(--space-2);
}
.section-title { font-size: var(--fs-h2); max-width: 20ch; font-weight: 700; }
.section-lead  { font-size: var(--fs-lead); color: var(--text-muted); max-width: 60ch; font-weight: 400; }
.center { text-align: center; margin-inline: auto; }
.center .section-title, .center .section-lead { margin-inline: auto; }

/* Responsive grids */
.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* ---------- Buttons (Apple-grade micro-interactions) ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tap); padding: 0.85rem 1.7rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; border-radius: 980px;
  transition: transform 0.4s var(--ease), background 0.35s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
/* Premium lift on hover, crisp settle on press */
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.99); transition-duration: 0.08s; }
.btn-sm { min-height: 40px; padding: 0.5rem 1.2rem; font-size: 0.95rem; }
/* A trailing arrow that slides on hover (add <span class="btn-arrow">→</span>) */
.btn .btn-arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
/* Subtle shine sweep across the button on hover */
.btn::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); opacity: 0; transition: none; pointer-events: none;
}
.btn:hover::after { animation: btn-shine 0.85s var(--ease) forwards; }
@keyframes btn-shine { 0% { left: -75%; opacity: 0; } 30% { opacity: 1; } 100% { left: 130%; opacity: 0; } }

/* Primary = the single red accent, used sparingly for the main action */
.btn-primary { background: var(--red-500); color: #fff; box-shadow: 0 4px 14px var(--red-glow); }
.btn-primary:hover { background: var(--red-600); box-shadow: 0 12px 30px var(--red-glow), 0 2px 8px rgba(227,38,59,0.25); }

/* Ghost = quiet secondary on light surfaces */
.btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--gray-50); border-color: var(--gray-400); }
.section--dark .btn-ghost { color: var(--white); border-color: var(--line-2); }
.section--dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--fog-500); }

/* Light = white pill, for use on dark bands */
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--fog-100); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.card--featured { border-color: var(--accent, var(--border-2)); box-shadow: var(--shadow-lg); }
.badge {
  display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: var(--accent, #4f6ef7); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; text-transform: none;
}
.is-active { background: var(--accent, #4f6ef7); color: #fff; }
.card-title { font-size: var(--fs-h3); margin-bottom: 0.4em; }
.card-body { color: var(--text-muted); margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: var(--space-3);
  background: var(--gray-50);
  border: 1px solid var(--border);
  color: var(--red-500);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--space-3); }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: var(--tap); }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text-strong); }
.brand-dot { color: var(--red-500); }
.brand--footer .brand-logo { width: 38px; height: 38px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: var(--tap); height: var(--tap); background: transparent; border: 1px solid var(--border-2);
  border-radius: 10px; padding: 0 10px;
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--text-strong); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-first: nav is a collapsible drawer (light) */
.primary-nav {
  position: fixed; inset: var(--header-h) 0 0 auto;
  width: min(86vw, 360px);
  background: var(--white);
  border-left: 1px solid var(--border);
  padding: var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-2);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.site-header.nav-open .primary-nav { transform: translateX(0); }

.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 0.4rem;
  width: 100%; min-height: var(--tap); padding: 0.5rem 0.75rem;
  color: var(--gray-700); font-weight: 500; border-radius: 10px; background: transparent; border: 0; text-align: left;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-link:hover { color: var(--text-strong); background: var(--gray-50); }
.nav-link[aria-current="page"] { color: var(--text-strong); }
.nav-link[aria-current="page"]::after { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--red-500); }
.nav-mega-btn { justify-content: space-between; }
.nav-caret { transition: transform 0.25s var(--ease); flex: 0 0 auto; }
.nav-mega-btn[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.mega-panel {
  display: none;
  padding: var(--space-1) 0 var(--space-1) var(--space-2);
}
.nav-item.is-open .mega-panel { display: block; }
.mega-grid { display: grid; gap: 2px; }
.mega-link { display: block; padding: 0.6rem 0.75rem; border-radius: 10px; }
.mega-link:hover { background: var(--gray-50); }
.mega-link-title { display: block; font-family: var(--font-display); font-weight: 600; color: var(--text-strong); }
.mega-link-desc { display: block; font-size: 0.875rem; color: var(--text-muted); }

.nav-cta { margin-top: var(--space-2); }
.nav-cta .btn { width: 100%; }

/* ---------- Hero (light, generous) ---------- */
.hero { padding-block: var(--space-7) var(--space-6); position: relative; overflow: hidden; }
/* Hero 3D scene: full-bleed canvas behind the hero content. */
.hero-scene {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-scene .scene-canvas { width: 100%; height: 100%; }
.hero-scene .scene-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 72% 38%, rgba(45,108,223,0.18), transparent 70%),
    radial-gradient(40% 40% at 80% 60%, rgba(227,38,59,0.10), transparent 70%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-eyebrow { color: var(--red-500); }
.hero-title { font-size: var(--fs-h1); max-width: 16ch; font-weight: 700; margin-bottom: 0.4em; }
.hero-lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 56ch; margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-note { color: var(--text-muted); font-size: 0.95rem; margin-top: var(--space-3); }

/* ---------- Stats band ---------- */
.stats { display: grid; gap: var(--space-4); grid-template-columns: 1fr; text-align: center; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 1.8rem + 3vw, 3.75rem); letter-spacing: -0.03em; line-height: 1; color: var(--text-strong); }
.section--dark .stat-value { color: var(--white); }
.stat-label { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* ---------- Numbered "how it works" steps ---------- */
.steps { display: grid; gap: var(--space-4); grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--red-500); background: var(--gray-50); border: 1px solid var(--border);
  margin-bottom: var(--space-3);
}
.section--dark .step-num { background: rgba(255,255,255,0.05); border-color: var(--line); }
.step-title { font-size: var(--fs-h3); margin-bottom: 0.3em; }
.step-body { color: var(--text-muted); margin: 0; }

/* ---------- 360° circular capability diagram ---------- */
.diagram-360 {
  /* --R is the orbit radius in px; nodes positioned against it (NOT %). */
  --R: 210px;
  position: relative; width: min(560px, 92vw); aspect-ratio: 1; margin-inline: auto;
}
/* Outer + inner orbit rings that SLOWLY ROTATE in opposite directions */
.diagram-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--border-2);
  animation: ring-spin 60s linear infinite;
}
.diagram-ring::before {
  content: ""; position: absolute; inset: 16%; border-radius: 50%;
  border: 1px dashed var(--border);
}
/* Connector spokes from core to nodes */
.diagram-spokes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.diagram-spokes line { stroke: var(--border-2); stroke-width: 0.4; stroke-dasharray: 1.5 1.5; }
/* Soft glow halo behind the core */
.diagram-360 > .diagram-core::before {
  content: ""; position: absolute; inset: -28%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(47,74,160,0.22), transparent 70%);
}
.diagram-core {
  position: absolute; inset: 33%; border-radius: 50%; z-index: 4;
  display: grid; place-items: center; text-align: center; gap: 0.3rem;
  background: radial-gradient(120% 120% at 35% 25%, var(--navy-700), var(--navy-900) 70%);
  color: var(--white); padding: var(--space-2);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.12), 0 0 0 10px rgba(16,29,74,0.05);
}
.diagram-core-logo { width: 38px; height: 38px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.diagram-core-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
/* Nodes — now with an icon chip */
.diagram-node {
  position: absolute; top: 50%; left: 50%; z-index: 5;
  width: 132px; margin-left: -66px; margin-top: -32px;
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 0.7rem 0.6rem; text-align: center;
  box-shadow: var(--shadow);
  font-size: 0.82rem; font-weight: 600; color: var(--text-strong); line-height: 1.2;
  transform: rotate(var(--angle, 0deg)) translate(var(--R)) rotate(calc(-1 * var(--angle, 0deg)));
  transform-origin: center;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.diagram-node:hover { box-shadow: var(--shadow-lg); border-color: var(--navy-600); transform: rotate(var(--angle, 0deg)) translate(var(--R)) rotate(calc(-1 * var(--angle, 0deg))) scale(1.06); }
.diagram-node .node-ico {
  width: 38px; height: 38px; padding: 7px; border-radius: 10px;
  background: linear-gradient(165deg, rgba(47,74,160,0.10), rgba(227,38,59,0.06));
  color: var(--navy-700); flex: none;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes core-pulse { 0%,100% { box-shadow: var(--shadow-lg), 0 0 0 8px rgba(16,29,74,0.04); } 50% { box-shadow: var(--shadow-lg), 0 0 0 16px rgba(227,38,59,0.06); } }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes core-pulse { 0%,100% { box-shadow: var(--shadow-lg), 0 0 0 8px rgba(16,29,74,0.04); } 50% { box-shadow: var(--shadow-lg), 0 0 0 16px rgba(227,38,59,0.06); } }
@media (max-width: 600px) { .diagram-360 { --R: 140px; } .diagram-node { width: 96px; margin-left: -48px; font-size: 0.72rem; } }
@media (prefers-reduced-motion: reduce) {
  .diagram-ring, .diagram-ring::before, .diagram-360::before, .diagram-core { animation: none; }
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: var(--container-narrow); margin-inline: auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  min-height: var(--tap); padding: var(--space-3) 0;
  background: transparent; border: 0; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--text-strong);
}
.faq-icon { flex: 0 0 auto; width: 18px; height: 18px; position: relative; transition: transform 0.3s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--red-500); border-radius: 2px; }
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { top: 0; left: 8px; width: 2px; height: 18px; transition: transform 0.3s var(--ease); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease); }
.faq-q[aria-expanded="true"] + .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 0 var(--space-3); color: var(--text-muted); max-width: 64ch; }

/* ---------- Footer (dark cinematic anchor) ---------- */
.site-footer { background: linear-gradient(180deg, var(--navy-900), var(--ink-900)); color: var(--fog-300); border-top: 1px solid var(--navy-700); padding-block: var(--space-6) var(--space-3); margin-top: 0; }
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.footer-brand .brand { margin-bottom: var(--space-2); }
.footer-brand .brand-text { color: var(--white); }
.footer-company { color: var(--fog-500); font-size: 0.95rem; line-height: 1.6; }
.footer-contact a { color: var(--fog-300); }
.footer-contact a:hover { color: var(--white); }
.footer-heading { font-size: 0.9rem; font-family: var(--font-display); color: var(--white); margin-bottom: var(--space-2); letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: var(--fog-300); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--white); }
.soon-badge { display: inline-block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fog-500); border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.5rem; margin-left: 0.35rem; }
.footer-bottom { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--navy-700); }
.footer-fineprint { color: var(--fog-600); font-size: 0.875rem; margin: 0; }

/* ---------- Trust / compliance strip (on dark footer) ---------- */
.trust-strip { margin-top: var(--space-4); }
.trust-badges {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0.875rem;
}
.trust-badge {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line); border-left: 3px solid var(--red-500);
  border-radius: var(--radius); padding: 0.95rem 1.1rem;
}
.trust-badge-icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(227, 38, 59, 0.14); color: var(--red-500);
}
.trust-badge-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trust-badge-title { font-family: var(--font-display); font-size: 0.95rem; color: var(--white); }
.trust-badge-sub { font-size: 0.8rem; color: var(--fog-500); }
.cert-id { font-size: 0.72rem; color: var(--fog-500); font-style: normal; }
a.cert-id { color: var(--red-500); }
a.cert-id:hover { color: var(--red-600); text-decoration: underline; }
.trust-caption { color: var(--fog-500); font-size: 0.8rem; margin: 0.75rem 0 0; }
@media (min-width: 720px) {
  .trust-badges { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 3D / hero canvas + fallback ---------- */
.scene-canvas { display: block; width: 100%; height: 100%; }
.scene-wrap { position: relative; }
/* Gradient poster shown when WebGL is skipped (mobile / reduced-motion / no-webgl).
   Light, premium poster — subtle navy wash, not a dark slab. */
.scene-fallback {
  position: absolute; inset: 0; z-index: 0; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 75% 12%, rgba(47, 74, 160, 0.12) 0%, transparent 55%),
    radial-gradient(100% 80% at 8% 92%, var(--red-glow) 0%, transparent 50%),
    linear-gradient(160deg, var(--gray-50), var(--white));
  border: 1px solid var(--border);
}

/* ---------- Scroll-reveal (subtle, premium) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =================================================================
   Responsive — tablet & desktop
   ================================================================= */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); }

  /* Desktop nav: inline, no drawer */
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; width: auto; transform: none; background: transparent;
    border: 0; padding: 0; box-shadow: none; flex-direction: row; align-items: center;
    gap: var(--space-2); overflow: visible;
  }
  .nav-list { flex-direction: row; align-items: center; gap: 0.25rem; }
  .nav-link { min-height: 40px; }
  .nav-link[aria-current="page"]::after { flex-basis: 5px; height: 5px; }
  .nav-cta { margin-top: 0; }
  .nav-cta .btn { width: auto; }

  /* Desktop mega-menu: floating light panel */
  .mega-panel {
    position: absolute; top: calc(100% + 10px); left: 0; padding: var(--space-2);
    min-width: 320px;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav-item.is-open .mega-panel { display: block; opacity: 1; visibility: visible; transform: none; }
}

/* =================================================================
   prefers-reduced-motion — disable transforms/scrub/smooth-scroll
   ================================================================= */
@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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Live countdown clock ---------- */
.cd-clock { display: flex; gap: var(--space-2, 1rem); margin: 0.75rem 0 0.5rem; flex-wrap: wrap; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.cd-unit b { font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--red-500, #e3263b); }
.cd-unit i { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted, #8a93a6); font-style: normal; margin-top: 0.3rem; }

/* ---------- Platforms strip ---------- */
.platform-grid { list-style: none; margin: var(--space-5, 3rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-3, 1.5rem); }
.platform-card { display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 1.5rem 1rem; border: 1px solid var(--border, #e6e9f0); border-radius: 16px;
  background: var(--surface, #fff); transition: transform .25s ease, box-shadow .25s ease; }
.platform-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(16,29,74,0.10); }
.platform-glyph { width: 40px; height: 40px; color: var(--navy-700, #101d4a); }
.platform-card.is-soon .platform-glyph { color: var(--text-muted, #aab1c2); opacity: 0.6; }
.platform-name { font-weight: 600; font-size: 0.95rem; }
.platform-status { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem; border-radius: 999px; }
.status-live { color: #0a7d3c; background: rgba(16,168,84,0.12); }
.status-soon { color: var(--text-muted, #8a93a6); background: rgba(138,147,166,0.12); }
@media (max-width: 900px) { .platform-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Respect reduced-motion for button micro-interactions ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; }
  .btn::after, .btn:hover::after { animation: none; opacity: 0; }
  .btn .btn-arrow, .btn:hover .btn-arrow { transition: none; transform: none; }
}

/* ---------- Zero-touch capabilities showcase (real, built features) ---------- */
.zerotouch { background: var(--gray-50); }
.zt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-5); }
.zt-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}
.zt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.zt-ico { width: 44px; height: 44px; color: var(--red-500); margin-bottom: var(--space-2); }
.zt-card h3 { font-size: var(--fs-h3); margin-bottom: 0.4em; }
.zt-card p { color: var(--text-muted); margin: 0; }
.zt-card .zt-soon { display:inline-block; margin-top: 0.8rem; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
  background: rgba(138,147,166,0.12); padding: 0.2rem 0.6rem; border-radius: 999px; }
@media (max-width: 900px) { .zt-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .zt-grid { grid-template-columns: 1fr; } }

/* =================================================================
   HERO — Apple/AI-product split layout (NO wireframe).
   Left: bold copy. Right: floating product-UI mockup over aurora.
   ================================================================= */
.hero--split { position: relative; overflow: hidden; padding-block: var(--space-7) var(--space-6); }
/* Subtle mesh-gradient + faint grid wash across the whole hero (21st.dev style) */
.hero--split::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(47,74,160,0.10), transparent 55%),
    radial-gradient(90% 70% at 95% 60%, rgba(227,38,59,0.06), transparent 55%),
    linear-gradient(180deg, rgba(246,247,249,0) 60%, rgba(240,242,246,0.6) 100%);
}
/* Calm STATIC glow behind the product panel — no spin, no blur-on-animation */
.hero-aurora {
  position: absolute; top: 50%; right: 4%; width: 520px; height: 520px; z-index: 0; pointer-events: none;
  transform: translateY(-50%); border-radius: 50%;
  background:
    radial-gradient(50% 50% at 50% 45%, rgba(47,74,160,0.16), transparent 70%),
    radial-gradient(40% 40% at 62% 60%, rgba(227,38,59,0.08), transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-5); align-items: center; }
.hero-copy { max-width: 36rem; }
.hero-title { font-size: var(--fs-h1); max-width: 15ch; font-weight: 700; margin-bottom: 0.4em; }
.hero-lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 48ch; margin-bottom: var(--space-3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-note { color: var(--text-muted); font-size: 0.95rem; margin-top: var(--space-3); }

/* Floating product mockup */
.hero-mock { position: relative; min-height: 360px; perspective: 1200px; }
.mock-card {
  background: rgba(255,255,255,0.72); backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.6); border-radius: 22px;
  box-shadow: 0 30px 70px rgba(16,29,74,0.18), 0 2px 8px rgba(16,29,74,0.08);
  padding: 1.1rem 1.25rem 1.35rem; max-width: 420px; margin-inline: auto;
  transform: rotateY(-7deg) rotateX(3deg);
}
.mock-head { display: flex; align-items: center; gap: 0.45rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--gray-200); margin-bottom: 0.9rem; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.mock-dot:nth-child(1){ background:#ff5f57; } .mock-dot:nth-child(2){ background:#febc2e; } .mock-dot:nth-child(3){ background:#28c840; }
.mock-title { margin-left: auto; font-size: 0.8rem; font-weight: 600; color: var(--gray-500); }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px solid var(--gray-100); }
.mock-label { font-weight: 500; font-size: 0.98rem; color: var(--ink); }
.mock-toggle { width: 42px; height: 24px; border-radius: 999px; position: relative; flex: none; transition: background .3s var(--ease); }
.mock-toggle::after { content:""; position:absolute; top:3px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.2); transition: left .3s var(--ease); }
.mock-toggle.is-on { background: var(--red-500); } .mock-toggle.is-on::after { left: 21px; }
.mock-toggle.is-off { background: var(--gray-300); } .mock-toggle.is-off::after { left: 3px; }
.mock-proof { margin-top: 1rem; font-size: 0.85rem; color: #0a7d3c; font-weight: 600; display:flex; align-items:center; gap:0.4rem; }
.mock-tick { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; background:rgba(16,168,84,0.15); font-size:0.7rem; }
.mock-chip {
  position: absolute; background: var(--navy-900); color: #fff; font-size: 0.78rem; font-weight: 600;
  padding: 0.5rem 0.85rem; border-radius: 12px; box-shadow: 0 12px 30px rgba(16,29,74,0.25);
}
.mock-chip--1 { top: 8%; left: -4%; }
.mock-chip--2 { bottom: 10%; right: -2%; }
/* Gentle float — staggered, calm, premium */
.mock-float  { animation: float-a 6s ease-in-out infinite; }
.mock-float-2{ animation: none; }
.mock-float-3{ animation: none; }
@keyframes float-a { 0%,100%{ transform: rotateY(-7deg) rotateX(3deg) translateY(0);} 50%{ transform: rotateY(-7deg) rotateX(3deg) translateY(-12px);} }
@keyframes float-b { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-mock { min-height: 320px; margin-top: var(--space-2); }
  .mock-card { transform: none; }
  .mock-float { animation: float-b 6s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-aurora, .mock-float, .mock-float-2, .mock-float-3 { animation: none; }
}


/* ---------- Hero stats band (adapted from Turing landing — static, zero motion cost) ---------- */
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-4) 0 0; padding: 0; }
.hero-stat { min-width: 90px; }
.hero-stat-num { font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); font-weight: 300; line-height: 1; color: var(--text-strong); letter-spacing: -0.02em; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.45rem; max-width: 18ch; line-height: 1.35; }
@media (max-width: 600px) { .hero-stats { gap: var(--space-3); } }

/* ---------- Hero background video (optimized, subtle, light-readable) ---------- */
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-video {
  position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%;
  width: auto; height: auto; transform: translate(-50%,-50%);
  object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero-video.is-playing { opacity: 0.18; }   /* subtle behind light hero */
/* Light wash keeps text crisp over the video */
.hero-video-wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(255,255,255,0.92) 30%, rgba(255,255,255,0.65) 60%, rgba(255,255,255,0.4) 100%),
    radial-gradient(60% 60% at 78% 40%, rgba(47,74,160,0.06), transparent 70%);
}
@media (max-width: 880px) { .hero-video { display: none; } }  /* no video decode on mobile */
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ---------- Platform marquee (scrolling, GPU-cheap: 1 transform per row) ---------- */
.platform-marquee { position: relative; margin-top: var(--space-5); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pm-row { display: flex; width: max-content; }
.pm-row + .pm-row { margin-top: var(--space-2); }
.pm-track { display: flex; gap: var(--space-3); padding-right: var(--space-3); flex: none; will-change: transform; }
.pm-left  { animation: pm-scroll-left 38s linear infinite; }
.pm-right { animation: pm-scroll-right 44s linear infinite; }
.platform-marquee:hover .pm-track { animation-play-state: paused; }
.pm-chip { display: inline-flex; align-items: center; gap: 0.6rem; flex: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.6rem 1.1rem; font-weight: 600; font-size: 0.92rem; color: var(--text-strong);
  box-shadow: var(--shadow); white-space: nowrap; }
.pm-chip svg { width: 24px; height: 24px; color: var(--text-muted); flex: none; }
.pm-chip.is-live svg { color: var(--navy-700); }
.pm-badge { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  font-style: normal; color: var(--text-muted); background: rgba(138,147,166,0.14);
  padding: 0.12rem 0.45rem; border-radius: 999px; }
.pm-badge.live { color: #0a7d3c; background: rgba(16,168,84,0.14); }
@keyframes pm-scroll-left  { to { transform: translateX(-50%); } }
@keyframes pm-scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .pm-track { animation: none; } .platform-marquee { mask-image: none; -webkit-mask-image: none; } }



/* =================================================================
   HOMEPAGE REDESIGN (scoped to body.home — does NOT affect other pages)
   Composition + density fix. Apple-keynote rhythm. Net motion ↓.
   ================================================================= */
:root { --section-y: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }

/* (2) Density: tighten section + hero vertical padding (kills ~40% of dead air) */
.home .section { padding-block: var(--section-y); }
.home .section--tight { padding-block: clamp(2.75rem, 2rem + 2vw, 4rem); }
.home .hero--split { padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(3rem, 2rem + 3vw, 4.5rem); }

/* (3) Alternating band rhythm + legible edges */
.home .section + .section:not(.section--dark):not(.section--alt) { border-top: 1px solid var(--border); }
.home .section--alt { border-block: 1px solid var(--border); }

/* Editorial eyebrow with a red tick — anchors every band's top-left */
.home .eyebrow::before {
  content: ''; display: inline-block; width: 28px; height: 2px;
  background: var(--red-500); margin-right: 0.6rem; vertical-align: middle;
}

/* Head measure (scoped) + density type rhythm */
.home .section-title { max-width: 24ch; }
.home .section-lead  { max-width: 64ch; }
.home .card-body, .home .zt-card p { line-height: 1.55; }

/* Premium-but-cheap card upgrade (no new keyframes) */
.home .card, .home .zt-card {
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 2px rgba(16,29,74,0.04), var(--shadow);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.home .card:hover, .home .zt-card:hover { transform: translateY(-2px); border-top-color: var(--red-500); }

/* Fix thin hero stat numbers (read cheap at weight 300) */
.home .hero-stat-num { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Hero: copy column fills its height — proof strip hairline */
.home .hero-grid { align-items: stretch; }
.home .hero-stats { border-top: 1px solid var(--border); padding-top: var(--space-3); margin-top: var(--space-4); gap: var(--space-4); }

/* ---------- Homepage structural grafts (scoped) ---------- */
/* Diagram 2-col: diagram + dense capability list */
.home .cap-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: center; }
@media (min-width: 880px) { .home .cap-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-5); } }
.home .cap-diagram .diagram-360 { max-width: 440px; }
.home .cap-list { display: flex; flex-direction: column; gap: 0.4rem; }
.home .cap-row { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.85rem 0.9rem; border-radius: 14px; transition: background .25s var(--ease); }
.home .cap-row:hover { background: var(--gray-50); }
.home .cap-row .cap-ico { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 11px;
  background: linear-gradient(165deg, rgba(47,74,160,0.10), rgba(227,38,59,0.06)); color: var(--navy-700); }
.home .cap-row .cap-ico svg { width: 22px; height: 22px; }
.home .cap-row b { display: block; font-size: 1rem; color: var(--text-strong); }
.home .cap-row div span { display: block; font-size: 0.9rem; color: var(--text-muted); line-height: 1.45; margin-top: 0.15rem; }

/* Deadline dashboard: copy left, countdown cards right */
@media (min-width: 880px) {
  .home #deadline .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-5); align-items: center; }
  .home #deadline .container > .eyebrow,
  .home #deadline .container > .section-title,
  .home #deadline .container > .section-lead { grid-column: 1; }
  .home #deadline .grid-2 { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}
.home #deadline .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.home #deadline .card { border-top: 2px solid var(--red-500); }
.home #deadline .cd-unit b { font-size: 2.4rem; }

/* Stats band on dark — big numerals */
.home #stats .stat-value, .home #stats .hero-stat-num { font-variant-numeric: tabular-nums; }

/* How-it-works: static connector hairline behind the step numbers (desktop) */
@media (min-width: 760px) {
  .home #how-it-works .steps { position: relative; }
  .home #how-it-works .steps::before { content: ''; position: absolute; left: 8%; right: 8%; top: 28px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--border) 10%, var(--border) 90%, transparent); z-index: 0; }
  .home #how-it-works .steps > * { position: relative; z-index: 1; }
}

/* Bento for the two 6-card sections */
@media (min-width: 980px) {
  .home .bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
  .home .bento > .span-2 { grid-column: span 2; }
}
