/* =========================================================
   GenoSaathi — Crystalline × Intimate design system
   ========================================================= */

:root {
  /* Brand */
  --teal: #0d2e2c;
  --teal-mid: #1a4a47;
  --teal-deep: #061a19;
  --rose: #b04a72;
  --rose-light: #d4748e;
  --rose-soft: #f3dfe7;
  /* Logo accent — used sparingly to echo the brand mark's cyan */
  --cyan: #2fb1bd;
  --cyan-light: #5fd0d9;
  --cream: #f4ede4;
  --cream-dark: #e8ddd2;
  --white: #faf8f5;
  --clinical: #fcfbf9;
  --ink: #1a1a18;
  --ink-soft: #5a5a56;

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.9s;

  /* Layout */
  --maxw: 1240px;
  --pad: 4rem;
  --radius: 20px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--rose); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

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

/* ---------- Typography primitives ---------- */
.eyebrow, .label {
  font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--rose); display: flex; align-items: center; gap: .85rem;
}
.eyebrow-line, .label-line { width: 34px; height: 1px; background: var(--rose); display: inline-block; }
.label.label-light, .label-light { color: var(--rose-light); }
.label-light .label-line { background: var(--rose-light); }

.section-title {
  font-family: var(--serif); font-weight: 300; letter-spacing: -.01em;
  font-size: clamp(2.3rem, 4.2vw, 3.5rem); line-height: 1.08; color: var(--teal);
  margin-top: 1.1rem;
}
.section-title em { color: var(--rose); font-style: italic; }
.section-title.light { color: var(--cream); }
.section-title.light em { color: var(--rose-light); }

.section-intro {
  margin-top: 1.3rem; max-width: 46ch; font-size: 1.06rem; color: var(--ink-soft);
}
.section-intro.light { color: rgba(244,237,228,.78); }
.section-intro em { font-family: var(--serif); font-style: italic; font-size: 1.15em; color: var(--rose); }

/* ---------- Section frames ---------- */
.section { padding: 7rem 0; position: relative; }
/* Offset anchored sections below the sticky nav so headings aren't clipped */
section[id], header[id] { scroll-margin-top: 84px; }
.section-cream { background: var(--cream); }
.section-clinical { background: var(--clinical); }
.section-white { background: var(--white); }
.section-teal { background: var(--teal); color: var(--cream); }
.section-rose { background: var(--rose); color: var(--white); }

.section-head { max-width: 60ch; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .label, .section-head.center .eyebrow { justify-content: center; }
.section-head.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; cursor: pointer;
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 1rem 1.9rem; min-height: 48px; border-radius: 100px; border: 1px solid transparent;
  transition: all .35s var(--ease); white-space: nowrap;
}
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 10px 30px -10px rgba(176,74,114,.6); }
.btn-primary:hover { background: var(--teal); box-shadow: 0 14px 36px -10px rgba(13,46,44,.5); }
.btn-ghost { border-color: rgba(13,46,44,.25); color: var(--teal); }
.section-teal .btn-ghost { border-color: rgba(244,237,228,.5); color: var(--cream); }
.hero .btn-ghost { border-color: rgba(244,237,228,.55); color: var(--cream); }
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }
.section-teal .btn-ghost:hover { color: var(--rose-light); border-color: var(--rose-light); }
.btn-block { width: 100%; justify-content: center; margin-top: .4rem; }

/* =========================================================
   NAV
   ========================================================= */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem var(--pad); transition: all .5s var(--ease);
}
#nav.scrolled {
  background: rgba(244,237,228,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(176,74,114,.12); box-shadow: 0 4px 40px rgba(13,46,44,.07);
  padding-top: .9rem; padding-bottom: .9rem;
}
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-mark { width: auto; height: 40px; flex-shrink: 0; display: inline-block; }
/* swap mark by nav background: white-helix over hero, grey-helix when scrolled over cream */
.logo-light { display: none; }
#nav.scrolled .logo-dark { display: none; }
#nav.scrolled .logo-light { display: inline-block; }
/* Default: nav sits over the dark teal hero -> light text */
.logo-text { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--cream); letter-spacing: .01em; transition: color .4s var(--ease); }
.logo-text span { color: var(--rose-light); }
.logo-text.light { color: var(--cream); }
.logo-text.light span { color: var(--rose-light); }
/* Scrolled over cream backdrop -> dark text */
#nav.scrolled .logo-text { color: var(--teal); }
#nav.scrolled .logo-text span { color: var(--rose); }

