/* ============================================================
   Humanproblem.ai — Parent Brand Site
   Dark → Light narrative. The problem, then the solution.
   ============================================================ */

:root {
  /* Background progression (dark → light) */
  --bg-0: #0A0A0F;   /* Hero — the problem */
  --bg-1: #0D1117;   /* Mission top */
  --navy-deep: #1F3864;
  --navy-mid: #2E4A7A;
  --bg-light: #EBF3FB;
  --white: #FFFFFF;

  /* Primary palette */
  --electric: #2E75B6;
  --electric-bright: #3a87cf;
  --cyan: #00BCD4;
  --dark-gray: #333333;
  --muted: #8892A4;

  /* Effects */
  --card-border: rgba(0,188,212,0.3);
  --card-border-soft: rgba(0,188,212,0.2);
  --glow: rgba(0,188,212,0.15);
  --glass: rgba(255,255,255,0.05);

  /* Type */
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 80px);
  --nav-h: 76px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Accessibility: skip link + focus states */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--bg-0);
  padding: 12px 22px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  z-index: 1000;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

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

/* ============================================================
   Shared layout helpers
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

section { position: relative; padding-block: clamp(90px, 12vh, 160px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 22px;
  font-weight: 500;
}
.eyebrow.dark { color: var(--electric); }

h2.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-wrap: balance;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 60ch;
  margin-top: 24px;
  text-wrap: pretty;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --pad-y: 16px;
  --pad-x: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(2px); }

.btn-primary {
  background: var(--electric);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(46,117,182,0.6);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -10px rgba(0,188,212,0.55), 0 0 0 1px rgba(0,188,212,0.4);
  background: var(--electric-bright);
}
.btn-primary:active { transform: translateY(-2px); }

.btn-pulse { animation: btnPulse 3s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 8px 24px -8px rgba(46,117,182,0.6), 0 0 0 0 rgba(0,188,212,0.35); }
  50%      { box-shadow: 0 8px 24px -8px rgba(46,117,182,0.6), 0 0 0 12px rgba(0,188,212,0); }
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--card-border);
}
.btn-secondary:hover {
  background: rgba(0,188,212,0.10);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy-deep);
  color: var(--white);
}
.btn-navy:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(31,56,100,0.7);
  background: #264682;
}

.btn-muted {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.14);
}
.btn-muted:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-2px);
  border-color: rgba(0,188,212,0.4);
}

.btn-lg { --pad-y: 20px; --pad-x: 40px; font-size: 1.1rem; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--card-border-soft);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--white);
  display: inline-block;
  white-space: nowrap;
}
.logo .dot { color: var(--cyan); }
/* Colored wordmark — matches the brand portrait: Human white, problem blue, .ai cyan */
.logo .wm-h { color: var(--white); }
.logo .wm-p { color: #2B8FFF; }
.logo .wm-a { color: var(--cyan); }
/* On the white footer, the human half goes navy so it stays legible */
.footer .logo .wm-h { color: var(--navy-deep); }
.footer .logo .wm-p { color: #2B8FFF; }
.footer .logo .wm-a { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 2px;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { --pad-y: 11px; --pad-x: 22px; font-size: 0.95rem; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  z-index: 210;
}
.hamburger span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--white);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: var(--white);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(16px);
}
.mobile-menu.open a { animation: mobileIn .4s ease forwards; }
.mobile-menu.open a:nth-child(1) { animation-delay: .08s; }
.mobile-menu.open a:nth-child(2) { animation-delay: .16s; }
.mobile-menu.open a:nth-child(3) { animation-delay: .24s; }
.mobile-menu.open a:nth-child(4) { animation-delay: .32s; }
@keyframes mobileIn { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  overflow: hidden;
  background: var(--bg-0);
}
#particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(46,117,182,0.18), transparent 70%),
    radial-gradient(40% 40% at 80% 20%, rgba(0,188,212,0.10), transparent 70%),
    radial-gradient(45% 45% at 15% 80%, rgba(31,56,100,0.35), transparent 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,188,212,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,188,212,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 30%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 2; }

/* Face + flanking labels (Human Problem · AI Solution) */
.hero-face-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(24px, 6vh, 72px) 0 -14px;
}
.face-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 13.5px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.face-label.left {
  right: 50%;
  margin-right: clamp(85px, 13vw, 150px);
  color: rgba(242,247,255,0.7);
}
.face-label.right {
  left: 50%;
  margin-left: clamp(85px, 13vw, 150px);
  color: var(--cyan);
}

/* Brand face — navy backdrop drops out via screen blend so only the
   glowing face shows over the dark hero. Gentle float for life. */
