@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&display=swap');

/* ================================================================
   DESIGN TOKENS
   Dark surfaces : nav, hero, footer
   Light surfaces: .section (white), .section.band (light blue)
   Accent        : blue - #2563eb / #3b82f6
================================================================ */
:root {
  /* Dark surface */
  --d-bg:           #07111f;
  --d-surface:      rgba(99,155,255,0.06);
  --d-border:       rgba(99,155,255,0.22);
  --d-border-soft:  rgba(99,155,255,0.13);
  --d-text:         #eef3ff;
  --d-muted:        #7a9bc8;
  --d-muted2:       #b0c8e8;

  /* Light surface */
  --l-bg:      #ffffff;
  --l-band:    #f0f6ff;
  --l-border:  rgba(37,99,235,0.15);
  --l-text:    #0c1e3d;
  --l-muted:   #4a6080;
  --l-muted2:  #2d4570;

  /* Brand blues */
  --blue:       #2563eb;
  --blue-mid:   #3b82f6;
  --blue-light: #60a5fa;
  --blue-pale:  #dbeafe;
  --blue-xpale: #eff6ff;
  --blue-dark:  #1d4ed8;

  /* Shadows */
  --sh-card:       0 2px 14px rgba(37,99,235,0.08), 0 1px 4px rgba(37,99,235,0.05);
  --sh-card-hover: 0 10px 38px rgba(37,99,235,0.15), 0 2px 8px rgba(37,99,235,0.09);
  --sh-dark:       rgba(0,0,0,0.40);

  --radius:    14px;
  --radius-lg: 20px;
}

/* ================================================================
   RESET & BASE
================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--d-bg);
  color: var(--d-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient glow orbs - only visible behind dark zones */
body::before {
  content: "";
  position: fixed;
  width: 42vw; height: 42vw;
  top: -18vw; right: -14vw;
  background: radial-gradient(circle, rgba(37,99,235,0.17) 0%, transparent 70%);
  pointer-events: none;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  width: 34vw; height: 34vw;
  left: -14vw; bottom: -12vw;
  background: radial-gradient(circle, rgba(29,78,216,0.14) 0%, transparent 72%);
  pointer-events: none;
  z-index: -2;
}

.container { max-width: 1200px; margin: 0 auto; width: 100%; }

/* ================================================================
   NAV  (dark surface)
================================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 68px;
  padding: 0 5%;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(7,17,31,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--d-border-soft);
  z-index: 1000;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex; gap: 1.7rem;
  list-style: none; align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--d-muted2);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.18s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--blue-mid); }

.has-submenu > a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
/* CSS chevron — clean, no "v" character */
.has-submenu > a::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.60;
  transition: transform 0.18s ease, opacity 0.18s ease;
  flex-shrink: 0;
}
.has-submenu.open > a::after,
.has-submenu:hover > a::after {
  transform: rotate(225deg) translateY(2px);
  opacity: 0.85;
}

/* Desktop dropdown
   Uses visibility/opacity only (NOT display:none) so CSS transitions work.
   display:none blocks transitions — removing it enables smooth fade+slide. */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 224px;
  list-style: none !important;
  padding: 0.55rem 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--d-border-soft);
  background: rgba(7,17,31,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.22);
  z-index: 1010;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.submenu li { width: 100%; }
.submenu a {
  display: block;
  width: 100%;
  padding: 0.54rem 0.7rem;
  border-radius: 8px;
  font-size: 0.91rem;
  color: var(--d-muted2);
  transition: color 0.15s, background 0.15s;
}
.submenu a:hover {
  color: #fff;
  background: rgba(37,99,235,0.18);
}

