/* ─────────────────────────────────────────────────────────────────
   BrainIQ — New homepage  (home-new.css)
   ───────────────────────────────────────────────────────────────── */

:root {
  --ink:   #0a0f1e;
  --ink2:  #1e293b;
  --muted: #64748b;
  --soft:  #94a3b8;
  --paper: #f8fafc;
  --white: #ffffff;
  --line:  rgba(15,23,42,.1);
  --line2: rgba(15,23,42,.06);
  --blue:  #2563eb;
  --blue2: #1d4ed8;
  --hero:  #07101e;
  --max:   1240px;
  --gut:   clamp(20px, 4vw, 60px);
  --sans:  "Geist", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;
  --spring: cubic-bezier(.16, 1, .3, 1);
  --ease:   cubic-bezier(.22, 1, .36, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
p, h1, h2, h3, h4 { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
img { display: block; max-width: 100%; }

/* ── Scroll bar ─────────────────────────────────────────────── */
.sp-bar {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  height: 2px;
  width: calc(var(--sp, 0) * 100%);
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
  transform-origin: left;
  box-shadow: 0 0 14px rgba(37,99,235,.55);
}

/* ── Shared utilities ───────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.sec-head {
  max-width: 840px;
  margin-bottom: 64px;
}
.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.sec-head h2 {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.sec-head p {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

/* Reveal animations */
.r {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity .8s var(--ease),
    transform .9s var(--spring);
}
.r.in { opacity: 1; transform: translateY(0); }

.r-left  { transform: translateX(-44px); }
.r-right { transform: translateX(44px); }
.r-left.in, .r-right.in { transform: translateX(0); opacity: 1; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.b-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 32px rgba(10,15,30,.22);
}
.b-dark:hover { box-shadow: 0 20px 44px rgba(10,15,30,.3); }

.b-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.b-outline:hover { border-color: var(--ink); }

.b-white {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
}
.b-white:hover { box-shadow: 0 20px 50px rgba(0,0,0,.22); }

.b-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px);
}
.b-ghost:hover { background: rgba(255,255,255,.18); }

.btn-lg { height: 54px; padding: 0 28px; font-size: 14px; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 18px var(--gut) auto;
  z-index: 50;
  max-width: var(--max);
  margin: 0 auto;
  pointer-events: none;
}

.nav-inner {
  pointer-events: all;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 10px 0 18px;
  border-radius: 16px;
  background: rgba(7,16,30,.0);
  border: 1px solid rgba(255,255,255,.0);
  transition:
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}
.nav.solid .nav-inner {
  background: rgba(255,255,255,.88);
  border-color: var(--line);
  box-shadow: 0 20px 60px rgba(10,15,30,.1);
  backdrop-filter: blur(28px) saturate(180%);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
  color: rgba(255,255,255,.95);
  letter-spacing: -.01em;
  transition: color .3s ease;
}
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand .iq  { color: #60a5fa; }
.nav.solid .brand     { color: var(--ink); }
.nav.solid .brand .iq { color: var(--blue); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255,255,255,.68);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color .3s ease;
}
.nav-links a:hover { color: rgba(255,255,255,.95); }
.nav.solid .nav-links     { color: var(--muted); }
.nav.solid .nav-links a:hover { color: var(--ink); }

/* Nav actions */
.nav-acts {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-ghost {
  color: rgba(255,255,255,.68);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 0 14px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  transition: color .3s ease;
}
.nav-ghost:hover { color: #fff; }
.nav.solid .nav-ghost       { color: var(--muted); }
.nav.solid .nav-ghost:hover { color: var(--ink); }

/* Override CTA button when on hero (before scroll) */
.nav .b-dark {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.nav .b-dark:hover { background: rgba(255,255,255,.22); }
.nav.solid .b-dark {
  background: var(--ink);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(10,15,30,.2);
}
.nav.solid .b-dark:hover { box-shadow: 0 14px 36px rgba(10,15,30,.28); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 200svh;
  background: var(--hero);
  overflow: clip;
}

/* Background layer — sticky, parallax + scale */
.hero-bg {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  will-change: transform;
  transform:
    translateY(calc(var(--hp, 0) * 60px))
    scale(calc(1.02 + var(--hp, 0) * .045));
}

/* Dot grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Aurora glow orbs */
.glow {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
}
.glow-1 {
  width: 880px; height: 880px;
  top: -18%; right: -8%;
  background: radial-gradient(circle, rgba(37,99,235,.34), transparent 66%);
  filter: blur(96px);
  animation: gf1 26s ease-in-out infinite;
}
.glow-2 {
  width: 680px; height: 680px;
  top: 2%; left: -7%;
  background: radial-gradient(circle, rgba(124,58,237,.24), transparent 66%);
  filter: blur(88px);
  animation: gf2 32s ease-in-out infinite;
}
.glow-3 {
  width: 560px; height: 560px;
  bottom: 4%; left: 28%;
  background: radial-gradient(circle, rgba(8,145,178,.2), transparent 66%);
  filter: blur(78px);
  animation: gf3 22s ease-in-out infinite;
}
@keyframes gf1 {
  0%,100% { transform: translate(0,0)         scale(1); }
  40%     { transform: translate(-55px, 50px) scale(1.1); }
  68%     { transform: translate(28px, -26px) scale(.92); }
}
@keyframes gf2 {
  0%,100% { transform: translate(0,0)         scale(1); }
  36%     { transform: translate(52px, -58px) scale(1.08); }
  70%     { transform: translate(-18px, 32px) scale(.95); }
}
@keyframes gf3 {
  0%,100% { transform: translate(0,0)          scale(1); }
  44%     { transform: translate(-38px,-42px)  scale(1.06); }
  76%     { transform: translate(28px, 18px)   scale(.94); }
}

/* Hero content — sticky text layer */
.hero-content {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100svh;
  margin-top: -100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 150px
    max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)))
    0;
  color: #fff;
  will-change: transform, opacity;
}

/* Hero headline — line-by-line mask reveal */
.hero-headline {
  max-width: 1000px;
  font-size: clamp(56px, 8.2vw, 108px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.03em;
  margin-bottom: 28px;
}
.hl {
  display: block;
  overflow: hidden;
  padding-bottom: .07em;
}
.hl span {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  animation: liftLine .9s var(--spring) forwards;
}
.hl:nth-child(1) span { animation-delay: .12s; }
.hl:nth-child(2) span { animation-delay: .26s; }
.hl:nth-child(3) span {
  animation-delay: .40s;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes liftLine {
  to { transform: translateY(0); opacity: 1; }
}

.hero-eyebrow {
  opacity: 0;
  animation: fadeUp .6s var(--ease) .05s forwards;
}
.hero-sub {
  max-width: 660px;
  color: rgba(255,255,255,.68);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.68;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp .7s var(--ease) .58s forwards;
}
.hero-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  opacity: 0;
  animation: fadeUp .6s var(--ease) .74s forwards;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-pills span {
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  opacity: 0;
  animation: popBadge .5s var(--spring) forwards;
}
.hero-pills span:nth-child(1) { animation-delay: 1.0s; }
.hero-pills span:nth-child(2) { animation-delay: 1.14s; }
.hero-pills span:nth-child(3) { animation-delay: 1.28s; }
.hero-pills span:nth-child(4) { animation-delay: 1.42s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popBadge {
  0%   { opacity: 0; transform: scale(.82) translateY(8px); }
  60%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Hero mockup — sticky, slides up from bottom on scroll */
.hero-mock-wrap {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 100svh;
  margin-top: -100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}
.hero-mock {
  width: min(880px, 90vw);
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255,255,255,.14);
  border-bottom: none;
  background: rgba(9,15,28,.97);
  backdrop-filter: blur(48px);
  box-shadow:
    0 -44px 130px rgba(0,0,0,.54),
    inset 0 1px 0 rgba(255,255,255,.13),
    0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  transform: translateY(100%);
  opacity: 0;
  will-change: transform, opacity;
}

/* Mockup chrome */
.hm-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.hm-dot { width: 9px; height: 9px; border-radius: 50%; }
.hm-dot-r { background: rgba(255,95,87,.82); }
.hm-dot-y { background: rgba(255,188,64,.82); }
.hm-dot-g { background: rgba(40,200,65,.82); }
.hm-title {
  margin-left: auto;
  color: rgba(255,255,255,.44);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.hm-layout {
  display: grid;
  grid-template-columns: 168px 1fr;
}
.hm-sidebar {
  padding: 14px 12px;
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hm-nav {
  height: 34px;
  border-radius: 7px;
  background: rgba(255,255,255,.06);
}
.hm-nav-on {
  background: linear-gradient(90deg, rgba(37,99,235,.42), rgba(37,99,235,.18));
  border: 1px solid rgba(37,99,235,.38);
}
.hm-divider { height: 1px; background: rgba(255,255,255,.08); margin: 4px 0; }

.hm-main {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.hm-stat {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.hm-stat-lbl {
  display: block;
  color: rgba(255,255,255,.44);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.hm-stat-val {
  display: block;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 9px;
}
.hm-stat-fill {
  height: 3px;
  border-radius: 3px;
  width: var(--w);
  background: var(--c);
}
.hm-chart {
  height: 90px;
  padding: 10px 12px 0;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  display: flex;
  align-items: flex-end;
}
.hm-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  width: 100%;
  height: 100%;
}
.hm-bars div {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(0deg, rgba(37,99,235,.72), rgba(37,99,235,.24));
}
.hm-bars .hi {
  background: linear-gradient(0deg, rgba(8,145,178,.9), rgba(8,145,178,.3));
  box-shadow: 0 0 18px rgba(8,145,178,.3);
}
.hm-rows { display: flex; flex-direction: column; gap: 7px; }
.hm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.hm-row-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--c);
  box-shadow: 0 0 7px var(--c);
}
.hm-row-text { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); }
.hm-row-val  { width: 40px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); }

/* ── Marquee ─────────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  background: #f1f5f9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 0;
  animation: mscroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 17px 36px;
  white-space: nowrap;
}
.marquee-item span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.marquee-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--soft);
  flex-shrink: 0;
}
@keyframes mscroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Manifesto ──────────────────────────────────────────────── */
.manifesto {
  padding: clamp(80px, 10vw, 140px) var(--gut);
}
.manifesto-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.manifesto-inner h2 {
  font-size: clamp(36px, 4.8vw, 66px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.025em;
  margin-bottom: 24px;
  max-width: 900px;
}
.manifesto-inner p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

/* ── Platform pillars ───────────────────────────────────────── */
.platform-sec {
  padding: clamp(80px, 9vw, 130px) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.pillar {
  padding: 44px 38px;
  background: var(--white);
  transition: transform .22s ease, box-shadow .22s ease;
  position: relative;
  z-index: 1;
}
.pillar:first-child { border-radius: 14px 0 0 14px; }
.pillar:last-child  { border-radius: 0 14px 14px 0; }
.pillar:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 80px rgba(10,15,30,.12);
  z-index: 2;
}
.pillar-ico {
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 14px;
  margin-bottom: 26px;
  color: var(--blue);
}
.pillar-ico svg { width: 28px; height: 28px; }
.pillar h3 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.012em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.pillar p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Products ───────────────────────────────────────────────── */
.products-sec {
  padding: clamp(80px, 9vw, 130px) 0;
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.prod-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.prod-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tc);
  opacity: 0;
  transition: opacity .2s ease;
}
.prod-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--tc) 38%, var(--line));
  box-shadow: 0 22px 64px rgba(10,15,30,.12);
}
.prod-card:hover::after { opacity: 1; }

.pc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.pc-mark {
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #0a0f1e, #1e293b);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}
.pc-mark .iq { color: color-mix(in srgb, var(--tc) 90%, #fff); }
.pc-num {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.pc-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 5px;
}
.pc-name .iq { color: var(--tc); }
.pc-cat {
  color: color-mix(in srgb, var(--tc) 80%, #222);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.pc-sum {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0;
}
.pc-lnk {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.prod-card:hover .pc-lnk { opacity: 1; transform: translateY(0); }

/* ── Connected workflow ─────────────────────────────────────── */
.workflow-sec {
  position: relative;
  height: 400vh;
  background: #07101e;
  color: #fff;
}
.wf-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--gut) 80px;
}
.wf-copy .eyebrow { color: rgba(255,255,255,.44); }
.wf-copy h2 {
  font-size: clamp(36px, 4.6vw, 62px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.022em;
  margin-bottom: 18px;
}
.wf-copy p {
  color: rgba(255,255,255,.56);
  font-size: 17px;
  line-height: 1.62;
}

.wf-steps { display: flex; flex-direction: column; }

.wf-step {
  display: flex;
  gap: 20px;
  padding: 0 0 0 2px;
}
.wf-ind {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 18px;
  padding-top: 3px;
}
.wf-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  background: transparent;
  flex-shrink: 0;
  transition: border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.wf-line {
  width: 1px;
  flex: 1;
  min-height: 28px;
  margin: 6px 0;
  background: rgba(255,255,255,.1);
  transition: background .35s ease;
}
.wf-body { padding: 0 0 34px; }

.wf-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--c, #3b82f6) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #3b82f6) 32%, transparent);
  color: var(--c, #3b82f6);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.wf-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: rgba(255,255,255,.62);
  line-height: 1.2;
  transition: color .35s ease;
}
.wf-body p {
  font-size: 14px;
  color: rgba(255,255,255,.36);
  line-height: 1.62;
  transition: color .35s ease;
}

/* Active step */
.wf-step.active .wf-dot {
  border-color: var(--sc);
  background: var(--sc);
  box-shadow: 0 0 18px color-mix(in srgb, var(--sc) 60%, transparent);
}
.wf-step.active .wf-line {
  background: linear-gradient(180deg, var(--sc), rgba(255,255,255,.08));
}
.wf-step.active .wf-body h3 { color: #fff; }
.wf-step.active .wf-body p  { color: rgba(255,255,255,.72); }

/* Past step */
.wf-step.past .wf-dot {
  border-color: rgba(255,255,255,.36);
  background: rgba(255,255,255,.18);
}
.wf-step.past .wf-body h3 { color: rgba(255,255,255,.62); }

/* ── Stats ──────────────────────────────────────────────────── */
.stats-sec {
  background: #060c1c;
  padding: clamp(70px, 9vw, 118px) var(--gut);
  border-top: 1px solid rgba(255,255,255,.06);
}
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 clamp(20px, 4vw, 56px);
}
.stat-num {
  display: block;
  font-size: clamp(64px, 9vw, 110px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 14px;
}
.stat-label {
  color: rgba(255,255,255,.46);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.4;
  max-width: 160px;
}
.stat-div {
  width: 1px;
  height: 90px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-sec {
  padding: clamp(80px, 9vw, 130px) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
  align-items: start;
}
.price-card {
  padding: 34px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  background: #07101e;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 44px 110px rgba(7,16,30,.32);
  transform: translateY(-10px);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 18px;
}
.price-card.featured .plan-name { color: rgba(255,255,255,.48); }
.plan-price {
  font-size: clamp(44px, 5vw, 62px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.plan-price em {
  display: block;
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  color: var(--muted);
  margin-top: 7px;
  letter-spacing: 0;
}
.price-card.featured .plan-price em { color: rgba(255,255,255,.46); }
.plan-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.price-card.featured .plan-desc { color: rgba(255,255,255,.46); }
.plan-feats {
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
  margin-bottom: 30px;
}
.plan-feats li {
  font-size: 14px;
  color: var(--ink2);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}
.plan-feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.price-card.featured .plan-feats li       { color: rgba(255,255,255,.84); }
.price-card.featured .plan-feats li::before { color: #60a5fa; }
.price-card .btn { width: 100%; justify-content: center; }

/* ── CTA banner ─────────────────────────────────────────────── */
.cta-sec {
  padding: clamp(90px, 11vw, 150px) var(--gut);
  background: linear-gradient(140deg, #060d20 0%, #0e1c3e 45%, #070c1d 100%);
  text-align: center;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.cta-sec::before {
  content: '';
  position: absolute;
  top: -40%; left: 15%;
  width: 70%;
  height: 220%;
  background: radial-gradient(ellipse, rgba(37,99,235,.18), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.cta-inner p {
  color: rgba(255,255,255,.58);
  font-size: clamp(16px, 1.4vw, 18px);
  margin-bottom: 44px;
  line-height: 1.65;
}
.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Early access modal ───────────────────────────────────────── */
.early-access-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
  color: var(--ink);
}

.early-access-modal:target {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.22), transparent 30%),
    rgba(5, 12, 24, 0.76);
  backdrop-filter: blur(20px) saturate(145%);
}

.early-access-card {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: calc(100svh - 48px);
  overflow: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96)),
    radial-gradient(circle at 12% 0, rgba(37, 99, 235, 0.16), transparent 42%);
  box-shadow: 0 34px 110px rgba(3, 8, 18, 0.42);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.early-access-card h2 {
  max-width: 620px;
  margin: 10px 0 10px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: .98;
  letter-spacing: 0;
}

.modal-copy {
  max-width: 620px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.early-access-card form {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink2);
  font-size: 12px;
  font-weight: 850;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  box-shadow: 0 1px 0 rgba(8, 17, 31, .04);
}

.form-grid textarea {
  min-height: 112px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
}

.span-2 {
  grid-column: 1 / -1;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.footer-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--gut) 44px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 44px;
}
.footer-brand .brand { color: var(--ink); margin-bottom: 14px; }
.footer-brand .brand .iq { color: var(--blue); }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.footer-brand a { color: var(--blue); font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col strong {
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink2);
  margin-bottom: 4px;
}
.footer-col a {
  color: var(--muted);
  font-size: 14px;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gut);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--soft);
  font-size: 13px;
}
.ver-links { display: flex; gap: 10px; }
.ver-links a {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: color .15s ease, border-color .15s ease;
}
.ver-links a:hover { color: var(--ink); border-color: var(--ink); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .pillars   { grid-template-columns: 1fr; gap: 12px; }
  .pillar:first-child, .pillar:last-child { border-radius: 14px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .plan-badge { position: static; transform: none; display: inline-flex; margin-bottom: 16px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-sticky { grid-template-columns: 1fr; height: auto; min-height: 100svh; }
  .workflow-sec { height: auto; }
  .wf-sticky { position: relative; }
  .stats-inner { flex-direction: column; gap: 44px; }
  .stat-div { width: 80px; height: 1px; }
  .footer-body { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-headline { font-size: clamp(44px, 13vw, 72px); }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-mock-wrap { display: none; }
  .prod-grid { grid-template-columns: 1fr; }
  .hm-stats { grid-template-columns: repeat(2, 1fr); }
  .cta-btns { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-body { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
