:root {
  --primary: #10B981; /* WhatsApp Green */
  --primary-hover: #059669;
  --secondary: #3B82F6;
  --bg-dark: #09090b;
  --bg-card: #18181b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #f59e0b;
  --danger: #ef4444;
  --border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Top Alert Marquee */
.top-marquee {
  background: var(--accent);
  color: #000;
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 100;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
}
.top-marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-fast 20s linear infinite;
}
@keyframes scroll-fast {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile view forces */
.mobile-view-container {
  width: 100%;
  max-width: 480px; 
  margin: 0 auto;
  background-color: var(--bg-dark);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
.mobile-view-container .desktop-only { display: none !important; }

/* Desktop view forces */
.desktop-view-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--bg-dark);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  display: grid;
  padding: 2rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}
.desktop-view-container .content-pad {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 0;
}
.desktop-view-container .hero-section {
  grid-column: 1 / -1;
  max-height: 60vh;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.desktop-view-container .testimonials-section, 
.desktop-view-container .action-section {
  grid-column: 1 / -1;
}
.desktop-view-container .sticky-cta {
  display: none; 
}
.desktop-view-container .mobile-only { display: none !important; }

.content-pad {
  padding: 0 1.5rem 6rem 1.5rem; /* bottom padding for sticky cta */
}

/* Typography */
.main-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-body { font-size: 1rem; color: var(--text-muted); }
.text-muted { color: #64748b; font-size: 0.9rem; margin-bottom: 1rem;}
.italic { font-style: italic; }

/* Hero Section (9:16 Aspect Ratio) */
.hero-section {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.image-wrapper {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-gradient {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 70%;
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
}

.content-overlay {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Generic Section Spacing */
.section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.danger-border { border-left: 4px solid var(--danger); }
.accent-border { border-left: 4px solid var(--primary); }

.icon-header {
  font-size: 2rem;
  color: var(--danger);
  text-align: center;
  margin-bottom: 1rem;
}

/* Offer Box */
.offer-box {
  background: linear-gradient(145deg, rgba(16,185,129,0.1), rgba(16,185,129,0.02));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.offer-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.checklist {
  list-style: none;
  margin-top: 1.5rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.check-icon {
  color: var(--primary);
  margin-top: 0.2rem;
}

/* Bonus Box */
.bonus-box {
  background: #1e1b4b;
  border: 1px solid #4338ca;
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
}

.bonus-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: #eab308;
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(234,179,8,0.3);
}

.bonus-title {
  color: #a5b4fc;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Proof Section */
.proof-section {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.proof-image {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.test-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.test-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.test-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.test-stars {
  color: #eab308;
  font-size: 0.75rem;
}

.test-text {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.test-time {
  font-size: 0.75rem;
  color: #64748b;
}

/* Urgency Counter */
.urgency-box {
  text-align: center;
  background: rgba(239, 68, 68, 0.1);
  border: 1px dashed var(--danger);
  border-radius: 12px;
  padding: 1rem;
}

.urgency-box p {
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timer {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.timer.expired {
  color: var(--text-muted);
}

/* Buttons */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1.25rem 2rem;
  border-radius: 99px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(16,185,129,0.4);
  transition: transform 0.2s, background 0.2s;
  animation: shake 5s cubic-bezier(.36,.07,.19,.97) infinite;
}

@keyframes shake {
  0%, 90% { transform: translate3d(0, 0, 0); }
  92% { transform: translate3d(-3px, 0, 0); }
  94% { transform: translate3d(3px, 0, 0); }
  96% { transform: translate3d(-3px, 0, 0); }
  98% { transform: translate3d(3px, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

.btn-small {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.sticky-cta .btn-whatsapp {
  max-width: 480px; /* align with mobile container */
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-up {
  opacity: 0;
}

.animate-up.visible {
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.pulse-animation {
  animation: pulse 2s infinite ease-in-out;
}

.pulse-btn {
  animation: pulse 2s infinite ease-in-out;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.shadow-pop.visible {
  animation: popIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  padding: 2rem 1.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #fff;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-header i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Marquee Testimonials */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
  margin-top: 1rem;
}
.marquee-container::before, .marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 2;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}
.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.testimonial-card {
  width: 300px; /* Fixed width for cards inside marquee */
  flex-shrink: 0;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Scrolls exactly half the cloned width */
}

/* Progress Bar */
.progress-container {
  margin-top: 1.5rem;
  text-align: left;
}
.progress-text {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 4px;
}

/* Floating Notification (Toast) */
.live-alert {
  position: fixed;
  bottom: 80px; /* Above the sticky CTA */
  left: 50%;
  transform: translateX(-50%) translateY(150px);
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
  z-index: 99;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
  width: max-content;
  max-width: 90%;
}
.live-alert.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.live-alert .notif-icon {
  color: var(--primary);
  font-size: 1.25rem;
}
.live-alert .notif-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
