/* ============================================
   PRESCIENT — Production stylesheet
   ============================================ */

:root {
  --bg-primary: #0A0E1A;
  --bg-secondary: #0F1424;
  --bg-tertiary: #161B2E;
  --text-primary: #FFFFFF;
  --text-secondary: #A8B0C4;
  --text-tertiary: #6B7494;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --accent-cyan: #09AEFD;
  --accent-teal: #04D5DA;
  --accent-mint: #07F1BD;
  --accent-danger: #FF6B6B;
  --gradient-brand: linear-gradient(135deg, #09AEFD 0%, #04D5DA 50%, #07F1BD 100%);
  --gradient-brand-v: linear-gradient(180deg, #09AEFD 0%, #04D5DA 55%, #07F1BD 100%);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --container-max: 1440px;
  --container-pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============================================
   Global background — textured (lines + grain + glow)
   Pinned to viewport, sits behind everything.
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Vertical + horizontal fine-line grid */
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse 110% 90% at 50% 30%, black 30%, rgba(0,0,0,0.6) 75%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 110% 90% at 50% 30%, black 30%, rgba(0,0,0,0.6) 75%, transparent 100%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(9, 174, 253, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 60%, rgba(7, 241, 189, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 60%, rgba(4, 213, 218, 0.07), transparent 60%);
}

/* Film-grain noise layer */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.32;
  mix-blend-mode: overlay;
}

/* Scanline overlay — very faint horizontal lines for that "lab feutré" texture */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 3px
  );
  mix-blend-mode: overlay;
}

main, header, section, footer { position: relative; z-index: 1; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
  position: relative;
}

/* ============================================
   Typography utilities
   ============================================ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
}
.eyebrow.brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-mint);
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
h2.section-title {
  font-size: clamp(40px, 5.6vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-top: 24px;
  max-width: 18ch;
  font-weight: 500;
}
.section-sub {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 56ch;
  margin-top: 24px;
  line-height: 1.55;
}

section.section {
  position: relative;
  padding-block: clamp(24px, 3vw, 44px);
}
.section-head { margin-bottom: 32px; max-width: 60ch; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium), background 0.3s;
  border: 1px solid transparent;
  position: relative;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-premium);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--gradient-brand);
  color: #000000;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(7, 241, 189, 0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(7, 241, 189, 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.03);
}
.btn-gradient-border {
  background: var(--bg-primary);
  position: relative;
  color: var(--text-primary);
  isolation: isolate;
}
.btn-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn-gradient-border:hover {
  background: rgba(7, 241, 189, 0.06);
}

:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent-mint);
  border-radius: 6px;
}

/* ============================================
   Nav
   ============================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.3s var(--ease-premium), border-color 0.3s, padding 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 14, 26, 0.72);
  border-bottom-color: var(--border-subtle);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 32px;
}
.nav-links ul a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links ul a:hover { color: var(--text-primary); }
.nav-cta { padding: 10px 18px; font-size: 13.5px; }
.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-primary);
  position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--text-primary);
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 49;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-premium);
  display: flex;
  flex-direction: column;
  padding: 100px var(--container-pad) 40px;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu a {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: block;
}
.mobile-menu .btn-primary { margin-top: 32px; align-self: flex-start; }

/* ============================================
   HERO — text left, 3D right (two-column)
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  max-height: 1000px;
  padding-top: 120px;
  padding-bottom: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  flex: 1;
}

.hero-text { position: relative; text-align: left; }

.hero-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 70vh;
}
.hero-3d canvas { width: 100%; height: 100%; display: block; }

.hero h1 {
  font-size: clamp(48px, 7.4vw, 108px);
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-top: 24px;
  font-weight: 500;
  max-width: 14ch;
}
.hero h1 .accent {
  background: var(--gradient-brand-v);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
/* Shared accent treatment for the gradient word(s) inside any section title. */
.section-title .accent,
.hiring h2 .accent {
  background: var(--gradient-brand-v);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-secondary);
  max-width: 480px;
  font-size: clamp(16px, 1.3vw, 18px);
  margin-top: 28px;
  line-height: 1.55;
}
.hero-cta-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stat-value {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 12px;
  line-height: 1.5;
}

