/* ==========================================================================
   POP CULTURE — design tokens
   Palette: near-black stage, snap-red primary, foil-gold structural accent
   (pulled from the can's own foil rim), warm paper-white for text.
   Display: Anton (the shout on the can). Body: Manrope. Data/labels: JetBrains Mono.
   ========================================================================== */

:root{
  --black: #0a0a0a;
  --charcoal: #141311;
  --charcoal-2: #1c1a17;
  --red: #e31b23;
  --red-deep: #8a0f18;
  --cherry: #c81552;
  --vanilla: #d9a441;
  --gold: #cda227;
  --white: #f6f2e9;
  --white-pure: #ffffff;
  --ink: #0a0a0a;

  --accent: var(--red);
  --accent-deep: var(--red-deep);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.22,.9,.28,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }

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

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  transition: color .5s var(--ease);
}

/* ============ PRELOADER ============ */
.loader{
  position: fixed; inset: 0; z-index: 999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner{ width: min(360px, 80vw); text-align: center; }
.loader-logo{
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  color: var(--white-pure);
}
.loader-logo span{ color: var(--accent); margin-left: 0.35em; }
.loader-bar-track{
  height: 2px; width: 100%;
  background: rgba(255,255,255,0.12);
  position: relative; overflow: hidden;
}
.loader-bar-fill{
  position: absolute; left:0; top:0; bottom:0; width: 0%;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.loader-pct{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
  text-transform: uppercase;
}

/* ============ HERO ============ */
.hero-wrap{
  position: relative;
  height: 420vh; /* scroll track length driving frame scrub */
}
.hero-sticky{
  position: sticky; top: 0; left: 0;
  height: 100vh; width: 100%;
  overflow: hidden;
  background: var(--black);
}
.hero-canvas{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  transition: filter .7s var(--ease);
}
.hero-scrim{
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.15) 42%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.5) 100%),
              linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 30%);
  pointer-events: none;
}

.hero-topbar{
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px clamp(20px, 5vw, 64px);
  z-index: 5;
}
.brand-mark{
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--white-pure);
}
.brand-mark span{ color: var(--accent); margin-left: .3em; transition: color .5s var(--ease); }
.topbar-links{ display: flex; gap: 32px; }
.topbar-links a{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color .2s;
}
.topbar-links a:hover{ color: var(--white-pure); }

.hero-content{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  z-index: 4;
}

.hero-left{
  max-width: 560px;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.hero-left.fading{ opacity: 0; transform: translateY(10px); }

.drink-name{
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: 0.92;
  margin: 0 0 4px;
  text-transform: uppercase;
  color: var(--white-pure);
  letter-spacing: 0.01em;
}
.drink-subtitle{
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 22px;
  color: rgba(255,255,255,0.75);
}
.drink-desc{
  font-size: 1rem;
  line-height: 1.6;
  max-width: 420px;
  color: rgba(255,255,255,0.78);
  margin: 0 0 34px;
}

.cta-row{ display: flex; gap: 12px; flex-wrap: wrap; }
.btn{
  border-radius: 999px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--white-pure);
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover{ transform: translateY(-2px); }
.btn-ghost{ background: transparent; color: var(--white-pure); }
.btn-ghost:hover{ background: rgba(255,255,255,0.08); }
.btn-solid{ background: var(--white-pure); color: var(--ink); }
.btn-solid:hover{ background: var(--accent); border-color: var(--accent); color: var(--white-pure); }
.btn-outline{ background: transparent; color: var(--white-pure); border-color: rgba(255,255,255,0.35); }
.btn-outline:hover{ border-color: var(--white-pure); }

/* Right side variant navigation */
.hero-right{
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 18px;
}
.variant-index{
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.55);
  transition: -webkit-text-stroke-color .5s var(--ease);
}
.variant-nav{
  display: flex; align-items: center; gap: 14px;
}
.nav-btn{
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; color: rgba(255,255,255,0.75);
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 2px;
  transition: color .2s;
}
.nav-btn:hover{ color: var(--white-pure); }
.nav-arrow{ width: 14px; height: 14px; }
.nav-divider{ width: 1px; height: 20px; background: rgba(255,255,255,0.3); }
.nav-loader{
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
  display: none;
}
.nav-loader.active{ display: inline-block; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.flavor-dots{ display: flex; gap: 8px; }
.flavor-dots .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background .3s, transform .3s;
}
.flavor-dots .dot.active{ background: var(--accent); transform: scale(1.4); }

