/* Health Gurujan — marketing site
   Design tokens lifted from the actual app (src/theme/colors.ts) so the site
   and the product feel like the same thing, not a generic landing page. */

:root {
  --brand: #0f766e;
  --brand-light: #14b8a6;
  --brand-soft: #ccfbf1;
  --brand-dark: #134e4a;
  --accent: #059669;
  --gold: #d4af37;
  --gold-soft: #f3e3ae;
  --ink: #0b1615;
  --bg: #081211;
  --bg-1: #0c1917;
  --surface: #0f1e1c;
  --surface-2: #122522;
  --border: rgba(204, 251, 241, 0.1);
  --text: #eafaf6;
  --text-dim: #a9c4bd;
  --text-faint: #6f8b84;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-light); background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.25); padding: 6px 14px; border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand-light); box-shadow: 0 0 8px var(--brand-light); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; backdrop-filter: blur(16px);
  background: rgba(8, 18, 17, 0.55); border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-color: var(--border); background: rgba(8, 18, 17, 0.85); }
.nav.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.nav-inner { max-width: 1180px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span b { color: var(--brand-light); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: inline-flex; }
.nav-menu-btn { display: none; background: none; border: none; color: var(--text); padding: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
  border: 1px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--brand-light), var(--brand)); color: #04211d; box-shadow: 0 12px 30px -10px rgba(20, 184, 166, 0.55); }
.btn-primary:hover { box-shadow: 0 16px 38px -10px rgba(20, 184, 166, 0.7); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 15.5px; border-radius: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 160px 0 120px; min-height: 92vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 50% 44%, rgba(8,18,17,.8), transparent 75%),
              linear-gradient(to bottom, rgba(8,18,17,.3) 0%, transparent 20%, transparent 72%, var(--bg) 100%); }
.hero-inner { position: relative; z-index: 2; text-align: center; width: 100%; }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); line-height: 1.05; font-weight: 800;
  margin: 22px auto 20px; max-width: 900px;
  background: linear-gradient(180deg, #ffffff 30%, #bfe9e0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--gold-soft), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--text-dim); max-width: 560px; margin: 0 auto 36px; line-height: 1.6; text-shadow: 0 2px 16px rgba(8,18,17,.9); }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.waitlist-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.waitlist-form input {
  flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); color: var(--text);
  font-size: 15px; outline: none; transition: border-color 0.2s, background 0.2s;
}
.waitlist-form input:focus { border-color: var(--brand-light); background: rgba(255, 255, 255, 0.08); }
.waitlist-form input::placeholder { color: var(--text-faint); }
.waitlist-note { font-size: 12.5px; color: var(--text-faint); margin-top: 12px; }
.waitlist-status { font-size: 14px; margin-top: 14px; min-height: 20px; font-weight: 600; }
.waitlist-status.ok { color: var(--brand-light); }
.waitlist-status.err { color: #f87171; }

.trust-row { display: flex; gap: 28px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.trust-row .item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-dim); font-weight: 600; }
.trust-row svg { width: 17px; height: 17px; color: var(--brand-light); flex-shrink: 0; }

/* ---------- Section shell ---------- */
section { position: relative; padding: 110px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 18px 0 16px; line-height: 1.15; }
.section-head p { color: var(--text-dim); font-size: 16.5px; line-height: 1.6; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Family profiles ---------- */
.family { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%); }
.family-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.profile-stage {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow);
}
.profile-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.profile-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px 6px;
  border-radius: 16px; cursor: pointer; border: 1.5px solid transparent; transition: all 0.25s var(--ease); width: 68px;
}
.profile-chip .av {
  width: 46px; height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #04211d; background: linear-gradient(135deg, var(--brand-soft), var(--brand-light));
  border: 2px solid transparent;
}
.profile-chip span { font-size: 11.5px; color: var(--text-dim); font-weight: 600; }
.profile-chip.active { border-color: rgba(20, 184, 166, 0.35); background: rgba(20, 184, 166, 0.08); }
.profile-chip.active .av { border-color: var(--brand-light); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15); }
.profile-chip.active span { color: var(--text); }
.profile-chip.add .av { background: transparent; border: 1.5px dashed var(--text-faint); color: var(--text-faint); font-size: 20px; }

.profile-panel { border-top: 1px solid var(--border); padding-top: 20px; }
.profile-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.profile-panel-head .av-lg {
  width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #04211d; background: linear-gradient(135deg, var(--brand-soft), var(--brand-light));
}
.profile-panel-head b { font-size: 15px; }
.profile-panel-head small { display: block; color: var(--text-faint); font-size: 12px; margin-top: 2px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 10px; text-align: center; }
.stat-card b { display: block; font-size: 20px; color: var(--brand-light); }
.stat-card span { font-size: 10.5px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.family-copy .eyebrow { margin-bottom: 18px; }
.family-copy h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.18; margin-bottom: 18px; }
.family-copy p { color: var(--text-dim); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.family-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.family-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-dim); }
.family-list svg { width: 20px; height: 20px; color: var(--brand-light); flex-shrink: 0; margin-top: 1px; }
.family-list b { color: var(--text); }

