/*
  Global styles
  We lean into a dark, futuristic palette with neon accents to evoke the AI
  theme. Colours and layout borrow inspiration from the reference landing
  page while maintaining readability and contrast.
*/

/* Colour variables for easy tweaking */
:root {
  --gradient-start: #00C6FF;
  --gradient-end: #7F00FF;
  --secondary-start: #845BF5;
  --secondary-end: #5E2EBC;
  --text-primary: #ffffff;
  --text-secondary: #c3c5d4;
  --text-muted: #7c80a0;
  --background-dark-1: #090c28;
  --background-dark-2: #05061a;
  --border-color: rgba(132, 91, 245, 0.4);
  --highlight-color: #ffb74d;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--background-dark-2);
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  color: var(--text-primary);
}

a { text-decoration: none; }

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3em 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8em 1.6em;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #0b0f33;
  box-shadow: 0 4px 12px rgba(0, 198, 255, 0.4);
}
.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 198, 255, 0.6);
}
.btn.secondary {
  background: linear-gradient(135deg, var(--secondary-start), var(--secondary-end));
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(132, 91, 245, 0.4);
  margin-top: 1.5em;
}
.btn.secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(132, 91, 245, 0.6);
}
.btn.small {
  padding: 0.6em 1.2em;
  font-size: 0.9rem;
}
.overlay-btn {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #0b0f33;
  box-shadow: 0 3px 10px rgba(0, 198, 255, 0.4);
  pointer-events: auto;
}
.overlay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 198, 255, 0.6);
}

/* Countdown timers */
.countdown {
  font-weight: 600;
  color: var(--highlight-color);
}
.countdown.small { font-size: 1rem; margin-top: 0.6em; }
.countdown.large { font-size: 1.4rem; margin-bottom: 0.6em; }
.overlay-countdown {
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.3em 0.8em;
  border-radius: 8px;
  color: var(--text-primary);
}

/* Hero section */
.hero {
  background: radial-gradient(circle at top left, var(--background-dark-1), var(--background-dark-2));
  padding: 4em 0 2em;
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 2em;
  align-items: center;
}

.hero-left {
  max-width: 500px;
  text-align: center;
}
.hero-left h1 {
  font-size: 2.8rem;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline, .hook {
  font-size: 1.15rem;
  margin-bottom: 0.8em;
  color: var(--text-secondary);
}
.disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5em;
}

.hero-right {
  width: 100%;
  max-width: 540px;
}

.video-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  min-height: 300px;
}
.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vsl-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  z-index: 1;
}
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

/* Layout adjustments for larger screens */
@media (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
  .hero-left {
    flex: 1;
    max-width: 50%;
    text-align: left;
  }
  .hero-right {
    flex: 1;
    max-width: 50%;
  }
  .hero-left h1 { font-size: 3.2rem; }
  .tagline, .hook { font-size: 1.25rem; }
}

/* Stats section */
.stats-section {
  background: linear-gradient(145deg, var(--background-dark-1), var(--background-dark-2));
  padding: 3em 0;
}
.stats-container {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-container {
    flex-direction: row;
    justify-content: space-between;
  }
}
.stat {
  border: 1px solid var(--border-color);
  padding: 1.5em;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  min-width: 180px;
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4em;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Pain section */
.pain-section {
  background: linear-gradient(145deg, #130d3a, #070623);
  padding: 4em 0;
}
.pain-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5em;
}
.intro-text {
  max-width: 800px;
  margin: 0 auto 1.5em;
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
}
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
}
@media (min-width: 768px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pain-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5em;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.pain-item h3 {
  margin-bottom: 0.5em;
  font-size: 1.3rem;
  color: var(--text-primary);
}
.pain-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Benefits section */
.benefits-section {
  background: linear-gradient(145deg, #0d0b2b, #050416);
  padding: 4em 0;
}
.benefits-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5em;
}
.benefits-list {
  list-style: none;
  padding: 0;
  max-width: 750px;
  margin: 1.5em auto;
  color: var(--text-secondary);
}
.benefits-list li {
  margin-bottom: 0.8em;
  font-size: 1rem;
}
.benefits-list strong {
  color: var(--text-primary);
}

/* Process section */
.process-section {
  background: linear-gradient(145deg, #130d3a, #070623);
  padding: 4em 0;
  text-align: center;
}
.process-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
  margin: 2em 0;
}
@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5em;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.step h3 {
  margin-bottom: 0.5em;
  font-size: 1.3rem;
  color: var(--text-primary);
}
.step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.process-img {
  width: 100%;
  max-width: 600px;
  margin: 1.5em auto;
  display: block;
}

/* Value / offer section */
.value-section {
  background: linear-gradient(145deg, var(--background-dark-1), var(--background-dark-2));
  padding: 4em 0;
  text-align: center;
}
.value-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}
.value-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 1.5em auto;
}
.value-list li {
  margin-bottom: 1em;
  font-size: 1rem;
  color: var(--text-secondary);
}
.value-list strong { color: var(--text-primary); }
.bonus-note {
  margin-top: 1em;
  font-size: 0.9rem;
  color: #a5a8c5;
}
.offer-row {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin: 2.5em 0;
  align-items: center;
}
@media (min-width: 900px) {
  .offer-row {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
}
.offer-timer, .offer-bonuses {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2em;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.offer-title {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}
.offer-bonuses .bonus-label {
  font-size: 1.1rem;
  margin-bottom: 0.6em;
  color: var(--text-primary);
}
.bonus-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  color: var(--text-secondary);
}
.bonus-list li {
  margin-bottom: 0.5em;
  font-size: 0.95rem;
}
.bonus-total {
  font-size: 0.9rem;
  color: #a5a8c5;
}

/* Guarantee section */
.guarantee-section {
  background: linear-gradient(145deg, #130d3a, #070623);
  padding: 4em 0;
  text-align: center;
}
.guarantee-badge {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 1em;
}
.guarantee-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}
.guarantee-section p {
  max-width: 700px;
  margin: 0 auto 1.2em;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Footer */
footer {
  background: var(--background-dark-2);
  padding: 2em 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Exit intent pop‑up */
.exit-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.exit-popup.hidden {
  display: none;
}
.popup-content {
  background: linear-gradient(145deg, var(--background-dark-1), var(--background-dark-2));
  padding: 2em;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  position: relative;
}
.popup-content h3 {
  margin-bottom: 0.5em;
  font-size: 1.4rem;
  color: var(--text-primary);
}
.popup-content p {
  margin-bottom: 1em;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.popup-content form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.popup-content input[type="email"] {
  width: 100%;
  padding: 0.6em;
  margin-bottom: 1em;
  border: 1px solid #524377;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #1d184f;
  color: var(--text-primary);
}
.close-button {
  position: absolute;
  top: 0.6em;
  right: 0.8em;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #897ab8;
}

/* Demo video section */
.demo-video-section {
  background: linear-gradient(145deg, #0d0b2b, #050416);
  padding: 4em 0;
  text-align: center;
}
.demo-video-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}
.demo-video-section .intro-text {
  max-width: 800px;
  margin: 0 auto 1.5em;
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
}
.demo-video-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  align-items: center;
}
@media (min-width: 768px) {
  .demo-video-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  /* When multiple demo videos are side‑by‑side, limit their width */
  .demo-video-wrapper {
    flex: 1;
    max-width: 400px;
  }
}
.demo-video-wrapper {
  position: relative;
  width: 100%;
  /* Reduce default max-width so videos appear smaller on narrow screens */
  max-width: 480px;
  margin: 1.5em auto;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.demo-video {
  width: 100%;
  height: auto;
  display: block;
}