.hero-face-stage {
  position: relative;
  display: inline-block;
  line-height: 0;
  margin: 0 auto;
}
.hero-face {
  width: auto;
  height: clamp(320px, 56vh, 680px);
  display: block;
  margin: 0;
  pointer-events: none;
  /* Edges are already feathered to full transparency in the PNG itself,
     so it composites straight onto the hero with no box and no blend trick. */
}
/* Eyelids: invisible (scaleY 0) until the blink keyframe flicks them shut.
   Position + size are MEASURED from brand-face-cut.png (iris detection),
   expressed as % of the face image so they track every responsive size.
   Each lid is centered on its iris (translateX -50%) and sized to the eye. */
.eye-lid {
  position: absolute;
  height: 7.5%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: center top;
  border-radius: 50% 50% 48% 48%;
  pointer-events: none;
  filter: blur(1.6px);
  animation: blink 6s ease-in-out infinite;
}
.eye-lid.left  { left: 44%;   top: 50.4%; width: 10.5%; background: linear-gradient(to bottom, rgb(156,174,201), rgb(244,244,245)); }
.eye-lid.right { left: 61%;   top: 50.9%; width: 11.5%; background: linear-gradient(to bottom, rgb(16,74,136), rgb(24,99,163)); }
@keyframes blink {
  0%, 91%   { transform: translateX(-50%) scaleY(0); }
  94%, 96%  { transform: translateX(-50%) scaleY(1); }
  99%, 100% { transform: translateX(-50%) scaleY(0); }
}
@keyframes faceFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Short / not-tall viewports: keep the hero from crowding.
   Pull the face in, ease padding, and hide the scroll hint when
   there isn't room for it under the headline. */
@media (max-height: 820px) {
  .hero { padding-top: calc(var(--nav-h) + 10px); padding-bottom: 40px; }
  .hero-face { height: clamp(300px, 50vh, 600px); margin: 0; }
}
@media (max-height: 680px) {
  .scroll-ind { display: none; }
}

.statbar {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 40px;
  position: relative;
  padding-top: 20px;
}
.statbar::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.statbar .sep { opacity: 0.4; margin: 0 8px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  margin: clamp(32px, 5vh, 64px) auto 0;
  max-width: 16ch;
  color: #FFFFFF;
}
.hero h1 .ln { display: block; }
.hero h1 .char {
  display: inline;
  opacity: 0;
  will-change: opacity;
  /* Gradient lives on each letter so text-clip never has to bleed
     through nested spans (which Chrome refuses to do). JS sizes the
     gradient to the full line for one continuous left→right sweep. */
  background-image: linear-gradient(to right, #FFFFFF 0%, #FFFFFF 38%, #00BCD4 100%);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: #FFFFFF;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .char { -webkit-text-fill-color: transparent; color: transparent; }
}
.hero h1.animate .char { animation: charIn .55s ease forwards; }

@keyframes charIn { to { opacity: 1; } }

.hero-sub {
  color: rgba(255,255,255,0.74);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  max-width: 48ch;
  margin: 32px auto 0;
  line-height: 1.6;
  text-wrap: pretty;
}
.hero-sub strong { color: var(--white); font-weight: 600; }

.cta-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
}

.scroll-ind {
  position: fixed;
  bottom: 30px; right: 30px;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 40;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity .4s ease, color .2s ease;
  animation: scrollBlink 1.4s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 100px;
  background: rgba(10,20,40,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(53,208,232,0.25);
}
.scroll-ind:hover { color: var(--cyan); }
.scroll-ind:hover .chev { border-color: var(--white); }
/* Reversed state at the bottom: chevron points up, order flips so the
   arrow sits above the text reading upward. Lighter chip for white footer. */
.scroll-ind.up .chev {
  transform: rotate(-135deg);
  margin-top: 3px;
  animation: none;
}
.scroll-ind.up {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,188,212,0.4);
  color: var(--navy-deep);
}
.scroll-ind.up:hover { color: var(--electric); }
.scroll-ind.up:hover .chev { border-color: var(--navy-deep); }
@keyframes scrollBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
.scroll-ind .chev {
  width: 18px; height: 18px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  animation: bounce 1.8s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translate(0,0); opacity: .4; }
  50%      { transform: rotate(45deg) translate(4px,4px); opacity: 1; }
}

/* ============================================================
   SECTION 2 — MISSION
   ============================================================ */
