/* ============================================================
   reconstrukt.ai — marketing site
   Design system: near-black canvas, single electric-blue accent,
   Geist + Geist Mono, hairline borders, fine grid texture.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #0A0B0D;
  --bg-1:      #0E0F13;
  --bg-2:      #121419;
  --bg-3:      #16181F;

  /* Lines */
  --line:        rgba(255,255,255,0.075);
  --line-strong: rgba(255,255,255,0.14);
  --line-faint:  rgba(255,255,255,0.045);

  /* Text */
  --text:   #EBEDF0;
  --text-2: #9BA1AB;
  --text-3: #61676F;

  /* Accent (tweakable) */
  --accent:       #3D6FFF;
  --accent-hi:    #5C86FF;
  --accent-tint:  rgba(61,111,255,0.12);
  --accent-line:  rgba(61,111,255,0.42);
  --on-accent:    #ffffff;

  /* System / data colors (echo the product) */
  --supply: #4F9BFF;
  --return: #FF5A52;
  --vent:   #2BD4A0;
  --pwr:    #B98BFF;

  /* Type */
  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --grid-size: 56px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv01", "cv03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Fine grid texture, applied as a fixed underlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-faint) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 35%, transparent 78%);
  opacity: 0.6;
}
body.no-grid::before { display: none; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* ---- Reusable bits -------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 30px -10px var(--accent);
}
.btn-primary:hover { background: var(--accent-hi); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--text-2); background: rgba(255,255,255,0.03); }

.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Section scaffolding */
section { position: relative; z-index: 1; }
.section-pad { padding-block: clamp(80px, 11vw, 150px); }

.section-head { max-width: 760px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-top: 18px;
}
.section-head p { color: var(--text-2); font-size: 18px; margin-top: 18px; max-width: 620px; }

.rule { height: 1px; background: var(--line); border: 0; }

/* Media placeholder + frame */
.frame {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
}
.frame::after {
  /* inner hairline highlight */
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
.frame .tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  background: rgba(10,11,13,0.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  max-width: calc(100% - 28px);
}
.frame .tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.media-16x9 { aspect-ratio: 16 / 9; }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* On-brand placeholder fill (striped, dark, gridded) */
.ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 11px),
    linear-gradient(to right, var(--line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-faint) 1px, transparent 1px),
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(61,111,255,0.06), transparent 70%),
    var(--bg-1);
  background-size: auto, 38px 38px, 38px 38px, auto, auto;
  display: grid;
  place-items: center;
}
.ph .ph-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  padding: 14px 18px;
  border: 1px dashed var(--line-strong);
  background: rgba(10,11,13,0.4);
}

/* Video placeholder: play glyph + caption, awaiting real footage */
.ph.video { gap: 18px; grid-auto-flow: row; }
.ph .play {
  width: 66px; height: 66px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent);
  background: rgba(10,11,13,0.35);
}
.ph .play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 4px;
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; transition: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(10,11,13,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.wordmark .mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--accent);
  position: relative;
  flex: none;
}
.wordmark .mark::before,
.wordmark .mark::after {
  content: ""; position: absolute; background: var(--accent);
}
.wordmark .mark::before { left: 50%; top: 3px; bottom: 3px; width: 1.5px; transform: translateX(-50%); }
.wordmark .mark::after  { top: 50%; left: 3px; right: 3px; height: 1.5px; transform: translateY(-50%); }
.wordmark .suffix { color: var(--text-3); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px; color: var(--text-2);
  transition: color .18s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 150px; padding-bottom: clamp(60px, 8vw, 110px); text-align: center; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 78px);
  max-width: 16ch;
  margin: 0 auto;
}
.hero .sub {
  color: var(--text-2);
  font-size: clamp(17px, 2vw, 21px);
  max-width: 56ch;
  margin: 26px auto 0;
}
.hero .cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 38px;
}
.hero-demo {
  margin-top: clamp(48px, 7vw, 90px);
  position: relative;
}
.hero-demo .frame { box-shadow: 0 50px 120px -50px rgba(0,0,0,0.9); }
.hero-demo .glow {
  position: absolute; inset: -8% -4% auto -4%; height: 60%;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-tint), transparent 70%);
  filter: blur(20px);
  z-index: 0; pointer-events: none;
}
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  margin-top: 38px;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.hero-stats .stat {
  padding: 18px 30px;
  border-right: 1px solid var(--line);
  text-align: left;
  flex: 1 1 0; min-width: 160px;
}
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .num { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.hero-stats .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 5px; }

.accent-text { color: var(--accent); }

/* ============================================================
   HERO · 3D MEP EXPERIENCE (pinned + scroll-scrubbed)
   ============================================================ */
.hero3d {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}
#mep-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.hero3d-grad {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 50% 46%, transparent 38%, rgba(10,11,13,0.55) 100%),
    linear-gradient(to bottom, rgba(10,11,13,0.72) 0%, transparent 22%, transparent 64%, rgba(10,11,13,0.92) 100%);
}
.hero3d-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero3d-overlay a, .hero3d-overlay button { pointer-events: auto; }

