/* ═══════════════════════════════════════════════════
   DERMAPROTOCOL — CSS
   Dark, masculine, health-performance aesthetic
   ═══════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  /* Base palette */
  --bg:          #0A0A0A;
  --bg-elevated: #111111;
  --bg-card:     #161616;
  --bg-hover:    #1C1C1C;
  --surface:     #1A1A1A;

  --text:        #E8E4DF;
  --text-dim:    #8A8580;
  --text-muted:  #5A5550;

  --border:      #2A2A2A;
  --border-light:#1E1E1E;

  /* Pillar colors */
  --food:    #6BBF59;
  --supps:   #D4A843;
  --skin:    #5BA4C9;

  /* Accents */
  --accent:  #D4A843;
  --white:   #FFFFFF;

  /* Type scale */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Instrument Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Radius */
  --radius: 6px;
  --radius-lg: 12px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; color: var(--white); }
em { font-style: italic; color: var(--accent); }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ─── UTILITIES ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tag--light { color: var(--text); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--white);
  margin: var(--space-sm) 0;
}

.section-body {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-top: var(--space-sm);
  line-height: 1.7;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: none;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: #E0B64E;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--text-dim);
  background: var(--bg-elevated);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.nav__logo-icon {
  width: 24px;
  height: 32px;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav__link:hover { color: var(--white); }

.nav__link--cta {
  background: var(--accent);
  color: var(--bg);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav__link--cta:hover {
  color: var(--bg);
  background: #E0B64E;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s var(--ease);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}
.mobile-menu__link:hover { color: var(--white); }
.mobile-menu__link--cta { color: var(--accent); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__grain {
  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");
  background-size: 200px;
  opacity: 0.5;
  pointer-events: none;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(212, 168, 67, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 30% 60%, rgba(107, 191, 89, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 70% 70%, rgba(91, 164, 201, 0.04) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-md);
}

.hero__badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.hero__logo {
  margin: 0 auto var(--space-lg);
  width: 100px;
}

.hero__logo-svg {
  width: 100%;
  height: auto;
}

.stack-circle {
  animation: stackPulse 4s ease-in-out infinite;
}
.stack-circle--1 { animation-delay: 0s; }
.stack-circle--2 { animation-delay: 0.5s; }
.stack-circle--3 { animation-delay: 1s; }

@keyframes stackPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: var(--white);
}

.hero__title--accent {
  color: var(--accent);
  display: inline-block;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 540px;
  margin: var(--space-md) auto 0;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero__scroll span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ─── PROTOCOL ─── */
.protocol {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-light);
}

.protocol__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.protocol__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.5rem;
  display: block;
}

/* ─── PILLARS ─── */
.pillars {
  padding: var(--space-2xl) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pillars__header {
  margin-bottom: var(--space-xl);
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.pillar {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  transition: all 0.4s var(--ease);
  overflow: hidden;
}

.pillar:hover {
  border-color: var(--text-muted);
  transform: translateY(-4px);
}

.pillar__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
}

.pillar--food .pillar__icon { color: var(--food); }
.pillar--supps .pillar__icon { color: var(--supps); }
.pillar--skin .pillar__icon { color: var(--skin); }

.pillar__number {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--border);
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  line-height: 1;
  pointer-events: none;
}

.pillar__title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.pillar__desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.pillar__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pillar__list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}

.pillar__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.pillar--food .pillar__list li::before { color: var(--food); }
.pillar--supps .pillar__list li::before { color: var(--supps); }
.pillar--skin .pillar__list li::before { color: var(--skin); }

.pillar__color-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.pillar:hover .pillar__color-bar { opacity: 1; }

.pillar--food .pillar__color-bar { background: linear-gradient(90deg, var(--food), transparent); }
.pillar--supps .pillar__color-bar { background: linear-gradient(90deg, var(--supps), transparent); }
.pillar--skin .pillar__color-bar { background: linear-gradient(90deg, var(--skin), transparent); }

/* ─── SYNERGY ─── */
.synergy {
  padding: var(--space-2xl) 0;
}

.synergy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.synergy__diagram {
  display: flex;
  align-items: center;
  justify-content: center;
}

.synergy__svg {
  width: 100%;
  max-width: 300px;
}

.synergy__examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.synergy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all 0.3s var(--ease);
}

.synergy-card:hover {
  border-color: var(--text-muted);
}

.synergy-card__icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot--food { background: var(--food); }
.dot--supps { background: var(--supps); }
.dot--skin { background: var(--skin); }

.synergy-card__plus {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.synergy-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.synergy-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ─── CTA ─── */
.cta {
  position: relative;
  padding: var(--space-2xl) 0;
  text-align: center;
  overflow: hidden;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-light);
}

.cta__bg {
  position: absolute;
  inset: 0;
}

.cta__grain {
  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");
  background-size: 200px;
  opacity: 0.5;
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: 0.03em;
  color: var(--white);
  margin: var(--space-sm) 0;
}

.cta__text {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.cta__form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cta__input {
  flex: 1;
  min-width: 240px;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s var(--ease);
}

.cta__input::placeholder { color: var(--text-muted); }
.cta__input:focus { border-color: var(--accent); }

.cta__disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* ─── FOOTER ─── */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

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

.footer__logo-icon {
  width: 28px;
  height: 36px;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.footer__tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__disclaimer {
  max-width: 500px;
  text-align: right;
}

/* ─── ANIMATIONS ─── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.24s; }
[data-delay="3"] { transition-delay: 0.36s; }
[data-delay="4"] { transition-delay: 0.48s; }
[data-delay="5"] { transition-delay: 0.6s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .mobile-menu { display: flex; }

  .protocol__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .pillars__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .synergy__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .synergy__right { order: -1; }

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .footer__disclaimer { text-align: left; }

  .protocol__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
}

@media (max-width: 500px) {
  .hero__title {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cta__form {
    flex-direction: column;
  }

  .cta__input { min-width: 100%; }

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