.mission { background: linear-gradient(180deg, var(--bg-0) 0%, #14233f 55%, var(--navy-deep) 100%); }
.mission .head { max-width: 56ch; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.card-glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border-soft);
  border-radius: 18px;
  padding: 38px 32px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pillar .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0,188,212,0.10);
  border: 1px solid var(--card-border-soft);
  margin-bottom: 24px;
}
.pillar .icon svg { width: 30px; height: 30px; stroke: var(--cyan); }
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.pillar p { color: var(--muted); font-size: 1rem; }
.pillar:hover { transform: translateY(-6px); border-color: var(--card-border); }

/* ============================================================
   SECTION 3 — PRODUCTS
   ============================================================ */
.products {
  background: var(--navy-deep);
  background-image: radial-gradient(60% 50% at 50% 0%, rgba(46,117,182,0.25), transparent 70%);
  padding-top: clamp(64px, 8vh, 104px);
}
.products .head { max-width: 50ch; }
.products .head .section-title { font-size: clamp(2rem, 4vw, 3rem); }
.products .head .lede { margin-top: 18px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.product-card {
  position: relative;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.product-card .pc-inner { transform: translateZ(0.01px); }

.product-card.live {
  border-color: var(--card-border);
  box-shadow: 0 0 30px var(--glow), inset 0 0 0 1px rgba(0,188,212,0.1);
  animation: liveGlow 3.5s ease-in-out infinite;
}
@keyframes liveGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(0,188,212,0.18), inset 0 0 0 1px rgba(0,188,212,0.12); }
  50%      { box-shadow: 0 0 48px rgba(0,188,212,0.32), inset 0 0 0 1px rgba(0,188,212,0.22); }
}
.product-card.live:hover {
  border-color: var(--cyan);
  box-shadow: 0 24px 60px -20px rgba(0,188,212,0.45), 0 0 50px rgba(0,188,212,0.3);
}
.product-card.muted:hover { transform: translateY(-8px); border-color: rgba(0,188,212,0.3); }
/* brief highlight when arriving via a Stay-Ahead link */
.product-card.card-flash { animation: cardFlash 1.4s ease-out; }
@keyframes cardFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,188,212,0); border-color: rgba(255,255,255,0.10); }
  20%      { box-shadow: 0 0 0 3px rgba(0,188,212,0.5), 0 0 40px rgba(0,188,212,0.4); border-color: var(--cyan); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 100px;
  font-weight: 600;
  align-self: flex-start;
  margin-bottom: 26px;
}
.badge.live { background: rgba(0,200,120,0.12); color: #34d399; border: 1px solid rgba(52,211,153,0.3); }
.badge.soon { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid rgba(255,255,255,0.12); }
.badge .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6);
  animation: liveDot 2s ease-in-out infinite;
}
@keyframes liveDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}

.product-logo {
  width: 58px; height: 58px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(0,188,212,0.10);
  border: 1px solid var(--card-border-soft);
  margin-bottom: 22px;
}
.product-card.muted .product-logo { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.product-logo svg { width: 32px; height: 32px; }

.product-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.product-card .subtitle {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 8px;
}
.product-card.muted .subtitle { color: var(--muted); }
.product-card .desc {
  color: rgba(220,228,240,0.78);
  font-size: 0.98rem;
  margin-top: 18px;
  flex-grow: 1;
}
.product-card.muted .desc { color: var(--muted); }

.pc-stats {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  flex-wrap: wrap;
}
.pc-stats span { position: relative; padding-right: 14px; }
.pc-stats span:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 12px; background: var(--card-border);
}
.product-card .btn { margin-top: 28px; align-self: flex-start; }

/* ============================================================
   SECTION 4 — SOCIAL PROOF
   ============================================================ */
.proof {
  background: var(--navy-deep);
  background-image: radial-gradient(70% 80% at 50% 50%, rgba(46,74,122,0.55), transparent 75%);
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF, #00BCD4);
  -webkit-background-clip: text;
  background-clip: text;
  color: #FFFFFF;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stat .num { -webkit-text-fill-color: transparent; color: transparent; }
}
.stat .label {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 14px;
  text-wrap: balance;
}
.logo-row {
  margin-top: 72px;
}
.logo-row .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.logo-row .logos {
  display: flex;
  gap: 18px 44px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.55);
}
.logo-row .logos span { transition: color .2s ease; }
.logo-row .logos span:hover { color: var(--white); }

/* ============================================================
   SECTION 5 — ABOUT
   ============================================================ */
.about {
  background: linear-gradient(180deg, #16284a 0%, #1F3864 34%, #2E4A7A 60%, #7aa0cf 82%, var(--bg-light) 100%);
  padding-bottom: clamp(40px, 5vh, 70px);
}
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 40% at 50% 0%, rgba(46,117,182,0.30), transparent 60%);
}
.about .wrap { position: relative; z-index: 1; }
.about .head { text-align: center; max-width: 100%; margin-bottom: 56px; }
.about .head .section-title { margin-inline: auto; }