/* Open via JS click (.open class) */
.has-submenu.open > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Open via CSS hover - true pointer devices only (mouse/trackpad, not touch) */
@media (hover: hover) and (pointer: fine) {
  .has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Desktop hard lock: keep dropdowns hidden unless explicitly opened via hover/focus/.open */
@media (min-width: 941px) {
  .nav .has-submenu > .submenu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-6px) !important;
    list-style: none !important;
    margin: 0 !important;
  }

  .nav .has-submenu > .submenu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav .has-submenu:hover > .submenu,
  .nav .has-submenu:focus-within > .submenu,
  .nav .has-submenu.open > .submenu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  width: 24px; height: 2.5px;
  background: var(--blue-mid);
  border-radius: 3px;
  transition: all 0.22s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

@media (max-width: 940px) {
  body.nav-open { overflow: hidden; }

  .nav { padding-left: 4%; padding-right: 4%; }
  .logo { font-size: 1.1rem; }
  .menu-toggle { display: flex; }

  /* Full-width panel — fills the entire screen below the nav bar.
     Uses opacity/transform (not right:-100%) so overflow-y scroll works correctly. */
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 68px);
    flex-direction: column;
    align-items: stretch;
    background: rgba(7,17,31,0.99);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.3rem 0 3rem;
    gap: 0;
    min-width: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--d-border-soft);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    /* Hidden: fade + slight slide up */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  }
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Top-level items — full width, large touch targets */
  .nav-links > li {
    width: 100%;
    margin: 0; padding: 0;
    border-bottom: 1px solid rgba(99,155,255,0.10);
  }
  .nav-links > li:first-child { border-top: 1px solid rgba(99,155,255,0.10); }

  .nav-links > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.95rem 5%;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--d-text);
    min-height: 54px;
    line-height: 1.2;
  }
  .nav-links > li > a:hover { color: var(--blue-light); }
  .nav-links > li > a.active { color: var(--blue-mid); }

  /* Submenu accordion — full width, clean indent, no floating boxes */
  .submenu {
    display: none !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    width: 100%;
    min-width: 0;
    border: none;
    border-top: 1px solid rgba(99,155,255,0.10);
    background: rgba(37,99,235,0.06);
    box-shadow: none;
    padding: 0.25rem 0 0.35rem;
  }
  /* Expand on JS .open class */
  .has-submenu.open > .submenu { display: block !important; }
  /* Prevent desktop hover rule from firing on touch screens */
  .has-submenu:hover > .submenu { opacity: 1; visibility: visible; }

  .submenu li {
    list-style: none !important;
    margin: 0;
    width: 100%;
  }
  .submenu a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 5% 0.75rem 9%;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--d-muted2);
    background: transparent;
    border-radius: 0;
    margin: 0;
    border-bottom: 1px solid rgba(99,155,255,0.07);
    line-height: 1.3;
    transition: color 0.15s, background 0.15s;
  }
  .submenu li:last-child a { border-bottom: none; }
  .submenu a:hover {
    color: #fff;
    background: rgba(37,99,235,0.14);
  }

  /* Chevron points up when submenu is open */
  .has-submenu.open > a::after {
    transform: rotate(225deg) translateY(2px);
    opacity: 0.85;
  }
}

/* ================================================================
   HERO  (dark surface)
================================================================ */
.hero {
  min-height: 100vh;
  padding: 7.5rem 5% 4.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--d-bg);
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(37,99,235,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 82% 88%, rgba(29,78,216,0.15) 0%, transparent 55%);
}

.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,155,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,155,255,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.7;
  animation: gridMove 26s linear infinite;
}
@keyframes gridMove {
  0%   { transform: translate(0,0); }
  100% { transform: translate(52px,52px); }
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(99,155,255,0.36);
  background: rgba(37,99,235,0.12);
  color: var(--blue-light);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  background: linear-gradient(150deg, #ffffff 0%, #c4d9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  margin-top: 1.15rem;
  font-size: 1.12rem;
  color: var(--d-muted);
  line-height: 1.7;
  max-width: 52rem;
}

.bullets {
  margin: 1.4rem 0 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.72rem 1.4rem;
  list-style: none;
  font-size: 0.96rem;
}
.bullets li {
  display: flex; gap: 0.55rem;
  align-items: flex-start;
  color: var(--d-muted2);
  line-height: 1.4;
}
.dot {
  margin-top: 0.36rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-mid);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18);
  flex: 0 0 auto;
}

