/* ─────────────────────────────────────────────
 *  DRASHTA.AI — Site Stylesheet
 *  Spatial Intelligence Platform for MENA
 * ───────────────────────────────────────────── */

/* ── 1. Tokens ── */
:root {
  /* Brand */
  --primary: #00684A;
  --primary-dark: #003D2C;
  --primary-soft: #C6DCD2;
  --primary-faint: #EAF3EF;
  --accent: #5DCBC1;
  --accent-dark: #3FA89E;

  /* Ink (text) */
  --ink: #0E0E0C;
  --ink-2: #2A2A26;
  --ink-3: #55554F;
  --ink-4: #84847B;
  --ink-5: #B6B6AE;

  /* Surfaces */
  --bg: #FFFFFF;
  --surface: #F7F7F4;
  --surface-2: #F1F1ED;
  --surface-3: #E8E8E2;

  /* Border */
  --border: #D4D4CE;
  --border-faint: #E5E5DF;

  /* Semantic */
  --positive: #2E7D32;
  --positive-bg: #E5F0E5;
  --warning: #B25F00;
  --warning-bg: #F5E8D5;
  --critical: #B3261E;

  /* Layout */
  --container: 1200px;
  --container-narrow: 920px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  --radius-lg: 12px;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;

  /* Transitions */
  --t: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-dark); }
button { cursor: pointer; font: inherit; border: 0; background: transparent; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ── 3. Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--ink-2); line-height: 1.5; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.mono { font-family: var(--font-mono); font-size: 0.875em; }

/* ── 4. Layout ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.divider { height: 1px; background: var(--border-faint); margin: 0; border: 0; }

/* ── 5. Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-faint);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.site-header__logo {
  display: block;
  height: 32px;
  width: auto;
}
.site-header__logo img { height: 100%; width: auto; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: var(--ink-3);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}
.site-nav a:hover, .site-nav a.is-active {
  color: var(--ink);
  background: var(--surface);
}
.site-nav .cta {
  margin-left: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
}
.site-nav .cta:hover { background: var(--primary-dark); color: white; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 920px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem var(--gutter) 1rem;
    background: white;
    border-bottom: 1px solid var(--border-faint);
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.75rem 0.5rem; border-radius: 0; }
  .site-nav .cta { margin: 0.5rem 0 0; border-radius: var(--radius); text-align: center; }
  .nav-toggle { display: inline-flex; }
}

/* ── 6. Hero ── */
.hero {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.25em;
}
.hero__title .ink-soft { color: var(--ink-4); }
.hero__title .accent { color: var(--primary); }
.hero__accent-bar {
  display: inline-block;
  width: 60px; height: 4px;
  background: var(--primary);
  margin: 0.5rem 0 1.5rem;
}
.hero__sub {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  color: var(--ink-3);
  max-width: 720px;
  margin-bottom: 2rem;
  line-height: 1.45;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── 7. Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--t), background var(--t), color var(--t);
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-ghost { color: var(--ink-2); border: 1px solid var(--border); background: white; }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-arrow::after { content: '→'; font-weight: 400; transition: transform var(--t); }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ── 8. Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: border-color var(--t), transform var(--t);
}
.card:hover { border-color: var(--border); }
.card--accent { border-left: 3px solid var(--primary); border-radius: 4px var(--radius-lg) var(--radius-lg) 4px; }
.card--bordered { background: white; }
.card--cyan { border-top: 3px solid var(--accent); }
.card h3 { margin-top: 0; }
.card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}
.card__icon {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: var(--primary-faint);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Grid */
.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── 9. Outcome blocks ── */
.outcome {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 920px) {
  .outcome { grid-template-columns: 1fr; }
}
.outcome__list { padding-top: 0.5rem; }
.outcome__list-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-faint);
  margin-bottom: 1.25rem;
}
.outcome__row { padding: 0.6rem 0; display: flex; gap: 0.75rem; }
.outcome__row::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--primary);
}
.outcome__row b { color: var(--ink); font-weight: 600; }
.outcome__row span { color: var(--ink-3); }