.about-card {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 0 30px var(--glow), inset 0 0 0 1px rgba(0,188,212,0.08);
  animation: liveGlow 4s ease-in-out infinite;
}

.about-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  background: var(--navy-deep);
  border: 1px solid var(--card-border-soft);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,20,40,0.55) 100%);
  pointer-events: none;
}
.about-photo-badge {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 13px;
  border-radius: 100px;
  background: rgba(10,20,40,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  color: var(--cyan);
  font-weight: 600;
}

.about-body { display: flex; flex-direction: column; }
.about-name h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--white);
}
.about-name .role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 8px;
}
.about-name .role-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 6px;
}
.about-philosophy {
  margin-top: 22px;
  color: rgba(220,228,240,0.82);
  font-size: 1.02rem;
  line-height: 1.7;
}
.about-philosophy p { margin-bottom: 1em; text-wrap: pretty; }
.about-philosophy strong { color: var(--white); font-weight: 600; }

.principles {
  list-style: none;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--card-border-soft);
  padding-top: 24px;
}
.principles li {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.principles .pn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  flex: none;
}
.principles .pt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.about-body .cred-pills { justify-content: flex-start; margin-top: 28px; }
.about-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border-soft);
}
.about-links .btn { --pad-y: 12px; --pad-x: 22px; font-size: 0.95rem; }
.about-email {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  transition: color .2s ease;
}
.about-email:hover { color: var(--cyan); }

/* ============================================================
   Turning Point — inside the About card, right column under philosophy
   ============================================================ */
.about-body .founder-story {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border-soft);
  text-align: left;
}
.about-body .founder-story .eyebrow { color: var(--cyan); margin-bottom: 16px; }
.about-body .story-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}
.about-body .story-copy p { margin-bottom: 0.9em; }
.about-body .story-copy .q {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1.05em;
  line-height: 1.35;
}
.about-body .story-copy .punch {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cyan);
  font-size: 1.15em;
  margin-bottom: 0;
}
.founder-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.founder-aside { position: sticky; top: 120px; text-align: center; }
.photo-ring {
  width: 220px; height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--cyan), var(--electric));
  position: relative;
}
.photo-ring::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,188,212,0.4), transparent 70%);
  z-index: -1;
}
.photo-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--navy-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.2rem;
  color: var(--white);
  letter-spacing: -0.03em;
  overflow: hidden;
}
.cred-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}
.pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 9px 15px;
  border-radius: 100px;
  background: var(--navy-deep);
  color: var(--cyan);
  border: 1px solid var(--card-border-soft);
  cursor: default;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.pill:hover { background: var(--cyan); color: var(--navy-deep); transform: translateY(-2px); }