/* ================================================================
   BUTTONS
================================================================ */
.cta { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }

.btn {
  padding: 0.86rem 1.95rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.96rem;
  display: inline-flex; gap: 0.5rem;
  align-items: center; justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}
.btn.primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 5px 22px rgba(37,99,235,0.32);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37,99,235,0.42);
}
/* Default secondary - for dark backgrounds (hero) */
.btn.secondary {
  background: transparent;
  color: var(--d-muted2);
  border-color: rgba(99,155,255,0.38);
}
.btn.secondary:hover {
  background: rgba(37,99,235,0.09);
  border-color: var(--blue-mid);
  color: #fff;
}

/* Secondary button on LIGHT sections */
.section .btn.secondary {
  color: var(--blue);
  border-color: rgba(37,99,235,0.42);
}
.section .btn.secondary:hover {
  background: var(--blue-xpale);
  border-color: var(--blue);
  color: var(--blue-dark);
}

/* Buttons inside callout (solid blue bg - invert primary, keep secondary white) */
.section .callout .btn.primary {
  background: #fff;
  color: var(--blue-dark);
  border-color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.14);
}
.section .callout .btn.primary:hover {
  background: var(--blue-pale);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}
.section .callout .btn.secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.52);
}
.section .callout .btn.secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.80);
  color: #fff;
}

/* ================================================================
   HERO VISUAL CARD
================================================================ */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--d-border);
  background: linear-gradient(145deg, rgba(37,99,235,0.14), rgba(7,17,31,0.90));
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.46), 0 0 0 1px rgba(99,155,255,0.10);
}
.hero-visual img {
  width: 100%; height: auto; display: block;
  opacity: 0.88;
}
.hero-visual .overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 35% 28%, rgba(37,99,235,0.26), transparent 55%);
  pointer-events: none;
}
.hero-visual .mini {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  padding: 0.88rem 1rem;
  border-radius: 12px;
  background: rgba(7,17,31,0.80);
  border: 1px solid rgba(99,155,255,0.26);
  backdrop-filter: blur(10px);
  color: var(--d-muted2);
  font-size: 0.9rem;
  line-height: 1.4;
}
.hero-visual .mini strong { color: #e6f0ff; }

/* ================================================================
   SECTIONS  (light surfaces)
================================================================ */
.section {
  padding: 5.5rem 5%;
  position: relative;
  background: var(--l-bg);
}
.section.band {
  background: var(--l-band);
  border-top: 1px solid rgba(37,99,235,0.09);
  border-bottom: 1px solid rgba(37,99,235,0.09);
}

/* ---- Section headings & body ---- */
.h2 {
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--l-text);
}
.p {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--l-muted);
}
.h2-left { text-align: left; }
.p-left  { text-align: left; margin: 0; }

/* Kicker pill on light sections */
.section .kicker {
  border-color: rgba(37,99,235,0.28);
  background: var(--blue-xpale);
  color: var(--blue);
}

/* ---- Cards on light sections ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  border-radius: var(--radius);
  padding: 1.7rem;
  background: var(--l-bg);
  border: 1px solid rgba(37,99,235,0.13);
  box-shadow: var(--sh-card);
  transition: transform 0.20s, box-shadow 0.20s, border-color 0.20s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.30);
  box-shadow: var(--sh-card-hover);
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--l-text);
  margin-bottom: 0.55rem;
}
.card p {
  color: var(--l-muted);
  line-height: 1.68;
  font-size: 0.96rem;
}
.meta {
  margin-top: 0.85rem;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ---- Callout block (solid blue, inside band sections) ---- */
