/* ===== BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body { overflow-x: hidden; color: #e0e0e8; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== WHITE SECTION (banner) ===== */
.white-section {
  background: #ffffff;
  padding: 40px 0 30px;
}
.banner {
  max-height: 325px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.6s ease;
}
.banner:hover { transform: scale(1.02); }
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.banner-img.loaded { opacity: 1; }

/* ===== GRADIENT SECTION (main CTA) ===== */
.gradient-section {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #00e5ff 45%, #7b1fa2 100%);
  min-height: calc(100vh - 325px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  overflow: hidden;
}
/* Diagonal stripe overlay (static, no animation) */
.gradient-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 12px,
      rgba(255, 255, 255, 0.04) 12px,
      rgba(255, 255, 255, 0.04) 24px
    ),
    linear-gradient(135deg, rgba(8, 12, 28, 0.78) 0%, rgba(8, 12, 28, 0.62) 50%, rgba(6, 6, 16, 0.82) 100%);
  z-index: 0;
}
.gradient-section .content { position: relative; z-index: 1; text-align: center; }
.tagline h1 {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.tagline p {
  font-size: 1.05rem;
  opacity: 0.9;
  letter-spacing: 0.5px;
  color: #f0f0f0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ===== CTA BUTTON ===== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00e5ff 0%, #0084ff 50%, #7b1fa2 100%);
  border: none;
  color: #ffffff;
  padding: 22px 64px;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 80px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.4), 0 20px 50px rgba(0, 229, 255, 0.5);
  letter-spacing: 1px;
  transform: translateY(0);
  margin-top: 24px;
  animation: pulse-glow 2.5s ease-in-out infinite alternate;
}
.btn-icon {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
  vertical-align: middle;
}
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.3), 0 20px 50px rgba(0, 229, 255, 0.45); }
  100% { box-shadow: 0 0 0 8px rgba(126, 31, 162, 0.4), 0 20px 50px rgba(126, 31, 162, 0.5); }
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2), 0 28px 60px rgba(126, 31, 162, 0.65);
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(8, 12, 28, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: #0a0f24;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 20px;
  padding: 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.4s ease;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close:hover {
  background: rgba(255, 87, 34, 0.25);
  border-color: rgba(255, 87, 34, 0.5);
}
.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.modal-close:hover::before,
.modal-close:hover::after { background: #ffffff; }
.modal h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== INPUTS ===== */
.input-group { margin-bottom: 6px; }
.input-group label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.input-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.input-group input:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}
.input-group input.invalid {
  border-color: rgba(255, 87, 34, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.12);
}
.email-note {
  margin: 6px 0 8px;
  font-size: 0.82rem;
  color: rgba(255, 140, 0, 0.85);
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s ease;
}
.email-note.visible {
  opacity: 1;
  transform: translateY(0);
}
.amount-text {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  letter-spacing: 0.3px;
}

/* Modal submit button */
.modal .cta-button {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: 4px;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.3), 0 16px 40px rgba(0, 229, 255, 0.4);
  animation: none;
}
.modal .cta-button:hover {
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2), 0 20px 50px rgba(126, 31, 162, 0.6);
}
.modal .cta-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2), 0 16px 40px rgba(0, 0, 0, 0.3);
}
.error-msg {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 87, 34, 0.9);
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s ease;
  font-weight: 500;
}
.error-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer {
  background: #0a0f24;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer a {
  color: rgba(0, 229, 255, 0.7);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.2s ease;
}
.footer a:hover { color: rgba(0, 229, 255, 1); }
.footer .copyright {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== RESPONSIVE (Mobile & Tablet) ===== */
@media (max-width: 768px) {
  .white-section { padding: 40px 0 30px; }
  .gradient-section {
     min-height: calc(100vh - 425px);
    padding: 40px 16px;
  }
  .tagline h1 {
    font-size: 1.8rem;
    letter-spacing: -0.4px;
  }
  .tagline p {
    font-size: 0.95rem;
  }
  .cta-button {
    padding: 18px 48px;
    font-size: 1.1rem;
    margin-top: 20px;
  }
  /* Modal */
  .modal {
    max-width: 90%;
    padding: 28px;
    border-radius: 16px;
  }
  .cta-button { padding: 16px; font-size: 1rem; }
  .modal h2 { font-size: 1.3rem; }
  .input-group input { padding: 12px 14px; font-size: 0.9rem; }
  .modal .cta-button { padding: 14px; font-size: 1rem; }
}

  @media (max-width: 480px) {
  .tagline h1 { font-size: 1.5rem; }
  .cta-button {
    padding: 16px 44px;
    font-size: 1rem;
  }
}

/* ===== LEGAL PAGE ===== */
.legal-page {
  background: linear-gradient(135deg, #080c1c 0%, #1a0f3a 60%, #0f0526 100%);
  min-height: 100vh;
  padding: 60px 0;
}
.legal-header { text-align: center; margin-bottom: 48px; }
.legal-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.legal-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.legal-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}
.legal-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(0, 229, 255, 0.8);
  margin: 32px 0 16px;
  letter-spacing: -0.2px;
}
.legal-heading:first-child { margin-top: 0; }
.legal-list {
  margin: 12px 0 20px 24px;
  padding: 0;
}
.legal-list li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}
.legal-text strong { color: rgba(0, 229, 255, 0.9); }

/* ===== LEGAL NAV ===== */
.legal-nav {
  padding: 20px 0;
  margin-bottom: 48px;
  text-align: center;
}
.legal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.legal-nav-link:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateX(3px);
}
.legal-nav-icon {
  font-size: 1.1rem;
  color: rgba(0, 229, 255, 0.6);
}
.legal-logo {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (max-width: 768px) {
  .legal-page { padding: 40px 0; }
  .legal-title { font-size: 1.7rem; }
  .legal-heading { font-size: 1rem; }
  .legal-text,
  .legal-list li { font-size: 0.88rem; }
}
