/* =========================================================
   TRAPEZIUM — "We make your product sell itself."
   Self-contained stylesheet. Relative paths only, so the page
   renders correctly over file:// as well as over http.
   Brand: teal #14B8A6 · electric #00E5C7 · canvas #030D0C
   ========================================================= */

:root {
  --brand:          #14B8A6;
  --brand-electric: #00E5C7;
  --brand-deep:     #0F766E;
  --brand-soft:     rgba(20, 184, 166, 0.12);
  --brand-glow:     rgba(20, 184, 166, 0.30);

  --canvas:         #030D0C;
  --canvas-alt:     #07211E;
  /* opaque enough that the background network reads as texture behind the
     cards rather than noise crawling under the copy */
  --surface:        rgba(7, 23, 21, 0.72);
  --surface-strong: rgba(10, 31, 29, 0.86);
  --border:         rgba(148, 163, 184, 0.16);
  --border-strong:  rgba(148, 163, 184, 0.30);

  --text-1: #F4F7F7;
  --text-2: #9BAAA8;
  --text-3: #6B7A79;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shell:  min(1180px, 100% - 3rem);
  --radius: 16px;

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

/* ── reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--brand-electric);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── ambient background layers ─────────────────────────── */
/* three stacked layers behind everything: colour wash, dot grid,
   and the live node network ("the brain"). All decorative. */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-layers > * { position: absolute; inset: 0; }

.brain-canvas { width: 100%; height: 100%; opacity: 0.75; }

/* dotted texture — fades out toward the bottom so text stays calm */
.dot-grid {
  background-image: radial-gradient(rgba(94, 234, 212, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 85% at 50% 0%, #000 20%, transparent 72%);
          mask-image: radial-gradient(120% 85% at 50% 0%, #000 20%, transparent 72%);
}

.page-glow {
  background:
    radial-gradient(60rem 40rem at 78% -8%,  rgba(20, 184, 166, 0.16), transparent 62%),
    radial-gradient(48rem 34rem at 6% 32%,   rgba(0, 229, 199, 0.07),  transparent 60%),
    radial-gradient(52rem 40rem at 52% 108%, rgba(20, 184, 166, 0.10), transparent 62%);
}

/* ── shared type ───────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--brand-electric);
  margin-bottom: 1.25rem;
}

.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* italic emphasis — the copy's signature move */
h1 em, h2 em, .statement em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--brand-electric), var(--brand) 60%, #7DD3C8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* italic ascenders overhang the text box — pad so clipping doesn't shave them.
     `clone` applies that padding to every line fragment, not just the last, so a
     heading that wraps mid-emphasis keeps its final letter intact. */
  padding-right: 0.09em;
  margin-right: -0.09em;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.lead {
  color: var(--text-2);
  font-size: 1.0625rem;
  max-width: 62ch;
}

/* ── buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease),
              background 200ms var(--ease), border-color 200ms var(--ease);
}
.btn .arr { display: inline-block; transition: transform 200ms var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }

.btn-primary {
  background: linear-gradient(120deg, var(--brand-electric), var(--brand));
  color: #04201C;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(20, 184, 166, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(20, 184, 166, 0.40);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-1);
}
.btn-ghost:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
}

.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }

/* ── nav ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 1rem max(1.5rem, calc((100% - var(--shell)) / 2));
  background: rgba(3, 13, 12, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 250ms var(--ease), border-color 250ms var(--ease);
}
.nav.scrolled {
  background: rgba(3, 13, 12, 0.88);
  border-bottom-color: var(--border);
}

.nav-brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; }
.nav-glyph { width: 26px; height: 26px; flex: none; }
.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 180ms var(--ease);
}
.nav-links a:hover { color: var(--text-1); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-1);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: sticky;
  top: 66px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem max(1.5rem, calc((100% - var(--shell)) / 2)) 1.5rem;
  background: rgba(3, 13, 12, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 0.6rem 0; color: var(--text-2); }
.mobile-menu .btn { margin-top: 0.5rem; align-self: flex-start; color: #04201C; }

/* ── hero ──────────────────────────────────────────────── */
.hero {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.35rem);
  margin-bottom: 1.5rem;
}
.hero-copy .lead { margin-bottom: 2rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.25rem; }

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-3);
}
.proof-row li { display: flex; align-items: center; gap: 0.55rem; }
.proof-row li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand-glow);
  flex: none;
}

