/* ============================================================
   BASE RESET & VARIABLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #0a0a0a;
  --bg-card:    #111111;
  --bg-card-2:  #161616;
  --border:     rgba(124, 58, 237, 0.18);
  --accent:     #7C3AED;
  --accent-light: #9B5CF6;
  --accent-glow: rgba(124, 58, 237, 0.35);
  --text:       #f0f0f0;
  --text-muted: #888;
  --text-dim:   #555;
  --success:    #22c55e;
  --error:      #ef4444;
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--wide {
  max-width: 960px;
}

/* ============================================================
   HEADER / LOGO STRIP
   ============================================================ */
.site-header {
  text-align: center;
  padding: 28px 20px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ============================================================
   HERO / PAGE SECTIONS
   ============================================================ */
.page-section {
  padding: 48px 0 64px;
}

.page-section--tight {
  padding: 32px 0 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent-light), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
}

/* ============================================================
   VSL PLAYER PLACEHOLDER
   ============================================================ */
.vsl-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.12), 0 8px 40px rgba(0,0,0,0.5);
  margin: 32px 0;
}

.vsl-wrapper::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.vsl-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.vsl-inner iframe,
.vsl-inner > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.play-btn {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #9B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(124, 58, 237, 0.15),
              0 0 0 24px rgba(124, 58, 237, 0.07);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 14px rgba(124, 58, 237, 0.2),
              0 0 0 28px rgba(124, 58, 237, 0.08);
}

.play-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 4px;
}

.vsl-label {
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ============================================================
   QUIZ FORM
   ============================================================ */
.quiz-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

@media (max-width: 480px) {
  .quiz-wrapper { padding: 28px 20px; }
}

.quiz-step {
  margin-bottom: 36px;
}

.quiz-step:last-of-type { margin-bottom: 0; }

.quiz-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.quiz-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.45;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  position: relative;
}

.quiz-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.quiz-option label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card-2);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: border-color var(--transition), background var(--transition),
              color var(--transition), box-shadow var(--transition);
  user-select: none;
}

.quiz-option label::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  background: transparent;
  transition: border-color var(--transition), background var(--transition),
              box-shadow var(--transition);
}

.quiz-option input[type="radio"]:checked + label {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2);
}

.quiz-option input[type="radio"]:checked + label::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.quiz-option label:hover {
  border-color: rgba(124, 58, 237, 0.45);
  color: var(--text);
}

.quiz-divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition),
              opacity var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #9B5CF6);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.55);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn:disabled {
  background: #2a2a2a;
  color: var(--text-dim);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.btn-subtext {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 10px;
  text-align: center;
}

/* ============================================================
   COUNTDOWN TIMER
   ============================================================ */
.countdown-wrap {
  text-align: center;
  margin: 28px 0;
}

.countdown-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.countdown-timer {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.countdown-wrap.hidden { display: none; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.15), 0 24px 80px rgba(0,0,0,0.6);
}

@media (max-width: 480px) {
  .modal { padding: 32px 24px; }
}

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

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-card-2);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.97rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--text-dim); }

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.form-error {
  display: none;
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 5px;
}

.form-error.visible { display: block; }

/* ============================================================
   NOTICE / TOAST
   ============================================================ */
.form-notice {
  display: none;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-top: 14px;
}

.form-notice.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--success);
}

.form-notice.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--error);
}

/* ============================================================
   TRUST ROW
   ============================================================ */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.trust-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   SEGMENT BADGE
   ============================================================ */
.segment-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--accent-light);
  margin-bottom: 20px;
}

.segment-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 6px var(--accent-light);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================================
   PAGE 3 — COURSE MODULES
   ============================================================ */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 600px) {
  .modules-grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.module-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
}

.module-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.module-card:hover::after { opacity: 1; }

.module-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.module-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.module-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.module-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
}

/* ============================================================
   PAGE FOOTER
   ============================================================ */
.page-footer {
  padding: 32px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 48px;
}

.page-footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================================================
   PROGRESS INDICATOR
   ============================================================ */
.progress-bar-wrap {
  padding: 20px 20px 0;
  max-width: 680px;
  margin: 0 auto;
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.progress-step.active { color: var(--accent-light); }
.progress-step.done { color: var(--text-muted); }

.progress-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.progress-step.done .progress-step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.progress-step.active .progress-step-circle {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent);
  color: var(--accent-light);
}

.progress-step-line {
  height: 1.5px;
  background: var(--border);
  flex: 1;
  margin: 0 4px;
}

/* ============================================================
   BENEFIT LIST
   ============================================================ */
.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.benefit-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  border: 1.5px solid rgba(124, 58, 237, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B5CF6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner.visible { display: inline-block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* glowing divider accent */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
  margin: 40px 0;
}