.hero3d-intro {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 90vw);
  text-align: center;
  will-change: opacity, transform;
}
.hero3d-intro .eyebrow { margin-bottom: 24px; justify-content: center; display: inline-flex; }
.hero3d-intro h1 { font-size: clamp(36px, 6vw, 76px); margin: 0 auto; max-width: 16ch; }
.hero3d-intro .sub { color: var(--text-2); font-size: clamp(16px, 2vw, 20px); max-width: 54ch; margin: 24px auto 0; }
.hero3d-intro .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* per-system labels */
.mep-labels {
  position: absolute; left: var(--pad); top: 50%;
  transform: translateY(-50%);
  width: min(340px, 76vw); height: 200px;
}
.mep-labels::before {
  content: ""; position: absolute; inset: -40px -60px -40px -120px; z-index: -1;
  background: radial-gradient(ellipse at left center, rgba(10,11,13,0.72), rgba(10,11,13,0.0) 76%);
  pointer-events: none;
}
.mep-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  will-change: opacity, transform;
}
.mep-label.active { opacity: 1; transform: none; }
.ml-idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.ml-name { font-size: clamp(26px, 3.2vw, 38px); font-weight: 500; letter-spacing: -0.02em; display: flex; align-items: center; gap: 14px; }
.ml-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 16px 1px var(--c, var(--accent)); flex: none; }
.ml-desc { font-size: 15px; color: var(--text-2); line-height: 1.55; max-width: 34ch; }

/* phase steps (right rail) */
.mep-steps {
  position: absolute; right: var(--pad); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
}
.mep-steps .step {
  width: 5px; height: 40px;
  background: rgba(255,255,255,0.12);
  position: relative; overflow: hidden;
}
.mep-steps .step::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: 100%;
  background: var(--c); box-shadow: 0 0 14px 0 var(--c);
  transition: top .25s linear;
}
.mep-steps .step[data-fill]::after { top: calc(100% - var(--fill, 0%)); }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3);
  transition: opacity .4s var(--ease);
}
.cue-arrow { font-size: 14px; animation: cuebob 1.8s var(--ease) infinite; }
@keyframes cuebob { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(5px); opacity: 1; } }

/* statband after pin */
.statband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statband .wrap { padding-block: 0; }
.statband .hero-stats { margin-top: 0; border-left: 0; border-right: 0; border-top: 0; border-bottom: 0; }

/* no-webgl / reduced fallback: static intro, hide chrome */
.hero3d.no-webgl #mep-canvas { display: none; }
.hero3d.no-webgl .scroll-cue,
.hero3d.no-webgl .mep-steps { display: none; }
.hero3d.no-webgl { background:
  radial-gradient(ellipse 70% 60% at 50% 40%, rgba(61,111,255,0.10), transparent 70%), var(--bg); }
.hero3d.static-mode .scroll-cue { display: none; }
.hero3d.static-mode .mep-labels { position: static; transform: none; width: auto; height: auto;
  display: grid; gap: 22px; margin-top: 40px; }
.hero3d.static-mode .mep-label { position: static; opacity: 1; transform: none; }
.hero3d.static-mode .hero3d-intro { position: static; transform: none; top: auto; left: auto;
  width: 100%; padding-top: 110px; }
.hero3d.static-mode { height: auto; min-height: 100vh; }
.hero3d.static-mode .hero3d-overlay { position: relative; }

@media (max-width: 820px) {
  .mep-labels { left: 50%; transform: translate(-50%, 0); top: auto; bottom: 90px; text-align: center; width: min(420px, 86vw); height: auto; }
  .mep-label { position: relative; align-items: center; text-align: center; }
  .mep-label:not(.active) { display: none; }
  .ml-desc { max-width: none; }
  .mep-steps { right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .cue-arrow { animation: none; }
}

/* Hero layout variant: left-aligned (tweakable) */
body.hero-left .hero { text-align: left; }
body.hero-left .hero h1 { margin-left: 0; max-width: 18ch; }
body.hero-left .hero .sub { margin-left: 0; margin-right: 0; }
body.hero-left .hero .cta-row { justify-content: flex-start; }
body.hero-left .hero .eyebrow { }

/* ============================================================
   PROBLEM STATEMENT
   ============================================================ */
.problem { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem .wrap { padding-block: clamp(64px, 9vw, 120px); }
.problem p {
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.18;
  max-width: 22ch;
  color: var(--text);
}
.problem .muted { color: var(--text-3); }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--line);
}
.cap:first-of-type { border-top: 0; }
.cap.reverse .cap-text { order: 2; }
.cap.reverse .cap-media { order: 1; }

.cap-text .eyebrow { margin-bottom: 20px; }
.cap-text h2 { font-size: clamp(26px, 3.4vw, 40px); }
.cap-text p { color: var(--text-2); font-size: 17px; margin-top: 18px; max-width: 46ch; }