/* ── hero product mock ─────────────────────────────────── */
.hero-mock { position: relative; }

.mock-window {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(7, 33, 30, 0.92), rgba(3, 13, 12, 0.92));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.mdot { width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 163, 184, 0.35); flex: none; }
.mock-url {
  margin-left: 0.5rem;
  flex: 1 1 auto;
  min-width: 0; /* allow the ellipsis to kick in instead of forcing the bar wider */
  font-size: 0.68rem;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 199, 0.35);
  background: rgba(0, 229, 199, 0.08);
  color: var(--brand-electric);
  font-size: 0.6rem;
  white-space: nowrap;
  flex: none;
}
.live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-electric);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.mock-body { position: relative; padding: 1.1rem; }

/* faded app behind the assistant */
.skeleton-app { display: grid; grid-template-columns: 78px 1fr; gap: 1rem; opacity: 0.42; }
.sk-side { display: flex; flex-direction: column; gap: 0.6rem; }
.sk-main { display: flex; flex-direction: column; gap: 0.75rem; }
.sk-line {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.22);
}
.sk-line.sk-title { height: 11px; background: rgba(148, 163, 184, 0.32); }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; }
.w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }

.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.sk-cards span {
  height: 40px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.sk-chart {
  display: block;
  height: 86px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(to top, rgba(20, 184, 166, 0.20), transparent 70%),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.10) 0 1px, transparent 1px 34px);
}

.signal-chip {
  position: absolute;
  top: 0.5rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 199, 0.32);
  background: rgba(3, 13, 12, 0.92);
  color: var(--brand-electric);
  font-size: 0.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: float 5s ease-in-out infinite;
}
.arr-up { font-size: 0.8rem; line-height: 1; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.assist-card {
  position: relative;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 199, 0.28);
  background: linear-gradient(150deg, rgba(7, 33, 30, 0.98), rgba(4, 18, 17, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(20, 184, 166, 0.05);
}
.assist-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.assist-name { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.assist-tags { display: flex; gap: 0.35rem; margin-left: auto; }
.assist-tags i {
  font-style: normal;
  font-size: 0.55rem;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-3);
}
.assist-tags i.acting {
  border-color: rgba(0, 229, 199, 0.35);
  background: rgba(0, 229, 199, 0.10);
  color: var(--brand-electric);
}
.assist-msg { font-size: 0.9rem; color: var(--text-1); margin-bottom: 0.9rem; }
.assist-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  color: var(--text-2);
}
.chip-solid {
  background: linear-gradient(120deg, var(--brand-electric), var(--brand));
  border-color: transparent;
  color: #04201C;
  font-weight: 600;
}

/* ── marquee ───────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding: 0.9rem 0;
  background: rgba(255, 255, 255, 0.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  width: max-content;
  animation: scroll 34s linear infinite;
}
@keyframes scroll { to { transform: translateX(-50%); } }

.mq-label { font-size: 0.66rem; color: var(--text-3); }
.mq-name  { font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: var(--text-2); }
.mq-star  { color: var(--brand); font-size: 0.7rem; }

.mq-item { display: inline-flex; align-items: center; gap: 0.6rem; }

.mq-logo { height: 26px; width: auto; object-fit: contain; flex: none; }
/* square app icon — gets the rounding a full-bleed tile needs */
.mq-logo--mark { width: 26px; border-radius: 6px; }
/* the wordmark's brand blue is dark against a near-black page; a small lift
   keeps the hue but stops it sinking into the background */
.mq-logo--word { filter: brightness(1.28) saturate(1.05); }
/* wordmark already spells the company name, so the text label beside it is
   redundant; it stays in the DOM only as a fallback if the image fails */
.mq-logo--word + .mq-name--fallback { display: none; }

/* JS strips the <img> when the file is missing, revealing the name again */
.mq-logo[hidden] { display: none; }
.mq-logo[hidden] + .mq-name--fallback { display: inline; }

/* ── sections ──────────────────────────────────────────── */
.section {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  max-width: 20ch;
}
.section-head .lead { max-width: 60ch; }

.statement {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 34ch;
}

/* ── gap steps ─────────────────────────────────────────── */
.gap-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gap-step {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--canvas);
  transition: background 260ms var(--ease);
}
.gap-step:hover { background: var(--canvas-alt); }
.step-no {
  display: block;
  font-size: 0.72rem;
  color: var(--brand);
  margin-bottom: 1.5rem;
}
.gap-step h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.gap-step p  { color: var(--text-2); font-size: 0.94rem; }

