/* ============================================================
   BULUTRA — SECTIONS + RESPONSIVE
   hero · ecosystem · features · why · industries · final
   ============================================================ */

/* =================== HERO =================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 2rem;
  overflow: hidden;
  isolation: isolate;
}

/* ---- Layered scene (back → front) ---- */
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__layer {
  position: absolute; inset: -7%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
  will-change: transform;
}
.hero__layer--grid { transition-delay: 0s; }            /* the field initializes first */
.hero__layer--core { z-index: 2; transition-delay: 0.32s; }  /* then the core wakes */
.hero.is-init .hero__layer { opacity: 1; }
.hero__svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* polar control grid */
.hg-ring { fill: none; stroke: rgba(160, 180, 220, 0.10); }
.hg-ring--soft { stroke: rgba(160, 180, 220, 0.05); }
.hg-spoke { stroke: rgba(160, 180, 220, 0.05); }
.hg-tick { stroke: rgba(160, 180, 220, 0.16); }
.hg-tick--hot { stroke: rgba(120, 200, 255, 0.55); }
.hg-scan { transform-box: fill-box; transform-origin: center; }
.hero.is-init .hg-scan { animation: hcSpin 26s linear infinite; }

/* product lanes */
.hl-lane {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 900);
  stroke-dashoffset: var(--len, 900);
  filter: drop-shadow(0 0 5px var(--lane-c, #3B63FF));
  transition: stroke-dashoffset 1.05s var(--ease-out) var(--lane-d, 0ms);
}
.hero.is-init .hl-lane { stroke-dashoffset: 0; }

/* faint conduit that wires the text/control side into the core */
.hl-spur {
  fill: none; stroke: rgba(120, 160, 255, 0.32); stroke-width: 1;
  stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600);
  transition: stroke-dashoffset 1.3s var(--ease-out) 1s;
}
.hero.is-init .hl-spur { stroke-dashoffset: 0; }
.hl-spur-sig { offset-rotate: 0deg; opacity: 0; transition: opacity 0.6s ease 1.6s; }
.hero.is-init .hl-spur-sig { opacity: 1; animation: hlFlow 4.2s linear infinite; }