.nav-links { display: flex; align-items: center; gap: 2.3rem; list-style: none; }
.nav-links a {
  font-size: .78rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(244,237,228,.8); position: relative; padding-bottom: 3px; transition: color .3s;
}
#nav.scrolled .nav-links a { color: var(--teal-mid); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--rose); transition: width .3s var(--ease);
}
.nav-links a:hover { color: #fff; }
#nav.scrolled .nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--rose); color: #fff !important; padding: .6rem 1.3rem !important; border-radius: 100px; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal); }

.nav-scrim { position: fixed; inset: 0; background: rgba(6,26,25,.55); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); z-index: 90; }
.nav-scrim.show { opacity: 1; pointer-events: auto; }
@media (min-width: 901px) { .nav-scrim { display: none; } }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 110; }
.nav-toggle span { width: 24px; height: 2px; background: var(--cream); border-radius: 2px; transition: all .35s var(--ease); }
#nav.scrolled .nav-toggle span { background: var(--teal); }
/* When the mobile menu is open, bars sit over the teal drawer -> keep light */
.nav-links.open ~ .nav-toggle span, .nav-toggle[aria-expanded="true"] span { background: var(--cream); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
:root { --ink-black: #060d0c; --serif-display: 'Instrument Serif', 'Cormorant Garamond', serif; }

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-black); color: #fff; overflow: hidden;
  padding: 7rem var(--pad) 4rem;
}
/* Video / media layer */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--ink-black); }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translateY(8%); opacity: 0; transition: opacity .6s ease;
}
.hero-poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-grad { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, var(--ink-black) 0%, rgba(6,13,12,.45) 45%, rgba(6,13,12,.25) 100%); }
.hero-vignette { position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,.7) 100%); }

/* Liquid glass utility (from Stitch design) */
.liquid-glass {
  background: rgba(255,255,255,.02); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  position: relative; border-radius: 9999px;
}
.liquid-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.15) 80%, rgba(255,255,255,.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Centered hero content */
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6rem;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); backdrop-filter: blur(4px);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.8);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-light); box-shadow: 0 0 10px rgba(95,208,217,.6); animation: pulse 2.4s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-title {
  font-family: var(--serif-display); font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(3rem, 7vw, 5.4rem); line-height: .98; color: #fff; margin: .4rem 0;
}
.hero-title em { color: var(--rose); font-style: italic; font-weight: 400; }
.hero-sub { max-width: 46ch; font-size: 1.08rem; color: rgba(255,255,255,.86); line-height: 1.7; font-weight: 300; }

/* Glass email capture */
.hero-form {
  display: flex; align-items: center; gap: .5rem; width: 100%; max-width: 460px;
  padding: .4rem .4rem .4rem 1rem; margin-top: .4rem;
}
.hero-form-icon { color: rgba(255,255,255,.8); display: flex; }
.hero-form-icon svg { width: 20px; height: 20px; }
.hero-form input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff;
  font-family: var(--sans); font-size: 16px; padding: .6rem .2rem;
}
.hero-form input::placeholder { color: rgba(255,255,255,.65); }
.hero-form button {
  flex-shrink: 0; background: #fff; color: #111; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .85rem 1.4rem; border-radius: 100px; transition: background .3s, transform .3s var(--ease); white-space: nowrap;
}
.hero-form button:hover { background: var(--rose); color: #fff; }
.hero-form button:active { transform: scale(.97); }

/* Stats */
.hero-stats {
  display: flex; justify-content: center; gap: 2.4rem; flex-wrap: wrap;
  margin-top: 1.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); width: 100%; max-width: 460px;
}
.stat { display: flex; flex-direction: column; gap: .25rem; }
.stat-num { font-family: var(--serif-display); font-weight: 400; font-size: 2rem; line-height: 1; color: #fff; }
.stat-num.rose { color: var(--rose); }
.stat-label { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.82); }