.stats {
  background: var(--primary-faint);
  border: 1px solid var(--primary-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.stats__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.stats__headline {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.stats__headline-sub {
  font-style: italic;
  color: var(--ink-3);
  margin: 0.5rem 0 1.25rem;
  font-size: 0.95rem;
}
.stats__hr { height: 1px; background: var(--primary-soft); border: 0; margin: 0 0 1.25rem; }
.stats__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}
.stats__row b { color: var(--primary); font-weight: 700; }
.stats__row span { color: var(--ink-2); }

/* ── 10. Footnote ── */
.footnote { font-size: 0.825rem; color: var(--ink-4); font-style: italic; margin-top: 1.5rem; }

/* ── 11. Use-case library ── */
.usecase-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.usecase-theme {
  border-top: 2px solid var(--primary);
  padding-top: 1rem;
}
.usecase-theme h3 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}
.usecase-theme .count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}
.usecase-theme ul li {
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.usecase-theme ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-5);
}

/* ── 12. Vertical selector ── */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.vertical-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--ink-2);
  transition: all var(--t);
  position: relative;
}
.vertical-card:hover {
  background: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--ink);
}
.vertical-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}
.vertical-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.vertical-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.vertical-card__arrow {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
}
.vertical-card__arrow::after { content: ' →'; }

/* ── 13. Cultural intel cards ── */
.intel-card {
  background: white;
  border: 1px solid var(--border-faint);
  border-top: 3px solid var(--primary);
  border-radius: 4px var(--radius) var(--radius) var(--radius);
  padding: 1.5rem;
}
.intel-card h4 { margin: 0 0 0.5rem; color: var(--ink); }
.intel-card p { margin: 0; font-size: 0.9rem; color: var(--ink-3); }

/* ── 14. Pillar columns ── */
.pillar-col {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.pillar-col h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.pillar-col ul li {
  padding: 0.4rem 0 0.4rem 1.1rem;
  position: relative;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.pillar-col ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

/* ── 15. Timeline ── */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  position: relative;
  margin-top: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(10% + 12px);
  right: calc(10% + 12px);
  height: 1px;
  background: var(--border);
}
.timeline__step {
  text-align: center;
  position: relative;
  padding-top: 40px;
}
.timeline__step::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--primary);
}
.timeline__step:last-child::before { background: white; }
.timeline__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
}
.timeline__step h4 { margin: 0 0 0.3rem; font-size: 1rem; }
.timeline__dur { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-4); margin-bottom: 0.5rem; }
.timeline__step p { font-size: 0.85rem; color: var(--ink-3); margin: 0; padding: 0 0.5rem; }
@media (max-width: 920px) {
  .timeline { grid-template-columns: 1fr; gap: 1rem; }
  .timeline::before { display: none; }
  .timeline__step { text-align: left; padding-top: 0; padding-left: 36px; }
  .timeline__step::before { top: 4px; left: 8px; transform: none; }
}

/* ── 16. Engagement columns ── */
.engagement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 720px) { .engagement { grid-template-columns: 1fr; } }
.engagement__col {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.75rem;
}
.engagement__col--accent { background: var(--primary-faint); }
.engagement__col h3 { font-size: 1.5rem; color: var(--primary-dark); }
.engagement__col-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.engagement__col ul li {
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
  color: var(--ink-2);
}
.engagement__col ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