.cap-list { list-style: none; margin-top: 26px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap-list li {
  background: var(--bg);
  padding: 13px 16px;
  display: flex; align-items: baseline; gap: 12px;
  font-size: 14.5px; color: var(--text-2);
}
.cap-list li b { color: var(--text); font-weight: 500; }
.cap-list .k {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.05em; flex: none; min-width: 26px;
}

.cap-media .frame { box-shadow: 0 40px 90px -55px rgba(0,0,0,0.9); }

/* ============================================================
   VISION / PLATFORM BAND
   ============================================================ */
.vision { border-top: 1px solid var(--line); background: var(--bg-1); }
.vision .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.vision h2 { font-size: clamp(28px, 4vw, 46px); }
.vision p { color: var(--text-2); font-size: 18px; margin-top: 20px; max-width: 48ch; line-height: 1.55; }
.disc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.disc {
  background: var(--bg-2);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
}
.disc .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.disc.live .dot { background: var(--vent); box-shadow: 0 0 0 4px rgba(43,212,160,0.14); }
.disc.next .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.disc.planned .dot { background: var(--text-3); }
.disc .name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.disc .name .sub { color: var(--text-3); font-weight: 400; font-size: 14px; margin-left: 4px; }
.disc .status {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3);
}
.disc.live .status { color: var(--vent); }
.disc.next .status { color: var(--accent); }

/* ============================================================
   TEAM / CREDIBILITY
   ============================================================ */
.team { border-top: 1px solid var(--line); background: var(--bg-1); }
.team .grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.team h2 { font-size: clamp(28px, 3.8vw, 42px); }
.team .lede { font-size: clamp(18px, 2vw, 22px); color: var(--text); margin-top: 22px; line-height: 1.5; letter-spacing: -0.01em; }
.team .body { color: var(--text-2); font-size: 16px; margin-top: 20px; line-height: 1.6; }
.team .body + .body { margin-top: 14px; }

.creds { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cred {
  background: var(--bg-2);
  padding: 22px 24px;
  display: flex; gap: 18px; align-items: flex-start;
}
.cred .n { font-family: var(--mono); font-size: 12px; color: var(--text-3); padding-top: 3px; flex: none; }
.cred .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.cred .name { font-size: 18px; font-weight: 500; margin-top: 6px; letter-spacing: -0.01em; }
.cred .desc { font-size: 14px; color: var(--text-2); margin-top: 8px; line-height: 1.55; }

/* ============================================================
   SPEC STRIP
   ============================================================ */
.specs { border-top: 1px solid var(--line); }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.spec-cell {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec-cell:nth-child(4n) { border-right: 0; }
.spec-cell h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 400; }
.spec-cell .vals { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 6px 11px;
  white-space: nowrap;
}
.chip.muted { color: var(--text-3); border-style: dashed; }

.privacy {
  grid-column: 1 / -1;
  border-bottom: 0 !important;
  border-right: 0 !important;
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-1);
}
.privacy .lock { width: 30px; height: 30px; border: 1px solid var(--accent-line); display: grid; place-items: center; flex: none; color: var(--accent); }
.privacy p { font-size: 15px; color: var(--text-2); }
.privacy p b { color: var(--text); font-weight: 500; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--line); }
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 4px;
  text-align: left; color: var(--text);
  font-family: var(--sans); font-size: clamp(17px, 2vw, 20px); font-weight: 500; letter-spacing: -0.015em;
}
.faq-q:hover { color: var(--accent-hi); }
.faq-q .pm { position: relative; width: 16px; height: 16px; flex: none; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--text-2); transition: transform .25s var(--ease), background .2s; }
.faq-q .pm::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq-q .pm::after  { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .pm::after { transform: translateX(-50%) scaleY(0); }
.faq-item.open .pm::before { background: var(--accent); }
.faq-a { overflow: hidden; height: 0; transition: height .3s var(--ease); }
.faq-a .inner { padding: 0 60px 26px 4px; color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 70ch; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.final .glow {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-tint), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.final h2 { font-size: clamp(30px, 5vw, 56px); max-width: 18ch; margin: 0 auto; }
.final p { color: var(--text-2); font-size: 18px; margin-top: 20px; }
.final .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-1); padding-block: 54px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer .left { max-width: 320px; }
.footer .left .wordmark { margin-bottom: 16px; }
.footer .left p { color: var(--text-3); font-size: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 400; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-2); font-size: 14px; padding: 6px 0; transition: color .18s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom span, .footer-bottom a { font-size: 13px; color: var(--text-3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .nav-cta .btn-ghost { display: none; }
  .cap { grid-template-columns: 1fr; gap: 32px; }
  .cap.reverse .cap-text { order: 1; }
  .cap.reverse .cap-media { order: 2; }
  .team .grid { grid-template-columns: 1fr; gap: 36px; }
  .vision .grid { grid-template-columns: 1fr; gap: 36px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .spec-cell:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .hero-stats .stat { flex-basis: 50%; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-cell { border-right: 0 !important; }
  .btn { width: 100%; justify-content: center; }
  .hero .cta-row, .final .cta-row { width: 100%; }
  .hero .cta-row .btn, .final .cta-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
