/* ============================================================
   TERAGRID — aiteragrid.com
   Agentic. Galactic. AI.  |  orange on near-black
   ============================================================ */

:root {
  --bg: #050507;
  --bg-2: #0a0a0e;
  --ink: #f4f2ee;
  --ink-dim: #9a978f;
  --accent: #ff6a3d;
  --accent-2: #ff8f3d;
  --line: rgba(244, 242, 238, 0.09);
  --font-display: 'Orbitron', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #050507; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

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

/* ---------- WebGL canvas + atmosphere ---------- */
#gl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.grain {
  position: fixed; inset: -100%;
  z-index: 2; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-10%); }
  20% { transform: translate(-15%,5%); } 30% { transform: translate(7%,-25%); }
  40% { transform: translate(-5%,25%); } 50% { transform: translate(-15%,10%); }
  60% { transform: translate(15%,0%); } 70% { transform: translate(0%,15%); }
  80% { transform: translate(3%,35%); } 90% { transform: translate(-10%,10%); }
}
.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { text-align: center; }
.preloader__mark { margin: 0 auto 28px; opacity: 0.9; }
.preloader__count {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(48px, 8vw, 96px); line-height: 1;
  color: var(--ink);
}
.preloader__count::after { content: '%'; font-size: 0.4em; color: var(--accent); margin-left: 4px; }
.preloader__bar {
  width: 220px; height: 1px; margin: 24px auto;
  background: var(--line); position: relative; overflow: hidden;
}
.preloader__bar span {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: var(--accent);
}
.preloader__tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.35em;
  color: var(--ink-dim);
}

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; z-index: 99; pointer-events: none;
    width: 36px; height: 36px; border: 1px solid rgba(255,106,61,0.6);
    border-radius: 50%; top: -18px; left: -18px;
    transition: width .3s, height .3s, top .3s, left .3s, background .3s, opacity .3s;
    mix-blend-mode: difference;
  }
  .cursor.is-hover { width: 64px; height: 64px; top: -32px; left: -32px; background: rgba(255,106,61,0.12); }
  .cursor-dot {
    display: block; position: fixed; z-index: 99; pointer-events: none;
    width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
    top: -2px; left: -2px;
  }
  body { cursor: none; }
  a, button { cursor: none; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
  transition: transform .5s cubic-bezier(.6,0,.2,1), background .4s;
}
.header.is-scrolled { background: linear-gradient(rgba(5,5,7,0.85), transparent); backdrop-filter: blur(8px); }
.header.is-hidden { transform: translateY(-110%); }
.header__logo img { width: clamp(130px, 14vw, 180px); }
.header__nav { display: flex; gap: 32px; }
.header__nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim); transition: color .3s; position: relative;
}
.header__nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--accent); transition: width .35s cubic-bezier(.6,0,.2,1);
}
.header__nav a:hover { color: var(--ink); }
.header__nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: all .35s cubic-bezier(.6,0,.2,1); position: relative; overflow: hidden;
}
.btn--solid { background: var(--accent); color: #0a0503; }
.btn--solid:hover { background: var(--accent-2); box-shadow: 0 0 40px rgba(255,106,61,0.45); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(244,242,238,0.25); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 16px 34px; font-size: 14px; }
.btn--xl { padding: 22px 48px; font-size: clamp(14px, 2vw, 20px); text-transform: none; letter-spacing: 0; }

/* ---------- Burger / menu ---------- */
.burger {
  display: none; background: none; border: 0; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 7px; align-items: center;
}
.burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .4s, opacity .4s; }
.burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 49; background: rgba(5,5,7,0.96);
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: center; gap: 8vh;
  padding: 0 clamp(24px, 8vw, 96px);
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 7vw, 64px); line-height: 1.3; color: var(--ink-dim);
  transition: color .3s, transform .3s; transform: translateX(0);
}
.menu__links a em { font-family: var(--font-mono); font-style: normal; font-size: 0.3em; color: var(--accent); vertical-align: super; margin-right: 16px; }
.menu__links a:hover { color: var(--ink); transform: translateX(12px); }
.menu__foot { display: flex; gap: 40px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-dim); }
.menu__foot a:hover { color: var(--accent); }

/* ---------- Layout primitives ---------- */
main { position: relative; z-index: 3; }