.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3; }
.scroll-cue span {
  display: block; width: 22px; height: 36px; border: 1.5px solid rgba(244,237,228,.4); border-radius: 12px; position: relative;
}
.scroll-cue span::after {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 3px; background: var(--rose-light); animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%,12px); } 100% { opacity: 0; } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { background: var(--rose); color: #fff; overflow: hidden; padding: 1.15rem 0; box-shadow: inset 0 26px 28px -24px rgba(6,13,12,.85); }
.marquee-track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 1.5rem; font-style: italic; font-weight: 400; white-space: nowrap; }
.marquee-track i { color: rgba(255,255,255,.55); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   PROBLEM
   ========================================================= */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.problem-lede p { font-size: 1.2rem; line-height: 1.7; color: #3a3a36; }
.problem-lede strong { color: var(--ink); font-weight: 500; }
.problem-emphasis {
  font-family: var(--serif); font-size: 1.7rem !important; font-weight: 300; line-height: 1.35 !important;
  color: var(--teal) !important; margin-top: 1.6rem;
}
.problem-emphasis span { color: var(--rose); font-style: italic; }
.problem-cards { display: flex; flex-direction: column; gap: 1rem; }
.pcard {
  background: var(--white); border-left: 3px solid var(--rose); border-radius: 0 14px 14px 0;
  padding: 1.7rem 1.9rem; box-shadow: 0 10px 30px rgba(13,46,44,.05); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pcard:hover { transform: translateX(8px); box-shadow: 0 16px 40px rgba(176,74,114,.12); }
.pcard-stat { font-family: var(--serif); font-size: 2.1rem; color: var(--rose); display: block; margin-bottom: .4rem; }
.pcard p { font-size: .98rem; color: var(--ink-soft); }

/* =========================================================
   THE GAP
   ========================================================= */
.gap-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.gap-sub { margin-top: 1.3rem; color: var(--ink-soft); font-size: 1.05rem; max-width: 40ch; }
.gap-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.gap-list li {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.4rem; align-items: baseline;
  padding: 1.3rem 1.6rem; border: 1px solid var(--cream-dark); border-radius: 14px; background: #fff;
}
.gap-list p { color: var(--ink-soft); font-size: .96rem; }
.gap-x { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); position: relative; padding-left: 1.6rem; }
.gap-x::before { content: '✕'; position: absolute; left: 0; color: var(--ink-soft); font-size: .9rem; }
.gap-list li.gap-solution { background: var(--teal); border-color: var(--teal); }
.gap-list li.gap-solution p { color: rgba(244,237,228,.85); }
.gap-check { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); position: relative; padding-left: 1.6rem; }
.gap-check::before { content: '✓'; position: absolute; left: 0; color: var(--rose-light); }

/* =========================================================
   STEPS
   ========================================================= */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; position: relative; margin-top: 1rem;
}
.steps::before {
  content: ''; position: absolute; top: 28px; left: 0; right: 0; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent 3%, rgba(212,116,142,.40) 16%, rgba(95,208,217,.35) 50%, rgba(212,116,142,.40) 84%, transparent 97%);
}
.step { position: relative; text-align: left; }
.step-icon {
  width: 56px; height: 56px; border-radius: 16px; background: #26343b;  /* opaque so the connector hides behind the tile */
  display: flex; align-items: center; justify-content: center; color: var(--rose-light);
  position: relative; z-index: 2; transition: all .4s var(--ease);
}
.step-icon svg { width: 26px; height: 26px; }
.step:hover .step-icon { background: var(--rose); color: #fff; transform: translateY(-4px) rotate(-4deg); }
.step-n { display: block; font-family: var(--serif); font-size: 1rem; color: var(--rose-light); margin: 1.1rem 0 .3rem; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--cream); margin-bottom: .5rem; }
.step p { font-size: .9rem; color: rgba(244,237,228,.82); line-height: 1.6; }