.hl-endpoint { fill: rgba(8, 11, 18, 0.9); stroke: var(--lane-c); stroke-width: 1.5; }
.hl-endpoint-core { fill: var(--lane-c); }
.hl-endpoint, .hl-endpoint-core { opacity: 0; transition: opacity 0.5s var(--ease-out) var(--ep-d, 1.6s); }
.hero.is-init .hl-endpoint, .hero.is-init .hl-endpoint-core { opacity: 1; }
.hl-signal { offset-rotate: 0deg; opacity: 0; transition: opacity 0.6s var(--ease-out) 1.5s; }
.hero.is-init .hl-signal { animation: hlFlow 3s linear infinite; opacity: 1; }
/* boot firing: a bright shot travels core → product, then a landing flash */
.hl-fire { offset-rotate: 0deg; opacity: 0; }
.hero.is-init .hl-fire { animation: hlFire 1s var(--ease-out) var(--fire-d, 0.8s) forwards; }
.hl-land { fill: none; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.hero.is-init .hl-land { animation: hlLand 0.85s var(--ease-out) var(--land-d, 1.8s) backwards; }
.hl-label {
  font: 600 17px var(--font-display);
  fill: var(--ink-100);
  letter-spacing: -0.01em;
}
.hl-tag { font: 500 9.5px var(--font-mono); letter-spacing: 0.2em; fill: var(--ink-300); }
.hl-label-wrap { opacity: 0; transition: opacity 0.9s var(--ease-out) var(--label-d, 1s); }
.hero.is-init .hl-label-wrap { opacity: 1; }

/* the core */
.hc-arc {
  fill: none; stroke-width: 1.6;
  transform-box: fill-box; transform-origin: center;
  filter: drop-shadow(0 0 6px var(--glow-blue));
}
.hero.is-init .hc-arc--b { animation: hcSpin 24s linear 0.55s infinite reverse; }
.hc-pulse {
  fill: none; stroke: var(--cyan-500); stroke-width: 1.2;
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
}
.hero.is-init .hc-pulse { animation: hcPulse 4.4s var(--ease-out) 0.8s infinite; }
.hero.is-init .hc-pulse--2 { animation-delay: 3s; }
/* operating-layer orbital plane (tilted elliptical rings + riding satellites) */
.hc-plane { fill: none; stroke: rgba(120, 160, 255, 0.14); stroke-width: 1; }
.hc-plane-g { opacity: 0; transition: opacity 1s var(--ease-out) 0.55s; }
.hero.is-init .hc-plane-g { opacity: 1; }
.hc-plane-sat { offset-rotate: 0deg; opacity: 0; }
.hero.is-init .hc-plane-sat { opacity: 1; animation: hlFlow var(--sat-dur, 15s) linear 0.7s infinite var(--sat-dir, normal); }
.hc-bloom { transform-box: fill-box; transform-origin: center; }
.hero.is-init .hc-bloom { animation: coreIgnite 0.9s var(--ease-out) 0.3s backwards, hcBreathe 6s var(--ease-in-out) 1.2s infinite; }
.hc-core-tick { stroke: rgba(120, 200, 255, 0.5); }
.hc-disc, .hc-mark { transform-box: fill-box; transform-origin: center; }
.hero.is-init .hc-mark { animation: coreIgnite 0.7s var(--ease-out) 0.5s backwards; }

/* foreground depth motes */
.hero__motes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.mote {
  position: absolute; border-radius: 50%;
  filter: blur(18px);
  opacity: 0;
  background: radial-gradient(circle, rgba(120, 200, 255, 0.5), transparent 70%);
  transition: opacity 1.6s var(--ease-out);
}
.hero.is-init .mote { opacity: 0.5; }
.mote:nth-child(1) { width: 140px; height: 140px; left: 58%; top: 22%; background: radial-gradient(circle, rgba(90,124,255,0.45), transparent 70%); }
.mote:nth-child(2) { width: 90px; height: 90px; left: 78%; top: 64%; }
.mote:nth-child(3) { width: 60px; height: 60px; left: 40%; top: 78%; background: radial-gradient(circle, rgba(255,178,87,0.30), transparent 70%); }
.mote:nth-child(4) { width: 110px; height: 110px; left: 30%; top: 32%; background: radial-gradient(circle, rgba(90,124,255,0.30), transparent 70%); }
.mote:nth-child(5) { width: 50px; height: 50px; left: 86%; top: 30%; }
.hero.is-init .mote { animation: moteDrift 16s var(--ease-in-out) infinite alternate; }
.mote:nth-child(2n) { animation-duration: 21s; }
.mote:nth-child(3n) { animation-duration: 18s; }

/* ---- WebGL cinematic layer (active only when .hero.gl-on) ---- */
.hero__gl {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
  pointer-events: none;
}
.hero.gl-on .hero__gl { opacity: 1; }
/* GL replaces the 2D scene layers entirely */
.hero.gl-on .hero__canvas,
.hero.gl-on .hero__layer--grid,
.hero.gl-on .hero__layer--core,
.hero.gl-on .hero__motes { display: none; }

.hero__gl-labels {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  display: none;
}
.hero.gl-on .hero__gl-labels { display: block; }
.gl-label {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  transform: translate(14px, -50%);
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
  white-space: nowrap;
}
.gl-label.in { opacity: 1; }
.gl-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.gl-label strong {
  display: block;
  font: 600 17px var(--font-display);
  color: var(--ink-100);
  letter-spacing: -0.01em;
}
.gl-label em {
  display: block;
  margin-top: 2px;
  font: 500 9.5px var(--font-mono);
  font-style: normal;
  letter-spacing: 0.2em;
  color: var(--ink-300);
}
.gl-label--flip { transform: translate(calc(-100% - 14px), -50%); flex-direction: row-reverse; }

/* with the GL scene active, ease the bottom fade so the terrain reads */
.hero.gl-on .hero__veil {
  background:
    radial-gradient(120% 100% at 14% 48%, rgba(6,8,12,0.9) 0%, rgba(6,8,12,0.44) 42%, transparent 66%),
    linear-gradient(to bottom, rgba(6,8,12,0.5) 0%, transparent 16%, transparent 76%, var(--bg-900) 100%);
}

/* veil — darkens the text side, lets the core glow read */
.hero__veil {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(120% 100% at 14% 48%, rgba(6,8,12,0.9) 0%, rgba(6,8,12,0.46) 42%, transparent 68%),
    radial-gradient(90% 85% at 66% 46%, transparent 40%, rgba(6,8,12,0.3) 100%),
    linear-gradient(to bottom, rgba(6,8,12,0.5) 0%, transparent 16%, transparent 60%, var(--bg-900) 100%);
}

/* ---- Content ---- */
/* full site container so the text aligns left with the nav + readout */
.hero__content { position: relative; z-index: var(--z-content); }
/* unifying light: the text sits inside the same control-plane glow as the core */
.hero__content::before {
  content: "";
  position: absolute; z-index: -1;
  left: -14%; top: 50%;
  width: 135%; height: 168%;
  transform: translateY(-50%);
  background: radial-gradient(58% 52% at 82% 50%, rgba(58, 99, 255, 0.16), rgba(58, 99, 255, 0.05) 45%, transparent 72%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s var(--ease-out) 0.45s;
}
.hero.is-init .hero__content::before { opacity: 1; }
.hero__eyebrow { margin-bottom: 1.5rem; }
.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  color: var(--ink-100);
}
.hero__title .hero__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .hero__line > span {
  display: block;
  transition: transform 1s var(--ease-out), opacity 1s var(--ease-out);
}
.hero__sub {
  margin-top: 1.6rem;
  max-width: 50ch;
  font-size: var(--fs-lede);
  color: var(--ink-300);
  line-height: 1.55;
}
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__readout {
  position: relative;
  z-index: var(--z-content);
  margin-top: clamp(1.75rem, 3.5vh, 2.75rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.hero__scroll {
  margin-left: auto;
  width: 26px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  position: relative;
  flex-shrink: 0;
}
.hero__scroll-line {
  position: absolute; top: 8px; left: 50%; width: 2px; height: 8px;
  background: var(--cyan-500); border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 2s var(--ease-in-out) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, -4px); } 30% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 16px); } }