.section {
  position: relative;
  padding: clamp(90px, 14vh, 180px) clamp(20px, 6vw, 96px);
  max-width: 1440px; margin: 0 auto;
}
.section__index {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--accent); margin-bottom: 28px;
}
.section__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 7vw, 96px); line-height: 1.05;
  text-transform: uppercase; margin-bottom: 32px;
}
.section__lede { max-width: 560px; color: var(--ink-dim); font-size: clamp(16px, 1.6vw, 20px); margin-bottom: 56px; }
.section__lede strong { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; position: relative; z-index: 3;
  padding: 120px 20px 13vh;
}
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.4em;
  color: var(--ink-dim);
  position: absolute; top: 110px; left: 0; width: 100%;
  text-align: center; padding: 0 20px; white-space: nowrap;
}
.hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(44px, 9vw, 150px);
  line-height: 0.95; letter-spacing: 0.02em;
  filter: drop-shadow(0 0 45px rgba(255,106,61,0.3));
}
/* gradient fill must live on the same element as the glyphs —
   transformed child spans break background-clip on the parent */
.hero__title [data-split], .hero__title .char {
  background: linear-gradient(180deg, #fff 55%, rgba(255,255,255,0.35));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__title .char { display: inline-block; }
.hero__sub {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(14px, 2.2vw, 24px); letter-spacing: 0.45em; text-transform: uppercase;
  margin-top: 2.5vh; color: var(--ink);
}
.hero__sub i { font-style: normal; color: var(--accent); }
.hero__line { margin-top: 2.5vh; color: var(--ink-dim); font-size: clamp(15px, 1.8vw, 20px); }
.hero__line strong { color: var(--accent); font-weight: 600; }
.hero__cta { display: flex; gap: 16px; margin-top: 5vh; flex-wrap: wrap; justify-content: center; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.4em; color: var(--ink-dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll span { width: 1px; height: 48px; background: linear-gradient(var(--accent), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.3); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- no-WebGL fallback: static phoenix in the hero ---------- */
.no-gl .hero::before {
  content: '';
  position: absolute; left: 50%; top: 6%;
  margin-left: max(-35vw, -210px);
  width: min(70vw, 420px); height: min(70vw, 420px);
  background: url('../assets/icon-512.png') center / contain no-repeat;
  opacity: 0.9;
  filter: drop-shadow(0 0 70px rgba(255,106,61,0.4));
  pointer-events: none;
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; position: relative; z-index: 3; background: rgba(5,5,7,0.4); }
.marquee__track { display: flex; white-space: nowrap; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.35em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,106,61,0.55);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problem ---------- */
.problem__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; max-width: 980px; }
.card {
  border: 1px solid var(--line); border-radius: 16px; padding: 40px 36px;
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  transition: border-color .4s, transform .4s; will-change: transform;
}
.card h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.card p { color: var(--ink-dim); font-size: 15px; }
.card__path {
  margin-top: 28px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-dim);
  border-top: 1px solid var(--line); padding-top: 18px;
}
.card__path--hot { color: var(--accent); border-top-color: rgba(255,106,61,0.3); }
.card--dim { opacity: 0.75; }
.card--hot { border-color: rgba(255,106,61,0.4); background: linear-gradient(160deg, rgba(255,106,61,0.08), rgba(255,106,61,0.01)); }
.card--hot h3 { color: var(--accent); }
.card--hot:hover { border-color: var(--accent); }

/* ---------- Layers ---------- */
.layers__stack { max-width: 900px; display: flex; flex-direction: column; gap: 10px; margin-top: 24px; perspective: 900px; }
.layer {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 28px; background: rgba(10,10,14,0.6);
  transition: border-color .4s, background .4s, transform .4s;
}
.layer__lv { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--ink-dim); }
.layer__name { font-family: var(--font-display); font-size: clamp(14px, 2.2vw, 20px); text-transform: uppercase; letter-spacing: 0.06em; }
.layer__note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.layer--tg { border-color: var(--accent); background: linear-gradient(90deg, rgba(255,106,61,0.14), rgba(255,106,61,0.02)); box-shadow: 0 0 60px rgba(255,106,61,0.12); }
.layer--tg .layer__lv, .layer--tg .layer__note { color: var(--accent); }
.layers__caption { margin-top: 36px; font-size: clamp(16px, 2vw, 22px); color: var(--ink-dim); }

/* ---------- Stats ---------- */
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat { background: var(--bg-2); padding: 48px 36px; }
.stat__num {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(56px, 7vw, 104px); line-height: 1; color: var(--accent);
  text-shadow: 0 0 50px rgba(255,106,61,0.35);
}
.stat__label { margin-top: 14px; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; }
.stat__sub { color: var(--ink-dim); font-size: 13px; margin-top: 4px; }
.stats__strip {
  display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: center;
  margin-top: 40px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.25em; color: var(--ink-dim);
}
.stats__strip span::before { content: '◆ '; color: var(--accent); }

/* ---------- Lifecycle ---------- */
.lifecycle__rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-top: 20px; counter-reset: stage; }
.stage {
  border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px;
  background: rgba(10,10,14,0.55); position: relative; overflow: hidden;
  transition: border-color .4s;
}
.stage::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,106,61,0.1), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.stage:hover { border-color: rgba(255,106,61,0.5); }
.stage:hover::before { opacity: 1; }
.stage em { font-family: var(--font-mono); font-style: normal; font-size: 12px; color: var(--accent); letter-spacing: 0.3em; }
.stage h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; margin: 14px 0 10px; letter-spacing: 0.06em; }
.stage p { color: var(--ink-dim); font-size: 14px; position: relative; }