.callout {
  max-width: 1040px; margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.4rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: 0 20px 60px rgba(37,99,235,0.32), 0 4px 12px rgba(37,99,235,0.18);
  border: none;
}
.callout h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.7rem;
  letter-spacing: -0.015em;
  background: none;
  -webkit-text-fill-color: #fff;
}
.callout p {
  color: rgba(255,255,255,0.82);
  line-height: 1.72;
  margin-bottom: 1.1rem;
  text-align: left;
}
.callout .small { color: rgba(255,255,255,0.78); }

/* ================================================================
   CONTROL MAP  (intentionally dark - it's a radial diagram)
================================================================ */
.control-map {
  max-width: 980px; margin: 0 auto;
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99,155,255,0.20);
  background: radial-gradient(circle at 50% 50%, rgba(37,99,235,0.18), rgba(7,17,31,0.92) 60%);
  overflow: hidden;
  box-shadow: 0 6px 40px rgba(0,0,0,0.18);
}
.control-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,155,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,155,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.55;
}
.eko-core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 230px; height: 230px;
  border-radius: 50%;
  border: 2px solid rgba(99,155,255,0.55);
  background: radial-gradient(circle at 40% 36%, rgba(37,99,235,0.44), rgba(29,78,216,0.22));
  box-shadow: 0 0 0 16px rgba(37,99,235,0.09), 0 20px 50px rgba(0,0,0,0.40);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1.1rem; z-index: 4;
}
.eko-core h3 { font-size: 1.28rem; margin-bottom: 0.3rem; color: #eaf2ff; }
.eko-core p  { font-size: 0.87rem; color: #c4dcff; line-height: 1.38; }

.node {
  position: absolute; width: 210px;
  border-radius: var(--radius);
  border: 1px solid rgba(99,155,255,0.28);
  background: rgba(7,17,31,0.90);
  color: #d6e6ff; padding: 0.82rem 0.9rem; z-index: 3;
}
.node strong { display: block; margin-bottom: 0.2rem; color: #eef5ff; font-size: 0.94rem; }
.node span   { font-size: 0.82rem; color: #a4bedd; }

.n1 { left: 6%; top: 10%; }   .n2 { right: 6%; top: 10%; }
.n3 { left: 4%; bottom: 15%; } .n4 { right: 4%; bottom: 15%; }
.n5 { left: 50%; transform: translateX(-50%); top: 2.5%; }
.n6 { left: 50%; transform: translateX(-50%); bottom: 2.5%; }

.map-link {
  position: absolute; height: 2px;
  background: linear-gradient(90deg,
    rgba(99,155,255,0.0),
    rgba(99,155,255,0.62),
    rgba(99,155,255,0.0));
  transform-origin: left center;
  z-index: 2; opacity: 0.85;
}
.l1 { left: 27%; top: 25%; width: 220px; transform: rotate(21deg); }
.l2 { right: 27%; top: 25%; width: 220px; transform: rotate(-21deg); }
.l3 { left: 23%; bottom: 28%; width: 210px; transform: rotate(-26deg); }
.l4 { right: 23%; bottom: 28%; width: 210px; transform: rotate(26deg); }
.l5 { left: 50%; top: 19%; width: 2px; height: 90px; transform: translateX(-50%); }
.l6 { left: 50%; bottom: 19%; width: 2px; height: 90px; transform: translateX(-50%); }

/* ================================================================
   VISUAL STACK / FEATURE RAILS  (on light sections)
================================================================ */
.visual-stack {
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr 1fr;
}
.feature-rail {
  border-radius: var(--radius-lg);
  border: 1px solid var(--l-border);
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--sh-card);
}
.feature-rail > h3 {
  font-size: 1.18rem !important;
  color: var(--l-text) !important;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.evidence-strip {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0.75rem;
}
.evidence-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64px;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,0.18);
  background: #fff;
  color: var(--l-text);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
  box-shadow: var(--sh-card);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.evidence-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37,99,235,0.34);
  box-shadow: var(--sh-card-hover);
  color: var(--blue-dark);
}
.rail-item {
  border-radius: var(--radius);
  border: 1px solid rgba(37,99,235,0.13);
  background: var(--l-band);
  padding: 0.95rem 1rem;
  margin-top: 0.65rem;
}
.rail-item strong {
  color: var(--l-text);
  display: block; margin-bottom: 0.28rem;
  font-weight: 700;
}
.rail-item span {
  color: var(--l-muted);
  font-size: 0.91rem;
  line-height: 1.5;
}
.rail-item.accent-cyan  { border-color: rgba(6,182,212,0.36);   background: rgba(6,182,212,0.05); }
.rail-item.accent-green { border-color: rgba(16,185,129,0.36);  background: rgba(16,185,129,0.05); }
.rail-item.accent-amber { border-color: rgba(245,158,11,0.36);  background: rgba(245,158,11,0.05); }

/* ================================================================
   MODULE BOARD  (comparison table - on light sections)
================================================================ */
.module-board {
  max-width: 1200px; margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--l-border);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-card);
}
.module-head {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(130px, 1fr));
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
}
.module-head div {
  padding: 1rem 0.9rem;
  color: rgba(255,255,255,0.94);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}
