:root {
  --bg: #080908;
  --panel: rgba(17, 20, 17, 0.84);
  --panel-2: rgba(24, 29, 24, 0.9);
  --text: #f3f1e8;
  --muted: #b8b5a8;
  --accent: #d6ff63;
  --accent-2: #f2b84b;
  --border: rgba(255, 255, 255, 0.12);

  /* PAGE ACCENTS */
  --problem-accent: #f26a21;
  --metabolic-accent: #7cecff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* GLOBAL BACKGROUND CANVAS */

#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.88;
}

/* LAYERING */

.site-header,
.hero,
.intro,
.stats,
.deep-section,
.cards,
.start,
.site-footer {
  position: relative;
  z-index: 2;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 22px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 9, 8, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
}

/* HERO */

.hero {
  overflow: hidden;
  min-height: 100vh;
  padding: 150px 5vw 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(242, 184, 75, 0.16), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(214, 255, 99, 0.12), transparent 30%),
    linear-gradient(to bottom, rgba(8, 9, 8, 0.25), rgba(8, 9, 8, 0.84));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(8, 9, 8, 0.74), rgba(8, 9, 8, 0.24)),
    linear-gradient(to bottom, rgba(8, 9, 8, 0.14), rgba(8, 9, 8, 0.74));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1050px;
}

/* HERO ANIMATION */

.hero-reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 0.9s ease forwards;
}

.hero-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal:nth-child(2) { animation-delay: 0.22s; }
.hero-reveal:nth-child(3) { animation-delay: 0.34s; }
.hero-reveal:nth-child(4) { animation-delay: 0.46s; }
.hero-reveal:nth-child(5) { animation-delay: 0.58s; }
.hero-reveal:nth-child(6) { animation-delay: 0.7s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TYPOGRAPHY */

.eyebrow,
.section-label {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

h1 {
  max-width: 1050px;
  margin: 18px 0;
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 680px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* FORM */

.hero-form {
  display: flex;
  max-width: 540px;
  margin-top: 30px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.hero-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 0 18px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.hero-form input::placeholder {
  color: rgba(243, 241, 232, 0.55);
}

.hero-form button {
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 800;
  background: var(--accent);
  color: #111;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.form-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* BUTTONS */

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: #111;
}

.button.secondary {
  border: 1px solid var(--border);
}

/* PAGE BUTTON SPACING */

.problem-button-wrap,
.metabolic-button-wrap {
  margin-top: 42px;
}

/* PAGE SPECIFIC BUTTON COLORS */

a.button.primary.problem-button {
  background-color: #f26a21 !important;
  color: #140b06 !important;
  box-shadow: 0 0 24px rgba(242,106,33,.22);
}

a.button.primary.problem-button:hover {
  box-shadow: 0 0 36px rgba(242,106,33,.42);
}

a.button.primary.metabolic-button {
  background-color: #7cecff !important;
  color: #071114 !important;
  box-shadow: 0 0 24px rgba(124,236,255,.22);
}

a.button.primary.metabolic-button:hover {
  box-shadow: 0 0 36px rgba(124,236,255,.42);
}

/* SECTIONS */

.scroll-note {
  margin-top: 70px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.intro,
.deep-section,
.cards,
.start {
  padding: 110px 5vw;
}

.dark-section {
  background: rgba(8, 9, 8, 0.55);
  backdrop-filter: blur(4px);
}

.intro h2,
.deep-section h2,
.cards h2,
.start h2 {
  max-width: 950px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 18px 0 28px;
}

.intro p,
.deep-section p,
.start p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* GRID */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat-card {
  background: rgba(17, 20, 17, 0.84);
  backdrop-filter: blur(6px);
  padding: 44px 5vw;
}

.stat-number {
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.info-card {
  background: rgba(17, 20, 17, 0.82);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(8px);
}

/* FOOTER */

.site-footer {
  padding: 30px 5vw;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  background: rgba(8, 9, 8, 0.75);
}

/* MOBILE */

@media (max-width: 900px) {

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 5vw;
    right: 5vw;
    flex-direction: column;
    padding: 22px;
    background: var(--panel);
    border-radius: 18px;
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .stats,
  .two-column,
  .card-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
    letter-spacing: -0.02em;
  }
}

/* CONTACT PAGE */

.contact-page {
  min-height: 100vh;
  padding: 140px 5vw 80px;
  background: rgba(8, 9, 8, 0.72);
  position: relative;
  z-index: 2;
}

.contact-section {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.contact-section h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 18px 0;
}

.contact-form {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
/* PROBLEM PAGE CHART */

.problem-chart-wrap {
  margin-top: 90px;
  max-width: 1100px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(242,106,33,.08), transparent 40%),
    rgba(255,255,255,.02);
  backdrop-filter: blur(8px);
}

.problem-chart-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.problem-chart-header h3 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 10px 0 0;
  max-width: 520px;
}

.problem-chart-header p {
  margin: 0;
  color: rgba(244,239,231,.6);
  line-height: 1.7;
  font-size: .98rem;
}

.problem-chart {
  position: relative;
  overflow-x: auto;
}

.problem-chart svg {
  width: 100%;
  min-width: 850px;
  height: auto;
  display: block;
}

.chart-axis {
  stroke: rgba(255,255,255,.18);
  stroke-width: 2;
}

.chart-grid-line {
  stroke: rgba(255,255,255,.06);
  stroke-width: 1;
}

.chart-label {
  fill: rgba(244,239,231,.55);
  font-size: 14px;
}

.chart-line {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.upf-line {
  stroke: #f26a21;
  filter: drop-shadow(0 0 10px rgba(242,106,33,.45));
}

.disease-line {
  stroke: #d6ff63;
  filter: drop-shadow(0 0 10px rgba(214,255,99,.35));
}

.upf-dot {
  fill: #f26a21;
}

.disease-dot {
  fill: #d6ff63;
}

.chart-line-label {
  font-size: 16px;
  font-weight: 700;
}

.upf-text {
  fill: #f26a21;
}

.disease-text {
  fill: #d6ff63;
}

.chart-note {
  margin-top: 18px;
  color: rgba(244,239,231,.5);
  font-size: .92rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .problem-chart-header {
    grid-template-columns: 1fr;
  }
}