/* ---- Entrance gate (held pre-paint by html.hero-enter) ---- */
html.hero-enter .hero [data-enter] { opacity: 0; transform: translateY(22px); }
.hero [data-enter] {
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--enter-d, 0ms);
}
html.hero-enter .hero__title .hero__line > span { transform: translateY(112%); opacity: 0; }
.hero__title .hero__line:nth-child(1) > span { transition-delay: 0.14s; }
.hero__title .hero__line:nth-child(2) > span { transition-delay: 0.28s; }
.hero__title .hero__line:nth-child(3) > span { transition-delay: 0.42s; }

/* ---- Scene keyframes ---- */
@keyframes hcSpin { to { transform: rotate(360deg); } }
@keyframes hcPulse {
  0% { transform: scale(0.32); opacity: 0; }
  12% { opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}
@keyframes hcBreathe { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes coreIgnite { 0% { transform: scale(0.4); opacity: 0; } 55% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes hlFlow { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes hlFire { 0% { offset-distance: 0%; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes hlLand { 0% { transform: scale(0.3); opacity: 0; } 22% { opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes moteDrift { from { transform: translate(0, 0); } to { transform: translate(-22px, -26px); } }

.reduced-motion .hero__scroll-line,
.reduced-motion .hg-scan,
.reduced-motion .hc-arc,
.reduced-motion .hc-pulse,
.reduced-motion .hc-bloom,
.reduced-motion .hc-mark,
.reduced-motion .hc-plane-sat,
.reduced-motion .hl-signal,
.reduced-motion .hl-spur-sig,
.reduced-motion .hl-fire,
.reduced-motion .hl-land,
.reduced-motion .mote { animation: none !important; }
.reduced-motion .hl-lane,
.reduced-motion .hl-spur { transition: none; stroke-dashoffset: 0; }
.reduced-motion .hero__layer,
.reduced-motion .hl-label-wrap,
.reduced-motion .hl-endpoint,
.reduced-motion .hl-endpoint-core,
.reduced-motion .hl-signal,
.reduced-motion .hc-plane-g,
.reduced-motion .hc-plane-sat,
.reduced-motion .hero__content::before { transition: none; opacity: 1; }

/* ---- Hero responsive ---- */
@media (max-width: 860px) {
  .hero__content { max-width: 600px; }
  .hero__veil {
    background:
      radial-gradient(100% 60% at 50% 24%, transparent 30%, rgba(6,8,12,0.4) 100%),
      linear-gradient(to bottom, rgba(6,8,12,0.45) 0%, transparent 26%, rgba(6,8,12,0.55) 70%, var(--bg-900) 100%);
  }
}
@media (max-width: 760px) {
  .hero { justify-content: flex-end; padding-bottom: 9vh; }
  .hero__content { max-width: 100%; }
  .hero__layer { inset: -4%; }
  .mote { opacity: 0; }
  .hero.is-init .mote { opacity: 0.3; }
  /* on small screens the core becomes a soft luminous backdrop: keep the
     glow + pulse + lanes, drop the sharp structure behind the text */
  .hc-mark, .hc-arc, .hc-core-tick, .hc-disc, .hc-corelabel, .hc-plane-g { display: none; }
}

/* =================== SECTION TRANSITIONS =================== */
/* animated hairline divider — a light passes through once on reveal */
.sec-divider {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  height: 1px;
  padding-inline: var(--container-pad);
}
.sec-divider::before {
  content: "";
  position: absolute; left: var(--container-pad); right: var(--container-pad); top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 22%, var(--line-strong) 78%, transparent);
}
.sec-divider::after {
  content: "";
  position: absolute; top: -1.5px; left: 8%;
  width: 150px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan-400), transparent);
  filter: blur(0.6px);
  opacity: 0;
}
.sec-divider.in::after { animation: dividerSweep 2.4s var(--ease-out) 0.15s; }
@keyframes dividerSweep {
  0% { left: 6%; opacity: 0; }
  25% { opacity: 0.85; }
  72% { opacity: 0.85; }
  100% { left: calc(92% - 150px); opacity: 0; }
}
.reduced-motion .sec-divider.in::after { animation: none; }

/* hero → ecosystem continuity: a descending data-spine */
.eco__spine {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 170px;
  background: linear-gradient(to bottom, transparent, var(--line-blue) 60%, transparent);
  z-index: 1; pointer-events: none;
  overflow: visible;
}
.eco__spine::after {
  content: "";
  position: absolute; left: -1.5px; top: 0;
  width: 4px; height: 26px; border-radius: 4px;
  background: linear-gradient(to bottom, transparent, var(--cyan-400));
  filter: blur(0.5px);
  animation: spineFlow 2.8s var(--ease-in-out) infinite;
}
@keyframes spineFlow { 0% { top: -26px; opacity: 0; } 30% { opacity: 1; } 80% { opacity: 1; } 100% { top: 170px; opacity: 0; } }
.reduced-motion .eco__spine::after { animation: none; opacity: 0; }
@media (max-width: 760px) { .eco__spine { display: none; } }

/* =================== ECOSYSTEM =================== */
.eco { position: relative; }
[data-pin] { position: relative; }
.eco__stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--section-pad);
  position: relative;
}
.eco__head { text-align: center; margin-bottom: clamp(2rem, 5vh, 4rem); }
.eco__head .eyebrow { margin-bottom: 1rem; }
.eco__title {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.eco__diagram {
  position: relative;
  /* keep the box ratio EXACTLY 1200/760 at every size so the SVG never
     letterboxes — otherwise the HTML cards/core drift off the lines */
  width: min(1080px, 100%, calc(66svh * 1200 / 760));
  margin-inline: auto;
  aspect-ratio: 1200 / 760;
}
.eco__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-branch {
  stroke: var(--accent);
  stroke-width: 1.6;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px var(--accent));
  /* drawn via stroke-dashoffset, controlled by --p */
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: calc(var(--len, 600) * (1 - var(--draw, 0)));
}

.eco__core {
  position: absolute;
  top: calc(320 / 760 * 100%);
  left: 50%;
  /* --ce (1 → 0) drives the hero→eco handoff: the core arrives from the
     upper-right (where the hero core was), settles to centre and ignites */
  transform: translate(-50%, -50%)
    translate(calc(var(--ce, 0) * 120px), calc(var(--ce, 0) * -72px))
    scale(calc(1 - var(--ce, 0) * 0.34));
  opacity: calc(1 - var(--ce, 0) * 0.58);
  width: clamp(96px, 12vw, 148px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  will-change: transform, opacity;
}
.eco__core-mark {
  position: absolute;
  top: 50%; left: 50%;
  width: 54%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 18px var(--glow-blue)) drop-shadow(0 0 6px rgba(120, 200, 255, 0.6));
}
.eco__core-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(90, 124, 255, 0.5);
  box-shadow: 0 0 90px 4px var(--glow-blue), inset 0 0 36px -6px var(--glow-blue);
  background: radial-gradient(circle, rgba(42, 80, 232, 0.28), rgba(42, 80, 232, 0.06) 55%, transparent 72%);
}
.eco__core-ring::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 1px solid rgba(58, 99, 255, 0.18);
  border-top-color: rgba(56, 232, 255, 0.6);
  animation: coreSpin 14s linear infinite;
}
.eco__core-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(56, 232, 255, 0.45);
  animation: hcPulse 4.4s var(--ease-out) infinite;
}
@keyframes coreSpin { to { transform: rotate(360deg); } }
.reduced-motion .eco__core-ring::after { animation: none; }
.reduced-motion .eco__core-ring::before { animation: none; opacity: 0; }

