/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #060D0C;
  --bg-raised: #0B1918;
  --bg-card: #0E2220;
  --fg: #E8DDD0;
  --fg-muted: #8A9088;
  --accent: #C8933A;
  --accent-dim: rgba(200, 147, 58, 0.15);
  --border: rgba(200, 147, 58, 0.18);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--fg); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; font-family: var(--font-body); font-weight: 600; color: var(--fg); }

em { font-style: italic; color: var(--accent); }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5% 1.5rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--fg);
}

.nav-tag {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 5% 5rem;
  min-height: 85vh;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.label-bar {
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 44ch;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-stat-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat { max-width: 120px; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

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

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.mol-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.mol-1 { width: 280px; height: 280px; }
.mol-2 { width: 380px; height: 380px; border-style: dashed; }
.mol-3 { width: 480px; height: 480px; border-color: rgba(200,147,58,0.06); }

.match-connector {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  width: 360px;
}

.match-node {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.node-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
}

.node-sub {
  font-size: 0.68rem;
  color: var(--fg-muted);
}

.biotech { align-items: flex-start; }
.cro { align-items: flex-end; }

.match-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
}

.match-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== PROBLEM ===== */
.problem {
  padding: 6rem 5%;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-header {
  margin-bottom: 4rem;
}

.problem-header h2 {
  max-width: 28ch;
  margin-top: 0.8rem;
}

.problem-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 10px;
}

.problem-icon {
  margin-bottom: 1.5rem;
}

.problem-card h3 { margin-bottom: 0.8rem; }

.problem-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ===== SOLUTION ===== */
.solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 7rem 5%;
}

.solution h2 { margin-top: 0.8rem; margin-bottom: 1.5rem; }

.solution-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-muted);
  background: var(--accent-dim);
}

/* Quiz Shell */
.quiz-shell {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  font-family: var(--font-body);
}

.quiz-header {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.quiz-step {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.step-num {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
}

.step-text {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.step-val {
  font-size: 0.82rem;
  color: var(--fg);
  font-weight: 500;
  text-align: right;
}

.quiz-result {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.result-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.result-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.result-score {
  font-size: 0.8rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.score-bar {
  display: inline-block;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.result-reason {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ===== FEATURES ===== */
.features {
  padding: 6rem 5%;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
}

.features h2 { margin-top: 0.6rem; margin-bottom: 4rem; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feat {
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 10px;
  background: var(--bg);
}

.feat-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feat h3 { margin-bottom: 0.7rem; }

.feat p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ===== PRINCIPLES ===== */
.principles {
  padding: 7rem 5%;
}

.principles blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-style: italic;
  color: var(--fg);
  line-height: 1.4;
  max-width: 42ch;
  margin: 1.5rem 0 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

.principles-body {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 4rem;
}

.principles-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.pillar-icon { margin-bottom: 1rem; }

.pillar h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 5%;
  text-align: center;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
}

.closing-inner { max-width: 600px; margin: 0 auto; }

.closing h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.closing p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 5%;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-tag {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 4rem 5% 3rem; }
  .hero-visual { display: none; }
  .problem-cols { grid-template-columns: 1fr; }
  .solution { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .principles-pillars { grid-template-columns: 1fr; }
  .hero-stat-row { gap: 1.5rem; }
}

@media (max-width: 600px) {
  .hero-stat-row { flex-direction: column; gap: 1.2rem; }
  .footer { flex-direction: column; align-items: flex-start; }
}