/* ============================================================
   PEPTIDE MAG — Editorial Peptide Intelligence
   peptidemag.com
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #f8f9fb;
  --bg-secondary: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f6f7f9;
  --bg-input: #f2f3f6;
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-dim: rgba(37, 99, 235, 0.08);
  --accent-glow: rgba(37, 99, 235, 0.18);
  --accent-hover: #1d4ed8;
  --teal: #0d9488;
  --teal-dim: rgba(13, 148, 136, 0.08);
  --rose: #be3c78;
  --violet: #7c3aed;
  --emerald: #059669;
  --cat-weight-loss: #2563eb;
  --cat-recovery: #0d9488;
  --cat-anti-aging: #be3c78;
  --cat-performance: #7c3aed;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;
  --border: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(13, 148, 136, 0.3);
  --glass-bg: rgba(250, 249, 247, 0.88);
  --glass-border: rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --radius-lg: 16px;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal), var(--violet), var(--rose));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
}

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

/* Grain texture overlay — subtle on light */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-bright); }

img { max-width: 100%; display: block; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

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

section {
  padding: 6rem 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.nav-logo-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  text-decoration: none;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-guides-link {
  color: var(--accent) !important;
  font-weight: 500 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.35; transform: scale(1); }
  90% { opacity: 0.05; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0.3); }
}

.particle:nth-child(1) { left: 10%; animation-duration: 14s; animation-delay: 0s; width: 2px; height: 2px; }
.particle:nth-child(2) { left: 20%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(3) { left: 35%; animation-duration: 12s; animation-delay: 4s; width: 4px; height: 4px; }
.particle:nth-child(4) { left: 45%; animation-duration: 20s; animation-delay: 1s; width: 2px; height: 2px; }
.particle:nth-child(5) { left: 55%; animation-duration: 15s; animation-delay: 3s; }
.particle:nth-child(6) { left: 65%; animation-duration: 17s; animation-delay: 5s; width: 2px; height: 2px; }
.particle:nth-child(7) { left: 75%; animation-duration: 13s; animation-delay: 2.5s; width: 4px; height: 4px; }
.particle:nth-child(8) { left: 85%; animation-duration: 19s; animation-delay: 0.5s; }
.particle:nth-child(9) { left: 50%; animation-duration: 16s; animation-delay: 6s; width: 2px; height: 2px; }
.particle:nth-child(10) { left: 30%; animation-duration: 21s; animation-delay: 3.5s; }
.particle:nth-child(11) { left: 90%; animation-duration: 14s; animation-delay: 7s; width: 2px; height: 2px; }
.particle:nth-child(12) { left: 5%; animation-duration: 22s; animation-delay: 1.5s; }

.hero-gradient {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}

.hero-gradient-1 {
  top: -200px;
  right: -100px;
  background: var(--accent);
}

.hero-gradient-2 {
  bottom: -200px;
  left: -100px;
  background: var(--teal);
}

.hero-gradient-3 {
  top: 30%;
  left: 40%;
  width: 400px;
  height: 400px;
  background: var(--violet);
  opacity: 0.06;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-bright);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
}

.btn-primary svg { width: 16px; height: 16px; }

/* --- Peptide Library --- */
#peptides {
  background: linear-gradient(135deg, #eef2f7 0%, #f0f2f5 40%, #f2eef5 100%);
  position: relative;
}

#peptides::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), rgba(13, 148, 136, 0.2), rgba(124, 58, 237, 0.2), transparent);
}