.scroll-cue {
  position: absolute;
  left: var(--container-pad);
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.scroll-cue .line {
  width: 40px;
  height: 1px;
  background: var(--text-tertiary);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  transform: translateX(-100%);
  animation: scrollCue 2.4s var(--ease-premium) infinite;
}
@keyframes scrollCue {
  0%, 10% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ============================================
   Logo wall
   ============================================ */

.logos {
  padding-block: clamp(24px, 3vw, 44px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.logos h3 {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 40px;
}
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}
.marquee + .marquee { margin-top: 28px; }
.marquee-track {
  display: flex;
  gap: clamp(20px, 2.2vw, 32px);
  width: max-content;
  animation: marquee 75s linear infinite;
  align-items: center;
}
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 85s; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
/* Each logo sits in a uniform light "tile" — this is the optical equaliser:
   no matter the source logo's bounding box, every tile is the same size, so
   the reader perceives every brand at equal weight. The tile also gives dark
   logos a readable surface against the dark hero canvas. */
.logo-item {
  --tile-w: 180px;
  --tile-h: 80px;
  /* Per-logo padding scale. Lower = logo fills more of the tile (good for
     "lighter" wordmarks like CARÊL or MYSTIC). Higher = more breathing room
     (for "heavy" marks like Allianz or Air Liquide that already feel large). */
  --pad: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tile-w);
  height: var(--tile-h);
  flex: none;
  padding: var(--pad);
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 24px -16px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
}
.logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Original colors preserved. */
}
.logo-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 18px 36px -20px rgba(7, 241, 189, 0.35);
}
.logo-item.on-dark {
  background: #0F1424;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.logo-item.on-dark:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 18px 36px -20px rgba(7, 241, 189, 0.35);
}
@media (max-width: 720px) {
  .logo-item { --tile-w: 140px; --tile-h: 64px; --pad: 14px; border-radius: 12px; }
}

/* ============================================
   Pain points
   ============================================ */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
}
.pain-card {
  position: relative;
  padding: 40px 36px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  transition: background 0.5s var(--ease-premium);
}
.pain-card:hover {
  background: rgba(15, 20, 36, 0.5);
}
.pain-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.16em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pain-num::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(7, 241, 189, 0.6);
}
.pain-card h3 {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.pain-card p {
  color: var(--text-secondary);
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.55;
  max-width: 42ch;
}
.pain-divider {
  height: 1px;
  background: linear-gradient(to right, var(--accent-mint), transparent 60%);
  margin: 32px 0 16px;
  width: 60%;
}
.pain-answer-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-mint);
  margin-bottom: 10px;
}
.pain-answer {
  color: var(--text-primary);
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0;
  max-width: 44ch;
}

/* ============================================
   Service pillars
   ============================================ */

.pillars { display: flex; flex-direction: column; gap: 0; }
.pillar {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 56px;
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  align-items: start;
}
.pillar:last-child { border-bottom: 1px solid var(--border-subtle); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.16em;
  padding-top: 8px;
}
.pillar h3 {
  font-size: clamp(30px, 3.8vw, 48px);
  letter-spacing: -0.035em;
  font-weight: 500;
  line-height: 1.02;
}
.pillar p.def {
  color: var(--text-secondary);
  font-size: 17px;
  margin-top: 22px;
  max-width: 50ch;
  line-height: 1.55;
}
.pillar-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 8px;
}
.pillar-bullets li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 15.5px;
  color: var(--text-primary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.pillar-bullets li:last-child { border-bottom: 0; }
.pillar-bullets li::before {
  content: '+';
  font-family: var(--font-mono);
  color: var(--accent-mint);
  font-size: 14px;
  flex: none;
  width: 14px;
}

/* ============================================
   Comparison
   ============================================ */

.compare-frame {
  position: relative;
  border-radius: 24px;
  background: rgba(15, 20, 36, 0.5);
  padding: 32px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.compare-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(7,241,189,0.06), transparent 50%);
  pointer-events: none;
}
.compare-wrap { overflow-x: auto; position: relative; }
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.compare th, .compare td {
  padding: 22px 24px;
  text-align: left;
  font-size: 15px;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.5;
}
.compare th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
  padding-top: 0;
  padding-bottom: 22px;
}
.compare th.head-prescient {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  position: relative;
}
.compare th.head-prescient::after {
  content: '';
  position: absolute;
  left: 24px; right: 24px;
  bottom: 8px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}
.compare td:first-child {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  width: 22%;
  padding-top: 28px;
}
.compare td.cell-other { color: var(--text-secondary); }
.compare td.cell-prescient {
  color: var(--text-primary);
  background: rgba(7, 241, 189, 0.025);
  border-left: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.compare-mark { display: inline-flex; align-items: center; gap: 8px; }
.mark-yes {
  width: 18px; height: 18px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0A0E1A;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}
.mark-no {
  width: 18px; height: 18px;
  border: 1px solid var(--accent-danger);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-danger);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

/* ============================================
   ROI calculator
   ============================================ */

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.input-group label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  font-weight: 500;
}
.input-group label .val {
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: 0;
  font-size: 13.5px;
  text-transform: none;
}
select.input, input.input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.3s;
}
select.input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A8B0C4' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.input:focus { outline: none; border-color: var(--accent-mint); }

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  outline: none;
  margin-top: 16px;
  background-image: var(--gradient-brand);
  background-repeat: no-repeat;
  background-size: 0% 100%;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent-mint);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(7,241,189,0.18);
  transition: transform 0.2s;
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent-mint);
  cursor: pointer;
}

