* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: #0a0014;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Stacked full-width images */
.full-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

/* Hero (image-1 + CTA) */
.hero-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

.hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

/* Placeholder CTA position: centered horizontally, 80% down the hero image.
   Nudge --cta-x / --cta-y once the final image-1 is dropped in. */
.cta-btn {
  --cta-x: 50%;
  --cta-y: 82%;

  position: absolute;
  top: var(--cta-y);
  left: var(--cta-x);
  transform: translate(-50%, -50%);

  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  min-height: 44px;
  width: 60%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
  transition: transform 0.15s ease;
  animation: cta-pulse 0.9s ease-in-out infinite;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  transform: translate(-50%, -50%) scale(1.1);
  animation-play-state: paused;
}

.cta-btn img {
  display: block;
  width: 100%;
  height: auto;
}

.cta-btn::before,
.cta-btn::after {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 999px;
  background: rgba(224, 36, 36, 0.55);
  z-index: -1;
  animation: cta-ring 1s ease-out infinite;
}

.cta-btn::after {
  animation-delay: 0.5s;
}

@keyframes cta-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.16); }
}

@keyframes cta-ring {
  0% { opacity: 0.65; transform: scale(0.88); }
  85% { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(1.6); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-btn,
  .cta-btn::before,
  .cta-btn::after {
    animation: none;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 32px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f2f2f5;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #333;
  cursor: pointer;
}

.modal-content h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #1a0a2e;
}

.modal-subtitle {
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
}

.field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.field input {
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

.field input:focus {
  border-color: #7b2ff7;
}

.field input.invalid {
  border-color: #e02424;
}

.error {
  display: block;
  min-height: 16px;
  color: #e02424;
  font-size: 12px;
  margin-top: 4px;
}

.form-error {
  color: #e02424;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 16px;
}

.submit-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: #e02424;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.success-view {
  text-align: center;
  padding: 20px 8px;
}

.success-icon {
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 32px;
  margin: 0 auto 16px;
}

.success-view h2 {
  font-size: 20px;
}

.success-view p {
  color: #666;
  font-size: 14px;
}

@media (max-width: 480px) {
  .cta-btn {
    width: 72%;
  }
}

/* Urgency bar */
.urgency-bar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 12px;
  background: linear-gradient(90deg, #e02424, #ff4d4d, #e02424);
  background-size: 200% 100%;
  animation: urgency-shift 2s linear infinite, urgency-flash 1s ease-in-out infinite;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.3px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(224,36,36,0.6);
}

@keyframes urgency-shift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

@keyframes urgency-flash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.urgency-timer {
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  font-size: 19px;
  animation: urgency-timer-pulse 1s ease-in-out infinite;
}

@keyframes urgency-timer-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Scroll reveal for stacked images */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .urgency-bar,
  .urgency-timer {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