/* ── 17. CTA panel ── */
.cta-panel {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.cta-panel h2 { color: white; margin-top: 0; }
.cta-panel p { color: var(--ink-5); margin-bottom: 1.5rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-panel .btn-primary { background: var(--accent); color: var(--ink); }
.cta-panel .btn-primary:hover { background: white; color: var(--ink); }
.cta-panel .btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }
.cta-panel .btn-ghost:hover { border-color: white; }

/* ── 18. Form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.75rem 0.875rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink);
  font-family: inherit;
  transition: border-color var(--t);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-faint);
}
.form-field textarea { resize: vertical; min-height: 120px; font-family: inherit; }

/* ── 19. Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-faint);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
.site-footer__logo { height: 32px; margin-bottom: 1rem; }
.site-footer p, .site-footer li { color: var(--ink-3); font-size: 0.9rem; }
.site-footer h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul li { padding: 0.3rem 0; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--primary); }
.site-footer__bottom {
  border-top: 1px solid var(--border-faint);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink-4);
}

/* ── 20. Utility ── */
.text-center { text-align: center; }
.muted { color: var(--ink-4); }
.tight { letter-spacing: -0.01em; }
.bg-surface { background: var(--surface); }
.bg-faint { background: var(--primary-faint); }
.ink-3 { color: var(--ink-3); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ────────────────────────────────────────────
 * 21. Wow-factor enhancements (v2)
 * ──────────────────────────────────────────── */

/* ── Scroll progress in header ── */
.scroll-progress {
  position: absolute;
  bottom: -1px; left: 0;
  height: 2px;
  width: 0;
  background: var(--primary);
  z-index: 60;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ── Reveal on scroll ── */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
  html.js .reveal.is-revealed { opacity: 1; transform: none; }
  html.js .reveal[data-delay='80']  { transition-delay: 80ms; }
  html.js .reveal[data-delay='160'] { transition-delay: 160ms; }
  html.js .reveal[data-delay='240'] { transition-delay: 240ms; }
  html.js .reveal[data-delay='320'] { transition-delay: 320ms; }
  html.js .reveal[data-delay='400'] { transition-delay: 400ms; }
  html.js .reveal[data-delay='480'] { transition-delay: 480ms; }
}

/* ── Hover polish ── */
.card { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 30, 20, 0.06); }
.card--accent { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-left-color 0.2s; }
.card--accent:hover { border-left-color: var(--primary-dark); }

.vertical-card { will-change: transform; }
.vertical-card:hover { box-shadow: 0 12px 32px rgba(0, 30, 20, 0.08); }
.vertical-card .vertical-card__arrow { transition: transform 0.3s; display: inline-block; }
.vertical-card:hover .vertical-card__arrow { transform: translateX(4px); }

.btn { will-change: transform; }
.btn-primary:active { transform: translateY(1px); }

/* ── Hero with live dashboard ── */
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__grid .hero__title { font-size: clamp(2rem, 4.4vw, 3.5rem); }
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__grid .hero__title { font-size: clamp(2.25rem, 6vw, 3.5rem); }
}

/* ── Live dashboard widget (hero preview) ── */
.live-dash {
  background: white;
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 1.1rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 22px 60px -20px rgba(0, 60, 44, 0.22),
    0 8px 24px -8px rgba(0, 30, 20, 0.10);
  position: relative;
  overflow: hidden;
}
.live-dash::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(93, 203, 193, 0.06), transparent 40%);
  pointer-events: none;
}
.live-dash__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-faint);
  font-size: 0.85rem;
  position: relative;
}
.live-dash__title { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink-2); }
.live-dash__title::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(0, 104, 74, 0.5);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 104, 74, 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(0, 104, 74, 0); }
}
.live-dash__sync {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-4);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.live-dash__sync::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--positive);
  animation: pulseDot 1.8s ease-in-out infinite;
}
.live-dash__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.9rem 0;
}
.metric {
  background: var(--surface);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  position: relative;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}
.metric-delta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.1rem;
  display: inline-block;
}
.metric-delta.is-up { color: var(--positive); }
.metric-delta.is-down { color: var(--warning); }