/* ---------- Features grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 26px 22px; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(20, 184, 166, 0.3); background: var(--surface-2); }
.feature-card .icon-wrap {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 184, 166, 0.12); color: var(--brand-light); margin-bottom: 16px;
}
.feature-card .icon-wrap svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--text-faint); line-height: 1.55; }

/* ---------- AI showcase ---------- */
.ai-section { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(20, 184, 166, 0.08), transparent 60%), var(--bg-1); }
.ai-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai-copy .eyebrow { margin-bottom: 18px; }
.ai-copy h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.18; margin-bottom: 18px; }
.ai-copy p { color: var(--text-dim); font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
.ai-soon { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--gold); background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.3); padding: 7px 14px; border-radius: 999px; margin-top: 6px; }

.chat-mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px;
  box-shadow: var(--shadow); position: relative;
}
.chat-mock::before {
  content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: 26px;
  background: conic-gradient(from 0deg, var(--brand-light), transparent 30%, transparent 70%, var(--brand-light));
  opacity: 0.35; animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.chat-mock-head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.chat-mock-head .orb {
  width: 32px; height: 32px; border-radius: 999px; background: linear-gradient(135deg, var(--brand-light), var(--accent));
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 18px rgba(20, 184, 166, 0.6);
}
.chat-mock-head .orb svg { width: 16px; height: 16px; color: #04211d; }
.chat-mock-head b { font-size: 14px; }
.chat-mock-head span { display: block; font-size: 11.5px; color: var(--brand-light); }
.chat-mock-head span .pulse { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--brand-light); margin-right: 5px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.chat-body { min-height: 220px; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; overflow: hidden; border-radius: 14px; }
.bubble { max-width: 82%; padding: 11px 15px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--brand-light), var(--brand)); color: #04211d; font-weight: 600; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); border-bottom-left-radius: 4px; }
.bubble.bot .cursor { display: inline-block; width: 2px; height: 13px; background: var(--brand-light); margin-left: 2px; vertical-align: middle; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Screenshots ---------- */
.screens-strip { display: flex; gap: 26px; overflow-x: auto; padding: 20px 4px 30px; scroll-snap-type: x mandatory; }
.screens-strip::-webkit-scrollbar { height: 6px; }
.screens-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.phone {
  flex: 0 0 auto; width: 340px; scroll-snap-align: center; position: relative;
}
.phone-frame {
  border: 10px solid #1c2d2a; border-radius: 22px; background: #000; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 1600 / 2455; position: relative;
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-frame img.placeholder { object-fit: contain; padding: 30%; background: linear-gradient(160deg, var(--brand-dark), var(--bg)); }
.phone-frame .notch { display: none; }
.phone-caption { text-align: center; margin-top: 14px; font-size: 12.5px; color: var(--text-faint); font-weight: 600; }
.phone.featured { width: 380px; }
.phone.featured .phone-frame { border-color: var(--brand-light); box-shadow: 0 0 0 1px rgba(20,184,166,.3), var(--shadow); }

/* ---------- Privacy ---------- */
.privacy-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.privacy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.privacy-card .icon-wrap { width: 44px; height: 44px; border-radius: 12px; background: rgba(212, 175, 55, 0.12); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.privacy-card .icon-wrap svg { width: 22px; height: 22px; }
.privacy-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.privacy-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }

/* ---------- CTA / final ---------- */
.cta-section { text-align: center; }
.cta-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-1)); border: 1px solid var(--border); border-radius: 28px;
  padding: 70px 32px; position: relative; overflow: hidden;
}
.cta-card .glow { position: absolute; width: 500px; height: 500px; border-radius: 999px; background: radial-gradient(circle, rgba(20,184,166,.18), transparent 70%); top: -220px; left: 50%; transform: translateX(-50%); }
.cta-card h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-card p { color: var(--text-dim); font-size: 16px; max-width: 480px; margin: 0 auto 32px; position: relative; }
.cta-card .waitlist-form { position: relative; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; color: var(--text-dim); }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13.5px; color: var(--text-faint); font-weight: 500; }
.footer-links a:hover { color: var(--text-dim); }
.footer-credit { font-size: 12.5px; color: var(--text-faint); }
.footer-credit a { color: var(--brand-light); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-menu-btn { display: block; }
  .family-wrap, .ai-wrap, .privacy-wrap { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero { padding: 130px 0 90px; }
  section { padding: 80px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input, .waitlist-form button { width: 100%; }
  .trust-row { gap: 16px 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