.founder-story .section-title { color: var(--white); transition: color .1s linear; }
.founder-story .eyebrow { color: var(--cyan); }
.story-copy {
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
}
.story-copy p { margin-bottom: 1.1em; }
.story-copy .q {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1.15em;
  line-height: 1.3;
}
.story-copy .punch {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cyan);
  font-size: 1.1em;
}
.founder-signoff {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.founder-signoff .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.founder-signoff .role { color: rgba(255,255,255,0.7); font-size: 0.98rem; margin-top: 4px; }
.founder-story .btn { margin-top: 30px; }

/* ============================================================
   SECTION 6 — WAITLIST
   ============================================================ */
.waitlist { background: var(--bg-light); color: var(--dark-gray); text-align: center; padding-top: clamp(40px, 5vh, 70px); }
.waitlist .section-title { color: var(--navy-deep); }
.waitlist .lede { color: #5a6a82; margin-inline: auto; }
.waitlist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}
.wcard {
  background: var(--white);
  border: 1px solid rgba(31,56,100,0.10);
  border-radius: 20px;
  padding: 38px;
  box-shadow: 0 20px 50px -30px rgba(31,56,100,0.35);
}
.wcard .wicon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--bg-light);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.wcard .wicon svg { width: 28px; height: 28px; stroke: var(--navy-deep); }
.wcard h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--navy-deep); letter-spacing: -0.01em; }
.wcard-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: color .2s ease; }
.wcard-link::after { content: "↗"; font-size: 0.85em; color: var(--cyan); opacity: 0; transform: translate(-3px, 2px); transition: opacity .2s ease, transform .2s ease; }
.wcard-link:hover { color: var(--electric); }
.wcard-link:hover::after { opacity: 1; transform: translate(0, 0); }
.wcard p { color: #5a6a82; margin-top: 10px; font-size: 0.98rem; }
.wform { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.wform input {
  flex: 1 1 180px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: 100px;
  border: 1px solid rgba(31,56,100,0.2);
  background: #fff;
  color: var(--dark-gray);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wform input::placeholder { color: #9aa6b8; }
.wform input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,188,212,0.15);
}
.wcard .fineprint { font-size: 0.82rem; color: #9aa6b8; margin-top: 14px; }
.wform-done {
  margin-top: 18px;
  font-weight: 600;
  color: var(--navy-deep);
  display: none;
  align-items: center;
  gap: 8px;
}
.wform-done.show { display: flex; }
.wform-done .check { color: var(--cyan); }

/* ============================================================
   SECTION 7 — CTA
   ============================================================ */
.cta {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
  text-align: center;
  color: var(--dark-gray);
}
.cta .section-title { color: var(--navy-deep); font-size: clamp(2.4rem, 5.5vw, 4rem); }
.cta .lede { color: #5a6a82; margin-inline: auto; }
.cta .btn { margin-top: 40px; }
.cta .fineprint {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #8a96a8;
  margin-top: 24px;
}

/* ============================================================
   SECTION 8 — FOOTER
   ============================================================ */
.footer {
  background: var(--white);
  color: var(--dark-gray);
  border-top: 3px solid var(--cyan);
  padding-block: 70px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer .logo { color: var(--navy-deep); font-size: 1.4rem; }
.footer-brand .tagline { color: #5a6a82; margin-top: 16px; max-width: 30ch; }
.footer-brand .company { color: #9aa6b8; font-size: 0.85rem; margin-top: 16px; font-family: var(--font-mono); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { color: #5a6a82; font-size: 0.96rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-col .soon { color: #9aa6b8; font-size: 0.78rem; }

.footer-bottom {
  margin-top: 56px;
  padding-block: 26px;
  border-top: 1px solid rgba(0,188,212,0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: #8a96a8;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }

/* ============================================================
   Responsive
   ============================================================ */
/* Tablet & below — multi-column grids fluidly collapse.
   auto-fit + minmax(min(100%, N)) yields 2-up on tablets and 1-up on phones
   with no overflow on the narrowest screens — no per-width column counts. */
@media (max-width: 980px) {
  .pillars,
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .waitlist-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-aside { position: static; margin-bottom: 20px; }
  .about-card { grid-template-columns: 1fr; }
  .about-photo { min-height: 0; aspect-ratio: 1 / 1; max-height: 420px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

/* Stack the hero face labels (Human Problem / AI Solution) below desktop
   widths so they stay visible on every device and never collide with the
   face. Above 900px the absolutely-flanked layout has room. */
@media (max-width: 900px) {
  .hero-face-wrap { flex-direction: column; gap: 16px; margin: clamp(16px, 4vh, 48px) 0 0; }
  .face-label { position: static; transform: none; top: auto; right: auto; left: auto; }
  .face-label.left,
  .face-label.right { margin: 0; }
}

/* Nav collapses to a hamburger; the primary "Try QA Smith AI" CTA stays
   visible. Compact sizing + smaller gaps keep logo + CTA + burger on one
   row without overflow down to 360px. */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav .wrap { gap: 10px; }
  .nav-cta { gap: 8px; }
  .logo { font-size: 1.05rem; }
  .nav-cta .btn { --pad-y: 11px; --pad-x: 16px; font-size: 0.85rem; min-height: 44px; }
  section { padding-block: clamp(72px, 11vh, 160px); }
  .card-glass { padding: 30px 26px; }
  .product-card,
  .wcard { padding: 28px 24px; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Smaller face on phones so the headline + CTAs clear the fold and the
     fixed scroll hint. Width-driven cap keeps it uncropped at any height. */
  .hero-face { height: clamp(240px, 38vh, 320px); }
  .hero h1 { margin-top: clamp(20px, 3vh, 40px); }
}

@media (max-width: 480px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
  /* Stack the waitlist email + submit so both are full-width tap targets. */
  .wform { gap: 12px; }
  .wform input,
  .wform .btn { flex: 1 1 100%; }
  .wform .btn { justify-content: center; }
}

/* Smallest phones (360–420px): shrink the wordmark + CTA a touch more and
   drop the CTA arrow so the nav never overflows. */
@media (max-width: 420px) {
  .logo { font-size: 0.95rem; }
  .nav-cta .btn { --pad-x: 13px; font-size: 0.8rem; }
  .nav-cta .btn .arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .char { opacity: 1; transform: none; }
  .hero-face { animation: none; }
  .hero-face-stage { animation: none; }
  .eye-lid { animation: none; }
  .face-label { animation: none; }
}
