:root {
  color-scheme: dark;
  --bg: #170a16;
  --surface: #291522;
  --surface-soft: #311a2b;
  --text: #f4edf4;
  --muted: #c9a3b9;
  --primary: #d05f7d;
  --primary-strong: #8f2f4d;
  --border: rgba(255,255,255,.12);
  --shadow: 0 24px 90px rgba(0,0,0,.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-image: radial-gradient(circle at top, rgba(196, 75, 109, 0.14), transparent 25%),
                    linear-gradient(180deg, rgba(40, 13, 24, 0.96) 0%, rgba(28, 9, 19, 0.98) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 24px 0 56px;
  text-align: center;
  display: grid;
  gap: 22px;
  background: #ffffff;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
}

.hero__cta {
  justify-self: center;
}

.hero__brand {
  width: min(900px, 100%);
  margin: 0 auto;
}

.hero__logo-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(246,238,244,.98) 100%);
  box-shadow: 0 20px 56px rgba(80, 34, 52, .12);
}

.hero__logo {
  width: min(100%, 540px);
  filter: drop-shadow(0 12px 28px rgba(143, 47, 77, .18));
}

.logo {
  width: 120px;
}

.hero--small {
  padding: 40px 0 56px;
}

.hero__brand {
  display: grid;
  place-items: center;
  gap: 24px;
}

.logo {
  width: 92px;
}

.logo--small {
  width: 176px;
  filter: drop-shadow(0 12px 24px rgba(143, 47, 77, .14));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  color: #8f2f4d;
  font-size: .8rem;
  margin-bottom: 12px;
}

h1 {
  margin: .25rem 0 16px;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1.02;
  color: #2b1523;
}

.hero__title {
  margin: .2rem 0 12px;
  font-size: clamp(2rem, 3.5vw, 3.8rem);
}

.hero__subtitle {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #6f5870;
}

.hero--small .hero__brand > div > p:not(.eyebrow) {
  color: #6a5365;
}

.hero--small .hero__brand > div > p:nth-of-type(3),
.hero--small .hero__brand > div > p:nth-of-type(4),
.hero--small .hero__brand > div > p:nth-of-type(5) {
  color: #5e4357;
}

.section {
  padding: 64px 0;
}

.section--bg {
  background: rgba(255,255,255,.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--feature {
  background: linear-gradient(180deg, rgba(124,92,255,.12) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(124,92,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.section--story {
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(208,95,125,.06) 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.section--story .eyebrow {
  color: #ffb7ca;
}

.story-block {
  max-width: 860px;
}

.story-block h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
}

.story-block p {
  margin: 0 0 18px;
  font-size: 1.04rem;
  line-height: 1.9;
  color: rgba(244,237,244,.92);
}

.story-block strong {
  color: #ffffff;
}

.story-block__quotes,
.story-block__closing {
  margin: 28px 0;
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.story-block__quotes p,
.story-block__closing p {
  margin-bottom: 12px;
}

.story-block__quotes p:last-child,
.story-block__closing p:last-child {
  margin-bottom: 0;
}

.story-block__highlight {
  margin-top: 32px;
  padding: 24px 28px;
  border-left: 4px solid var(--primary);
  border-radius: 18px;
  background: rgba(208,95,125,.08);
  font-size: 1.12rem;
}

.story-block__cta {
  margin-top: 8px;
}

.feature {
  display: grid;
  gap: 28px;
  align-items: center;
}

.section--feature .eyebrow {
  color: #d8c8ff;
}

.feature__content h2 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.feature__note {
  color: rgba(248,250,252,.82);
  margin-top: 18px;
}

.feature__cta {
  display: flex;
  justify-content: center;
}

.section--dark {
  background: rgba(255,255,255,.02);
}

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 32px;
}

.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 28px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 16px;
}

.steps li {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: 0 16px 40px rgba(124,92,255,.25);
}

.btn--disabled {
  cursor: not-allowed;
  opacity: 1;
  transform: none;
  background: linear-gradient(135deg, #7b5a66, #5b404a);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}

.btn--disabled:hover {
  transform: none;
}

.btn--secondary {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
}

.footer {
  padding: 32px 0;
  color: var(--muted);
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.form {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}

.form__captcha {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px 0 14px;
  min-height: 78px;
}

.form__captcha .g-recaptcha {
  display: inline-block;
  min-width: 304px;
  min-height: 78px;
}

.form__actions {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
}

.form .btn--primary {
  display: flex;
  width: 100%;
  min-height: 56px;
  visibility: visible;
  opacity: 1;
}

.form__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 12px;
  font-size: .95rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding-left: 52px;
}

.field--checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.field--checkbox span {
  display: block;
  line-height: 1.35;
  flex-grow: 1;
}

.field span {
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 16px;
  outline: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.85) 50%),
                    linear-gradient(135deg, rgba(255,255,255,.85) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 4px), calc(100% - 8px) calc(50% - 4px);
  background-size: 8px 8px;
  background-repeat: no-repeat;
  padding-right: 48px;
}

select::-ms-expand {
  display: none;
}

option {
  color: var(--text);
  background: rgba(17, 23, 38, 1);
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(124,92,255,.8);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 4px rgba(124,92,255,.12);
}

label.field span {
  color: var(--muted);
  font-weight: 600;
}

textarea {
  resize: vertical;
  min-height: 200px;
}

.hint {
  margin: 20px 0 24px;
  color: var(--muted);
}

.alert {
  padding: 14px 16px;
  border-left: 4px solid rgba(208,95,125,0.95);
  background: rgba(208,95,125,0.06);
  color: var(--text);
  border-radius: 10px;
  font-size: .95rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.message {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  font-weight: 600;
}

.message--success {
  background: rgba(37, 176, 106, .12);
  color: #bbf4cd;
  border: 1px solid rgba(37, 176, 106, .35);
}

.message--error {
  background: rgba(255, 93, 93, .14);
  color: #ffd7d7;
  border: 1px solid rgba(255, 93, 93, .28);
}

.link {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
}

@media (max-width: 860px) {
  .form__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 16px 64px;
  }

  .hero__logo-wrap {
    padding: 16px;
    border-radius: 24px;
  }

  .container {
    width: min(100%, calc(100% - 24px));
  }
}

@media (max-width: 560px) {
  .story-block__quotes,
  .story-block__closing,
  .story-block__highlight {
    padding: 20px;
  }

  .form__captcha .g-recaptcha {
    transform: scale(0.92);
    transform-origin: center top;
  }

  .hero__subtitle,
  .story-block p,
  .card p,
  .steps li,
  .footer__content {
    font-size: .95rem;
  }
}
