/* ==========================================================================
   Pepsi Zero Sugar — Full-Page Cinematic Scroll Journey
   ========================================================================== */
:root {
  --canvas: #05070c;
  --panel: rgba(12, 17, 28, 0.78);
  --panel-border: rgba(0, 102, 214, 0.35);
  --panel-border-hover: rgba(0, 102, 214, 0.7);
  
  --accent: #0066d6;
  --accent-glow: #0077ff;
  --accent-hover: #1a85ff;
  --accent-red: #e31837;
  --accent-red-glow: rgba(227, 24, 55, 0.5);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --font-display: 'Outfit', 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  background-color: var(--canvas);
  min-height: 100vh;
  overflow-x: clip;
}

/* ==========================================================================
   Fixed Background Canvas & Scrims
   ========================================================================== */
.fixed-canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background-color: #000000;
}

.fullscreen-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* Four-Layer Legibility Scrim */
.scrim-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 130% 95% at 50% 50%, rgba(5, 7, 12, 0) 40%, rgba(5, 7, 12, 0.55) 100%);
  pointer-events: none;
  z-index: 2;
}

.scrim-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 7, 12, 0.4) 0%, transparent 12%, transparent 88%, rgba(5, 7, 12, 0.75) 100%);
  pointer-events: none;
  z-index: 3;
}

.bubble-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* Floating BMS Global Agency Bar */
.bms-agency-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: linear-gradient(90deg, #090e17, #0d1524);
  border-bottom: 1px solid rgba(0, 102, 214, 0.4);
  padding: 8px 24px;
}

.bms-banner-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

.bms-back-link {
  color: #94a3b8;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  transition: color 0.2s ease;
}

.bms-back-link:hover {
  color: #3894ff;
}

.bms-demo-badge {
  color: #cbd5e1;
}

.bms-demo-badge strong {
  color: #ffffff;
}

