/* ============================================================
   BBNaija AI Playbook V2 — Ultra Premium Cinematic CSS
   ============================================================ */

:root {
  /* Cinematic Dark Theme */
  --bg-color: #000000;
  --bg-surface: rgba(20, 20, 25, 0.4);
  --border-color: rgba(255, 255, 255, 0.08);
  
  /* Accents */
  --neon-pink: #FF007F;
  --electric-blue: #00F0FF;
  --gold: #F59E0B;
  
  /* Text */
  --text-main: #FFFFFF;
  --text-muted: #A1A1AA;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 1100px;
  --radius-bento: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* --- Ambient Glow Orbs --- */
.ambient-orbs {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 20s infinite alternate ease-in-out;
}
.orb-pink {
  width: 600px; height: 600px;
  background: var(--neon-pink);
  top: -10%; right: -10%;
}
.orb-blue {
  width: 800px; height: 800px;
  background: var(--electric-blue);
  bottom: -20%; left: -20%;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10%, 10%) scale(1.1); }
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-alt {
  background: linear-gradient(135deg, var(--electric-blue), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 120px 0;
}
.pt-0 {
  padding-top: 0 !important;
}
.text-center { text-align: center; }

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.btn-primary {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 8px 20px rgba(255,255,255,0.15);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4), 0 12px 30px rgba(255,255,255,0.25);
}
.btn-lg {
  padding: 18px 40px;
  font-size: 16px;
  border-radius: 16px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 80px;
  z-index: 100;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
}
.nav-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #FFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 24px; height: 24px;
  background: conic-gradient(from 180deg at 50% 50%, var(--electric-blue) 0deg, var(--neon-pink) 180deg, var(--electric-blue) 360deg);
  border-radius: 6px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Currency Toggle */
.currency-toggle {
  display: flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  padding: 4px;
}
.currency-toggle button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: 0.3s;
}
.currency-toggle button.active {
  background: #FFF;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}
@media(max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-metrics { justify-content: center; }
  .hero-visual { margin: 0 auto; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--electric-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--electric-blue);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
}
@media(max-width: 900px) { .hero-subtitle { margin: 0 auto 40px; } }

.hero-metrics {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}
.metric-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #FFF;
}
.metric-label {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 400px;
  transform-style: preserve-3d;
}
.visual-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--neon-pink) 0%, transparent 60%);
  filter: blur(60px);
  opacity: 0.3;
  z-index: -1;
}
.floating-book {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
  animation: floatBook 8s ease-in-out infinite;
}
@keyframes floatBook {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* --- Bento Grid Aesthetics --- */
.bento-card {
  background: var(--bg-surface);
  border-radius: var(--radius-bento);
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
/* Magic Glow Effect via JS CSS variables */
.glow-effect::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.08),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.glow-effect:hover::before { opacity: 1; }

.bento-content {
  padding: 40px;
  position: relative;
  z-index: 2;
}

/* --- Bus Story --- */
.story-bento {
  max-width: 800px;
  margin: 0 auto;
}
.story-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: #FFF;
}
.story-divider {
  width: 40px; height: 2px;
  background: var(--neon-pink);
  margin: 32px auto;
}
.story-highlight {
  font-size: 1.2rem;
  color: var(--electric-blue);
  margin-bottom: 16px;
}
.story-body {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Super Bowl Analogy --- */
.super-bowl-section {
  padding-top: 60px;
  padding-bottom: 120px;
}
.massive-text {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  margin-bottom: 32px;
}
.super-bowl-sub {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 32px;
  font-weight: 500;
  line-height: 1.4;
}
.super-bowl-highlight {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #FFF;
  max-width: 600px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

/* --- Infinite Marquee --- */
.marquee-container {
  width: 100vw;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 120px;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  padding: 0 40px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- The 5 Modules --- */
.modules-section {
  padding-top: 0;
}
.modules-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.module-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 40px;
}
.module-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.8;
}
.module-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #FFF;
}
.module-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
@media(max-width: 768px) {
  .module-item { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
}

/* --- Insider Bento Grid --- */
.section-header {
  margin-bottom: 64px;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 24px;
}
@media(max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .col-span-2 { grid-column: span 1 !important; }
  .row-span-2 { grid-row: span 1 !important; }
  .bento-card { min-height: 240px; }
}
.col-span-2 { grid-column: span 2; }
.row-span-2 { grid-row: span 2; }

.bento-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--electric-blue);
  margin: 32px 0 0 32px;
}
.bento-grid .bento-content {
  padding: 32px;
  position: absolute;
  bottom: 0; left: 0; width: 100%;
}
.bento-grid h3 { font-size: 1.25rem; margin-bottom: 8px; color: #FFF; }
.bento-grid p { font-size: 0.95rem; color: var(--text-muted); }

/* Images in Bento */
.bento-img-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden; /* Added to keep image inside radius */
}
.bento-img-container img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center; /* Important for fitting images nicely */
  opacity: 0.5;
  transition: opacity 0.5s, transform 5s ease; /* Added slow zoom */
}
.bento-card:hover .bento-img-container img { 
  opacity: 0.7; 
  transform: scale(1.05); /* Slow zoom effect on hover */
}
.bento-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, transparent 100%);
}