.module-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(130px, 1fr));
  border-top: 1px solid rgba(37,99,235,0.08);
  transition: background 0.15s;
}
.module-row:hover { background: var(--l-band); }
.module-row > div {
  padding: 0.88rem 0.9rem;
  color: var(--l-muted);
  font-size: 0.92rem;
}
.module-row > div:first-child { color: var(--l-text); font-weight: 600; }

.tag-yes {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 82px; border-radius: 999px;
  border: 1px solid rgba(16,185,129,0.44);
  background: rgba(16,185,129,0.10);
  color: #059669;
  padding: 0.18rem 0.58rem;
  font-weight: 700; font-size: 0.81rem;
}
.tag-opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 82px; border-radius: 999px;
  border: 1px solid rgba(245,158,11,0.40);
  background: rgba(245,158,11,0.10);
  color: #d97706;
  padding: 0.18rem 0.58rem;
  font-weight: 700; font-size: 0.81rem;
}
.tag-later {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 82px; border-radius: 999px;
  border: 1px solid rgba(100,116,139,0.34);
  background: rgba(100,116,139,0.09);
  color: #64748b;
  padding: 0.18rem 0.58rem;
  font-weight: 700; font-size: 0.81rem;
}

/* ================================================================
   PHASE TRACK  (on light sections)
================================================================ */
.phase-track {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.phase {
  border-radius: var(--radius);
  border: 1px solid var(--l-border);
  border-top: 3px solid var(--blue);
  background: #fff;
  padding: 1.55rem;
  box-shadow: var(--sh-card);
}
.phase .step {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.34);
  color: var(--blue);
  background: var(--blue-xpale);
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  font-size: 0.76rem;
  margin-bottom: 0.65rem;
  letter-spacing: 0.025em;
}
.phase h3 { color: var(--l-text); margin-bottom: 0.45rem; font-size: 1.05rem; font-weight: 700; }
.phase p  { color: var(--l-muted); font-size: 0.93rem; line-height: 1.58; }
.phase ul { margin-top: 0.65rem; padding-left: 1.1rem; }
.phase li { color: var(--l-muted2); margin-top: 0.3rem; font-size: 0.88rem; }

/* ================================================================
   GOVERNED EVOLUTION ILLUSTRATION
================================================================ */
.evolution-illustration {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--l-border);
  background: #fff;
  box-shadow: var(--sh-card);
  padding: 0.85rem;
}
.evolution-diagram {
  width: 100%;
  height: auto;
  display: block;
}

