/* ========================
   VERA — Health OS Landing
   ======================== */

:root {
  --bg: #0B1929;
  --bg-alt: #0D2137;
  --surface: #112338;
  --border: #1C3348;
  --text: #E8EEF4;
  --text-muted: #7A9AB5;
  --accent: #E8A838;
  --primary: #8BA888;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 25, 41, 0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 48px 96px;
  min-height: 88vh;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Biometric Art */
.biometric-art {
  position: relative;
  width: 340px;
  height: 340px;
}

.ba-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--primary);
  opacity: 0.2;
  animation: ring-rotate 20s linear infinite;
}
.ba-ring-1 { width: 100%; height: 100%; top: 0; left: 0; }
.ba-ring-2 { width: 72%; height: 72%; top: 14%; left: 14%; animation-duration: 15s; animation-direction: reverse; border-color: var(--primary); opacity: 0.35; }
.ba-ring-3 { width: 44%; height: 44%; top: 28%; left: 28%; animation-duration: 10s; border-color: var(--accent); opacity: 0.3; }

.ba-center-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
  animation: dot-pulse 3s ease-in-out infinite;
}

.ba-pulse {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 3s ease-out infinite;
}
.ba-pulse-1 { width: 30px; height: 30px; animation-delay: 0s; }
.ba-pulse-2 { width: 30px; height: 30px; animation-delay: 1s; }
.ba-pulse-3 { width: 30px; height: 30px; animation-delay: 2s; }

.ba-grid {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
}
.ba-hline, .ba-vline {
  position: absolute;
  background: var(--border);
  opacity: 0.4;
}
.ba-hline { height: 1px; width: 100%; }
.ba-vline { width: 1px; height: 100%; }

.ba-tag {
  position: absolute;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  background: rgba(11, 25, 41, 0.6);
  padding: 2px 5px;
  border-radius: 3px;
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent); }
  50% { box-shadow: 0 0 30px var(--accent), 0 0 70px var(--accent); }
}
@keyframes pulse-ring {
  0% { width: 30px; height: 30px; opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  100% { width: 30px; height: 30px; opacity: 0; transform: translate(-50%, -50%) scale(12); }
}

.hero-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat { display: flex; flex-direction: column; gap: 4px; }

.stat-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-unit {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- SECTION SHARED ---- */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-body {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 12px;
}

/* ---- MONITORING ---- */
.monitoring {
  background: var(--bg-alt);
  padding: 96px 48px;
}

.monitoring .section-headline {
  max-width: 480px;
}

.monitoring .section-body {
  margin-bottom: 56px;
}

.monitoring-devices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1000px;
}

.device-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.device-card:hover { border-color: var(--primary); }

.device-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 168, 136, 0.08);
  border-radius: 10px;
}

.device-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.device-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- PREDICTION ---- */
.prediction {
  padding: 96px 48px;
  background: var(--bg);
}

.prediction-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.prediction-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Pred chart */
.pred-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.pc-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pc-graph {
  height: 120px;
  width: 100%;
}

.pc-graph svg { width: 100%; height: 100%; }

.pc-legend {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pcl {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pcl::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
}

.pcl.historical::before { background: var(--primary); opacity: 0.6; }
.pcl.predicted::before { background: var(--accent); }
.pcl.confidence::before { background: var(--accent); opacity: 0.2; }

.pred-alert {
  background: rgba(232, 168, 56, 0.07);
  border: 1px solid rgba(232, 168, 56, 0.2);
  border-radius: 10px;
  padding: 18px 20px;
}

.pa-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pa-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pred-capabilities {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.pred-cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pred-cap strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.pred-cap span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---- OUTCOMES ---- */
.outcomes {
  padding: 80px 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.outcome-item {
  padding: 40px 32px;
  background: var(--bg-alt);
  text-align: center;
}

.oi-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.oi-number span {
  font-size: 1.2rem;
}

.oi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- VISION ---- */
.vision {
  padding: 96px 48px;
}

.vision-inner {
  max-width: 760px;
  margin: 0 auto;
}

.vision-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}

.vision-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  margin-bottom: 40px;
}

.vision-body {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ---- FOOTER ---- */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-legal {
  font-size: 0.7rem;
  color: var(--border);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 28px 72px;
    min-height: auto;
    gap: 40px;
  }
  .hero-visual { order: -1; }
  .biometric-art { width: 240px; height: 240px; }
  .hero-stats { gap: 24px; }
  .monitoring { padding: 72px 28px; }
  .monitoring-devices { grid-template-columns: 1fr; }
  .prediction-inner { grid-template-columns: 1fr; gap: 40px; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .outcomes { padding: 60px 28px; }
  .vision { padding: 72px 28px; }
  .nav { padding: 16px 28px; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .outcomes-grid { grid-template-columns: 1fr; }
}