/* --- Social Proof --- */
.launch-card {
  max-width: 900px;
  margin: 0 auto;
  min-height: 500px;
}
.launch-card .bento-content {
  bottom: 0; position: absolute;
}
.launch-card .badge { background: var(--electric-blue); color: #000; border:none; }

/* --- Pricing (Stripe style) --- */
.pricing-grid {
  max-width: 600px;
  margin: 0 auto;
}
.pricing-grid.three-cols {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}
.pricing-card {
  padding: 48px;
  display: flex;
  flex-direction: column;
}
.pricing-card .btn {
  margin-top: auto;
}
@media (max-width: 900px) {
  .pricing-grid.three-cols {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}
.pricing-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}
.pricing-header .badge { background: rgba(255,255,255,0.1); }
.pricing-header h3 { font-size: 1.5rem; color: #FFF; margin-bottom: 16px; font-family: var(--font-heading); }
.price { font-family: var(--font-heading); font-size: 4rem; font-weight: 800; line-height: 1; }
.price-currency { font-size: 2rem; vertical-align: top; margin-right: 4px; color: var(--text-muted);}

.feature-list {
  list-style: none;
  margin-bottom: 48px;
}
.feature-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: #E4E4E7;
}
.feature-list li::before {
  content: "✓";
  color: var(--electric-blue);
  font-weight: 800;
}

.order-bump {
  margin-top: 32px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
}
.bump-label {
  display: flex; gap: 16px; cursor: pointer;
}
.bump-checkbox {
  opacity: 0; position: absolute;
}
.bump-custom-box {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  position: relative;
  transition: 0.2s;
}
.bump-checkbox:checked + .bump-custom-box {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
}
.bump-checkbox:checked + .bump-custom-box::after {
  content: "✓"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #000; font-weight: 800; font-size: 14px;
}
.bump-text strong { color: #FFF; font-size: 1.1rem; }
.bump-price { color: var(--neon-pink); }
.bump-text p { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

/* --- Urgency --- */
.countdown-bento {
  display: inline-flex;
  gap: 24px;
  padding: 32px 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  margin: 48px 0;
}
.time-block { display: flex; flex-direction: column; align-items: center; }
.time-block span { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: #FFF; line-height: 1; }
.time-block small { font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 8px; }
.time-sep { font-size: 2.5rem; font-weight: 800; color: rgba(255,255,255,0.1); }
@media(max-width: 600px) {
  .countdown-bento { gap: 12px; padding: 24px; }
  .time-block span { font-size: 2rem; }
  .time-sep { font-size: 1.5rem; }
}
.urgency-text { color: var(--text-muted); font-size: 1.2rem; }

/* --- Checkout Dialog (Stripe/Apple Style) --- */
.checkout-modal {
  margin: auto;
  width: 100%; max-width: 460px;
  background: #0A0A0C;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 0;
  color: #FFF;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  overflow: hidden;
  
  /* Modern top-layer animation */
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1), overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}
.checkout-modal[open] {
  opacity: 1; transform: scale(1) translateY(0);
  @starting-style { opacity: 0; transform: scale(0.95) translateY(20px); }
}
.checkout-modal::backdrop {
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}
.checkout-modal[open]::backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  @starting-style { background: rgba(0,0,0,0); backdrop-filter: blur(0px); }
}

.modal-glow {
  position: absolute; top: -50px; left: -50px; width: 200px; height: 200px;
  background: var(--electric-blue); filter: blur(80px); opacity: 0.15; z-index: 0;
}
.modal-content { position: relative; z-index: 1; padding: 32px; }

.modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.modal-top h3 { font-size: 1.2rem; }
.close-btn { background: rgba(255,255,255,0.05); border:none; color:#FFF; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s;}
.close-btn:hover { background: rgba(255,255,255,0.1); }

.checkout-item {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; padding: 16px; margin-bottom: 24px;
}
.item-visual img { width: 48px; border-radius: 6px; }
.item-details h4 { font-size: 1rem; }
.item-details p { font-size: 0.8rem; color: var(--text-muted); }
.item-price { margin-left: auto; font-weight: 600; }

.voucher-wrapper {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.voucher-wrapper input {
  flex: 1; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px; border-radius: 12px; color: #FFF; outline: none; font-family: var(--font-body);
}
.voucher-wrapper input:focus { border-color: var(--electric-blue); }
.voucher-wrapper button {
  background: #FFF; color: #000; border: none; padding: 0 20px; border-radius: 12px; font-weight: 600; cursor: pointer;
}
#voucher-feedback { font-size: 12px; margin-bottom: 24px; min-height: 18px; color: var(--electric-blue); }

.checkout-summary {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; margin-bottom: 32px;
}
.summary-line { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.highlight-green { color: var(--electric-blue); }
.summary-line.total { border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 16px; margin-top: 16px; color: #FFF; font-size: 1.2rem; font-weight: 700; }

/* --- FOMO Toast --- */
.fomo-toast {
  position: fixed; bottom: 32px; left: 32px; z-index: 200;
  background: rgba(20,20,25,0.8); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px; border-radius: 16px;
  display: flex; align-items: center; gap: 16px;
  transform: translateY(100px); opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.fomo-toast.show { transform: translateY(0); opacity: 1; }
.fomo-icon { width: 12px; height: 12px; background: var(--electric-blue); border-radius: 50%; box-shadow: 0 0 10px var(--electric-blue); }
.fomo-text { font-size: 14px; }
.fomo-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Footer */
.footer { text-align: center; padding: 64px 0; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 14px; }

/* --- Utilities --- */
.w-full { width: 100%; }

/* ============================================================
   MOBILE RESPONSIVENESS
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .super-bowl-section { padding-bottom: 64px; }
  .marquee-container { margin-bottom: 64px; }
  
  /* Hero */
  .hero { padding-top: 100px; min-height: auto; }
  .hero h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
  .hero-metrics { flex-direction: column; gap: 16px; align-items: center; }
  
  /* Super Bowl */
  .massive-text { font-size: clamp(2.2rem, 8vw, 4rem); }
  
  /* Modules */
  .module-number { font-size: 2.5rem; }
  
  /* Pricing */
  .pricing-card { padding: 32px 24px; }
  .price { font-size: 3rem; }
  
  /* Bento Grid */
  .bento-content { padding: 24px; }
  .story-quote { font-size: 1.5rem; }
  
  /* Modal */
  .checkout-modal { 
    max-width: 95%; 
    margin: 16px auto;
  }
  .modal-content { padding: 24px; }
  
  /* Navigation */
  .nav-logo span { display: none; /* Hide text, keep icon */ }
  .btn.nav-cta { padding: 10px 16px; font-size: 13px; }
  .currency-toggle button { padding: 6px 10px; font-size: 12px; }
}

@media (max-width: 480px) {
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .module-item { padding: 24px 16px; }
  .pricing-card { padding: 24px 16px; }
  
  /* Checkout item text truncation to fit mobile */
  .item-details h4 { font-size: 0.9rem; }
  .bump-text strong { font-size: 1rem; }
}
