/* ============================================================
   PEPTIDE HUB — Global Stylesheet
   Design: Modern Minimalist | Dark Theme with Accent Neon
   ============================================================ */

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

:root {
  --bg:        #0a0c0f;
  --bg2:       #111418;
  --bg3:       #181d24;
  --card:      #141920;
  --border:    rgba(255,255,255,0.07);
  --accent:    #00e5a0;
  --accent2:   #0099ff;
  --accent3:   #9b5de5;
  --text:      #e8eaf0;
  --text-muted:#8892a4;
  --text-dim:  #4a5568;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 8px 40px rgba(0,0,0,0.5);
  --glow:      0 0 30px rgba(0,229,160,0.15);
  --font:      'Inter', 'Segoe UI', sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:     70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ---------- SELECTION ---------- */
::selection { background: rgba(0,229,160,0.25); color: var(--accent); }

/* ---------- TYPOGRAPHY ---------- */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-muted); }

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

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

/* ---------- UTILITY ---------- */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 820px;  margin: 0 auto; padding: 0 24px; }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid rgba(0,229,160,0.3);
  color: var(--accent); background: rgba(0,229,160,0.07);
}
.tag.blue   { border-color: rgba(0,153,255,0.3);  color: var(--accent2); background: rgba(0,153,255,0.07); }
.tag.purple { border-color: rgba(155,93,229,0.3); color: var(--accent3); background: rgba(155,93,229,0.07); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 100px;
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #000;
  box-shadow: 0 0 24px rgba(0,229,160,0.3);
}
.btn-primary:hover { background: #fff; color: #000; box-shadow: 0 0 40px rgba(255,255,255,0.2); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--text-muted); padding: 10px 20px;
}
.btn-ghost:hover { color: var(--accent); }

.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; display: block;
}
.section-title { margin-bottom: 16px; }
.section-sub   { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; }

.divider {
  width: 48px; height: 3px; background: var(--accent);
  border-radius: 2px; margin: 20px 0;
}

/* ---------- GRID NOISE BG ---------- */
.noise-bg { position: relative; }
.noise-bg::before {
  content: '';
  position: absolute; inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.4; z-index: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
  overflow: visible;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  gap: 32px;
  overflow: visible;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.nav-links > li > a,
.mega-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.mega-trigger:hover,
.nav-links > li > a.active {
  color: var(--text);
  background: var(--bg3);
}

.nav-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
  display: inline-block;
}
.has-mega.open .nav-arrow { transform: rotate(180deg); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ============================================================
   MEGA-MENU
   ============================================================ */
.has-mega { position: static; }

.mega-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.22s ease;
  z-index: 999;
}
.has-mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mega-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mega-col a {
  padding: 7px 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  display: block;
}
.mega-col a:hover {
  color: var(--text);
  background: var(--bg3);
  padding-left: 14px;
}

.mega-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.mega-footer-link {
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}
.mega-footer-link:hover {
  color: var(--text);
  border-color: rgba(0,229,160,0.4);
  background: rgba(0,229,160,0.06);
}
.mega-footer-all {
  color: var(--accent);
  border-color: rgba(0,229,160,0.3);
}
.mega-footer-all:hover {
  background: rgba(0,229,160,0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   HAMBURGER
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.hamburger:hover { background: var(--bg3); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
  flex-shrink: 0;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-close {
  width: 32px; height: 32px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.drawer-close:hover { color: var(--text); border-color: rgba(0,229,160,0.4); }

.drawer-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.drawer-link {
  display: block;
  padding: 12px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}
.drawer-link:hover,
.drawer-link.active {
  color: var(--text);
  background: var(--bg3);
  border-left-color: var(--accent);
}

.drawer-accordion {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 4px 0;
}
.drawer-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.drawer-accordion-btn:hover { color: var(--text); background: var(--bg3); }

.drawer-arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  display: inline-block;
}
.drawer-accordion-btn.open .drawer-arrow { transform: rotate(180deg); }

.drawer-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg3);
}
.drawer-accordion-content.open { max-height: 600px; }

.drawer-sub-group {
  padding: 12px 20px 8px;
  border-bottom: 1px solid var(--border);
}
.drawer-sub-group:last-child { border-bottom: none; }

.drawer-sub-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.drawer-sub-link {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}
.drawer-sub-link:hover { color: var(--accent); }

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ============================================================
   HERO — INDEX
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  position: relative; overflow: hidden;
}

.hero-orbs {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent); top: -100px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: var(--accent2); bottom: -80px; left: -80px; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: var(--accent3); top: 40%; left: 40%; animation-delay: -6s; }

