:root {
  --bg: #050b1d;
  --bg-2: #08132d;
  --panel: rgba(255, 255, 255, 0.03);
  --text: #f3f7fc;
  --muted: #aab6cc;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(87,199,255,0.25);
  --red: #ff5b5b;
  --blue: #57c7ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, .25);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(255,91,91,.12), transparent 30%),
              radial-gradient(circle at 80% 80%, rgba(87,199,255,.10), transparent 30%),
              linear-gradient(180deg,#040916 0%, #050b1d 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

.page-wrapper {
  width: 100%;
  max-width: 800px;
  padding: 20px;
}

.funnel-container {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Glassmorphism glows */
.funnel-container::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(87,199,255,.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.funnel-container::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(255,91,91,.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.step {
  display: none;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.4s ease forwards;
}

.step.active {
  display: block;
}

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

h1, h2, h3 {
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

input[type="email"], select {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="email"]:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(87,199,255,.2);
}

select option { background: var(--bg-2); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
  background: linear-gradient(90deg, var(--red), var(--blue));
  box-shadow: 0 8px 20px rgba(255,91,91,.2);
  margin-top: 10px;
  text-decoration: none;
}
.btn:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 12px 25px rgba(87,199,255,.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--muted);
  margin-top: 16px;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: none;
}

/* Pulsing effect for the final download button */
.btn-pulse {
  animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
  0% {
    box-shadow: 0 0 0 0 rgba(255,91,91,.5), 0 8px 20px rgba(87,199,255,.2);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255,91,91,0), 0 8px 20px rgba(87,199,255,.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,91,91,0), 0 8px 20px rgba(87,199,255,.2);
  }
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.card h3 {
  font-size: 1.3rem;
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.loader {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile adjustments */
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .funnel-container { padding: 30px 20px; }
}

.alert-error {
  color: var(--red);
  font-size: 0.95rem;
  margin-top: 10px;
  display: none;
  font-weight: 600;
}