.eco-card {
  position: absolute;
  top: var(--y); left: var(--x);
  /* pre-reveal: nudged back toward the core, then slides out along its lane */
  transform: translate(-50%, -50%) translate(var(--sx, 0), var(--sy, 0)) scale(0.9);
  width: clamp(150px, 16vw, 196px);
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(12, 16, 26, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,0.9);
  opacity: 0;
  transition: opacity 700ms var(--ease-out), transform 850ms var(--ease-out);
}
.eco-card.in { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.eco-card::before {
  content: ""; position: absolute; left: 0; top: 1.1rem; bottom: 1.1rem; width: 2px;
  background: var(--accent); border-radius: 2px; box-shadow: 0 0 10px var(--accent);
}
.eco-card__dot { position: absolute; top: 1rem; right: 1rem; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.eco-card h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.eco-card p { font-size: 0.8rem; color: var(--ink-400); line-height: 1.4; }

/* signal pulse dots travelling along branches (created in JS) */
.eco-pulse { fill: var(--cyan-400); filter: drop-shadow(0 0 5px var(--cyan-400)); }

/* =================== FEATURE SECTIONS =================== */
.feature {
  position: relative;
  padding-block: var(--section-pad);
}
.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.feature--reverse .feature__content { order: 2; }
.feature--reverse .feature__visual { order: 1; }

.feature__title {
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  margin: 0.7rem 0 1rem;
  letter-spacing: -0.03em;
}
.feature__title::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 1rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}
.feature__lede { font-size: var(--fs-lede); color: var(--ink-300); max-width: 46ch; line-height: 1.5; }
.feature__list { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.feature-item {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: padding var(--dur-mid) var(--ease-out);
}
.feature-item:hover { padding-left: 0.9rem; }
.feature-item__icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
  color: var(--accent);
}
.feature-item h4 { font-size: var(--fs-h4); color: var(--ink-100); margin-bottom: 0.2rem; }
.feature-item p { font-size: 0.92rem; color: var(--ink-400); line-height: 1.5; }

.feature__visual { position: relative; }
.feature__visual::before {
  /* ambient accent glow behind panel */
  content: ""; position: absolute; inset: -12% -8% -8% -8%;
  background: radial-gradient(60% 60% at 60% 40%, var(--accent), transparent 70%);
  opacity: 0.1; filter: blur(40px); z-index: -1;
}

/* viz strokes use the section accent */
.viz-id, .viz-net, .viz-sec { color: var(--accent); }

/* =================== WHY / CONNECTED =================== */
.why { position: relative; padding-block: var(--section-pad); }
.why__head { max-width: 760px; }
.why__head .eyebrow { margin-bottom: 1rem; }
.why__title { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.025em; }
.why__lede { margin-top: 1.4rem; font-size: var(--fs-lede); color: var(--ink-300); line-height: 1.55; max-width: 60ch; }

.why__triad { margin: clamp(2rem, 4vh, 3.25rem) auto; max-width: 660px; }
.triad { width: 100%; height: auto; }

.why__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.why-point__num { display: block; font-size: 0.8rem; color: var(--blue-400); margin-bottom: 0.8rem; letter-spacing: 0.1em; }
.why-point h4 { font-size: var(--fs-h4); margin-bottom: 0.5rem; }
.why-point p { color: var(--ink-400); font-size: 0.95rem; line-height: 1.55; }

/* =================== INDUSTRIES =================== */
.ind { position: relative; padding-block: var(--section-pad); }
.ind__head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vh, 3.5rem); }
.ind__head .eyebrow { margin-bottom: 1rem; }
.ind__title { font-size: var(--fs-h2); letter-spacing: -0.025em; }

