/* ============================================
   CLARITY — AI Medical Board Prep
   Theme CSS
   ============================================ */

:root {
  --bg: #FAF9F7;
  --bg-alt: #F0EDE8;
  --fg: #1A1A2E;
  --fg-muted: #6B6B80;
  --accent: #E8573B;
  --accent-soft: rgba(232, 87, 59, 0.08);
  --navy: #1A1A2E;
  --cream: #F5F0E8;
  --border: rgba(26, 26, 46, 0.1);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ====== NAV ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--navy);
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
}
.nav-logo-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 32px 100px;
  background: var(--bg);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  border: 1px solid rgba(232, 87, 59, 0.15);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 24px;
}
.hero-proof {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
  padding: 8px 14px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: inline-block;
}

/* Agent Card */
.hero-agent-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: white;
  position: relative;
  box-shadow: 0 32px 64px rgba(26, 26, 46, 0.2), 0 0 0 1px rgba(255,255,255,0.05);
}
.agent-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.agent-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.agent-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.agent-avatar-core {
  position: absolute;
  inset: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.8;
}
.agent-info { flex: 1; }
.agent-name { font-weight: 600; font-size: 14px; opacity: 0.95; }
.agent-status { font-size: 12px; opacity: 0.5; margin-top: 2px; }
.agent-live-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px #4ade80;
}
.agent-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.agent-message { margin-bottom: 20px; }
.agent-msg-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.agent-msg-text { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.6; font-style: italic; }
.agent-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.agent-progress-label { font-size: 12px; color: rgba(255,255,255,0.4); white-space: nowrap; }
.agent-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  overflow: hidden;
}
.agent-progress-fill {
  height: 100%;
  width: 58%;
  background: var(--accent);
  border-radius: 100px;
}
.agent-progress-pct { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 600; }
.agent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.agent-stat {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.agent-stat-val { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: white; }
.agent-stat-label { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 2px; line-height: 1.3; }
.agent-mood {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}
.agent-mood-icon { font-size: 14px; }

/* Hero background elements */
.hero-bg-elements { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-geo {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}
.hero-geo-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -200px;
}
.hero-geo-2 {
  width: 300px;
  height: 300px;
  background: var(--navy);
  bottom: -100px;
  left: -100px;
}
.hero-geo-3 {
  width: 200px;
  height: 200px;
  border: 2px solid var(--accent);
  top: 50%;
  left: 30%;
  background: transparent;
}

/* ====== FEATURES ====== */
.features {
  background: var(--cream);
  padding: 96px 32px;
}
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.features-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 56px;
  max-width: 500px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(26, 26, 46, 0.08);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ====== PHILOSOPHY ====== */
.philosophy {
  background: var(--bg);
  padding: 96px 32px;
}
.philosophy-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.philosophy-left { display: flex; flex-direction: column; gap: 40px; }
.philosophy-block { padding-left: 24px; border-left: 2px solid var(--border); }
.philo-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.philo-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.philo-text {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.philo-quote-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: white;
  position: relative;
}
.philo-quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--accent);
  opacity: 0.3;
  line-height: 0.5;
  margin-bottom: 20px;
  display: block;
}
.philo-quote-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 20px;
}
.philo-quote-credit {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.philo-quote-context {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ====== OUTCOMES ====== */
.outcomes {
  background: var(--cream);
  padding: 96px 32px;
}
.outcomes-inner { max-width: 1200px; margin: 0 auto; }
.outcomes-header { text-align: center; margin-bottom: 64px; }
.outcomes-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.outcomes-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 16px;
}
.outcomes-sub { font-size: 16px; color: var(--fg-muted); max-width: 480px; margin: 0 auto; }
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.outcome-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  text-align: center;
}
.outcome-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 20px;
}
.outcome-stat {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.outcome-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.outcome-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* ====== CLOSING ====== */
.closing {
  background: var(--navy);
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.closing-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 2; }
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 87, 59, 0.15);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
  border: 1px solid rgba(232, 87, 59, 0.25);
}
.closing-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.closing-cta { display: inline-block; }
.closing-cta-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent);
  color: white;
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  position: relative;
}
.cta-pulse-ring {
  position: absolute;
  inset: -4px;
  border: 2px solid var(--accent);
  border-radius: 18px;
  opacity: 0.4;
}
.cta-icon { flex-shrink: 0; }
.cta-text { text-align: left; }
.cta-primary { display: block; font-weight: 600; }
.cta-sub { display: block; font-size: 12px; font-weight: 400; opacity: 0.7; margin-top: 2px; }
.closing-bg { position: absolute; inset: 0; pointer-events: none; }
.closing-geo {
  position: absolute;
  border-radius: 50%;
}
.closing-geo-1 {
  width: 500px;
  height: 500px;
  background: rgba(232, 87, 59, 0.08);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}
.closing-geo-2 {
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.03);
  bottom: -150px;
  right: -100px;
}

/* ====== FOOTER ====== */
.footer {
  background: #111120;
  padding: 40px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo-mark {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 6px;
  position: relative;
}
.footer-logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 2px solid white;
  border-radius: 50%;
}
.footer-logo-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: white;
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 48px; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 14px 20px; }
  .hero { padding: 60px 20px 80px; }
  .features { padding: 64px 20px; }
  .philosophy { padding: 64px 20px; }
  .outcomes { padding: 64px 20px; }
  .closing { padding: 80px 20px; }
  .agent-stats { grid-template-columns: repeat(3, 1fr); }
}