/* ── split panels ──────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.panel {
  padding: clamp(1.75rem, 3.2vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.panel:hover { border-color: rgba(20, 184, 166, 0.35); transform: translateY(-3px); }

.panel-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.66rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}
.panel-kicker span { color: var(--brand); }
.panel h3 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); margin-bottom: 0.85rem; }
.panel > p { color: var(--text-2); margin-bottom: 1.5rem; }

.ticks { display: flex; flex-direction: column; gap: 0.65rem; }
.ticks li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.92rem;
  color: var(--text-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--brand-electric);
  border-bottom: 1.6px solid var(--brand-electric);
  transform: rotate(-45deg);
}

/* ── loop diagram ──────────────────────────────────────── */
.loop {
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  max-width: 460px;
}
.loop-svg { width: 100%; height: auto; overflow: visible; }

.loop-ring {
  fill: none;
  stroke: rgba(20, 184, 166, 0.38);
  stroke-width: 1.4;
  stroke-dasharray: 5 7;
  transform-origin: 220px 150px;
  animation: ring-spin 60s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.loop-chev path {
  fill: none;
  stroke: var(--brand-electric);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.loop-node circle {
  fill: var(--canvas);
  stroke: var(--brand-electric);
  stroke-width: 2;
}

.loop-orbit {
  transform-origin: 220px 150px;
  animation: ring-spin 9s linear infinite;
}
.loop-pulse {
  fill: var(--brand-electric);
  filter: drop-shadow(0 0 6px rgba(0, 229, 199, 0.9));
}

.loop-label text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  fill: var(--text-1);
}

/* ── signup decay strip ────────────────────────────────── */
.decay {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* the dots are injected by JS — without it the strip has nothing to say */
html:not(.js) .decay { display: none; }

.decay-cap { font-size: 0.62rem; color: var(--text-3); flex: none; }
.decay-dots {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.decay-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--brand-electric);
  /* each dot a little dimmer than the last — the cohort thinning out */
  opacity: calc(1 - (var(--i) / var(--n)) * 0.94);
  box-shadow: 0 0 8px rgba(0, 229, 199, calc(0.55 - (var(--i) / var(--n)) * 0.55));
}

/* ── faculties (eyes / ears / hands / brain) ───────────── */
.faculties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.faculty {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.1rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.faculty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(18rem 12rem at 100% 0%, rgba(20, 184, 166, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 320ms var(--ease);
  pointer-events: none;
}
.faculty:hover { border-color: rgba(20, 184, 166, 0.35); transform: translateY(-4px); }
.faculty:hover::after { opacity: 1; }

.faculty-no {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.7rem;
  color: var(--text-3);
}
.faculty-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  background: var(--brand-soft);
  color: var(--brand-electric);
  margin-bottom: 1.35rem;
}
.faculty-icon svg { width: 21px; height: 21px; }
.faculty h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.faculty-promise { color: var(--text-1); font-size: 0.95rem; margin-bottom: 0.5rem; }
.faculty p:last-child { color: var(--text-2); font-size: 0.9rem; }

/* ── metrics ───────────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.metric {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.8vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.metric:hover { border-color: rgba(20, 184, 166, 0.35); transform: translateY(-3px); }
.metric-arrow {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.metric-arrow.up   { background: rgba(0, 229, 199, 0.12); color: var(--brand-electric); }
.metric-arrow.down { background: rgba(56, 189, 248, 0.12); color: #7DD3FC; }
.metric h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.metric p  { color: var(--text-2); font-size: 0.9rem; }

.spark {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: auto;   /* pin to the card floor so all four line up */
  overflow: visible;
}
/* guarantees breathing room even on the tallest card, where auto yields none */
.metric p { margin-bottom: 1.4rem; }
.spark-line {
  fill: none;
  stroke: var(--brand-electric);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.spark-fill { fill: rgba(0, 229, 199, 0.10); stroke: none; }
.spark--down .spark-line { stroke: #7DD3FC; }
.spark--down .spark-fill { fill: rgba(56, 189, 248, 0.10); }

/* ── strong fit ────────────────────────────────────────── */
.fit {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(20, 184, 166, 0.07), transparent 60%);
}
.fit .detail-label { margin-bottom: 1rem; }
.fit-list { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; }
.fit-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-2);
}
.fit-list li:not(:last-child)::after {
  content: "·";
  color: var(--brand);
  margin-left: 0.35rem;
}