.evt-log {
  background: var(--surface);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  min-height: 142px;
  overflow: hidden;
}
.evt {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.5rem;
  padding: 0.15rem 0;
  animation: evtIn 0.4s ease-out;
}
@keyframes evtIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.evt-time { color: var(--ink-4); }
.evt-text { color: var(--ink-2); }
.evt--positive .evt-text { color: var(--primary); }
.evt--warning .evt-text  { color: var(--warning); }
.evt--critical .evt-text { color: var(--critical); }
.evt--accent .evt-text   { color: var(--accent-dark); }

/* ── Hero motion ── */
@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__sub, .hero__accent-bar, .hero__ctas {
    animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero__title { animation-delay: 0.05s; }
  .hero__accent-bar { animation-delay: 0.25s; }
  .hero__sub { animation-delay: 0.35s; }
  .hero__ctas { animation-delay: 0.5s; }
  @keyframes heroIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ── Dark section (Privacy & Sovereignty) ── */
.section--dark {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(93, 203, 193, 0.08), transparent 50%),
    radial-gradient(800px 400px at 10% 100%, rgba(0, 104, 74, 0.10), transparent 50%),
    #0E0E0C;
  color: #E5E5DF;
  border-radius: 0;
}
.section--dark h2, .section--dark h3 { color: white; }
.section--dark .lead { color: #B6B6AE; }
.section--dark .eyebrow { color: var(--accent); }
.section--dark .eyebrow::before { background: var(--accent); }
.section--dark .pillar-col { border-top-color: rgba(255,255,255,0.12); }
.section--dark .pillar-col ul li { color: #D4D4CE; }
.section--dark .pillar-col ul li::before { background: var(--accent); }
.section--dark .accent { color: var(--accent); }

/* Perimeter visualization */
.perimeter-viz {
  position: relative;
  padding: 2rem;
  border: 1px dashed rgba(93, 203, 193, 0.4);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, rgba(93, 203, 193, 0.05), transparent 70%);
  text-align: center;
  margin-top: 2rem;
}
.perimeter-viz__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.perimeter-viz__inner {
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
}

/* ── Cultural intelligence iconography ── */
.intel-card { position: relative; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s; }
.intel-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 30, 20, 0.08); }
.intel-icon {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--primary-faint);
  color: var(--primary);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.intel-icon svg { width: 22px; height: 22px; }

/* ── Outcome stats: emphasised counter ── */
.stats__headline {
  font-variant-numeric: tabular-nums;
}
.stats__headline[data-counter] {
  transition: color 0.4s;
}

/* ── Hover lift on intel + vertical cards ── */
.usecase-theme { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.usecase-theme:hover { transform: translateY(-2px); }

/* ── Timeline polish ── */
.timeline { position: relative; }
.timeline__step::before {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.timeline.is-revealed .timeline__step::before {
  animation: stepIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.timeline.is-revealed .timeline__step:nth-child(1)::before { animation-delay: 0.10s; }
.timeline.is-revealed .timeline__step:nth-child(2)::before { animation-delay: 0.22s; }
.timeline.is-revealed .timeline__step:nth-child(3)::before { animation-delay: 0.34s; }
.timeline.is-revealed .timeline__step:nth-child(4)::before { animation-delay: 0.46s; }
.timeline.is-revealed .timeline__step:nth-child(5)::before { animation-delay: 0.58s; }
@keyframes stepIn {
  from { transform: translateX(-50%) scale(0.4); opacity: 0; }
  to   { transform: translateX(-50%) scale(1); opacity: 1; }
}
@media (max-width: 920px) {
  @keyframes stepIn {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }
}

/* ── CTA panel glow ── */
.cta-panel { position: relative; overflow: hidden; }
.cta-panel::before {
  content: '';
  position: absolute;
  inset: -50% -10% auto auto;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(93, 203, 193, 0.18), transparent 60%);
  pointer-events: none;
  transform: rotate(15deg);
}

/* ── Number tabular ── */
.stats__row b, .live-dash *, .metric-value {
  font-variant-numeric: tabular-nums;
}