@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-30px) scale(1.05); }
  66%      { transform: translate(-20px,20px) scale(0.95); }
}

.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(0,229,160,0.25);
  background: rgba(0,229,160,0.06);
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 { margin-bottom: 24px; }
.hero h1 .line-highlight {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc { font-size: 1.15rem; max-width: 540px; margin-bottom: 36px; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding: 24px 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(10px);
  max-width: fit-content;
}
.stat-item { text-align: center; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-value span { color: var(--accent); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================================
   SECTIONS GENERIC
   ============================================================ */
.section { padding: 100px 0; }
.section-header { margin-bottom: 60px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* ============================================================
   PEPTIDE CARDS
   ============================================================ */
.peptide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.peptide-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all var(--transition);
  position: relative; overflow: hidden; cursor: pointer;
}
.peptide-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,160,0.05), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.peptide-card:hover { border-color: rgba(0,229,160,0.3); transform: translateY(-4px); box-shadow: var(--glow), var(--shadow); }
.peptide-card:hover::before { opacity: 1; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,229,160,0.2), rgba(0,153,255,0.1));
  border: 1px solid rgba(0,229,160,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.card-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; }
.badge-popular    { background: rgba(0,229,160,0.12); color: var(--accent); border: 1px solid rgba(0,229,160,0.25); }
.badge-research   { background: rgba(0,153,255,0.12); color: var(--accent2); border: 1px solid rgba(0,153,255,0.25); }
.badge-anti-aging { background: rgba(155,93,229,0.12); color: var(--accent3); border: 1px solid rgba(155,93,229,0.25); }

.card-name    { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.card-formula { font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); margin-bottom: 14px; }
.card-desc    { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.card-tags    { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.card-tag     { font-size: 0.72rem; padding: 3px 10px; border-radius: 100px; background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }
.card-arrow   { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--accent); transition: gap var(--transition); }
.peptide-card:hover .card-arrow { gap: 10px; }

/* ============================================================
   SEARCH & FILTER BAR
   ============================================================ */
.search-filter {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-bottom: 40px;
}
.search-box { flex: 1; min-width: 220px; position: relative; }
.search-box input {
  width: 100%; padding: 12px 16px 12px 44px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.92rem; font-family: var(--font);
  outline: none; transition: border-color var(--transition);
}
.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: var(--text-dim); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 1rem; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg3);
  color: var(--text-muted); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.filter-pill:hover, .filter-pill.active { border-color: var(--accent); color: var(--accent); background: rgba(0,229,160,0.07); }

/* ============================================================
   HERO PEPTIDE PAGE (individual)
   ============================================================ */
.peptide-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.peptide-hero-inner {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 48px; align-items: start; margin-top: 28px;
}
.peptide-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.peptide-stats-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.psb-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.psb-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.84rem;
}
.psb-row:last-of-type { border-bottom: none; }
.psb-label { color: var(--text-muted); }
.psb-value { font-weight: 600; color: var(--text); text-align: right; }
.psb-value.accent { color: var(--accent); }

/* ============================================================
   TOC
   ============================================================ */