.library-header {
  margin-bottom: 3rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.filter-tab {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.2rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.filter-tab[data-filter="weight-loss"].active { background: rgba(37, 99, 235, 0.1); border-color: rgba(37, 99, 235, 0.3); color: #2563eb; }
.filter-tab[data-filter="recovery"].active { background: rgba(13, 148, 136, 0.1); border-color: rgba(13, 148, 136, 0.3); color: #0d9488; }
.filter-tab[data-filter="anti-aging"].active { background: rgba(190, 60, 120, 0.1); border-color: rgba(190, 60, 120, 0.3); color: #be3c78; }
.filter-tab[data-filter="performance"].active { background: rgba(124, 58, 237, 0.1); border-color: rgba(124, 58, 237, 0.3); color: #7c3aed; }

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

.peptide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.peptide-card[data-category="weight-loss"] { border-left-color: var(--cat-weight-loss); }
.peptide-card[data-category="recovery"] { border-left-color: var(--cat-recovery); }
.peptide-card[data-category="anti-aging"] { border-left-color: var(--cat-anti-aging); }
.peptide-card[data-category="performance"] { border-left-color: var(--cat-performance); }

.peptide-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: border-color var(--transition);
  pointer-events: none;
}

.peptide-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.peptide-card[data-category="weight-loss"]:hover { box-shadow: 0 16px 48px rgba(37, 99, 235, 0.1); }
.peptide-card[data-category="recovery"]:hover { box-shadow: 0 16px 48px rgba(13, 148, 136, 0.1); }
.peptide-card[data-category="anti-aging"]:hover { box-shadow: 0 16px 48px rgba(190, 60, 120, 0.1); }
.peptide-card[data-category="performance"]:hover { box-shadow: 0 16px 48px rgba(124, 58, 237, 0.1); }

.peptide-card:hover::before {
  border-color: var(--accent-glow);
}

.peptide-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.peptide-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
}

.peptide-badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
}

.badge-weight-loss {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-recovery {
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.badge-anti-aging {
  background: rgba(190, 60, 120, 0.1);
  color: #be3c78;
  border: 1px solid rgba(190, 60, 120, 0.25);
}

.badge-performance {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.peptide-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.peptide-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition), color var(--transition);
}

.peptide-card:hover .peptide-link { gap: 0.7rem; }

.peptide-link:hover {
  color: var(--accent-hover, #1d4ed8);
}

/* --- Calculator --- */
#calculator {
  background: var(--bg-primary);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.calc-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.calc-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.input-wrap:focus-within {
  border-color: var(--border-accent);
}

.input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  min-width: 0;
  -moz-appearance: textfield;
}

.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-unit {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 1rem;
  white-space: nowrap;
  user-select: none;
}

.input-stepper {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.input-stepper button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  line-height: 1;
  transition: color var(--transition), background var(--transition);
}

.input-stepper button:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.input-stepper button:first-child {
  border-bottom: 1px solid var(--border);
}

/* Results */
.calc-results {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.result-item:last-child { border-bottom: none; }

.result-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.result-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
}

.result-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}

/* Syringe visual */
.syringe-visual {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.syringe-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.syringe-container {
  position: relative;
  height: 32px;
  background: var(--bg-input);
  border-radius: 100px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.syringe-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--accent), var(--violet));
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
  max-width: 100%;
  position: relative;
}

.syringe-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 100px 100px 0;
}

.syringe-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.syringe-tick {
  width: 1px;
  height: 30%;
  background: rgba(0, 0, 0, 0.1);
  align-self: flex-end;
  margin-bottom: 4px;
}

.syringe-tick:nth-child(5n+1) { height: 50%; background: rgba(0, 0, 0, 0.15); }

.syringe-readout {
  text-align: center;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Protocols --- */
#protocols {
  background: linear-gradient(135deg, #f0f2f5 0%, #eef1f7 50%, #f0eef5 100%);
  position: relative;
}

#protocols::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15), transparent);
}

.protocols-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.protocol-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

.protocol-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.protocol-header:hover {
  background: rgba(0, 0, 0, 0.02);
}

.protocol-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.protocol-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.protocol-icon svg {
  width: 20px;
  height: 20px;
}

.protocol-icon-wl { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.protocol-icon-rc { background: rgba(13, 148, 136, 0.1); color: #0d9488; }
.protocol-icon-aa { background: rgba(190, 60, 120, 0.1); color: #be3c78; }
.protocol-icon-pf { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }

.protocol-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
}

.protocol-toggle {
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.protocol-card.open .protocol-toggle {
  transform: rotate(180deg);
}

.protocol-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.protocol-card.open .protocol-body {
  max-height: 600px;
}

.protocol-content {
  padding: 0 2rem 2rem;
  border-top: 1px solid var(--border);
}

.protocol-peptides {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
}

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

.protocol-detail {
  margin-bottom: 0.75rem;
}

.protocol-detail-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.protocol-detail-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.protocol-note {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(37, 99, 235, 0.04);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- About / Disclaimer --- */
#about {
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.disclaimer-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 3px solid var(--accent);
}

.disclaimer-box h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.disclaimer-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- Newsletter --- */
.newsletter-section {
  background: var(--bg-primary);
  padding: 5rem 0;
}

.newsletter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--teal)) 1;
  border-image-slice: 1 1 0 1;
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.newsletter-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.newsletter-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-inputs {
  display: flex;
  gap: 0.75rem;
}

.newsletter-inputs input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-inputs input:focus {
  border-color: var(--border-accent);
}

.newsletter-inputs input::placeholder {
  color: var(--text-muted);
}

.newsletter-inputs input:-webkit-autofill,
.newsletter-inputs input:-webkit-autofill:hover,
.newsletter-inputs input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px var(--bg-input) inset;
  -webkit-text-fill-color: var(--text-primary);
  caret-color: var(--text-primary);
}

.newsletter-btn {
  align-self: flex-start;
}

.newsletter-status {
  font-size: 0.85rem;
  min-height: 1.2em;
}

.newsletter-status.success {
  color: #0a8f6c;
}

.newsletter-status.error {
  color: #dc2626;
}

@media (max-width: 768px) {
  .newsletter-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }
  .newsletter-inputs {
    flex-direction: column;
  }
}