.roi-result {
  position: relative;
  border-radius: 24px;
  padding: 48px 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  overflow: hidden;
}
.roi-result::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(9,174,253,0.5), rgba(7,241,189,0.3), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.roi-result::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  bottom: -180px; right: -180px;
  background: radial-gradient(circle, rgba(7,241,189,0.18), transparent 70%);
  pointer-events: none;
}
.roi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.roi-uplift {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.045em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin: 18px 0 8px;
}
.roi-uplift-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.roi-breakdown {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
}
.roi-breakdown li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  list-style: none;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.roi-breakdown li:last-child { border-bottom: 0; }
.roi-breakdown li .num {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-size: 15px;
}
.roi-disclaimer {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--text-tertiary);
  max-width: 60ch;
  line-height: 1.6;
}
.roi-cta { margin-top: 36px; }

/* ============================================
   Manifesto
   ============================================ */

.manifesto {
  text-align: left;
  position: relative;
  overflow: hidden;
}
.manifesto-mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(9,174,253,0.10), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(7,241,189,0.08), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(4,213,218,0.06), transparent 50%);
  animation: meshShift 18s ease-in-out infinite alternate;
}
@keyframes meshShift {
  to { transform: scale(1.1) rotate(2deg); }
}
.manifesto-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--border-subtle);
}
.manifesto-inner::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 80px;
  width: 1px;
  height: 80px;
  background: var(--gradient-brand);
}
.manifesto h2 {
  font-size: clamp(40px, 6vw, 84px);
  margin-top: 28px;
  letter-spacing: -0.045em;
  line-height: 1;
  font-weight: 500;
}
.manifesto h2 .accent {
  background: var(--gradient-brand-v);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifesto-body p {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 24px 0 0;
  max-width: 64ch;
}
.manifesto-body p.lead { color: var(--text-primary); }
.manifesto-final {
  margin-top: 56px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 34ch;
}
.manifesto-final .accent {
  background: var(--gradient-brand-v);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   Founders
   ============================================ */

.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.founder-card {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  transition: border-color 0.4s var(--ease-premium), transform 0.4s var(--ease-premium), background 0.4s;
}
.founder-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(15, 20, 36, 0.4);
}
.founder-portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border-subtle);
  position: relative;
  background: var(--bg-secondary);
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-premium);
  filter: grayscale(15%) contrast(1.02);
}
.founder-card:hover .founder-portrait img {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(1.05);
}
.founder-name {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.founder-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 10px;
}
.founder-bio {
  color: var(--text-secondary);
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.6;
}
.founder-link {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  padding: 8px 14px;
  transition: border-color 0.3s, background 0.3s;
}
.founder-link:hover {
  border-color: var(--accent-mint);
  background: rgba(7,241,189,0.06);
}

/* ============================================
   Hiring
   ============================================ */

.hiring {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-block: 48px;
}
.hiring-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 64px;
  background: linear-gradient(135deg, rgba(9,174,253,0.05), rgba(7,241,189,0.05));
  border: 1px solid var(--border-default);
  border-radius: inherit;
  position: relative;
  overflow: hidden;
}
.hiring-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(7,241,189,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, black, transparent);
  pointer-events: none;
}
.hiring h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-top: 20px;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 500;
}
.hiring p {
  color: var(--text-secondary);
  margin-top: 20px;
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.55;
}
.hiring-cta { justify-self: end; }

/* ============================================
   Footer CTA
   ============================================ */

.footer-cta {
  position: relative;
  padding-block: clamp(24px, 3vw, 44px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.footer-cta canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.55;
}
.footer-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(10,14,26,0.45) 60%, var(--bg-primary) 100%);
  z-index: -1;
}
.footer-cta h2 {
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 24px auto 0;
  max-width: 14ch;
  font-weight: 500;
}
.footer-cta h2 .accent {
  background: var(--gradient-brand-v);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-cta p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 28px auto 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
}
.footer-cta .btn { margin-top: 36px; padding: 18px 28px; font-size: 16px; }
.footer-cta .footer-email {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
}
.footer-cta .footer-email a { color: var(--text-secondary); }
.footer-cta .footer-email a:hover { color: var(--text-primary); }

