/* ============================================================
   Mozart Health — marketing landing page
   Dark, moss-green, classy. Brand tokens from docs/design/brand.md.
   ============================================================ */

:root {
  /* Brand */
  --ink: #14352c;
  --moss: #2f7d5e;
  --moss-bright: #6fc29b;
  --moss-glow: #8fe3be;
  --muted: #7c8d86;

  /* Surface — near-black with a green cast */
  --bg: #080d0a;
  --bg-2: #0a1310;
  --surface: #0e1a15;
  --surface-2: #12211b;
  --border: #1e332a;
  --border-soft: #17281f;

  /* Text */
  --text: #e9f2ed;
  --text-2: #9db0a6;
  --text-3: #6b7d74;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg-glow {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.5;
}
.bg-glow--one {
  width: 640px; height: 640px; top: -220px; left: -140px;
  background: radial-gradient(circle, rgba(47,125,94,0.55), transparent 65%);
}
.bg-glow--two {
  width: 560px; height: 560px; top: 420px; right: -180px;
  background: radial-gradient(circle, rgba(111,194,155,0.28), transparent 65%);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(111,194,155,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,194,155,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn--primary {
  background: linear-gradient(180deg, var(--moss-bright), var(--moss));
  color: #052117;
  box-shadow: 0 8px 26px rgba(47,125,94,0.35), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(47,125,94,0.5), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn--ghost {
  background: rgba(255,255,255,0.03); color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--moss); background: rgba(47,125,94,0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(8,13,10,0.62);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border-soft);
  background: rgba(8,13,10,0.82);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}
.brand-lockup { height: 30px; width: auto; display: block; }
.brand-lockup .wm { font-family: var(--serif); font-weight: 300; }
.brand-lockup--sm { height: 26px; }

.nav {
  display: flex; align-items: center; gap: 30px;
  margin-left: 12px; font-size: 15px; color: var(--text-2);
}
.nav a { position: relative; transition: color 0.18s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--moss-bright);
  transition: width 0.22s var(--ease);
}
.nav a:hover::after { width: 100%; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-login {
  font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: color 0.18s var(--ease);
}
.header-login:hover { color: var(--moss-bright); }
.header-cta { padding: 10px 18px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
  padding-top: 88px; padding-bottom: 96px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--moss-bright);
  padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: rgba(47,125,94,0.08);
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--moss-bright); box-shadow: 0 0 10px var(--moss-bright);
}
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02;
  letter-spacing: -0.01em; margin: 22px 0 0;
}
.accent-text {
  background: linear-gradient(120deg, var(--moss-bright), var(--moss-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero-sub {
  color: var(--text-2); font-size: 19px; line-height: 1.65;
  max-width: 34em; margin: 26px 0 0;
}
.hero-micro { margin: 16px 0 0; color: var(--text-3); font-size: 13px; }

/* ---------- Waitlist form ---------- */
.waitlist-form {
  display: flex; gap: 10px; margin-top: 30px;
  max-width: 480px; flex-wrap: wrap; position: relative;
}
.waitlist-form input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  padding: 13px 18px; font-size: 15px; font-family: var(--sans);
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.waitlist-form input::placeholder { color: var(--text-3); }
.waitlist-form input:focus {
  outline: none; border-color: var(--moss);
  box-shadow: 0 0 0 4px rgba(47,125,94,0.18);
}
.waitlist-form .btn { flex: 0 0 auto; }
.form-note {
  flex-basis: 100%; margin: 6px 4px 0; font-size: 13.5px; min-height: 1.2em;
  color: var(--text-2);
}
.form-note.is-ok { color: var(--moss-bright); }
.form-note.is-err { color: #f6a5a0; }
.waitlist-form--center { margin-inline: auto; justify-content: center; }
.waitlist-form--center .form-note { text-align: center; }

/* ---------- Hero visual ---------- */
.hero-visual { position: relative; }
.pulse-card {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  overflow: hidden;
}
.pulse-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% -10%, rgba(111,194,155,0.15), transparent 60%);
  pointer-events: none;
}
.pulse-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--moss-bright);
  box-shadow: 0 0 0 0 rgba(111,194,155,0.6); animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(111,194,155,0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(111,194,155,0); }
}
.pulse-label { font-size: 13px; color: var(--text-2); letter-spacing: 0.04em; }
.pulse-svg { width: 100%; height: 140px; display: block; }
.pulse-line {
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: draw 2.6s var(--ease) 0.3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.pulse-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-size: 12.5px; color: var(--text-2);
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.chip--accent { color: #052117; background: var(--moss-bright); border-color: transparent; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .pulse-line { animation: none; stroke-dashoffset: 0; }
  .pulse-dot { animation: none; }
}

/* ---------- Value strip ---------- */
.strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  justify-content: center; padding-block: 26px;
  border-block: 1px solid var(--border-soft);
  color: var(--text-2); font-size: 15px; letter-spacing: 0.02em;
}
.strip span { opacity: 0.9; }
.strip i { color: var(--moss); font-style: normal; }

/* ---------- Sections ---------- */
.section { padding-block: 92px; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2, .cta h2, .trust h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.1;
  letter-spacing: -0.01em; margin: 16px 0 0;
}
.section-lead { color: var(--text-2); font-size: 18px; margin: 18px 0 0; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  position: relative; padding: 28px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-soft);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: linear-gradient(160deg, rgba(111,194,155,0.4), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--border); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.card:hover::after { opacity: 1; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: var(--moss-bright);
  background: rgba(47,125,94,0.12); border: 1px solid var(--border);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 15.5px; margin: 0; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  counter-reset: step;
}
.step {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-soft);
}
.step-num {
  font-family: var(--serif); font-size: 40px; font-weight: 300;
  color: var(--moss-bright); opacity: 0.85; display: block; margin-bottom: 10px;
}
.step h3 { font-size: 21px; font-weight: 600; margin: 0 0 8px; }
.step p { color: var(--text-2); font-size: 15.5px; margin: 0; }

/* ---------- Trust ---------- */
.trust {
  display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 40px; align-items: center;
  padding: 48px; border-radius: 24px;
  background: linear-gradient(150deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border);
}
.trust p { color: var(--text-2); font-size: 18px; margin: 16px 0 0; max-width: 42ch; }
.trust-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.trust-list li {
  position: relative; padding-left: 30px; color: var(--text); font-size: 15.5px;
}
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(47,125,94,0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fc29b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.trust-mark { display: grid; place-items: center; }
.trust-mark img { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); border-radius: 30px; }

/* ---------- CTA ---------- */
.cta { padding-block: 40px 110px; }
.cta-inner {
  text-align: center; max-width: 660px; margin-inline: auto;
  padding: 60px 40px; border-radius: 28px;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(47,125,94,0.35), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border);
}
.cta-inner p { color: var(--text-2); font-size: 18px; margin: 14px auto 0; max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding-block: 48px 40px; margin-top: 20px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap; padding-bottom: 30px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-tag { color: var(--text-3); font-size: 14px; margin: 12px 0 0; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; color: var(--text-2); font-size: 15px; }
.footer-nav a:hover { color: var(--moss-bright); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 24px; color: var(--text-3); font-size: 13px;
}
.footer-legal .disclaimer { max-width: 52ch; text-align: right; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; padding-bottom: 64px; }
  .hero-visual { order: 2; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; padding: 36px; }
  .trust-mark { display: none; }
  .footer-legal .disclaimer { text-align: left; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .grid { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .cta-inner { padding: 44px 24px; }
  .waitlist-form { max-width: 100%; }
  .waitlist-form .btn { flex: 1 1 100%; }
}
