:root {
  color-scheme: dark;
  --bg: #06080f;
  --panel: rgba(15, 19, 29, 0.74);
  --panel-border: rgba(118, 140, 255, 0.2);
  --text: #f4f7ff;
  --muted: #a9b1c7;
  --brand: #8a9cff;
  --brand-2: #6476ff;
  --brand-3: #38e0c6;
  --danger: #ff7185;
  --success: #79e6a7;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(165deg, #070910, #090c15 45%, #05070d);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  width: min(1080px, 94vw);
  margin: 2.6rem auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 2;
}

.ambient {
  position: fixed;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

.ambient-1 {
  background: rgba(106, 129, 255, 0.25);
  top: -12rem;
  left: -9rem;
}

.ambient-2 {
  background: rgba(35, 190, 163, 0.19);
  right: -14rem;
  bottom: -14rem;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
  pointer-events: none;
  z-index: 1;
}

.panel {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 60px rgba(0, 0, 0, 0.35);
  padding: 1.4rem;
}

.hero {
  padding: 1.5rem;
  align-self: start;
  position: sticky;
  top: 1.4rem;
}

.badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(117, 134, 255, 0.38);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: #c2cbff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

h1 {
  margin: 0.75rem 0 0.25rem;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #d4dcff;
}

.intro {
  margin: 0.8rem 0 1.05rem;
  color: var(--muted);
  max-width: 34ch;
  font-size: 1.02rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips span {
  border: 1px solid rgba(118, 140, 255, 0.28);
  background: rgba(118, 140, 255, 0.09);
  border-radius: 999px;
  padding: 0.33rem 0.72rem;
  font-size: 0.8rem;
  color: #d6ddff;
}

.hero-stats {
  margin-top: 1.05rem;
  display: grid;
  gap: 0.7rem;
}

.hero-stats div {
  border: 1px solid rgba(134, 154, 255, 0.15);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  background: rgba(7, 10, 16, 0.5);
}

.hero-stats strong {
  font-size: 0.95rem;
}

.hero-stats p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-panel {
  align-self: start;
}

.form-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: end;
}

.form-kicker {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.form-head h2 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.5rem;
}

.progress-label {
  margin: 0;
  color: #d7dfff;
  font-size: 0.85rem;
}

.progress-track {
  width: 100%;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 1.2rem;
}

#progressBar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
  transition: width 180ms ease;
}

form {
  display: grid;
  gap: 1.2rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.field:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.field-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.4rem;
  border-radius: 999px;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  color: #d1d9ff;
  border: 1px solid rgba(117, 134, 255, 0.38);
  background: rgba(117, 134, 255, 0.16);
}

.count {
  color: var(--muted);
  font-size: 0.74rem;
}

.microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: rgba(10, 13, 20, 0.88);
  border: 1px solid rgba(76, 93, 130, 0.64);
  border-radius: 12px;
  padding: 0.82rem 0.86rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

textarea {
  resize: vertical;
  min-height: 118px;
}

input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 75%, white);
  outline-offset: 0;
}

input:hover,
textarea:hover,
input:focus,
textarea:focus {
  border-color: rgba(125, 145, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(109, 129, 255, 0.12);
}

button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(125deg, var(--brand), var(--brand-2), #5eb3ff);
  background-size: 180% 180%;
  color: white;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.83rem 1.15rem;
  cursor: pointer;
  transition: transform 140ms ease, background-position 180ms ease;
}

button:hover {
  transform: translateY(-1px);
  background-position: 100% 50%;
}

button[disabled] {
  cursor: progress;
  opacity: 0.72;
}

.error,
.status {
  margin: 0;
  min-height: 1.1em;
  font-size: 0.88rem;
}

.error {
  color: var(--danger);
}

.status {
  color: var(--muted);
  margin-top: 0.25rem;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--danger);
}

#whatsapp-link {
  display: inline-block;
  margin-top: 0.85rem;
  text-decoration: none;
  color: #dce3ff;
  border: 1px solid rgba(127, 145, 255, 0.42);
  border-radius: 12px;
  padding: 0.66rem 1.1rem;
  background: rgba(120, 139, 255, 0.09);
  transition: transform 120ms ease, border-color 140ms ease, background 140ms ease;
}

#whatsapp-link[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

#whatsapp-link[aria-disabled="false"]:hover {
  border-color: #9eadff;
  background: rgba(120, 139, 255, 0.16);
  transform: translateY(-1px);
}

.footnote {
  margin: -0.2rem 0 0;
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .container {
    grid-template-columns: 1fr;
    margin: 1.2rem auto 2rem;
  }

  .hero {
    position: static;
  }
}

@media (max-width: 640px) {
  .panel {
    padding: 1rem;
  }

  h1 {
    font-size: clamp(1.95rem, 10vw, 2.5rem);
  }

  .tagline {
    font-size: 1rem;
  }

  .form-head {
    align-items: start;
    flex-direction: column;
  }
}