/* ============================================
   Footer bar
   ============================================ */

.footer-bar {
  border-top: 1px solid var(--border-subtle);
  padding-block: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-bar img { height: 22px; opacity: 0.6; }
.footer-bar-left { display: flex; align-items: center; gap: 16px; }
.footer-bar-right { display: flex; align-items: center; gap: 24px; }
.footer-bar-right a:hover { color: var(--text-primary); }

/* ============================================
   Responsive
   ============================================ */

/* Belt-and-braces: prevent any single overflowing element from forcing the
   whole page wider than the viewport on mobile. `overflow-x: clip` is the
   modern, safer counterpart to `overflow-x: hidden` (no stuck scroll
   container, no broken position: sticky). */
html, body { overflow-x: clip; max-width: 100%; }
img, svg, video, canvas { max-width: 100%; }

@media (max-width: 1024px) {
  .pillar { grid-template-columns: 80px 1fr; }
  .pillar-bullets { grid-column: 1 / -1; padding-left: 80px; }
}
@media (max-width: 720px) {
  :root { --container-pad: 18px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .hero {
    min-height: auto;
    padding-top: 96px;
    max-height: none;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-text { text-align: left; }
  .hero h1 {
    font-size: clamp(38px, 11vw, 64px);
    letter-spacing: -0.035em;
    max-width: 100%;
  }
  .hero-sub { font-size: 15.5px; max-width: 100%; }
  .hero-cta-row { gap: 10px; margin-top: 24px; }
  .hero-cta-row .btn { padding: 12px 18px; font-size: 14px; }
  .hero-3d {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 44vh;
    order: -1;
  }
  /* Mobile sections: kill any inline max-width on titles, scale down
     headings, and clamp content widths inside the viewport. */
  h2.section-title,
  .section-title[style] {
    font-size: clamp(30px, 8.5vw, 44px);
    max-width: 100%;
    letter-spacing: -0.03em;
  }
  .section-head { margin-bottom: 24px; }
  .section-sub { font-size: 15px; max-width: 100%; }
  .pain-grid { grid-template-columns: 1fr; }
  .pillar {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  .pillar h3 { font-size: clamp(24px, 6.5vw, 32px); }
  .pillar p.def { font-size: 15px; }
  .pillar-bullets { padding-left: 0; }
  .pillar-bullets li { font-size: 14.5px; }
  .roi-grid { grid-template-columns: 1fr; gap: 24px; }
  .roi-result { padding: 32px 24px; }
  .founders { grid-template-columns: 1fr; gap: 20px; }
  .hiring-inner { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .hiring-cta { justify-self: start; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
  .stat-value { font-size: clamp(36px, 11vw, 48px); }
  /* The comparison table is wide by design — it lives inside a horizontal
     scroller. Force min-width down so it fits without horizontal page scroll
     while still allowing the user to swipe through the table itself. */
  .compare-frame { padding: 16px; border-radius: 18px; }
  .compare { min-width: 600px; }
  .compare th, .compare td { padding: 14px 14px; font-size: 13.5px; }
  /* Manifesto — drop the indent rule on mobile so prose can use full width. */
  .manifesto-inner { padding-left: 20px; }
  .manifesto h2 { font-size: clamp(32px, 9vw, 48px); }
  .manifesto-body p { font-size: 16px; max-width: 100%; }
  .manifesto-final { font-size: clamp(20px, 5.5vw, 26px); max-width: 100%; }
  .footer-cta h2 { font-size: clamp(34px, 9vw, 52px); }
  .footer-cta p { font-size: 15px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  /* Logo tiles get a touch smaller on phones so a few fit per screen. */
  .logo-item { --tile-w: 132px; --tile-h: 60px; --pad: 12px; border-radius: 12px; }
  .marquee-track { gap: 14px; }
  .marquee + .marquee { margin-top: 14px; }
  /* Mobile menu nav: bigger tap targets, less padding. */
  .mobile-menu { padding: 88px 18px 32px; }
  .mobile-menu a { font-size: 26px; }
  .nav.is-scrolled { padding: 10px 0; }
  .nav-cta { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .pain-card { padding: 28px 20px; }
  .pain-card h3 { font-size: clamp(22px, 6.5vw, 28px); }
  .pain-card p, .pain-answer { font-size: 14.5px; }
  .founder-card { padding: 24px; }
  .founder-name { font-size: 26px; }
  .roi-uplift { font-size: clamp(40px, 13vw, 56px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