.toc {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 40px;
}
.toc-title {
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px;
}
.toc ol { list-style: none; counter-reset: toc-counter; padding-left: 0; margin: 0; }
.toc li { counter-increment: toc-counter; display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.toc li::before { content: counter(toc-counter, decimal-leading-zero); font-size: 0.72rem; font-family: var(--mono); color: var(--accent); min-width: 22px; padding-top: 2px; flex-shrink: 0; }
.toc a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.toc a:hover { color: var(--accent); }

/* ============================================================
   PROSE
   ============================================================ */
.prose { min-width: 0; line-height: 1.8; }
.prose h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700; letter-spacing: -0.01em;
  margin: 56px 0 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 36px 0 14px; color: #fff; }
.prose h4 { margin: 28px 0 10px; font-size: 1rem; }
.prose p  { margin-bottom: 18px; color: var(--text-muted); line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 20px 20px; color: var(--text-muted); }
.prose li { margin-bottom: 8px; line-height: 1.7; }
.prose strong { color: var(--text); }

/* ============================================================
   CALLOUT BOXES
   ============================================================ */
.callout {
  padding: 16px 20px; border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  background: rgba(0,229,160,0.06); margin: 24px 0;
}
.callout.warning { border-color: #f59e0b; background: rgba(245,158,11,0.06); }
.callout.info    { border-color: var(--accent2); background: rgba(0,153,255,0.06); }
.callout p { margin: 0; color: var(--text); font-size: 0.9rem; }

/* ============================================================
   DATA TABLES
   ============================================================ */
.data-table-wrap {
  width: 100%; overflow-x: auto;
  margin: 28px 0; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 0; }
.data-table th {
  background: var(--bg3); color: var(--text); font-weight: 600;
  padding: 13px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-muted); vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.data-table td:first-child { color: var(--text); font-weight: 500; }

/* ============================================================
   CONTENT LAYOUT (article + sidebar)
   ============================================================ */
#content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

#sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================================================
   SPONSOR BANNER
   ============================================================ */
.sponsor-banner {
  background: linear-gradient(135deg, rgba(0,229,160,0.06), rgba(0,153,255,0.06));
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  margin: 32px 0; flex-wrap: wrap;
}
.sponsor-banner .sb-logo {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: #000; flex-shrink: 0;
}
.sb-content { flex: 1; min-width: 180px; }
.sb-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 4px; }
.sb-name  { font-weight: 700; color: #fff; font-size: 0.95rem; }
.sb-desc  { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   SPONSORS / PARTENAIRES
   ============================================================ */
.sponsors-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 60px 0; background: var(--bg2); }
.sponsor-label { text-align: center; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 36px; }
.sponsors-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.sponsor-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 32px;
  display: flex; align-items: center; gap: 14px;
  transition: all var(--transition); cursor: pointer;
  min-width: 200px; justify-content: center;
}
.sponsor-card:hover { border-color: rgba(0,229,160,0.3); box-shadow: var(--glow); transform: translateY(-2px); }
.sponsor-logo-placeholder {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: #000;
}
.sponsor-info-name { font-weight: 700; color: #fff; font-size: 0.95rem; }
.sponsor-info-sub  { font-size: 0.75rem; color: var(--text-dim); }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.blog-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all var(--transition);
}
.blog-card:hover { border-color: rgba(0,229,160,0.25); transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.blog-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--card));
}
.blog-card-body { padding: 24px; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.blog-date { font-size: 0.78rem; color: var(--text-dim); }
.blog-read { font-size: 0.78rem; color: var(--text-dim); }
.blog-card h3 { font-size: 1rem; margin-bottom: 10px; color: #fff; line-height: 1.45; }
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { font-size: 0.87rem; margin-bottom: 20px; line-height: 1.6; }

/* ============================================================
   FEATURED ARTICLE
   ============================================================ */
.featured-article {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  margin-bottom: 60px; transition: all var(--transition);
}
.featured-article:hover { border-color: rgba(0,229,160,0.25); box-shadow: var(--shadow); }
.featured-img {
  background: linear-gradient(135deg, rgba(0,229,160,0.1), rgba(0,153,255,0.1));
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative;
}
.featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: 1.6rem; margin-bottom: 16px; }
.featured-body h2 a { color: inherit; }
.featured-body h2 a:hover { color: var(--accent); }
.featured-body p { margin-bottom: 24px; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, rgba(0,229,160,0.06), rgba(0,153,255,0.04));
  border: 1px solid rgba(0,229,160,0.15); border-radius: var(--radius);
  padding: 60px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,229,160,0.12), transparent 70%);
  pointer-events: none;
}
.newsletter-section h2 { margin-bottom: 12px; }
.newsletter-section p  { max-width: 480px; margin: 0 auto 32px; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 260px; max-width: 380px;
  padding: 14px 20px; border-radius: 100px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); font-size: 0.92rem; font-family: var(--font);
  outline: none; transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-dim); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); margin-bottom: 8px;
}
.footer-col h5 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.875rem; transition: color 0.15s ease; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); margin-top: 14px; max-width: 280px; line-height: 1.7; }

.footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-dim); }

.disclaimer {
  background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 28px;
}
.disclaimer p { font-size: 0.8rem; color: #d4a017; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 1001;
  height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%; transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0,229,160,0.5);
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  position: relative;
}
.page-header h1 { margin-bottom: 16px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.breadcrumb a { font-size: 0.83rem; color: var(--text-dim); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-dim); font-size: 0.83rem; }
.breadcrumb .current { font-size: 0.83rem; color: var(--text-muted); }

