/* ==========================================
   SVAAS — CSS Design System
   ========================================== */

/* --- Variables --- */
:root {
  --bg: #F8F4EE;
  --bg-alt: #EFE9DF;
  --bg-dark: #0F1F14;
  --fg: #1A1A1A;
  --fg-muted: #6B6B5A;
  --fg-light: #F8F4EE;
  --accent: #B8860B;
  --accent-soft: #D4A843;
  --accent-dim: rgba(184, 134, 11, 0.15);
  --green: #1E5C3A;
  --green-soft: #2D7A50;
  --sage: #8BA888;
  --sand: #C4A882;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(15,31,20,0.06);
  --shadow-md: 0 8px 32px rgba(15,31,20,0.10);
  --shadow-lg: 0 20px 60px rgba(15,31,20,0.15);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
a { color: inherit; text-decoration: none; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(248,244,238,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,31,20,0.06);
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 300;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 120px 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-gradient {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,168,136,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(184,134,11,0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(30,92,58,0.05) 0%, transparent 40%);
}
.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.9;
}
.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-lede {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.hero-cta-primary, .hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.hero-cta-primary {
  background: var(--green);
  color: var(--fg-light);
  border: none;
}
.hero-cta-primary:hover { background: var(--green-soft); transform: translateY(-1px); }
.hero-cta-secondary {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid rgba(15,31,20,0.2);
}
.hero-cta-secondary:hover { border-color: var(--green); color: var(--green); }
.hero-trust {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* Hero Device Stack */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-device-stack { display: flex; gap: 16px; align-items: flex-end; }
.device-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.device-watch { width: 160px; }
.device-ring { width: 120px; }
.device-band { width: 140px; }
.device-screen {
  padding: 16px;
  background: linear-gradient(145deg, #0F1F14, #1A3A2A);
  color: #fff;
}
.ring-screen { padding: 14px; text-align: center; }
.screen-metric { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.metric-label { font-size: 0.65rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }
.metric-value { font-size: 1.3rem; font-weight: 600; font-family: var(--font-display); }
.metric-unit { font-size: 0.75rem; opacity: 0.7; }
.screen-wave { margin-bottom: 8px; }
.screen-wave svg { width: 100%; }
.screen-meta { font-size: 0.7rem; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 6px; }
.meta-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.meta-green { background: #4ADE80; }
.ring-metrics { display: flex; justify-content: space-around; margin-bottom: 10px; }
.ring-metric { text-align: center; }
.ring-label { display: block; font-size: 0.6rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.ring-value { font-size: 0.85rem; font-weight: 600; color: var(--accent-soft); }
.ring-score { display: flex; justify-content: center; }
.ring-arc { position: relative; }
.ring-score-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: var(--accent-soft); }
.sleep-bar { display: flex; height: 32px; gap: 2px; margin-bottom: 8px; border-radius: 4px; overflow: hidden; }
.sleep-seg { border-radius: 2px; }
.device-label {
  padding: 8px;
  font-size: 0.65rem;
  text-align: center;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  background: #fff;
  border-top: 1px solid rgba(15,31,20,0.05);
}
.hero-sync-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
  background: rgba(30,92,58,0.07);
  padding: 8px 16px;
  border-radius: 100px;
}
.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* --- Signal Bar --- */
.signal-bar {
  background: var(--bg-dark);
  color: var(--fg-light);
  padding: 40px 48px;
}
.signal-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.signal-stat { text-align: center; }
.stat-number { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--accent-soft); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.75rem; color: rgba(248,244,238,0.5); text-transform: uppercase; letter-spacing: 0.06em; }
.signal-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.1); }

/* --- Shared Section Styles --- */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-eyebrow.light { color: var(--accent-soft); }
.section-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-headline.light { color: var(--fg-light); }
.section-body { font-size: 1.05rem; color: var(--fg-muted); line-height: 1.75; max-width: 560px; }
.section-body.light { color: rgba(248,244,238,0.65); }

/* --- Intelligence Section --- */
.intelligence { padding: 100px 48px; background: var(--bg); }
.intelligence-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intel-features { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.intel-feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.intel-feature h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; color: var(--fg); }
.intel-feature p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; }

/* Intel Panel */
.intel-visual { display: flex; justify-content: center; }
.intel-panel {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 320px;
  border: 1px solid rgba(15,31,20,0.05);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}
.panel-live { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--green); font-weight: 500; }
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
.panel-cue { background: var(--accent-dim); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.cue-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cue-text { font-size: 0.9rem; color: var(--fg); font-weight: 500; line-height: 1.5; }
.panel-metrics { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.panel-metric { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: 8px; }
.pm-label { font-size: 0.8rem; color: var(--fg-muted); }
.pm-trend { font-size: 0.85rem; font-weight: 600; }
.pm-trend.up { color: var(--green); }
.pm-trend.down { color: #C9733A; }
.panel-recommendation { background: var(--green); color: #fff; border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.rec-icon { flex-shrink: 0; margin-top: 2px; }
.rec-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.rec-sub { font-size: 0.75rem; opacity: 0.75; }

/* --- Wearables Section --- */
.wearables { padding: 100px 48px; background: var(--bg-alt); }
.wearables-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.wearables-visual { display: flex; justify-content: center; }
.wearables-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wearable-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--green);
  transition: all 0.2s;
}
.wearable-icon:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.wearable-icon svg { width: 40px; height: 40px; }
.wearable-icon span { font-size: 0.8rem; font-weight: 500; color: var(--fg-muted); }
.brand-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.brand-list span {
  padding: 6px 16px;
  background: #fff;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,31,20,0.06);
}

/* --- Family Section --- */
.family { padding: 100px 48px; position: relative; overflow: hidden; }
.family-bg { position: absolute; inset: 0; pointer-events: none; }
.family-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(139,168,136,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.family-inner { max-width: 1280px; margin: 0 auto; position: relative; }
.family-header { text-align: center; margin-bottom: 56px; }
.family-header .section-body { margin: 0 auto; }
.family-members { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.member-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.member-name { font-weight: 600; font-size: 0.9rem; color: var(--fg-light); margin-bottom: 2px; }
.member-status { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: rgba(248,244,238,0.5); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.syncing { background: #4ADE80; }
.member-vitals { display: flex; gap: 6px; }
.vital-chip { padding: 4px 8px; background: rgba(255,255,255,0.08); border-radius: 6px; text-align: center; }
.vital-label { display: block; font-size: 0.6rem; color: rgba(248,244,238,0.4); text-transform: uppercase; letter-spacing: 0.06em; }
.vital-val { display: block; font-size: 0.8rem; font-weight: 600; color: var(--fg-light); }
.health-badge { padding: 4px 10px; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }
.health-badge.healthy { background: rgba(74,222,128,0.2); color: #4ADE80; }
.health-badge.optimal { background: rgba(212,168,67,0.2); color: var(--accent-soft); }
.health-badge.moderate { background: rgba(201,115,58,0.2); color: #E8A870; }
.family-summary { text-align: center; font-size: 0.85rem; color: rgba(248,244,238,0.5); }

/* --- Coach Section --- */
.coach { padding: 100px 48px; background: var(--bg); }
.coach-inner { max-width: 1280px; margin: 0 auto; }
.coach-header { text-align: center; margin-bottom: 56px; }
.coach-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.coach-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 28px; border: 1px solid rgba(15,31,20,0.04); }
.coach-card-header { margin-bottom: 20px; }
.coach-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  padding: 6px 14px;
  background: rgba(30,92,58,0.07);
  border-radius: 100px;
}
.coach-messages { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.coach-msg {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.55;
}
.coach-msg-insight { background: var(--bg-alt); border-left: 3px solid var(--accent); }
.coach-plan {
  background: linear-gradient(135deg, var(--green), #163826);
  border-radius: var(--radius);
  padding: 18px;
  color: #fff;
}
.plan-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.plan-content { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.plan-title { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.plan-sub { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.plan-triggers { display: flex; gap: 8px; flex-wrap: wrap; }
.trigger-tag { padding: 4px 10px; background: rgba(255,255,255,0.1); border-radius: 100px; font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.coach-insights { display: flex; flex-direction: column; gap: 16px; }
.insight-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,31,20,0.04);
}
.insight-icon { margin-bottom: 12px; color: var(--green); }
.insight-card h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--fg); }
.insight-card p { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.6; }

/* --- Closing --- */
.closing {
  padding: 100px 48px;
  background: var(--bg-dark);
  color: var(--fg-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-bg { position: absolute; inset: 0; pointer-events: none; }
.closing-radial {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(184,134,11,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.closing-inner { max-width: 900px; margin: 0 auto; position: relative; }
.closing-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 24px;
  opacity: 0.8;
}
.closing-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--fg-light);
  margin-bottom: 28px;
  line-height: 1.25;
}
.closing-headline em { color: var(--accent-soft); font-style: italic; }
.closing-sub { font-size: 1.1rem; color: rgba(248,244,238,0.6); line-height: 1.75; margin-bottom: 64px; max-width: 640px; margin-left: auto; margin-right: auto; }
.closing-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; }
.value-item { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.value-number { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; color: var(--accent-soft); opacity: 0.5; margin-bottom: 8px; }
.value-item h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--fg-light); margin-bottom: 6px; }
.value-item p { font-size: 0.88rem; color: rgba(248,244,238,0.5); line-height: 1.6; }

/* --- Footer --- */
.footer {
  background: #0A160E;
  color: var(--fg-light);
  padding: 64px 48px 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 64px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg-light);
  margin-bottom: 12px;
}
.footer-tagline { font-size: 0.8rem; color: rgba(248,244,238,0.4); margin-bottom: 20px; letter-spacing: 0.06em; }
.footer-copy { font-size: 0.8rem; color: rgba(248,244,238,0.3); line-height: 1.6; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(248,244,238,0.4); margin-bottom: 4px; }
.footer-col a { font-size: 0.9rem; color: rgba(248,244,238,0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--fg-light); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 100px; }
  .hero-visual { order: -1; }
  .intelligence-inner { grid-template-columns: 1fr; gap: 48px; }
  .wearables-inner { grid-template-columns: 1fr; gap: 48px; }
  .coach-grid { grid-template-columns: 1fr; }
  .signal-inner { flex-wrap: wrap; justify-content: center; }
  .signal-divider { display: none; }
  .family-members { grid-template-columns: 1fr; }
  .closing-values { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .hero, .intelligence, .wearables, .family, .coach, .closing, .signal-bar { padding-left: 24px; padding-right: 24px; }
  .hero-headline { font-size: 2.4rem; }
  .hero-device-stack { flex-wrap: wrap; justify-content: center; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .wearables-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero-cta-row { flex-direction: column; }
  .hero-cta-primary, .hero-cta-secondary { text-align: center; justify-content: center; }
  .signal-inner { gap: 20px; }
  .stat-number { font-size: 1.6rem; }
}