:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #111114;
  --bg-tertiary: #18181c;
  --bg-card: #1a1a1f;
  --fg-primary: #e8e6e1;
  --fg-secondary: #9a9690;
  --fg-muted: #5a5750;
  --accent: #c9a84c;
  --accent-dim: #8a7235;
  --accent-glow: rgba(201, 168, 76, 0.12);
  --accent-secondary: #4a9e8e;
  --accent-tertiary: #7b6ecf;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(201, 168, 76, 0.2);
  --radius: 2px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

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

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--fg-primary);
}

.nav-tagline {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(74, 158, 142, 0.03) 0%, transparent 70%),
    var(--bg-primary);
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--fg-primary);
}

.hero-accent {
  color: var(--accent);
}

.hero-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-secondary);
  max-width: 520px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-data-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.data-row {
  display: grid;
  grid-template-columns: 90px 60px 1fr;
  align-items: center;
  gap: 1rem;
}

.data-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  font-weight: 500;
}

.data-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

.data-bar {
  height: 3px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}

.data-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1.5s ease;
}

.fill-secondary {
  background: var(--accent-secondary);
}

.fill-tertiary {
  background: var(--accent-tertiary);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-dim), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2rem;
}

/* ---- PHILOSOPHY ---- */
.philosophy {
  padding: 8rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.philosophy-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.philosophy-statement h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg-primary);
}

.text-accent {
  color: var(--accent);
}

.philosophy-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg-secondary);
  margin-bottom: 1rem;
}

/* ---- PROTOCOL ---- */
.protocol {
  padding: 8rem 2rem;
  border-top: 1px solid var(--border);
}

.protocol-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.protocol-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 3rem;
  color: var(--fg-primary);
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.protocol-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s ease;
}

.protocol-card:hover {
  border-color: var(--border-accent);
}

.protocol-card-highlight {
  background: linear-gradient(135deg, var(--bg-card), rgba(201, 168, 76, 0.05));
  border-color: var(--border-accent);
  grid-column: span 3;
}

.protocol-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--accent-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-weight: 500;
}

.protocol-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg-primary);
  margin-bottom: 0.75rem;
}

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

/* ---- BIOMARKERS ---- */
.biomarkers {
  padding: 8rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.biomarkers-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.biomarkers-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.biomarkers-left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--fg-primary);
}

.biomarkers-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg-secondary);
}

.biomarker-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1rem;
}

.biomarker-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--fg-primary);
  font-weight: 400;
}

.biomarker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.dot-2 { background: var(--accent-secondary); }
.dot-3 { background: var(--accent); }
.dot-4 { background: var(--accent-tertiary); }
.dot-5 { background: var(--accent-secondary); }
.dot-6 { background: var(--accent); }
.dot-7 { background: var(--accent-tertiary); }
.dot-8 { background: var(--accent-secondary); }

/* ---- CLOSING ---- */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 40% at 50% 60%, var(--accent-glow) 0%, transparent 70%),
    var(--bg-primary);
}

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

.closing-accent {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 2rem;
  font-weight: 700;
}

.closing-statement {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--fg-primary);
}

.closing-answer {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-secondary);
  margin-bottom: 2rem;
  font-style: italic;
}

.closing-tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 500;
}

/* ---- FOOTER ---- */
.footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  font-weight: 500;
}

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

/* ---- SCIENCE / THE FORMULATION ---- */
.science {
  padding: 8rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  position: relative;
}

.science::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(201, 168, 76, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.science-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.science-header {
  margin-bottom: 3.5rem;
}

.science-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg-primary);
}

/* ---- INGREDIENT GRID ---- */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.ingredient-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ingredient-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.06);
}

.ingredient-card-wide {
  grid-column: span 3;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.ingredient-card-wide .ingredient-mechanism {
  flex: 1;
}

.ingredient-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.ingredient-dose {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}

.ingredient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}

.tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ingredient-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-primary);
  line-height: 1.3;
}

.ingredient-mechanism {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--fg-secondary);
  flex: 1;
}

.ingredient-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.ingredient-form {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.ingredient-pmid {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* ---- QUALITY POSTURE ---- */
.science-quality {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem;
  margin-bottom: 2rem;
}

.quality-header {
  margin-bottom: 2rem;
}

.quality-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--fg-primary);
}

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

.quality-pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.quality-icon {
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.7;
}

.quality-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quality-text strong {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-primary);
}

.quality-text span {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--fg-secondary);
}

/* ---- TRACKING OUTCOMES TABLE ---- */
.science-tracking {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem;
  margin-bottom: 3rem;
}

.tracking-header {
  margin-bottom: 2rem;
}

.tracking-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--fg-primary);
}

.tracking-table-wrap {
  overflow-x: auto;
}

.tracking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.tracking-table thead tr {
  border-bottom: 1px solid var(--border-accent);
}

.tracking-table th {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent);
  text-align: left;
  padding: 0.75rem 1rem 0.75rem 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.tracking-table td {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg-secondary);
  line-height: 1.5;
  vertical-align: top;
}

.tracking-table tbody tr:last-child td {
  border-bottom: none;
}

.tracking-table tbody tr:hover td {
  color: var(--fg-primary);
}

.biomarker-name {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--fg-primary) !important;
  white-space: nowrap;
}

.target-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent) !important;
  white-space: nowrap;
}

/* ---- SCIENCE CTA ---- */
.science-cta {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  background: linear-gradient(135deg, var(--bg-card), rgba(201, 168, 76, 0.04));
}

.science-cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--fg-primary);
  margin-bottom: 0.5rem;
}

.science-cta-sub {
  font-size: 1rem;
  color: var(--fg-secondary);
  margin-bottom: 2rem;
}

.science-cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--bg-primary);
  background: var(--accent);
  padding: 0.875rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.science-cta-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 1.25rem 3rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-data-card {
    max-width: 100%;
  }

  .philosophy-grid,
  .biomarkers-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .protocol-grid {
    grid-template-columns: 1fr;
  }

  .protocol-card-highlight {
    grid-column: span 1;
  }

  .philosophy,
  .protocol,
  .biomarkers,
  .closing,
  .science {
    padding: 4rem 1.25rem;
  }

  .ingredient-grid {
    grid-template-columns: 1fr;
  }

  .ingredient-card-wide {
    grid-column: span 1;
    flex-direction: column;
    gap: 0.75rem;
  }

  .quality-pillars {
    grid-template-columns: 1fr;
  }

  .science-quality,
  .science-tracking {
    padding: 2rem 1.25rem;
  }

  .tracking-table th,
  .tracking-table td {
    padding: 0.65rem 0.5rem 0.65rem 0;
    font-size: 0.8rem;
  }

  .nav {
    padding: 1rem 1.25rem;
  }

  .nav-tagline {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .data-row {
    grid-template-columns: 80px 55px 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .protocol-card {
    padding: 1.5rem;
  }
}