/* ============================================
   ARETE BIOTECH — Design System
   ============================================ */

:root {
  /* Primary */
  --navy: #1B2A4A;
  --ivory: #F7F5F0;
  --gold: #C4963C;

  /* Secondary */
  --slate: #6B7B8D;
  --clay: #B85C38;
  --sage: #8FA89A;

  /* Utility */
  --white: #FFFFFF;
  --navy-light: #243556;
  --gold-dark: #A67D2E;
  --gold-light: #D4AD5A;
  --border: rgba(27, 42, 74, 0.08);
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 8px 32px rgba(27, 42, 74, 0.1);
  --shadow-hover: 0 8px 24px rgba(27, 42, 74, 0.12);

  /* Type */
  --font-heading: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: 120px;
  --container-max: 1200px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--ivory);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  padding: 14px 28px;
}

.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 12px 24px;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--ivory);
}

.btn-lg {
  font-size: 17px;
  padding: 18px 36px;
  border-radius: 10px;
}

.btn-sm {
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 6px;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo svg {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-cta {
  margin-left: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding: 160px 0 var(--section-pad);
  background: var(--ivory);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 50%, var(--navy) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 60% 80%, var(--navy) 0.5px, transparent 0.5px);
  background-size: 60px 60px, 80px 80px, 40px 40px;
}

.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 150, 60, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-headline {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--slate);
  margin-bottom: 36px;
  max-width: 640px;
  line-height: 1.6;
}

.hero-supporting {
  margin-top: 48px;
  font-size: 16px;
  color: var(--slate);
  max-width: 580px;
  line-height: 1.7;
}

/* ============================================
   SECTIONS (general)
   ============================================ */

.section {
  padding: var(--section-pad) 0;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 18px;
  color: var(--slate);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.6;
}

/* ============================================
   PROGRAMS GRID
   ============================================ */

.programs-section {
  background: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--ivory);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.program-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.program-card--featured {
  grid-column: 1 / -1;
  background: var(--navy);
  color: var(--ivory);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 0 24px;
  align-items: start;
  padding: 48px;
}

.program-card--featured .program-icon {
  grid-row: 1 / 3;
  align-self: start;
}

.program-card--featured .program-badge {
  grid-column: 2;
  background: var(--gold);
  color: var(--navy);
}

.program-card--featured .program-name {
  grid-column: 2;
  color: var(--ivory);
  font-size: 28px;
}

.program-card--featured .program-desc {
  grid-column: 2;
  color: rgba(247, 245, 240, 0.8);
  font-size: 17px;
}

.program-card--featured .btn {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
}

.program-card--featured .program-icon svg circle,
.program-card--featured .program-icon svg path {
  stroke: var(--gold);
}

.program-icon {
  margin-bottom: 16px;
}

.program-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--navy);
  margin-bottom: 12px;
}

.badge-soon {
  background: var(--sage);
  color: var(--white);
}

.program-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}

.program-desc {
  font-size: 15px;
  color: var(--slate);
  margin-bottom: 16px;
  line-height: 1.6;
}

.program-card--soon {
  opacity: 0.75;
  background: var(--ivory);
}

.program-card--soon:hover {
  opacity: 1;
}

.program-card--soon .program-name {
  margin-top: 8px;
}

/* ============================================
   DIFFERENCE
   ============================================ */

.difference-section {
  background: var(--ivory);
}

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

.diff-card {
  text-align: center;
  padding: 32px 16px;
}

.diff-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.diff-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
}

.diff-card p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.steps-section {
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  opacity: 0.15;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.step-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--navy);
}

.step p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}

/* ============================================
   SCIENCE
   ============================================ */

.science-section {
  background: var(--navy);
  color: var(--ivory);
}

.science-section .section-title {
  color: var(--ivory);
}

.science-body {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.science-body p {
  color: rgba(247, 245, 240, 0.8);
  margin-bottom: 16px;
  font-size: 17px;
}

.science-body strong {
  color: var(--gold);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat {
  padding: 24px;
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: rgba(247, 245, 240, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   PROGRAM DETAIL BLOCKS
   ============================================ */

.program-block {
  padding: 80px 0;
}

.bg-ivory {
  background: var(--ivory);
}

.bg-white {
  background: var(--white);
}

.program-detail-inner {
  max-width: 720px;
}

.program-detail-content h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.program-detail-content p {
  color: var(--slate);
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.7;
}

/* ============================================
   COMING SOON
   ============================================ */

.coming-soon-section {
  background: var(--ivory);
}

.coming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.coming-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.coming-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.coming-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.coming-card p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}

.notify-form {
  text-align: center;
}

.notify-form h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}

.email-capture {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-capture input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s;
}

.email-capture input:focus {
  outline: none;
  border-color: var(--gold);
}

.email-capture input::placeholder {
  color: var(--slate);
}

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar {
  background: var(--white);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}

/* ============================================
   FAQ
   ============================================ */

.faq-section {
  background: var(--ivory);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-group {
  margin-bottom: 40px;
}

.faq-group-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--gold);
}

.faq-q:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  margin-left: 16px;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 20px;
}

.faq-a p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.7;
}

/* ============================================
   FINAL CTA
   ============================================ */

.final-cta {
  background: var(--navy);
  text-align: center;
  padding: var(--section-pad) 24px;
}

.final-cta-headline {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.final-cta-sub {
  font-size: 18px;
  color: rgba(247, 245, 240, 0.7);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.final-cta .btn-gold {
  margin-bottom: 40px;
}

.final-cta-fine {
  font-size: 13px;
  color: rgba(247, 245, 240, 0.4);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: #141E33;
  color: rgba(247, 245, 240, 0.7);
  padding: 64px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.footer-brand svg {
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(247, 245, 240, 0.4);
  margin-bottom: 4px;
}

.footer-col a {
  font-family: var(--font-heading);
  font-size: 14px;
  color: rgba(247, 245, 240, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(247, 245, 240, 0.08);
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(247, 245, 240, 0.35);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 800px;
}

.footer-copy {
  font-family: var(--font-heading);
  font-size: 13px;
  color: rgba(247, 245, 240, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-card--featured {
    display: block;
    padding: 36px;
  }

  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .steps-grid::before {
    display: none;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }

  body {
    font-size: 16px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }

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

  .nav-link {
    font-size: 20px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 0 64px;
    min-height: auto;
  }

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

  .diff-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .diff-card {
    padding: 24px;
    text-align: left;
  }

  .diff-icon {
    justify-content: flex-start;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step {
    text-align: left;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 20px;
    align-items: start;
  }

  .step-number {
    grid-row: 1 / 4;
    align-self: start;
    margin-bottom: 0;
  }

  .step-icon {
    display: none;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .email-capture {
    flex-direction: column;
  }

  .trust-items {
    gap: 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 40px;
  }

  .program-block {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-headline {
    font-size: 32px;
  }

  .section-title {
    font-size: 26px;
  }

  .program-card {
    padding: 24px;
  }

  .program-card--featured {
    padding: 28px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat {
    padding: 16px;
  }

  .trust-items {
    justify-content: flex-start;
    gap: 16px;
  }

  .trust-item {
    font-size: 13px;
  }
}
