/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Fixed background that extends beyond viewport for overscroll effect */
  background: linear-gradient(135deg, #0d1b2a 0%, #2a2a2a 50%, #4a4a4a 100%);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100%;
  /* Prevent horizontal overscroll, allow vertical */
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
  overflow-x: hidden;
}

body {
  font-family: "Inter", Arial, sans-serif;
  /* Transparent body so html background shows through on overscroll */
  background: transparent;
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Prevent horizontal scroll, allow vertical */
  overflow-x: hidden;
  position: relative;
}

/* Content wrapper with matching background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0d1b2a 0%, #2a2a2a 50%, #4a4a4a 100%);
  z-index: -1;
  pointer-events: none;
}

/* Ensure the page content is properly contained */
.page {
  z-index: 1;
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

/* --- Wave layers (updated to true scrolling waves) --- */
.wave {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 250px;
  z-index: 0;
  /* Subtle translucent fill so it sits nicely over the dark background */
  opacity: 0.8;
  /* The "wave" is drawn as an SVG and repeated horizontally */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 180' preserveAspectRatio='none'>\
  <path d='M0,120 C150,180 350,60 600,120 C850,180 1050,60 1200,120 L1200,180 L0,180 Z' fill='rgba(245,127,159,0.15)'/>\
</svg>");
  background-repeat: repeat-x;
  background-size: 1600px 180px; /* control wavelength/amplitude look */
  animation: waveScroll 22s linear infinite;
  will-change: background-position;
}

/* Layer offsets + parallax speeds */
.wave-1 {
  bottom: 0;
  animation-duration: 22s;
  opacity: 0.9;
}
.wave-2 {
  bottom: 10px;
  animation-duration: 18s;
  opacity: 0.6;
}
.wave-3 {
  bottom: 20px;
  animation-duration: 26s;
  opacity: 0.35;
}

/* Smooth horizontal drift */
@keyframes waveScroll {
  0%   { background-position: 0 0; }
  100% { background-position: -1600px 0; }
}

/* --- Card --- */
.card {
  background: #1a1a1a;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  text-align: center;
  animation: fadeIn 1.2s ease;
  border: 2px solid #000621;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo {
  width: 90px;
  margin: 0 auto 12px auto;
  display: block;
}

.title {
  font-size: 2rem;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 18px;
}

.description {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #ddd;
}

/* --- Features list --- */
.features {
  list-style: none;
  text-align: left;
  margin: 20px 0;
}

.features li {
  margin: 12px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  color: #e0e0e0;
}

.features li i {
  margin-right: 10px;
  color: #667eea;
}

/* --- Demo strip --- */
.demo-strip {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  text-align: center;
}

.demo-strip.pink-outline {
  border: 2px solid #000621;
  outline: 4px solid rgba(77, 184, 255, 0.15);
}

.demo-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.demo-number {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 6px;
}

.btn i {
  margin-right: 8px;
}

/* WhatsApp text button */
.btn-wa {
  background: #06722e;
  color: #fff;
}
.btn-wa:hover { transform: translateY(-2px); }

/* WhatsApp call button (pink accent) */
.btn-wa-call {
  background: #ff4da6;
  color: #fff;
}
.btn-wa-call:hover { transform: translateY(-2px); }

/* --- Form styling (shared) --- */
.form-input {
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #000621;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
  color: #aaa;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-textarea {
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

/* --- Success/Error messages --- */
.subscribe-message {
  margin-top: 1rem;
  padding: 10px;
  border-radius: 10px;
  display: none;
}

.subscribe-message.success {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.5);
}

.subscribe-message.error {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.5);
}

/* --- Email styling --- */
.email {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.5rem;
  text-align: center;
}

/* --- Desktop adjustments --- */
@media (min-width: 768px) {
  .page {
    max-width: none;
    padding: 20px 5%;
  }
  .card {
    max-width: 800px;  /* Added max-width to keep card reasonably sized */
    margin: 0 auto;    /* Center the card */
    padding: 32px 5%;
  }
}