/* ============================================================
   RELATED PEPTIDES
   ============================================================ */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.related-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
  transition: all var(--transition); display: flex; gap: 14px; align-items: flex-start;
}
.related-card:hover { border-color: rgba(0,229,160,0.25); transform: translateY(-2px); }
.related-icon { font-size: 1.6rem; flex-shrink: 0; }
.related-name { font-weight: 600; color: #fff; font-size: 0.92rem; margin-bottom: 4px; }
.related-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   ABOUT LAYOUT
   ============================================================ */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger.visible > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0.05s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.1s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.15s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:0.2s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:0.25s; }
.stagger.visible > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay:0.3s; }

/* ============================================================
   IMAGE FLACON
   ============================================================ */
.visual-img-wrap.no-overlay .img-overlay { display: none; }
.visual-img-wrap.no-overlay img { object-fit: cover; width: 100%; height: 100%; }
.visual-img-wrap.no-overlay { border: none; background: transparent; box-shadow: none; }

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal-date {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-dim);
  margin-top: 16px;
}
.legal-box {
  margin-top: 20px; padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  background: rgba(0,229,160,0.06);
}
.legal-box.green { border-color: #22c55e; background: rgba(34,197,94,0.06); }
.legal-box p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-article { grid-template-columns: 1fr; }
  #content-layout { grid-template-columns: 1fr 240px; gap: 32px; }
}

@media (max-width: 900px) {
  .peptide-hero-inner { grid-template-columns: 1fr; }
  .peptide-stats-box { position: static; }
  #content-layout { grid-template-columns: 1fr !important; }
  #sidebar { position: static !important; top: auto; }
  .about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .hamburger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .hero-stats { gap: 24px; padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .newsletter-section { padding: 40px 24px; }
  .section { padding: 70px 0; }
  .data-table th, .data-table td { padding: 10px 12px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; text-align: center; }
  .peptide-grid, .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .search-filter { padding: 14px 16px; }
  h1 { font-size: 2rem; }
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .mobile-drawer,
  .drawer-overlay { display: none !important; }
}


/* ════════════════════════════════════════
   COOKIE BANNER
════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99999;
  background: rgba(10, 14, 26, 0.97);
  border-top: 1px solid rgba(0, 229, 160, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.5);
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner.hidden  { transform: translateY(110%); pointer-events: none; }

.cookie-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}
.cookie-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.cookie-text h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin: 0 0 6px; }
.cookie-text p  { font-size: 0.82rem; color: #94a3b8; margin: 0; line-height: 1.5; }
.cookie-text a  { color: #00e5a0; text-decoration: underline; }
.cookie-text a:hover { opacity: 0.8; }

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.cookie-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.cookie-btn-accept {
  background: linear-gradient(135deg, #00e5a0, #00b4d8);
  color: #0a0e1a;
}
.cookie-btn-essential {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.12);
}
.cookie-btn-essential:hover { border-color: rgba(255,255,255,0.25); color: #fff; }
.cookie-btn-settings {
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  padding: 6px 10px;
  text-decoration: underline;
  border: none;
}
.cookie-btn-settings:hover { color: #94a3b8; }

/* ── Modal ── */
#cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#cookie-modal.open { opacity: 1; pointer-events: all; }

.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}
.cookie-modal-box {
  position: relative;
  background: #0f1526;
  border: 1px solid rgba(0,229,160,0.15);
  border-radius: 16px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.cookie-modal-box h3 { font-size: 1.15rem; font-weight: 800; color: #fff; margin: 0 0 8px; }
.cookie-modal-box > p { font-size: 0.83rem; color: #94a3b8; margin: 0 0 24px; line-height: 1.6; }

.cookie-category {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.cookie-category-title { font-weight: 700; font-size: 0.9rem; color: #fff; }
.cookie-category p { font-size: 0.8rem; color: #64748b; margin: 0; line-height: 1.5; }

/* Toggle switch */
.cookie-toggle { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #1e293b;
  border-radius: 24px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #64748b;
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: rgba(0,229,160,0.15);
  border-color: rgba(0,229,160,0.3);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
  background: #00e5a0;
}
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: 0.5; cursor: not-allowed; }

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cookie-modal-actions .cookie-btn { flex: 1; min-width: 120px; text-align: center; }

@media (max-width: 600px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-modal-box { padding: 24px 18px; }
}

.hero-stats {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
}

.stat-item {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.stat-value {
  font-size: clamp(1.2rem, 4vw, 2rem);
  white-space: nowrap;
}

.stat-label {
  font-size: clamp(0.6rem, 2vw, 0.75rem);
  white-space: nowrap;
}
.hero-stats {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  width: 100%;
  justify-content: space-between;
}

.stat-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 16px 8px;
}