/* =========================================================
   SERVICES
   ========================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.svc-card {
  background: var(--clinical); border: 1px solid var(--cream-dark); border-radius: var(--radius);
  padding: 2.2rem 1.8rem; transition: all .45s var(--ease); position: relative; overflow: hidden;
}
.svc-card::after {
  content: ''; position: absolute; left: 1.8rem; bottom: 1.6rem; width: 0; height: 2px; background: var(--rose); transition: width .45s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); border-color: var(--rose-light); box-shadow: 0 24px 50px -20px rgba(13,46,44,.22); }
.svc-card:hover::after { width: 38px; }
.svc-icon { width: 46px; height: 46px; color: var(--rose); margin-bottom: 1.4rem; transition: color .4s; }
.svc-card:hover .svc-icon { color: var(--rose); }
.svc-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--teal); line-height: 1.2; margin-bottom: .7rem; }
.svc-card p { font-size: .92rem; color: var(--ink-soft); line-height: 1.6; }

/* =========================================================
   EXPLAINER (signature)
   ========================================================= */
.explainer {
  background: var(--white); border: 1px solid var(--cream-dark); border-radius: 28px;
  padding: 2.6rem; max-width: 980px; margin: 0 auto; box-shadow: 0 30px 70px -40px rgba(13,46,44,.3);
}
.explainer-controls { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.4rem; }
.ex-btn {
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  padding: .8rem 1.3rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 100px; border: 1px solid var(--cream-dark);
  background: var(--clinical); color: var(--teal-mid); cursor: pointer; transition: all .3s var(--ease);
}
.ex-btn:hover { border-color: var(--rose-light); color: var(--rose); }
.ex-btn.active { background: var(--teal); border-color: var(--teal); color: var(--cream); }

.explainer-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center; }
.picto { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.dot {
  aspect-ratio: 1; border-radius: 50%; background: var(--cream-dark); transition: background .5s var(--ease), transform .5s var(--ease);
}
.dot.affected { background: var(--rose); }
.dot.carrier { background: var(--cyan); }
.picto-caption { margin-top: 1rem; font-size: .82rem; color: var(--ink-soft); display: flex; gap: 1.2rem; flex-wrap: wrap; }
.picto-caption b { font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; }
.picto-caption b::before { content: ''; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.picto-caption .k-aff::before { background: var(--rose); }
.picto-caption .k-car::before { background: var(--cyan); }
.picto-caption .k-un::before { background: var(--cream-dark); }

.ex-result { display: flex; align-items: baseline; gap: .6rem; }
.ex-result-num { font-family: var(--serif); font-weight: 300; font-size: 4.5rem; line-height: 1; color: var(--rose); }
.ex-result-unit { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--teal); }
.ex-headline { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--teal); margin: 1rem 0 .6rem; line-height: 1.25; }
.ex-detail { font-size: .98rem; color: var(--ink-soft); line-height: 1.65; }
.ex-reassure { margin-top: 1rem; font-size: .92rem; color: var(--teal-mid); background: var(--rose-soft); border-radius: 12px; padding: .9rem 1.1rem; }
.explainer-note { margin-top: 2.2rem; text-align: center; font-size: .82rem; color: var(--ink-soft); max-width: 60ch; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* =========================================================
   ECOSYSTEM
   ========================================================= */
.eco-flow { display: flex; align-items: stretch; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.eco-node {
  flex: 1; min-width: 220px; max-width: 320px; background: var(--white); border: 1px solid var(--cream-dark);
  border-radius: var(--radius); padding: 2rem 1.8rem; text-align: center;
}
.eco-tag { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.eco-node h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--teal); margin: .7rem 0 .5rem; }
.eco-node p { font-size: .9rem; color: var(--ink-soft); }
.eco-center { background: var(--teal); border-color: var(--teal); transform: scale(1.05); box-shadow: 0 24px 50px -24px rgba(13,46,44,.5); }
.eco-center .eco-tag { color: var(--rose-light); }
.eco-center h3 { color: var(--cream); }
.eco-center p { color: rgba(244,237,228,.8); }
.eco-arrow { display: flex; align-items: center; font-size: 1.6rem; color: var(--rose); }

/* =========================================================
   MARKET
   ========================================================= */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.market-card { background: var(--white); border-top: 3px solid var(--teal); border-radius: 0 0 var(--radius) var(--radius); padding: 2.2rem 2rem; box-shadow: 0 12px 36px -20px rgba(13,46,44,.18); }
.market-tier { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.market-num { display: block; font-family: var(--serif); font-weight: 300; font-size: 3.6rem; color: var(--teal); line-height: 1; margin: .8rem 0 1rem; }
.market-num small { font-size: 1.4rem; color: var(--teal-mid); }
.market-card p { font-size: .94rem; color: var(--ink-soft); }

/* =========================================================
   VALIDATION
   ========================================================= */
.val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.val-card { background: rgba(244,237,228,.09); border: 1px solid rgba(176,74,114,.35); border-radius: var(--radius); padding: 2.2rem 2rem; }
.val-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--cream); margin-bottom: 1.2rem; }
.val-card ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.val-card li { color: rgba(244,237,228,.86); font-size: .96rem; line-height: 1.5; }
.val-card b { font-family: var(--serif); font-size: 1.7rem; color: var(--rose-light); font-weight: 400; display: inline-block; margin-right: .35rem; }

