/* === TOKENS === */
:root {
  --bg: #0D1210;
  --bg-2: #141C19;
  --surface: #1B2B22;
  --surface-2: #243535;
  --green: #2D6A4F;
  --green-bright: #40916C;
  --green-light: #52B788;
  --accent: #D4A843;
  --accent-dim: #B8922E;
  --text: #E8EDE9;
  --text-2: #A8B5AD;
  --text-3: #6B7D72;
  --border: #1E3028;
  --border-light: #2A4038;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-family: 'DM Sans', sans-serif; font-weight: 600; }
p { color: var(--text-2); }

.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  backdrop-filter: blur(12px);
  background: rgba(13, 18, 16, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'DM Mono', monospace; font-size: 1rem; font-weight: 500; letter-spacing: 0.12em; color: var(--text); }
.nav-tagline { font-size: 0.8rem; color: var(--text-3); font-style: italic; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2D6A4F 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #D4A843 0%, transparent 70%);
  bottom: 0; left: 20%;
  opacity: 0.15;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow { font-family: 'DM Mono', monospace; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}
.hero-headline em { color: var(--green-light); font-style: italic; }
.hero-sub { font-size: 1.1rem; line-height: 1.7; margin-bottom: 2.5rem; max-width: 480px; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-family: 'Instrument Serif', serif; font-size: 1.75rem; color: var(--text); }
.stat-label { font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 40px; background: var(--border-light); }

/* Hero Cards */
.hero-right { display: flex; flex-direction: column; gap: 1rem; }
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
}
.hero-card-2 { background: var(--bg-2); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.card-label { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.card-badge { font-family: 'DM Mono', monospace; font-size: 0.65rem; background: var(--green); color: var(--text); padding: 0.2rem 0.6rem; border-radius: 100px; }
.card-score { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 1rem; }
.score-number { font-family: 'Instrument Serif', serif; font-size: 4rem; color: var(--accent); line-height: 1; }
.score-max { font-size: 1.25rem; color: var(--text-3); }
.card-bars { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.bar-row { display: flex; align-items: center; gap: 0.75rem; }
.bar-label { font-size: 0.7rem; color: var(--text-3); width: 50px; flex-shrink: 0; }
.bar-track { flex: 1; height: 4px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--green-light); border-radius: 2px; }
.card-wearable { display: flex; align-items: center; gap: 0.5rem; }
.wearable-dot { width: 6px; height: 6px; background: var(--green-light); border-radius: 50%; flex-shrink: 0; }
.wearable-text { font-size: 0.72rem; color: var(--text-3); }

/* Plan Card */
.plan-items { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.plan-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; padding: 0.35rem 0; }
.plan-check { color: var(--green-light); font-size: 0.9rem; }
.plan-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.plan-dot-empty { width: 8px; height: 8px; border: 1.5px solid var(--text-3); border-radius: 50%; flex-shrink: 0; }
.done { color: var(--text-3); text-decoration: line-through; }
.active { color: var(--text); }
.agent-note { display: flex; align-items: flex-start; gap: 0.6rem; background: var(--surface); border-radius: 10px; padding: 0.75rem; margin-top: 0.5rem; }
.agent-avatar { width: 24px; height: 24px; background: var(--green); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; flex-shrink: 0; color: var(--text); }
.agent-note span:last-child { font-size: 0.75rem; color: var(--text-2); line-height: 1.5; }

/* === HOW IT WORKS === */
.howitworks { padding: 6rem 2rem; background: var(--bg-2); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.hiw-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.hiw-step { border-top: 2px solid var(--border-light); padding-top: 1.5rem; }
.step-num { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--accent); margin-bottom: 1rem; }
.hiw-step h3 { color: var(--text); margin-bottom: 0.75rem; }
.hiw-step p { font-size: 0.9rem; line-height: 1.65; }

/* === THE AGENT === */
.theagent { padding: 6rem 2rem; position: relative; overflow: hidden; }
.agent-bg { position: absolute; inset: 0; pointer-events: none; }
.agent-orb { position: absolute; width: 700px; height: 700px; background: radial-gradient(circle, rgba(45,106,79,0.2) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.agent-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; z-index: 1; }
.agent-desc { font-size: 1rem; line-height: 1.75; margin-bottom: 2rem; }
.agent-features { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.agent-features li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.92rem; color: var(--text-2); }
.af-icon { color: var(--green-light); font-size: 0.7rem; margin-top: 0.25rem; flex-shrink: 0; }
.agent-features strong { color: var(--text); }
.agent-chat {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
}
.chat-header {
  background: var(--bg-2);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.agent-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.online-dot { width: 7px; height: 7px; background: var(--green-light); border-radius: 50%; }
.chat-messages { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { border-radius: 12px; padding: 0.85rem 1rem; font-size: 0.82rem; line-height: 1.6; }
.chat-msg.user { background: var(--green); color: var(--text); align-self: flex-end; max-width: 85%; }
.chat-msg.agent { background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border); }
.chat-msg.agent ul { margin: 0.5rem 0; padding-left: 1rem; }
.chat-msg.agent li { margin-bottom: 0.25rem; }

/* === WEARABLES === */
.wearables { padding: 6rem 2rem; background: var(--bg-2); }
.wearables-sub { font-size: 1.1rem; margin-bottom: 3rem; }
.wearable-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.wearable-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.wearable-card:hover { border-color: var(--green-bright); }
.wc-icon { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--accent); font-weight: 700; }
.wearable-card h4 { color: var(--text); margin-bottom: 0.4rem; font-size: 0.95rem; }
.wearable-card p { font-size: 0.78rem; line-height: 1.5; }
.wearables-note { font-size: 0.78rem; color: var(--text-3); }

/* === THE SCORE === */
.thescore { padding: 6rem 2rem; }
.score-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.score-layout p { margin-bottom: 1rem; font-size: 0.95rem; }
.score-legend { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.legend-item { display: flex; align-items: center; gap: 1rem; }
.legend-score { font-family: 'DM Mono', monospace; font-size: 0.85rem; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: 6px; }
.legend-score.high { background: rgba(82, 183, 136, 0.15); color: var(--green-light); }
.legend-score.mid { background: rgba(212, 168, 67, 0.15); color: var(--accent); }
.legend-score.low { background: rgba(212, 168, 67, 0.1); color: var(--text-3); }
.legend-item span:last-child { font-size: 0.82rem; color: var(--text-2); }
.score-circle-wrap { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.score-ring { width: 100%; height: 100%; }
.score-center { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 0.5rem; }
.score-big { font-family: 'Instrument Serif', serif; font-size: 5.5rem; color: var(--accent); line-height: 1; }
.score-max-sm { font-size: 1.5rem; color: var(--text-3); }
.score-trend { text-align: center; margin-top: 1.5rem; }
.trend-up { font-family: 'DM Mono', monospace; font-size: 0.8rem; color: var(--green-light); display: block; margin-bottom: 0.25rem; }
.trend-label { font-size: 0.78rem; color: var(--text-3); }

/* === CLOSING === */
.closing { padding: 8rem 2rem; background: var(--bg-2); }
.closing-content { max-width: 720px; margin: 0 auto; text-align: center; }
.closing h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 1.5rem; color: var(--text); }
.closing p { font-size: 1.1rem; line-height: 1.75; margin-bottom: 1rem; }

/* === FOOTER === */
.footer { padding: 3rem 2rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-logo { font-family: 'DM Mono', monospace; font-size: 1rem; letter-spacing: 0.12em; color: var(--text); margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.85rem; color: var(--text-3); margin-bottom: 1.5rem; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.footer-links span { font-size: 0.8rem; color: var(--text-3); cursor: pointer; }
.footer-links span:hover { color: var(--text-2); }
.dot { width: 3px; height: 3px; background: var(--text-3); border-radius: 50%; }
.footer-copy { font-size: 0.72rem; color: var(--text-3); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { display: none; }
  .hiw-steps { grid-template-columns: 1fr 1fr; }
  .agent-layout { grid-template-columns: 1fr; }
  .score-layout { grid-template-columns: 1fr; }
  .wearable-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hiw-steps { grid-template-columns: 1fr; }
  .wearable-grid { grid-template-columns: 1fr; }
  .score-circle-wrap { width: 180px; height: 180px; }
  .score-big { font-size: 4rem; }
}