.ind__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: ind;
}
.ind-card {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.4), rgba(8, 11, 18, 0.4));
  overflow: hidden;
  counter-increment: ind;
  transition: border-color var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out), background var(--dur-mid);
}
/* engineered detail: auto mono index, top-right */
.ind-card::before {
  content: "/" counter(ind, decimal-leading-zero);
  position: absolute;
  top: 1.15rem; right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-400);
  z-index: 2;
  transition: color var(--dur-mid) var(--ease-out);
}
.ind-card:hover::before { color: var(--blue-400); }
.ind-card::after {
  /* signal sweep that follows the cursor (set via --mx/--my in JS) */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(180px 180px at var(--mx, 50%) var(--my, 0%), rgba(58, 99, 255, 0.16), transparent 60%);
  opacity: 0; transition: opacity var(--dur-mid) var(--ease-out);
  pointer-events: none;
}
.ind-card:hover { border-color: var(--line-blue); transform: translateY(-3px); background: linear-gradient(180deg, rgba(22, 30, 50, 0.6), rgba(8, 11, 18, 0.5)); }
.ind-card:hover::after { opacity: 1; }
.ind-card--wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 0 1.4rem; align-items: center; }
.ind-card__icon {
  width: 42px; height: 42px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--blue-400);
  margin-bottom: 1.1rem;
  transition: border-color var(--dur-mid) var(--ease-out), color var(--dur-mid), background var(--dur-mid);
}
.ind-card:hover .ind-card__icon { border-color: var(--line-blue); color: var(--cyan-400); background: rgba(58, 99, 255, 0.08); }
.ind-card--wide .ind-card__icon { grid-row: span 2; width: 46px; height: 46px; margin-bottom: 0; }
.ind-card h4 { font-size: var(--fs-h4); margin-bottom: 0.35rem; }
.ind-card p { color: var(--ink-400); font-size: 0.9rem; line-height: 1.5; }