/* ---------- Workflows ---------- */
.workflows__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.wf {
  border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px;
  background: linear-gradient(160deg, rgba(255,255,255,0.03), transparent);
  transition: border-color .4s, transform .4s; will-change: transform;
}
.wf:hover { border-color: rgba(255,106,61,0.55); }
.wf__trigger {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em;
  color: var(--accent); border: 1px solid rgba(255,106,61,0.35); border-radius: 999px;
  padding: 5px 12px; display: inline-block;
}
.wf h3 { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; margin: 20px 0 8px; letter-spacing: 0.04em; }
.wf p { color: var(--ink-dim); font-size: 14px; }

/* ---------- Proof / differentiator ---------- */
.proof__box {
  border: 1px solid rgba(255,106,61,0.35); border-radius: 24px;
  padding: clamp(40px, 7vw, 96px); text-align: center;
  background:
    radial-gradient(600px circle at 50% 0%, rgba(255,106,61,0.12), transparent 70%),
    rgba(10,10,14,0.6);
  margin-bottom: 80px;
}
.proof__box code {
  font-family: var(--font-mono); color: var(--accent); font-size: clamp(13px, 1.8vw, 18px);
  background: rgba(255,106,61,0.08); border: 1px solid rgba(255,106,61,0.25);
  padding: 8px 20px; border-radius: 8px;
}
.proof__box h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 4vw, 48px); line-height: 1.2; text-transform: none;
  margin: 36px auto 20px; max-width: 900px;
}
.proof__box p { color: var(--ink-dim); }
.proof__features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px 48px; }
.feat h3 { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.feat h3::before { content: '◆ '; color: var(--accent); }
.feat p { color: var(--ink-dim); font-size: 14px; }
.feat code { font-family: var(--font-mono); color: var(--accent-2); font-size: 13px; }

/* ---------- Security ---------- */
.security__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.shield {
  border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px;
  background: rgba(10,10,14,0.55); display: flex; flex-direction: column; gap: 14px;
  transition: border-color .4s;
}
.shield:hover { border-color: rgba(255,106,61,0.4); }
.shield h3 { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.pill {
  align-self: flex-start; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-dim);
}
.pill--on { border-color: rgba(255,106,61,0.5); color: var(--accent); }
.security__industries {
  display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 48px;
  color: var(--ink-dim); justify-content: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
}
.security__industries span::before { content: '◆ '; color: var(--accent); }

/* ---------- Why ---------- */
.why { text-align: center; }
.why__pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto 90px; }
.pillar { border: 1px solid var(--line); border-radius: 16px; padding: 44px 32px; background: rgba(10,10,14,0.5); transition: border-color .4s, transform .4s; }
.pillar:hover { border-color: rgba(255,106,61,0.5); transform: translateY(-6px); }
.pillar span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.35em;
  color: var(--accent); display: inline-block;
  border: 1px solid rgba(255,106,61,0.35); border-radius: 999px;
  padding: 8px 16px 8px 20px;
}
.pillar h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 20px; margin: 18px 0 10px; letter-spacing: 0.08em; }
.pillar p { color: var(--ink-dim); font-size: 14px; }
.why__closer {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 5vw, 56px); line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em;
}

