:root {
  color-scheme: dark;
  --bg: #060813;
  --surface: rgba(14, 18, 36, 0.88);
  --surface-strong: #11162b;
  --line: rgba(255, 255, 255, 0.1);
  --line-active: rgba(74, 112, 255, 0.58);
  --text: #f7f8ff;
  --muted: #9ea7bd;
  --blue: #087cf5;
  --violet: #8237f5;
  --cyan: #16b9ff;
  --green: #18ca79;
  --danger: #ff6685;
  --radius: 24px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 118, 255, 0.14), transparent 38%),
    radial-gradient(circle at 100% 30%, rgba(119, 37, 255, 0.15), transparent 36%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
}

.glow-one {
  top: -160px;
  right: -100px;
  background: #6931ff;
}

.glow-two {
  bottom: 8%;
  left: -200px;
  background: #008cff;
}

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.page-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding:
    max(20px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(26px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 38px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 35px;
  height: 35px;
  flex: none;
  filter: drop-shadow(0 0 15px rgba(28, 99, 255, 0.35));
}

.secure-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.secure-label svg {
  width: 17px;
  fill: var(--green);
}

.intro {
  margin-bottom: 28px;
}

.eyebrow {
  margin-bottom: 12px;
  color: #7ea9ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.intro h1 {
  max-width: 760px;
  font-size: clamp(2.05rem, 9vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.intro h1 span {
  display: inline-block;
  margin-top: 7px;
  color: transparent;
  background: linear-gradient(100deg, #0b99ff 0%, #2368ff 45%, #a23aff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.intro-copy {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 24px;
}

.benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cad0df;
  font-size: 0.77rem;
}

.benefits i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(72, 122, 255, 0.45);
  border-radius: 50%;
  color: #6d9eff;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 800;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 12px 18px;
  border: 1px solid rgba(72, 122, 255, 0.35);
  border-radius: 999px;
  background: rgba(23, 104, 255, 0.12);
  color: #b8cbff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  animation: scroll-hint-bounce 1.8s ease-in-out infinite;
}

.scroll-hint svg {
  width: 22px;
  fill: currentColor;
}

.form-card.is-revealed {
  animation: form-reveal 0.9s ease;
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes form-reveal {
  0% {
    box-shadow: var(--shadow);
    transform: translateY(8px);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(35, 104, 255, 0.35), var(--shadow);
  }
  100% {
    box-shadow: var(--shadow);
    transform: translateY(0);
  }
}

.form-card {
  position: relative;
  overflow: hidden;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(20, 26, 51, 0.92), rgba(10, 13, 27, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.form-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 132, 255, 0.8), transparent);
  content: "";
}

.form-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.step-label {
  margin-bottom: 4px;
  color: #719eff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-top h2 {
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.step-percent {
  display: grid;
  min-width: 42px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(82, 121, 255, 0.24);
  border-radius: 999px;
  color: #83a6ff;
  background: rgba(42, 73, 177, 0.12);
  font-size: 0.68rem;
  font-weight: 800;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  margin: 16px 0 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.progress-track span {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  box-shadow: 0 0 14px rgba(49, 98, 255, 0.55);
  transition: width 0.36s ease;
}

.steps {
  min-height: 490px;
}

.form-step {
  animation: step-in 0.36s cubic-bezier(.2,.72,.2,1) both;
}

.form-step.is-leaving {
  animation: step-out 0.18s ease both;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes step-back-in {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes step-out {
  to { opacity: 0; transform: translateX(-12px); }
}

.step-heading {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 13px;
  align-items: start;
  margin-bottom: 22px;
}

.step-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(74, 117, 255, 0.25);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 121, 255, 0.17), rgba(117, 40, 245, 0.13));
}

.step-icon svg {
  width: 23px;
  fill: #65a0ff;
}

.whatsapp-icon svg {
  fill: #36db88;
}

.step-heading h3 {
  margin-bottom: 5px;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.step-heading p {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.48;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 22px;
}

.choice {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #cdd3e1;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.74rem;
  font-weight: 680;
  text-align: left;
  transition: 0.18s ease;
}

.choice svg {
  width: 21px;
  min-width: 21px;
  fill: #7385b7;
  transition: 0.18s ease;
}

.choice:hover,
.choice:focus-visible {
  border-color: rgba(92, 130, 255, 0.52);
  background: rgba(42, 77, 185, 0.1);
  outline: none;
}

.choice.is-selected {
  border-color: var(--line-active);
  color: #fff;
  background: linear-gradient(145deg, rgba(17, 114, 255, 0.18), rgba(121, 46, 255, 0.13));
  box-shadow: inset 0 0 0 1px rgba(72, 123, 255, 0.12);
}

.choice.is-selected svg {
  fill: #629bff;
}

.field {
  position: relative;
  display: block;
  margin-top: 18px;
}

.field > span {
  display: block;
  margin-bottom: 8px;
  color: #dde1ec;
  font-size: 0.78rem;
  font-weight: 700;
}

.field b {
  color: #6e9aff;
}

.field input,
.field textarea,
.field select,
.phone-control {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  background: rgba(4, 7, 17, 0.48);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input,
.field textarea {
  padding: 15px 14px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.52;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #697086;
}

.field input:focus,
.field textarea:focus,
.phone-control:focus-within {
  border-color: rgba(74, 124, 255, 0.72);
  background: rgba(10, 15, 32, 0.76);
  box-shadow: 0 0 0 4px rgba(31, 88, 232, 0.11);
}

.field input.is-invalid,
.field textarea.is-invalid,
.phone-control.is-invalid {
  border-color: rgba(255, 102, 133, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 77, 114, 0.08);
}

.field small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #606a82;
  font-size: 0.65rem;
}

.field-error {
  min-height: 17px;
  margin: 5px 2px 0;
  color: var(--danger);
  font-size: 0.7rem;
}

.phone-control {
  display: grid;
  grid-template-columns: 112px 1fr;
  overflow: hidden;
}

.phone-control select {
  width: 100%;
  padding: 15px 8px 15px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  color: #e9ecf6;
  background: #11162a;
  outline: 0;
}

.phone-control input {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}

.privacy-note {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding: 13px;
  border: 1px solid rgba(24, 202, 121, 0.16);
  border-radius: 14px;
  background: rgba(24, 202, 121, 0.05);
}

.privacy-note svg {
  width: 24px;
  justify-self: center;
  fill: #31d78b;
}

.privacy-note p {
  color: #9bbaa9;
  font-size: 0.69rem;
  line-height: 1.45;
}

.privacy-note strong {
  color: #c9ead8;
}

.summary {
  display: grid;
  gap: 9px;
}

.summary div {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.summary dt {
  margin-bottom: 4px;
  color: #71809f;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary dd {
  overflow-wrap: anywhere;
  color: #e7eaf4;
  font-size: 0.77rem;
  line-height: 1.42;
}

.summary div:nth-child(2) dd {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.consent {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 18px;
  color: #aeb6c9;
  font-size: 0.72rem;
  line-height: 1.45;
}

.consent input {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  accent-color: var(--blue);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 15px;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

.button:focus-visible {
  outline: 3px solid rgba(67, 125, 255, 0.35);
  outline-offset: 3px;
}

.button:active {
  transform: scale(0.98);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button svg {
  width: 19px;
  fill: currentColor;
}

.button-primary {
  flex: 1;
  color: #fff;
  background: linear-gradient(105deg, #087cf5 0%, #285df4 45%, #8534ef 100%);
  box-shadow: 0 12px 30px rgba(28, 72, 212, 0.28);
}

.button-primary:hover {
  filter: brightness(1.12);
}

.button-secondary {
  padding: 0 17px;
  border: 1px solid var(--line);
  color: #c6ccda;
  background: rgba(255, 255, 255, 0.035);
}

.submit-button.is-loading svg {
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success {
  padding: 28px 4px 10px;
  text-align: center;
  animation: success-in 0.48s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes success-in {
  from { opacity: 0; transform: scale(.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-mark {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid rgba(30, 216, 128, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 207, 124, 0.2), rgba(28, 207, 124, 0.05));
  box-shadow: 0 0 50px rgba(29, 219, 132, 0.15);
}

.success-mark svg {
  width: 38px;
  fill: var(--green);
}

.success h2 {
  margin-bottom: 10px;
  font-size: 1.7rem;
  letter-spacing: -0.035em;
}

.success > p:not(.eyebrow) {
  max-width: 420px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.56;
}

.request-code {
  width: fit-content;
  margin: 22px auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #8490a8;
  background: rgba(255,255,255,.025);
  font-size: 0.67rem;
}

.request-code strong {
  color: #a8bfff;
  letter-spacing: 0.05em;
}

.success .button {
  margin: 0 auto;
}

.form-status {
  min-height: 18px;
  margin-top: 10px;
  color: var(--danger);
  font-size: 0.72rem;
  text-align: center;
}

.bot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

[hidden] {
  display: none !important;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px 16px;
  padding: 24px 3px 4px;
  color: #5e677c;
  font-size: 0.66rem;
}

@media (min-width: 760px) {
  .page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 490px);
    grid-template-areas:
      "brand brand"
      "intro form"
      "footer footer";
    gap: 0 70px;
    align-items: center;
    padding-top: 28px;
  }

  .brand {
    grid-area: brand;
    margin-bottom: 55px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-link {
    font-size: 1.48rem;
  }

  .intro {
    grid-area: intro;
    margin-bottom: 0;
  }

  .intro h1 {
    font-size: clamp(3.4rem, 6vw, 5.25rem);
  }

  .intro-copy {
    font-size: 1.08rem;
  }

  .form-card {
    grid-area: form;
    padding: 28px;
  }

  .scroll-hint {
    display: none;
  }

  .steps {
    min-height: 505px;
  }

  footer {
    grid-area: footer;
    margin-top: 40px;
  }
}

@media (max-width: 380px) {
  .secure-label {
    display: none;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 57px;
  }

  .steps {
    min-height: 570px;
  }

  .phone-control {
    grid-template-columns: 104px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