/* =================== FINAL CTA =================== */
.final {
  position: relative;
  padding-block: clamp(5rem, 12vh, 9rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.final__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.8; }
.final__grid {
  position: relative; z-index: var(--z-content);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.final__title { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.03em; margin: 1rem 0 1.4rem; }
.final__sub { font-size: var(--fs-lede); color: var(--ink-300); line-height: 1.55; max-width: 46ch; }
.final__assure { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.final__assure li { display: flex; align-items: center; gap: 0.7rem; color: var(--ink-200); font-size: 0.95rem; }
.final__assure svg { color: var(--cyan-400); flex-shrink: 0; }

/* =================== RESPONSIVE =================== */
@media (max-width: 980px) {
  .nav__center { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .lang-toggle:not(.lang-toggle--lg) { display: none; }
  .nav__right { margin-left: auto; }

  .feature__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  /* lead each product with its instrument visual, details follow */
  .feature__visual { order: -1; max-width: 520px; }
  .feature__content { order: 0; }
  .feature--reverse .feature__content { order: 0; }
  .feature--reverse .feature__visual { order: -1; }

  .final__grid { grid-template-columns: 1fr; }
  .why__points { grid-template-columns: 1fr; gap: 1.8rem; }
  .why-point { padding-left: 1rem; border-left: 2px solid var(--line-blue); }

  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .site-footer__brand { grid-column: 1 / -1; }

  .ind__grid { grid-template-columns: repeat(2, 1fr); }
  .ind-card--wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  :root { --section-pad: 4.5rem; }

  .hero { padding-top: 100px; min-height: 92svh; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__readout .readout:nth-child(n+3) { display: none; }
  .hero__scroll { display: none; }

  /* Ecosystem: switch from the spatial diagram to a clean vertical stack */
  .eco__diagram { aspect-ratio: auto; max-width: 420px; display: flex; flex-direction: column; gap: 1rem; }
  .eco__svg, .eco__core { display: none; }
  .eco-card { position: static; transform: none; width: 100%; opacity: 1; }
  .eco-card.in { transform: none; }
  .eco__stage { min-height: auto; }

  .contact-form__panel { grid-template-columns: 1fr; }

  .ind__grid { grid-template-columns: 1fr; }
  .ind-card--wide { grid-column: span 1; grid-template-columns: 1fr; }
  .ind-card--wide .ind-card__icon { grid-row: auto; margin-bottom: 1rem; }

  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__base { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
}

/* For the pinned ecosystem section we add scroll length on larger screens */
@media (min-width: 601px) and (prefers-reduced-motion: no-preference) {
  .eco.is-pinnable { height: 220vh; }
  .eco.is-pinnable .eco__stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
}