/* =========================================================
   TRACTION
   ========================================================= */
.trac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); overflow: hidden; }
.trac-card { background: var(--rose); padding: 2.2rem 1.8rem; transition: background .4s; }
.trac-card:hover { background: #a23f66; }
.trac-key { font-family: var(--serif); font-weight: 300; font-size: 3rem; color: #fff; line-height: 1; display: block; }
.trac-card h3 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); margin: .8rem 0 .7rem; font-weight: 500; }
.trac-card p { font-size: .9rem; color: rgba(255,255,255,.78); line-height: 1.55; }

/* =========================================================
   TEAM
   ========================================================= */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 980px; margin: 0 auto; }
.team-card { text-align: center; }
.team-photo {
  width: 150px; height: 150px; margin: 0 auto 1.4rem; border-radius: 50%; overflow: hidden;
  padding: 5px; background: linear-gradient(135deg, var(--rose-light), var(--teal-mid));
  transition: transform .45s var(--ease);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-card:hover .team-photo { transform: translateY(-6px) scale(1.03); }
.team-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; color: var(--teal); }
.team-role { display: inline-block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--rose); padding: .35rem .9rem; border-radius: 100px; margin: .7rem 0 1rem; }
.team-card p { font-size: .94rem; color: var(--ink-soft); line-height: 1.6; max-width: 30ch; margin: 0 auto; }

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip { background: var(--teal-deep); color: var(--cream); padding: 2.6rem 0; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.trust-item { display: flex; flex-direction: column; gap: .3rem; position: relative; }
.trust-item:not(:last-child)::after { content: ''; position: absolute; right: -.75rem; top: 10%; height: 80%; width: 1px; background: rgba(244,237,228,.14); }
.trust-item strong { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--rose-light); }
.trust-item span { font-size: .82rem; color: rgba(244,237,228,.6); }

/* =========================================================
   CTA / CONTACT
   ========================================================= */
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cta-sub { margin-top: 1.2rem; max-width: 38ch; }
.cta-direct { margin-top: 1.6rem; font-size: .92rem; color: rgba(244,237,228,.65); }
.cta-direct a { color: var(--rose-light); text-decoration: underline; text-underline-offset: 3px; }
.cta-form { background: rgba(244,237,228,.06); border: 1px solid rgba(244,237,228,.12); border-radius: 24px; padding: 2.2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,237,228,.92); margin-bottom: .5rem; }
.field label span { text-transform: none; letter-spacing: 0; color: rgba(244,237,228,.7); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--cream);
  background: rgba(244,237,228,.06); border: 1px solid rgba(244,237,228,.18); border-radius: 12px;
  padding: .85rem 1rem; transition: border-color .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244,237,228,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rose-light); background: rgba(244,237,228,.1); }
