/* ============================================================================
   NEVOU HEALTH — marketing site design system
   Premium dark aesthetic carried over from the app (jade accent, deep ink bg).
   Vanilla CSS: scroll-driven reveals via IntersectionObserver (.reveal -> .in),
   no build step, fast + crawlable.
   ========================================================================== */

:root {
  /* Brand palette (mirrors the app tokens) */
  --bg: #07090d;
  --bg-2: #0d1117;
  --surface: #141c28;
  --surface-2: #1a2333;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);

  --jade: #50e098;
  --jade-dim: #2f9d6e;
  --cool: #5aa9e6;
  --violet: #9b8cff;
  --amber: #f5a623;
  --red: #f43f31;

  --text: #f2ede4;
  --text-dim: #b4ada0;
  --text-mute: #7a7468;

  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 28px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

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

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

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

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

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

/* Ambient gradient wash behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(80, 224, 152, 0.10), transparent 60%),
    radial-gradient(120% 90% at 0% 10%, rgba(90, 169, 230, 0.08), transparent 55%),
    radial-gradient(100% 70% at 50% 110%, rgba(155, 140, 255, 0.07), transparent 60%);
  pointer-events: none;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jade);
  font-weight: 600;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
.display {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 300;
}
h2.section-title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 350; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.45rem); color: var(--text-dim); font-weight: 350; line-height: 1.45; }
.serif-accent { font-family: var(--serif); font-style: italic; color: var(--jade); }
.muted { color: var(--text-mute); }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
section { padding: clamp(5rem, 12vh, 9rem) 0; position: relative; }
.center { text-align: center; }
.grid { display: grid; gap: 1.25rem; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 2.2rem);
  backdrop-filter: blur(18px) saturate(150%);
  background: rgba(7, 9, 13, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7, 9, 13, 0.8); }
.brand { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -0.01em; }
.brand b { font-weight: 500; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { font-size: 0.92rem; color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 0.9rem; padding: 0.5rem 1.05rem; border-radius: 999px;
  background: var(--jade); color: #04130c; font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(80, 224, 152, 0.35); }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  cursor: pointer; border: 0; transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s;
}
.btn-primary { background: var(--jade); color: #04130c; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(80, 224, 152, 0.32); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* ── Scroll reveal ────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-top: 6rem; position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }
.hero h1 { margin: 1.1rem 0 1.4rem; }
.hero .lead { max-width: 34ch; }
@media (max-width: 900px) { .hero .lead { margin-inline: auto; } }
.hero-cta { display: flex; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-cta { justify-content: center; } }
.hero-note { margin-top: 1.4rem; font-size: 0.86rem; color: var(--text-mute); }

/* Hero device stage */
.stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.ring-wrap { position: relative; width: min(78%, 360px); }
.float-chip {
  position: absolute; background: rgba(20, 28, 40, 0.72); border: 1px solid var(--line);
  backdrop-filter: blur(8px); border-radius: 14px; padding: 0.6rem 0.85rem;
  display: flex; gap: 0.55rem; align-items: center; font-size: 0.82rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); animation: floaty 6s var(--ease) infinite;
}
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.float-chip b { font-family: var(--sans); font-weight: 700; font-size: 0.95rem; }
.chip-1 { top: 6%; left: -4%; animation-delay: 0s; }
.chip-2 { top: 38%; right: -8%; animation-delay: 1.5s; }
.chip-3 { bottom: 8%; left: 2%; animation-delay: 3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── Generic cards ────────────────────────────────────────────────────────── */
.card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(80, 224, 152, 0.3); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45); }
.card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.98rem; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 1.1rem; background: rgba(80, 224, 152, 0.12);
}

/* ── Section header ───────────────────────────────────────────────────────── */
.sec-head { max-width: 56ch; margin-bottom: 3rem; }
.sec-head.center { margin-inline: auto; }

/* ── The system: three devices ────────────────────────────────────────────── */
.system-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .system-grid { grid-template-columns: 1fr; } }
.device-visual { aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; margin-bottom: 1.2rem;
  background: radial-gradient(120% 120% at 50% 0%, rgba(80, 224, 152, 0.12), transparent 60%), var(--bg-2);
  border: 1px solid var(--line); display: grid; place-items: center; }

/* ── Interactive: circadian ───────────────────────────────────────────────── */
.demo-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 2.2rem);
}
.demo-grid { grid-template-columns: 1fr 0.8fr; gap: 2.4rem; align-items: center; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.scrub-readout { display: flex; gap: 2rem; margin-top: 1rem; }
.scrub-readout .k { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.scrub-readout .v { font-family: var(--serif); font-size: 2rem; }
.tag-pill { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: rgba(80, 224, 152, 0.14); color: var(--jade); }

/* ── Stat counters ────────────────────────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; gap: 2.5rem; } }
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); color: var(--text); line-height: 1; }
.stat .lbl { color: var(--text-dim); margin-top: 0.6rem; font-size: 0.95rem; }

/* ── Coach lenses (interactive tabs) ──────────────────────────────────────── */
.lens-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.lens-tab { padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-dim); cursor: pointer; font-size: 0.9rem; font-weight: 500;
  transition: all 0.25s var(--ease); }
.lens-tab.active { background: rgba(80, 224, 152, 0.16); color: var(--jade); border-color: rgba(80, 224, 152, 0.5); }
.coach-bubble {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--jade);
  border-radius: 14px; padding: 1.3rem 1.5rem; font-size: 1.05rem; min-height: 120px;
}
.coach-bubble .who { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--jade); margin-bottom: 0.6rem; }

/* ── Pillars / feature list ───────────────────────────────────────────────── */
.pillars { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ── Privacy band ─────────────────────────────────────────────────────────── */
.privacy { text-align: center; }
.privacy h2 { font-size: clamp(2rem, 5vw, 3.4rem); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.faq-q { font-family: var(--serif); font-size: 1.25rem; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-q .plus { color: var(--jade); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.4s; opacity: 0; color: var(--text-dim); }
.faq-item.open .faq-a { max-height: 360px; opacity: 1; padding-top: 0.9rem; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.cta-band { text-align: center; }
.waitlist { display: flex; gap: 0.6rem; max-width: 460px; margin: 1.8rem auto 0; }
.waitlist input { flex: 1; padding: 0.9rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 1rem; font-family: var(--sans); }
.waitlist input:focus { outline: none; border-color: var(--jade); }
.waitlist-msg { margin-top: 0.9rem; font-size: 0.9rem; color: var(--jade); min-height: 1.2em; }
@media (max-width: 520px) { .waitlist { flex-direction: column; border-radius: 18px; } }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mute); margin-bottom: 1rem; }
.foot-grid a { display: block; color: var(--text-dim); font-size: 0.92rem; padding: 0.28rem 0; transition: color 0.2s; }
.foot-grid a:hover { color: var(--jade); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--text-mute); font-size: 0.85rem; }

/* ── Accessibility: respect reduced motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* subtle in-page divider line */
.hr-glow { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 0; }
