:root {
  --bg: #0a0a14;
  --indigo: #5b2a9e;
  --violet: #3a1d6e;
  --cyan: #0891b2;
  --text: #f5f3ff;
  --text-dim: #b9a6ff;
  --text-dimmer: #8f7fe0;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.08);
  --success: #25D366;
  --font-heading: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  padding: 20px 20px 40px;
  max-width: 560px;
  margin: 0 auto;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 15%, rgba(91,42,158,0.35), transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(8,145,178,0.25), transparent 55%),
    var(--bg);
  background-size: 140% 140%;
  animation: meshMove 18s ease-in-out infinite alternate;
}
@keyframes meshMove {
  from { background-position: 0% 0%, 100% 100%, 0 0; }
  to   { background-position: 30% 20%, 70% 80%, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-mesh { animation: none; }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
}
.badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  border: 1px solid rgba(185,166,255,0.35);
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.hero { padding: 22px 0 8px; }
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.12;
  margin: 0 0 14px;
  background: linear-gradient(100deg, #ffffff 30%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: #cdc3f7;
  margin: 0;
}

.card {
  margin-top: 26px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.field {
  position: relative;
  margin-bottom: 16px;
}
.field input {
  width: 100%;
  padding: 16px 14px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus {
  border-color: var(--cyan);
}
.field input.invalid {
  border-color: #e05c5c;
}
.field label {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 15px;
  color: var(--text-dimmer);
  pointer-events: none;
  transition: 0.15s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 5px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  color: var(--text-dim);
}
.field .err {
  display: block;
  font-size: 12px;
  color: #ff8a8a;
  margin-top: 5px;
  min-height: 14px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

button[type="submit"] {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  color: white;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.15s, transform 0.1s;
}
button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button[type="submit"]:not(:disabled):active {
  transform: scale(0.98);
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.microcopy {
  font-size: 12px;
  color: var(--text-dimmer);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
}
.microcopy a { color: var(--text-dim); }

.form-error {
  margin-top: 12px;
  font-size: 13px;
  color: #ff8a8a;
  text-align: center;
}

.success-card {
  text-align: center;
  animation: fadeSlide 0.4s ease;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.check { margin-bottom: 12px; }
#check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.5s ease forwards 0.15s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-card h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin: 0 0 8px;
}
.success-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 20px;
}
.download-btn {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  color: white;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
}
.whatsapp-btn {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: #25D366;
  color: #0a0a14;
  font-weight: 700;
  text-decoration: none;
}

.credibility {
  margin-top: 30px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-dimmer);
  line-height: 1.7;
}

.footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #6b5f9e;
  margin-top: 26px;
}