.bms-order-btn {
  background: linear-gradient(135deg, #0066d6, #e31837);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 2px 10px rgba(0, 102, 214, 0.4);
  transition: transform 0.2s ease;
}

.bms-order-btn:hover {
  transform: translateY(-1px);
}

/* Fixed Header & HUD */
.site-header {
  position: fixed;
  top: 42px;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 12px 28px;
  background: rgba(5, 7, 12, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.zero-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #0066d6, #e31837);
  padding: 3px 7px;
  border-radius: 4px;
  color: #ffffff;
}

.journey-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(14, 21, 34, 0.85);
  border: 1px solid rgba(0, 102, 214, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0066d6;
  box-shadow: 0 0 10px #0066d6;
  animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   Loading Ring Hint
   ========================================================================== */
.loading-ring-wrap {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ring {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}

.scroll-hint-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  animation: pulseHint 2s infinite ease-in-out;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

/* ==========================================================================
   Fixed Floating HUD Overlay (Zero Layout Blockage)
   ========================================================================== */
.story-track {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 700vh;
}

.story-chapter {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 5vw;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.story-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

/* Story Cards */
.story-card {
  position: relative;
  pointer-events: auto;
}

.story-card.align-left {
  max-width: 440px;
  margin-right: auto;
  margin-left: 2vw;
}

.story-card.align-right {
  max-width: 440px;
  margin-left: auto;
  margin-right: 2vw;
}

.story-card.center-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Ultra-Clean Floating Glass Card (Completely Seamless) */
.glass-card {
  background: rgba(10, 15, 26, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 102, 214, 0.35);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
  border-color: var(--panel-border-hover);
  box-shadow: 0 24px 60px rgba(0, 102, 214, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Typography Inside Story Cards */
.kicker-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-glow);
  padding: 5px 12px;
  background: rgba(0, 102, 214, 0.18);
  border: 1px solid rgba(0, 102, 214, 0.45);
  border-radius: 999px;
  margin-bottom: 16px;
}

.kicker-tag.red-tag {
  color: #ff4d67;
  background: rgba(227, 24, 55, 0.18);
  border-color: rgba(227, 24, 55, 0.45);
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #ffffff;
}

.chapter-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.accent-blue {
  color: #3894ff;
  text-shadow: 0 0 25px rgba(0, 102, 214, 0.6);
}

.accent-text {
  color: #ff4d67;
  text-shadow: 0 0 25px rgba(227, 24, 55, 0.6);
}

.chapter-meta {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  background: rgba(0, 102, 214, 0.15);
  border: 1px solid rgba(0, 102, 214, 0.3);
  border-radius: 999px;
  color: #ffffff;
}

/* ==========================================================================
   Chapter 4: Interactive Simulator Panel
   ========================================================================== */
.interactive-panel {
  max-width: 520px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.panel-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.slider-group {
  margin-bottom: 18px;
}

.slider-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.val-readout {
  font-family: var(--font-mono);
  color: var(--accent-glow);
}

.custom-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0066d6;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(0, 102, 214, 0.8);
  cursor: pointer;
}

.sensor-score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.sensor-score .score-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
}

.sensor-score .score-num.highlight-green {
  color: #22c55e;
}

.sensor-score .score-num.highlight-blue {
  color: #3894ff;
}

.sensor-score .score-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Chapter 5: Comparison Table Panel
   ========================================================================== */
.table-panel {
  max-width: 520px;
}

.mini-matrix {
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.matrix-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 12px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.matrix-row:last-child {
  border-bottom: none;
}

.matrix-header {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.col-pepsi {
  color: #3894ff;
  font-weight: 700;
}

.col-pepsi.highlight {
  color: #22c55e;
}

/* ==========================================================================
   Chapter 6: Review Panel
   ========================================================================== */
.review-panel {
  max-width: 500px;
}

.review-quote {
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  color: #ffffff;
  margin: 16px 0;
}

.reviewer-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.author-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Chapter 7: Final Settle & Store Locator
   ========================================================================== */
.final-settle {
  padding-bottom: 120px;
}

.pack-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.pack-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 12px;
  cursor: pointer;
  color: inherit;
  transition: all 0.25s ease;
}

.pack-btn strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.pack-btn span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pack-btn.active {
  border-color: #0066d6;
  background: rgba(0, 102, 214, 0.25);
  box-shadow: 0 0 16px rgba(0, 102, 214, 0.4);
}

.delivery-links {
  margin-bottom: 28px;
}

.delivery-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.delivery-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.del-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.del-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.pincode-form {
  max-width: 480px;
  margin: 0 auto;
}

.input-wrap {
  display: flex;
  gap: 8px;
}

.input-wrap input {
  flex: 1;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.input-wrap input:focus {
  border-color: #0066d6;
  box-shadow: 0 0 10px rgba(0, 102, 214, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
}

.btn-primary {
  background: linear-gradient(135deg, #0066d6, #004da6);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 102, 214, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1a85ff, #0066d6);
  box-shadow: 0 6px 22px rgba(0, 102, 214, 0.6);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.pincode-result {
  margin-top: 12px;
  font-size: 0.88rem;
  min-height: 20px;
}

.settle-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* ==========================================================================
   Responsive Breakpoints for Mobile & Tablets
   ========================================================================== */
@media (max-width: 860px) {
  .bms-agency-banner {
    padding: 6px 14px;
  }

  .bms-demo-badge {
    display: none; /* Hide long badge text on mobile to save space */
  }

  .bms-back-link {
    font-size: 0.76rem;
  }

  .bms-order-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
  }

  .site-header {
    top: 38px;
    padding: 8px 14px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .zero-badge {
    font-size: 0.58rem;
    padding: 2px 5px;
  }

  .journey-indicator {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .site-header .header-cta {
    display: none; /* Hide duplicate CTA in header on mobile */
  }

  .story-chapter {
    min-height: 140vh; /* Gives long clear view windows between text cards */
    padding: 60px 14px;
    align-items: flex-end; /* Places text cards towards bottom on mobile */
  }

  .chapter-1 {
    align-items: flex-start; /* First chapter at top */
    padding-top: 110px;
  }

  .story-card {
    padding: 18px 16px;
    border-radius: 14px;
    background: rgba(10, 15, 25, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 20px;
  }

  .story-card.align-left,
  .story-card.align-right {
    margin: 0 auto;
    max-width: 92%;
  }

  .chapter-title {
    font-size: 1.45rem;
    margin-bottom: 8px;
  }

  .chapter-desc {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .input-wrap {
    flex-direction: column;
  }

  .sensor-score-row {
    gap: 8px;
  }

  .sensor-score .score-num {
    font-size: 1.3rem;
  }

  .matrix-row {
    font-size: 0.8rem;
    padding: 10px 12px;
  }

  .pack-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .bms-agency-banner {
    padding: 5px 10px;
  }

  .bms-back-link {
    font-size: 0.72rem;
  }

  .bms-order-btn {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .site-header {
    top: 34px;
    padding: 6px 12px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .journey-indicator {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .chapter-title {
    font-size: 1.55rem;
  }
}