/* --- Footer --- */
.footer {
  background: #111827;
  border-top: none;
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-brand {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f3f4f6;
}

.footer-tagline {
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: #9ca3af;
  transition: color var(--transition);
}

.footer-links a:hover { color: #f3f4f6; }

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  background: rgba(59, 130, 246, 0.1);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-disclaimer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom {
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #6b7280;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .peptide-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-layout { grid-template-columns: 1fr; }
  .protocols-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 1.25rem;
  }
  .nav-toggle { display: block; }

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

  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero-desc { font-size: 1rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-social { justify-content: center; }
}

/* --- Contact Modal --- */
.contact-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.contact-overlay.open {
  display: flex;
}

.contact-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.contact-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.contact-modal-header h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.contact-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 4px;
  line-height: 1;
}

.contact-modal-close:hover {
  color: var(--text-primary);
}

.contact-field {
  margin-bottom: 1rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}

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

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-muted);
}

.contact-status {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  min-height: 1.2em;
}

.contact-status.success { color: #0a8f6c; }
.contact-status.error { color: #dc2626; }

/* --- Sticky Scroll (Apple-style) --- */
.sticky-scroll {
  position: relative;
  padding: 0;
}

.sticky-scroll-inner {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 100vh;
}

.sticky-text {
  position: sticky;
  top: 0;
  width: 42%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 4rem;
  flex-shrink: 0;
}

.sticky-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.sticky-accent-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  margin-top: 1.5rem;
  border-radius: 2px;
}

.sticky-panels {
  width: 58%;
  padding: 20vh 0;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.sticky-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sticky-panel.panel-visible {
  opacity: 1;
  transform: translateY(0);
}

.sticky-panel-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.sticky-panel-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.sticky-panel p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Alt variant — subtle bg */
.sticky-scroll-alt {
  background: var(--bg-secondary);
}

.sticky-scroll-alt .sticky-panel {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Mobile: stack vertically, no sticky */
@media (max-width: 768px) {
  .sticky-scroll-inner {
    flex-direction: column;
    min-height: auto;
  }

  .sticky-text {
    position: relative;
    width: 100%;
    height: auto;
    padding: 4rem 0 2rem;
  }

  .sticky-heading {
    font-size: 2.2rem;
  }

  .sticky-panels {
    width: 100%;
    padding: 0 0 4rem;
    gap: 1.5rem;
  }

  .sticky-panel {
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
  }
}

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

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