/* Superstar Peptides — Design System
   Performance-athletic. Bold black. Electric lime. Sharp sans.
*/

:root {
  /* Core palette */
  --ink: #0A0A0A;
  --ink-2: #161616;
  --ink-3: #1F1F1F;
  --line: #2A2A2A;
  --line-soft: rgba(255,255,255,0.08);
  --paper: #FAFAF7;
  --paper-2: #F2F1EC;
  --paper-3: #E8E7E0;
  --muted: #6B6B66;
  --muted-2: #9A9A93;

  /* Soft feminine accent — warm dusty rose */
  --lime: #E8B5A8;
  --lime-deep: #C68B7C;
  --lime-glow: rgba(232,181,168,0.4);

  /* Secondary signals */
  --plasma: #FF4A1C;       /* warning / heat */
  --ice: #6FD8FF;          /* cool / recovery */
  --gold: #E8C76B;         /* premium */

  /* Type */
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --font-body: "Inter", system-ui, sans-serif;

  /* Radius / shadow */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 0 rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 1px 0 rgba(0,0,0,0.04), 0 24px 48px rgba(0,0,0,0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* Type system */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow-lime {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  background: var(--lime);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.02;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .12s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--lime);
  color: var(--ink);
}
.btn-primary:hover { background: #f0c5b8; }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* Layout */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

/* Top promo bar */
.promo-bar {
  background: var(--lime);
  color: var(--ink);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 16px;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-3);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brandmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.brandmark .star {
  width: 22px; height: 22px;
  display: inline-block;
}
.nav-main {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-main a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.nav-main a:hover { color: var(--muted); }
.nav-main a.active::after {
  content: "";
  display: block;
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  margin: 4px auto 0;
}
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* BioReveal nav — star pill, sets it apart */
.nav-main a.nav-bioreveal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background .15s ease;
}
.nav-main a.nav-bioreveal:hover {
  background: var(--ink-3);
  color: var(--paper);
}
.nav-main a.nav-bioreveal .nav-star {
  color: var(--lime);
  font-size: 12px;
}
.nav-main a.nav-bioreveal.active::after {
  display: none;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--paper); font-size: 14px; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--lime); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer-disclaimer {
  margin-top: 24px;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.6;
  max-width: 900px;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--paper-3);
  overflow: hidden;
}
.card-dark {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

/* Vial — SVG-styled product graphic backdrop */
.vial-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.vial-stage svg { width: 60%; height: auto; }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  background: rgba(0,0,0,0.06);
  color: var(--ink);
}
.chip-dark {
  background: rgba(255,255,255,0.08);
  color: var(--paper);
}
.chip-lime {
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Marquee */
.marquee {
  background: var(--ink);
  color: var(--paper);
  border-block: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  align-items: center;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track .star {
  width: 18px; height: 18px;
  color: var(--lime);
  flex-shrink: 0;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Utility */
.flex { display: flex; }
.grid { display: grid; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.divider { height: 1px; background: var(--paper-3); }

/* Focus */
*:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* ============ MOBILE / TABLET ============ */

/* Tablet (≤960px): nav becomes more compact */
@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .nav-main { gap: 18px; }
  .nav-main a { font-size: 13px; }
  .section { padding: 72px 0; }
  .footer-top { grid-template-columns: 1fr 1fr !important; }
}

/* Mobile (≤760px): full responsive collapse */
@media (max-width: 760px) {
  /* Container + sectioning */
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-tight { padding: 36px 0; }

  /* Promo bar — tighten letter spacing so codes fit */
  .promo-bar { font-size: 10px; letter-spacing: 0.10em; padding: 8px 12px; }

  /* Header — collapse desktop nav, keep brand + BioReveal pill + Find my stack */
  .site-header-inner { height: 60px; gap: 10px; }
  .brandmark { font-size: 15px; }
  .brandmark .star { width: 18px; height: 18px; }
  .nav-main { display: none !important; }
  /* Show only BioReveal pill from nav, anchored to right */
  .nav-cta .btn { height: 36px; padding: 0 12px; font-size: 12px; }
  /* Hide Log in on mobile to keep header tidy */
  .nav-cta .btn-ghost { display: none; }

  /* Type — already uses clamp() but tighten line-height */
  .display-xl { letter-spacing: -0.035em; line-height: 0.94; }
  .display-lg { line-height: 0.96; }

  /* Buttons — full-width feel for primary CTAs in stacked layouts */
  .btn-lg { height: 50px; padding: 0 20px; font-size: 15px; }

  /* Generic grid collapses — !important beats inline styles */
  .m-grid-2 { grid-template-columns: 1fr !important; gap: 32px !important; align-items: start !important; }
  .m-grid-3 { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .m-grid-4 { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  /* Hero — text on top, visual below */
  .m-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    align-items: start !important;
    padding-bottom: 16px !important;
  }

  /* StackCTA — keep dark gradient, but tighten internal padding */
  .m-stack-cta { gap: 36px !important; }

  /* Protocol card — image right collapses below the body copy */
  .m-protocol-card {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .m-protocol-card > div:last-child { width: 100% !important; max-width: 240px; }

  /* Product page tab strip — horizontal scroll instead of cramming */
  .m-tabs-strip {
    grid-template-columns: repeat(4, max-content) !important;
    overflow-x: auto;
    gap: 8px !important;
    scrollbar-width: none;
  }
  .m-tabs-strip::-webkit-scrollbar { display: none; }

  /* Footer — single column; brand block first */
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-bottom: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .site-footer { padding: 56px 0 24px; }

  /* Marquee — slow + smaller */
  .marquee-track { font-size: 18px; gap: 36px; }
  .marquee-track span { gap: 36px; }
}

/* Small phones (≤420px): final tightening */
@media (max-width: 420px) {
  .display-xl { font-size: 56px !important; }
  .m-grid-3 { grid-template-columns: 1fr !important; }
  .nav-cta { gap: 6px; }
}

