/* ==========================================================================
   Peptilab — design tokens
   ========================================================================== */
:root {
  --bg: #05070c;
  --bg-alt: #090d16;
  --bg-elevated: #0d1424;
  --panel: #0f1729;
  --panel-border: rgba(201, 162, 39, 0.16);
  --hairline: rgba(255, 255, 255, 0.08);

  --navy: #0f1f3d;
  --navy-mid: #16244a;
  --navy-light: #2b4a86;
  --navy-glow: #3a5ca8;

  --gold: #c9a227;
  --gold-bright: #e8c766;
  --gold-dim: rgba(201, 162, 39, 0.14);

  --text: #eef1f6;
  --text-muted: #9aa4bd;
  --text-faint: #7b86a5;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; color: #fdfdfb; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Global fixed DNA background — spans the entire page, not just one section
   ========================================================================== */
#site-dna-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.text-gold { color: var(--gold-bright); }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #171100;
}
.btn-gold:hover { background: linear-gradient(180deg, #f0d27f, var(--gold-bright)); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.btn-lg { padding: 15px 30px; font-size: 15.5px; }

/* ==========================================================================
   Access bar
   ========================================================================== */
.access-bar {
  position: relative;
  z-index: 1;
  background: rgba(15, 31, 61, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
  text-align: center;
  padding: 9px 16px;
}
.access-bar p {
  font-size: 13px;
  color: #cdd6ea;
  letter-spacing: 0.01em;
}
.access-bar strong { color: var(--gold-bright); font-weight: 600; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-mark { width: 32px; height: 32px; object-fit: contain; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: #fdfdfb;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 150ms var(--ease);
  cursor: pointer;
}
.main-nav a:hover { color: var(--gold-bright); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,12,0.25) 0%, rgba(5,7,12,0.45) 55%, rgba(5,7,12,0.75) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 70px;
  padding-bottom: 90px;
  max-width: 760px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--gold-bright); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-disclaimer {
  font-size: 12.5px;
  color: var(--text-faint);
  max-width: 520px;
  line-height: 1.6;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--gold-bright);
  border-radius: 2px;
  animation: scrollcue 1.8s infinite var(--ease);
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  background: rgba(9, 13, 22, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-bright);
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 110px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 72px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 22px; max-width: 520px; }
.about-copy p { color: var(--text-muted); margin-bottom: 16px; max-width: 560px; }
.about-points { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text);
}
.about-points .icon { color: var(--gold-bright); margin-top: 2px; }

.about-visual { display: flex; justify-content: center; }
.helix-badge { width: 260px; }
.helix-badge-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  fill: #fdfdfb;
}
.helix-badge-txt {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  fill: var(--gold-bright);
}

/* ==========================================================================
   Compliance
   ========================================================================== */
.compliance {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 31, 61, 0.72) 0%, rgba(10, 20, 40, 0.8) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 100px 0;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}
.compliance-inner { max-width: 720px; }
.compliance h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 22px; color: #fdfdfb; }
.compliance p { color: #c3cce3; margin-bottom: 16px; font-size: 15px; }
.compliance p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Catalog
   ========================================================================== */
.catalog { padding: 110px 0; }
.section-heading { max-width: 640px; margin-bottom: 46px; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 14px; margin-bottom: 16px; }
.section-sub { color: var(--text-muted); font-size: 15px; }

.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 40px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
}
.search-field .icon { color: var(--text-faint); }
.search-field input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--font-body);
}
.search-field input:focus { outline: none; }
.search-field input::placeholder { color: var(--text-faint); }

.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tab-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.tab-btn:hover { border-color: var(--gold-dim); color: var(--text); }
.tab-btn[aria-selected="true"] {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.product-card:hover {
  border-color: var(--panel-border);
  transform: translateY(-2px);
}
.product-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #fdfdfb;
  margin-bottom: 2px;
}
.product-note {
  display: block;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.product-presentations {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c3cce3;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 5px 9px;
  white-space: nowrap;
}
.catalog-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}
.category-heading {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding-top: 18px;
  margin-bottom: -4px;
  border-top: 1px solid var(--hairline);
}
.category-heading:first-child { border-top: none; padding-top: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 14px 0 18px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 34px; max-width: 460px; }

.info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.info-block:last-child { border-bottom: 1px solid var(--hairline); }
.info-block .icon { color: var(--gold-bright); margin-top: 2px; }
.info-block a:hover { color: var(--gold-bright); }
.info-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.info-sub {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 0; }
.form-row.two-col > div { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-row label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
  transition: border-color 180ms var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.checkbox-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 24px;
}
.checkbox-row input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.checkbox-row label { font-size: 13px; line-height: 1.5; }
.hidden-field { position: absolute; left: -9999px; }
.btn-submit { width: 100%; }
.btn-submit[disabled] { opacity: 0.6; cursor: not-allowed; }
.form-status {
  margin-top: 14px;
  font-size: 13.5px;
  min-height: 1.2em;
}
.form-status.success { color: #6fd48a; }
.form-status.error { color: #e88a8a; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: rgba(9, 13, 22, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--hairline);
  padding: 70px 0 0;
}
.footer-logo { height: 84px; width: auto; margin-bottom: 4px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand p { color: var(--text-muted); font-size: 13.5px; margin-top: 14px; max-width: 280px; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-muted); }
.footer-latam { margin-top: 4px; font-size: 12.5px; color: var(--text-faint); line-height: 1.6; }
.footer-latam a { color: var(--text-muted); }
.footer-latam a:hover { color: var(--gold-bright); }
.footer-col a:hover { color: var(--gold-bright); }
.footer-legal p { color: var(--text-faint); font-size: 12.5px; line-height: 1.6; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .helix-badge { width: 180px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5,7,12,0.98);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--hairline);
    gap: 18px;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding-bottom: 30px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .hero { min-height: 100vh; }
  .contact-form { padding: 26px; }
}