/* ---------- Products ---------- */
.products__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.product {
  display: block; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(36px, 5vw, 64px);
  background: linear-gradient(160deg, rgba(255,255,255,0.03), transparent);
  transition: border-color .4s, transform .4s; will-change: transform;
}
.product:hover { border-color: var(--accent); }
.product h3 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; }
.product p { color: var(--ink-dim); margin-bottom: 28px; max-width: 420px; }
.product__cta { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.products__note { margin-top: 28px; font-size: 13px; color: var(--ink-dim); font-family: var(--font-mono); }

/* ---------- About ---------- */
.about__mission {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 3.6vw, 44px); line-height: 1.3; max-width: 1100px;
  margin-bottom: 72px; text-transform: none;
}
.about__pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 36px 40px; margin-bottom: 72px; }
.about__pillars em { font-family: var(--font-mono); font-style: normal; font-size: 11px; color: var(--accent); letter-spacing: 0.3em; }
.about__pillars h4 { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin: 12px 0 8px; }
.about__pillars p { color: var(--ink-dim); font-size: 13.5px; }
.about__team {
  display: flex; flex-wrap: wrap; gap: 12px 48px;
  font-family: var(--font-display); font-size: clamp(15px, 2vw, 20px);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim);
}
.about__team span::before { content: '— '; color: var(--accent); }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-bottom: clamp(120px, 18vh, 220px); }
.contact__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 6vw, 80px); line-height: 1.1; text-transform: uppercase;
  margin-bottom: 56px;
}
.contact__sub { margin-top: 32px; color: var(--ink-dim); font-size: 14px; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line);
  padding: 56px clamp(20px, 6vw, 96px);
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
  background: rgba(5,5,7,0.75); backdrop-filter: blur(6px);
}
.footer__meta p { font-size: 12px; color: var(--ink-dim); }
.footer__meta a { color: var(--ink); border-bottom: 1px solid rgba(255,106,61,0.4); }
.footer__meta a:hover { color: var(--accent); }
.footer__links { display: flex; gap: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.footer__links a:hover { color: var(--accent); }

/* ---------- Reveal defaults (JS overrides) ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); }
[data-split-lines] .line { display: block; overflow: hidden; }
[data-split-lines] .line > span { display: block; transform: translateY(110%); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header__nav { display: none; }
  .burger { display: flex; }
  .header__actions .btn--solid { display: none; }
}
@media (max-width: 600px) {
  .header__actions .btn--ghost { display: none; }
  .hero { padding-bottom: 9vh; }
  .hero__eyebrow {
    font-size: 9px; letter-spacing: 0.22em;
    white-space: normal; top: 96px;
  }
  .hero__sub { font-size: 12px; letter-spacing: 0.3em; }
  .hero__cta { flex-direction: column; align-items: center; width: 100%; gap: 12px; }
  .hero__cta .btn { width: min(320px, 100%); text-align: center; }
  .layer { grid-template-columns: 44px 1fr; }
  .layer__note { grid-column: 2; }
  .proof__box { padding: 40px 24px; }
  .stat { padding: 36px 28px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .stats__strip, .security__industries { gap: 10px 22px; }
  .about__team { gap: 10px 28px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .grain, .hero__scroll span { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-split-lines] .line > span { transform: none; }
}

.overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  margin-top: 48px;
  max-width: 1080px;
}
.overview__grid .card { padding: 36px 32px; }
.overview__grid .card p { font-size: 14px; line-height: 1.7; }




/* ---------- Platform Overview (card-based, matches existing design) ---------- */
.overview { text-align: left; }
.overview .section__title { text-align: left; }
.overview .section__lede { max-width: 820px; text-align: left; }

.overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  margin-top: 48px;
  max-width: 1080px;
}
.overview__grid .card { padding: 36px 32px; }
.overview__grid .card p { font-size: 14px; line-height: 1.7; }

/* ---------- FAQ (visible, matches FAQPage schema) ---------- */
.faq__list { max-width: 860px; margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; background: rgba(10,10,14,0.6); overflow: hidden; transition: border-color .4s; }
.faq__item[open] { border-color: rgba(255,106,61,0.4); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-family: var(--font-display); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-family: var(--font-mono); color: var(--accent); font-size: 20px; flex-shrink: 0; transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 20px; color: var(--ink-dim); font-size: 14px; line-height: 1.7; }