.form-status { margin-top: 1rem; font-size: .88rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--rose-light); }
.form-status.err { color: #ffb4b4; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--teal-deep); color: var(--cream); padding: 4rem 0 2.2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(244,237,228,.12); }
.footer-brand { max-width: 36ch; }
.footer-brand p { margin-top: 1rem; font-size: .92rem; color: rgba(244,237,228,.6); line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-content: flex-start; }
.footer-nav a { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,237,228,.7); transition: color .3s; }
.footer-nav a:hover { color: var(--rose-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .82rem; color: rgba(244,237,228,.5); }
.footer-bottom a:hover { color: var(--rose-light); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-r] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-r].in { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: .08s; }
[data-d="2"] { transition-delay: .16s; }
[data-d="3"] { transition-delay: .24s; }
[data-d="4"] { transition-delay: .32s; }
[data-d="5"] { transition-delay: .40s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  :root { --pad: 2.2rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .steps::before { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .trac-grid { grid-template-columns: repeat(2, 1fr); }
  .gap-layout, .problem-grid, .cta-inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .eco-center { transform: none; }
}

@media (max-width: 720px) {
  :root { --pad: 1.4rem; }
  .section { padding: 4.5rem 0; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.8rem;
    background: var(--teal); padding: 2rem 2.4rem; transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .nav-links.open { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,.3); }
  .nav-links a { color: var(--cream); font-size: .95rem; }
  .nav-links a:hover { color: var(--rose-light); }
  .nav-cta { background: var(--rose); }
  .nav-toggle { display: flex; }
  #nav.scrolled .nav-toggle span { background: var(--teal); }
  /* No backdrop-filter on mobile: it creates a containing block that would
     trap the fixed drawer inside the short nav bar. Solid backdrop instead. */
  #nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(244,237,228,.98); }
  .nav-links { height: 100vh; height: 100dvh; }
  .hero { min-height: 100svh; padding: 7rem var(--pad) 4rem; }
  .hero-video { opacity: 1; }              /* show poster frame (no video load) on phones */
  .hero-stats { gap: 1.4rem 2rem; margin-top: 1.2rem; padding-top: 1.2rem; }
  .stat-num { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .hero-form { flex-wrap: nowrap; padding-left: .85rem; gap: .35rem; }
  .hero-form input { font-size: 16px; padding: .55rem .1rem; }
  .hero-form button { padding: .75rem 1rem; font-size: .7rem; letter-spacing: .04em; }
  .hero-form-icon { display: none; }   /* reclaim width on small screens */
  .svc-grid, .market-grid, .val-grid, .team-grid, .steps { grid-template-columns: 1fr; }
  .gap-list li { grid-template-columns: 1fr; gap: .5rem; }
  .explainer { padding: 1.6rem; }
  .explainer-body { grid-template-columns: 1fr; gap: 1.8rem; }
  .ex-result-num { font-size: 3.4rem; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .marquee-track span { font-size: 1.2rem; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-r] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* =========================================================
   SAFE-AREA (notch / home indicator)
   ========================================================= */
#nav { padding-left: max(var(--pad), env(safe-area-inset-left));
       padding-right: max(var(--pad), env(safe-area-inset-right)); }
.container { padding-left: max(var(--pad), env(safe-area-inset-left));
             padding-right: max(var(--pad), env(safe-area-inset-right)); }

/* =========================================================
   MAXIMAL PHONE OPTIMIZATION
   ========================================================= */
@media (hover: none) and (pointer: coarse) {
  /* Touch feedback replaces hover */
  .btn:active { transform: scale(.97); }
  .pcard:active, .svc-card:active, .team-card:active, .trac-card:active,
  .market-card:active, .eco-node:active { transform: translateY(-2px) scale(.995); }
  .ex-btn:active { transform: scale(.97); }
  /* Underlines/hover-only affordances shouldn't get stuck on tap */
  .nav-links a::after { transition: none; }
}

@media (max-width: 720px) {
  /* Generous, finger-friendly tap targets */
  .btn { min-height: 50px; padding: .95rem 1.6rem; }
  .hero-actions { gap: .8rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .ex-btn { min-height: 46px; width: 100%; }
  .explainer-controls { gap: .5rem; }

  /* Mobile nav drawer: scrollable, safe-area aware, light close icon */
  .nav-links {
    width: min(86vw, 340px); gap: 1.4rem; justify-content: flex-start;
    padding: 6rem 2rem calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding-top: max(6rem, calc(env(safe-area-inset-top) + 5rem));
  }
  .nav-links li { width: 100%; }
  .nav-links a, #nav.scrolled .nav-links a { color: var(--cream); display: block; font-size: 1.05rem; padding: .35rem 0; }
  .nav-links a:hover, #nav.scrolled .nav-links a:hover { color: var(--rose-light); }
  .nav-links .nav-cta, #nav.scrolled .nav-links .nav-cta { color: #fff; }
  .nav-links .nav-cta { text-align: center; padding: .9rem 1.3rem !important; margin-top: .4rem; }
  /* Keep the hamburger / close icon visible on its teal drawer */
  #nav .nav-toggle[aria-expanded="true"] span { background: var(--cream) !important; }

  /* Tighter, balanced rhythm */
  .section-head { margin-bottom: 2.4rem; }
  .hero-sub, .section-intro { font-size: 1rem; }
  .problem-lede p { font-size: 1.08rem; }
  .problem-emphasis { font-size: 1.45rem !important; }
  .pcard { padding: 1.4rem 1.5rem; }
  .pcard:active { transform: none; }

  /* Footer nav easier to tap */
  .footer-nav { gap: 1rem 1.6rem; }
  .footer-nav a { padding: .25rem 0; }
  .footer-bottom { flex-direction: column; gap: .5rem; }

  /* Trust strip: 2x2 with no awkward dividers */
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .trust-item:not(:last-child)::after { display: none; }

  /* Ecosystem: stack with vertical arrows */
  .eco-flow { flex-direction: column; }
  .eco-node { max-width: 100%; }
  .eco-arrow { transform: rotate(90deg); }

  /* Form comfort */
  .field input, .field textarea { padding: .9rem 1rem; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 2.7rem; }
  .section-title { font-size: 2.05rem; }
  .ex-result-num { font-size: 3rem; }
  .stat-num { font-size: 1.9rem; }
  .trac-key, .market-num { font-size: 2.4rem; }
  .marquee-track span { font-size: 1.05rem; }
  .eyebrow, .label { font-size: .66rem; letter-spacing: .14em; }
}

/* Landscape phones: keep hero compact */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .scroll-cue { display: none; }
}

/* =========================================================
   TABLET (≤900px): collapse nav to drawer, stack ecosystem
   ========================================================= */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  #nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(244,237,228,.98); }
  #nav.scrolled .nav-toggle span { background: var(--teal); }
  #nav .nav-toggle[aria-expanded="true"] span { background: var(--cream) !important; }

  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.4rem;
    background: var(--teal);
    padding: max(6rem, calc(env(safe-area-inset-top) + 5rem)) 2rem calc(2rem + env(safe-area-inset-bottom));
    transform: translateX(100%); transition: transform .5s var(--ease);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,.3); }
  .nav-links li { width: 100%; }
  .nav-links a, #nav.scrolled .nav-links a { color: var(--cream); display: block; font-size: 1.05rem; padding: .35rem 0; }
  .nav-links a:hover, #nav.scrolled .nav-links a:hover { color: var(--rose-light); }
  .nav-links .nav-cta, #nav.scrolled .nav-links .nav-cta { color: #fff; text-align: center; padding: .9rem 1.3rem !important; margin-top: .4rem; }
  .nav-scrim { display: block; }

  /* Ecosystem: stack vertically with downward arrows */
  .eco-flow { flex-direction: column; }
  .eco-node { max-width: 100%; width: 100%; }
  .eco-center { transform: none; }
  .eco-arrow { transform: rotate(90deg); }
}