/* ── demo ──────────────────────────────────────────────── */
.demo-section { padding-bottom: clamp(4rem, 8vw, 7rem); }
.demo-panel {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(7, 33, 30, 0.8), rgba(3, 13, 12, 0.8));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.demo-panel .section-title { max-width: 24ch; }
.demo-panel .lead { margin-bottom: 2.25rem; }

.demo-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: start;
}
@media (max-width: 760px) {
  .demo-form { grid-template-columns: 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label { font-size: 0.8rem; color: var(--text-2); }
.form-field input {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(3, 13, 12, 0.6);
  color: var(--text-1);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.form-field input::placeholder { color: var(--text-3); }
.form-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}
.form-field input[aria-invalid="true"] { border-color: #EF4444; }

.field-error {
  min-height: 1rem;
  font-size: 0.75rem;
  color: #FCA5A5;
}

.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.btn-submit { grid-column: 1 / -1; justify-self: start; margin-top: 0.25rem; }
.form-status { grid-column: 1 / -1; font-size: 0.85rem; color: var(--text-2); }
.form-status.error { color: #FCA5A5; }

.demo-success { text-align: center; padding: 2rem 0 1rem; }
.demo-success h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.demo-success p  { color: var(--text-2); }
.success-pulse {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-electric), transparent 62%);
  animation: pulse 2.2s ease-in-out infinite;
}

/* ── footer ────────────────────────────────────────────── */
.footer {
  width: var(--shell);
  margin-inline: auto;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.footer-tag { font-size: 0.82rem; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
.footer-links a { font-size: 0.85rem; color: var(--text-2); transition: color 180ms var(--ease); }
.footer-links a:hover { color: var(--text-1); }
.footer-legal { width: 100%; font-size: 0.78rem; color: var(--text-3); }

/* ── scroll reveal ─────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  /* minmax(0,1fr) — a bare 1fr floors at min-content and lets the mock widen the page */
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-mock { order: 2; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 700px) {
  .brain-canvas { opacity: 0.5; }
  .dot-grid { background-size: 22px 22px; }
  .decay { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 2rem); }
  .signal-chip { right: 0.6rem; font-size: 0.55rem; }
  .cta-row .btn { width: 100%; }
  .footer-links { margin-left: 0; }
}

/* ── reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .loop-ring, .loop-orbit { animation: none; }
}