/* ================================================================
   METRICS BAND  (on light sections)
================================================================ */
.metrics-band { padding-top: 2rem; }
.metrics-wrap {
  max-width: 1200px; margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--l-border);
  background: #fff;
  padding: 2.25rem;
  display: grid; gap: 2rem;
  grid-template-columns: 0.95fr 1.05fr;
  box-shadow: var(--sh-card);
}
.metrics-intro .kicker { margin-bottom: 0.5rem; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.metric-card {
  border: 1px solid var(--l-border);
  background: var(--l-band);
  border-radius: var(--radius);
  padding: 1.1rem;
  min-height: 140px;
}
.metric-value {
  font-size: 2.1rem; font-weight: 900;
  color: var(--blue);
  margin-bottom: 0.3rem;
}
.metric-label { color: var(--l-text); line-height: 1.4; font-size: 0.93rem; }
.metric-src {
  margin-top: 0.5rem;
  color: var(--l-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

/* ================================================================
   FORM  (on light section)
================================================================ */
.form {
  max-width: 740px; margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--l-border);
  background: #fff;
  padding: 2rem 2.1rem;
  box-shadow: var(--sh-card);
}
label {
  display: block;
  color: var(--l-text);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0.95rem 0 0.36rem;
}
input, textarea, select {
  width: 100%;
  border-radius: var(--radius);
  border: 1.5px solid rgba(37,99,235,0.22);
  background: #f7faff;
  color: var(--l-text);
  padding: 0.82rem 0.95rem;
  outline: none;
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}
textarea { min-height: 130px; resize: vertical; }
select option { background: #fff; color: var(--l-text); }

/* ================================================================
   FOOTER  (dark surface)
================================================================ */
.footer {
  background: var(--d-bg);
  padding: 2.75rem 5%;
  border-top: 1px solid var(--d-border-soft);
  text-align: center;
}
.footer p { color: var(--d-muted); font-size: 0.92rem; }

/* ================================================================
   SCROLL REVEAL ANIMATION
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   UTILITIES
================================================================ */
hr.sep {
  border: none; height: 1px;
  background: rgba(37,99,235,0.10);
  margin: 1.25rem 0;
}
.codebox {
  border-radius: var(--radius);
  border: 1px solid var(--l-border);
  background: var(--l-band);
  padding: 1rem 1.1rem;
  overflow: auto;
  color: var(--l-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}
.small {
  color: var(--l-muted);
  font-size: 0.93rem;
  line-height: 1.62;
}
.hero .small { color: var(--d-muted); }
.link { color: var(--blue); font-weight: 700; }
.link:hover { text-decoration: underline; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1080px) {
  .module-board {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .module-head,
  .module-row {
    min-width: 780px;
    grid-template-columns: 1.1fr repeat(4, minmax(120px, 1fr));
  }
}

@media (max-width: 940px) {
  h1 { font-size: 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .bullets { grid-template-columns: 1fr; }
  .h2 { font-size: 1.95rem; }
  .visual-stack { grid-template-columns: 1fr; }
  .phase-track { grid-template-columns: 1fr; }
  .metrics-wrap { grid-template-columns: 1fr; padding: 1.5rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: unset; }

  .control-map {
    min-height: auto;
    padding: 1.25rem;
    display: grid;
    gap: 0.75rem;
  }
  .control-grid, .map-link { display: none; }
  .eko-core {
    position: relative; left: auto; top: auto;
    transform: none; width: 100%; height: auto;
    border-radius: var(--radius);
  }
  .node {
    position: relative; width: 100%;
    left: auto; right: auto; top: auto; bottom: auto;
    transform: none;
  }

  .module-head,
  .module-row { min-width: 760px; }
  .evidence-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .hero { padding: 6.5rem 5% 3.5rem; }
  .section { padding: 4rem 5%; }
  .btn { padding: 0.8rem 1.5rem; font-size: 0.92rem; }
  .callout { padding: 1.8rem 1.3rem; }
  .callout h3 { font-size: 1.5rem; }
  .form { padding: 1.5rem; }

  .evolution-illustration {
    padding: 0.5rem;
  }
  .evidence-strip { grid-template-columns: 1fr; }
}