.scroll-hint{
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 4;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-line{
  width: 1px; height: 34px; background: rgba(255,255,255,0.2); position: relative; overflow: hidden;
}
.scroll-line i{
  position: absolute; left:0; top:-100%; width: 100%; height: 100%;
  background: var(--white-pure);
  animation: scrollTravel 1.8s ease-in-out infinite;
}
@keyframes scrollTravel{
  0%{ top: -100%; } 60%{ top: 100%; } 100%{ top: 100%; }
}

/* ============ SHARED SECTION STYLES ============ */
.section{ padding: 140px clamp(20px, 5vw, 64px); position: relative; }
.section-inner{ max-width: 1180px; margin: 0 auto; }
.section-title{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: var(--white-pure);
}
.section-lede{
  font-size: 1.05rem; line-height: 1.7;
  color: rgba(255,255,255,0.68);
  max-width: 480px;
}

/* ============ NUTRITION ============ */
.nutrition-section{ background: var(--charcoal); }
.nutrition-grid{
  display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: center;
}
.nutrition-card{
  background: var(--white);
  color: var(--ink);
  padding: 28px 26px;
  font-family: var(--font-mono);
  border-radius: 2px;
}
.nutrition-head h3{
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}
.nutrition-serving{ margin: 0; font-size: 0.85rem; font-weight: 600; }
.nutrition-rule{ background: var(--ink); margin: 8px 0; }
.nutrition-rule.thick{ height: 8px; }
.nutrition-rule.thin{ height: 1px; background: rgba(10,10,10,0.4); }
.nutrition-servings-per{ margin: 4px 0; font-size: 0.85rem; }
.nutrition-cal-row{ display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
.nutrition-cal-label{ font-size: 1.6rem; font-weight: 700; }
.nutrition-cal-value{ font-size: 1.8rem; font-weight: 700; }
.nutrition-table{ width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.nutrition-table td{ padding: 5px 0; border-bottom: 1px solid rgba(10,10,10,0.15); }
.nutrition-table tr:last-child td{ border-bottom: none; }
.nutrition-table td:last-child{ text-align: right; font-weight: 700; }
.nutrition-table tr.dv-header td:last-child{ font-weight: 700; }
.nutrition-table tr.indent td:first-child{ padding-left: 14px; font-weight: 400; }
.nutrition-footnote{ font-size: 0.68rem; line-height: 1.5; color: rgba(10,10,10,0.7); margin: 8px 0; }
.nutrition-ingredients{ font-size: 0.72rem; line-height: 1.6; margin: 8px 0 0; color: rgba(10,10,10,0.85); }

/* ============ REVIEWS ============ */
.reviews-section{ background: var(--black); }
.reviews-grid{
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 56px;
}
.review-card{
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 30px;
}
.stars{ color: var(--gold); letter-spacing: 0.15em; font-size: 0.9rem; margin-bottom: 14px; }
.review-text{ font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,0.85); margin: 0 0 18px; }
.review-author{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--white-pure); margin: 0; }
.review-author span{ color: rgba(255,255,255,0.4); font-weight: 400; }

.rating-summary{
  display: flex; align-items: center; gap: 22px;
  margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.08);
}
.rating-number{
  font-family: var(--font-display); font-size: 3.4rem; color: var(--white-pure);
}
.rating-meta p{ margin: 4px 0 0; color: rgba(255,255,255,0.55); font-size: 0.85rem; }

/* ============ FAQ ============ */
.faq-section{ background: var(--charcoal); }
.faq-inner{ max-width: 800px; }
.faq-list{ margin-top: 48px; }
.faq-item{ border-bottom: 1px solid rgba(255,255,255,0.12); }
.faq-question{
  width: 100%; background: none; border: none; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; color: var(--white-pure);
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem;
}
.faq-icon{
  font-family: var(--font-mono); font-size: 1.3rem; color: var(--accent);
  transition: transform .3s var(--ease);
  flex-shrink: 0; margin-left: 20px;
}
.faq-item.open .faq-icon{ transform: rotate(45deg); }
.faq-answer{
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-answer p{ margin: 0 0 26px; color: rgba(255,255,255,0.65); line-height: 1.7; max-width: 640px; }

/* ============ FINAL CTA ============ */
.final-cta-section{ background: var(--black); }
.final-cta-inner{
  display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: center;
}
.final-cta-title{
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--white-pure);
  margin: 0 0 22px;
}
.final-cta-sub{ font-size: 1rem; color: rgba(255,255,255,0.65); max-width: 420px; margin: 0 0 32px; }
.final-cta-visual{
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--red);
}
.final-cta-visual img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ FOOTER ============ */
.footer{ background: #000; padding: 64px clamp(20px, 5vw, 64px) 40px; }
.footer-inner{ max-width: 1180px; margin: 0 auto; }
.footer-top{
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.footer-links{ display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a{ font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-links a:hover{ color: var(--white-pure); }
.footer-social{ display: flex; gap: 16px; }
.footer-social a{ color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-social a:hover{ color: var(--accent); }
.footer-social svg{ width: 20px; height: 20px; }
.footer-rule{ height: 1px; background: rgba(255,255,255,0.1); margin: 40px 0 24px; }
.footer-bottom{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p{ margin: 0; font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px){
  .hero-scrim{
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 22%, rgba(0,0,0,0.5) 56%, rgba(0,0,0,0.88) 78%, rgba(0,0,0,0.95) 100%);
  }
  .hero-content{ flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 28px; padding-bottom: 96px; }
  .hero-left{ background: rgba(0,0,0,0.28); backdrop-filter: blur(2px); border-radius: 12px; padding: 18px 16px; margin: 0 -16px; }
  .hero-right{ align-items: center; width: 100%; flex-direction: row; justify-content: space-between; }
  .variant-index{ font-size: 3.2rem; }
  .flavor-dots{ display: none; }
  .nutrition-grid{ grid-template-columns: 1fr; gap: 48px; }
  .reviews-grid{ grid-template-columns: 1fr; }
  .final-cta-inner{ grid-template-columns: 1fr; }
  .final-cta-visual{ max-width: 320px; }
  .topbar-links{ display: none; }
  .section{ padding: 90px 20px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .scroll-line i{ animation: none; }
  *{ transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
