:root {
  --color-bg: #171716;
  --color-text: #f2f0ea;
  --color-soft: rgba(242, 240, 234, 0.72);
  --color-muted: rgba(242, 240, 234, 0.45);
  --color-line: rgba(255, 255, 255, 0.1);
  --color-input: rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(244, 244, 240, 0.07), transparent 30%),
    radial-gradient(circle at 75% 18%, rgba(196, 153, 109, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(91, 102, 86, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    var(--color-bg);
  color: var(--color-text);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  width: min(100%, 1320px);
  margin: 0 auto;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 42px;
  padding: 48px;
}

.intro {
  max-width: 560px;
}

.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.back-link:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.avatar {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.avatar img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--color-text);
  font-family: Sora, Manrope, sans-serif;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
}

.lead {
  max-width: 460px;
  margin: 24px 0 0;
  color: var(--color-soft);
  font-size: 18px;
  line-height: 1.7;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.chips span {
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-panel {
  border: 1px solid var(--color-line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.045);
  padding: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

form {
  display: grid;
  gap: 22px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 9px;
}

label span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  outline: none;
  background: var(--color-input);
  color: #fff;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

input {
  min-height: 58px;
  padding: 0 16px;
}

textarea {
  min-height: 184px;
  resize: vertical;
  padding: 16px;
  line-height: 1.7;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

input:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.26);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.honeypot {
  display: none;
}

.choice-field {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 6px 0 0;
}

.choice-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
  grid-column: span 2;
}

.choice-wide {
  grid-column: span 3;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  display: grid;
  min-height: 62px;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
  padding: 13px 16px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.choice-card:hover span {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
}

.choice-card input:checked + span {
  border-color: rgba(242, 240, 234, 0.78);
  background:
    linear-gradient(145deg, rgba(242, 240, 234, 0.98), rgba(205, 196, 176, 0.9)),
    var(--color-text);
  color: var(--color-bg);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.choice-card input:focus-visible + span {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.form-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.form-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
}

button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--color-text);
  padding: 0 24px;
  color: var(--color-bg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

button:hover {
  background: #fff;
  transform: scale(1.02);
}

.thanks-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 16px;
}

.thanks-panel {
  width: min(100%, 580px);
  border: 1px solid var(--color-line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.045);
  padding: 40px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.thanks-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.88);
  font-size: 28px;
  font-weight: 900;
}

.thanks-panel .lead {
  margin-right: auto;
  margin-left: auto;
}

.thanks-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  border-radius: 999px;
  background: var(--color-text);
  padding: 0 22px;
  color: var(--color-bg);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.thanks-button:hover {
  background: #fff;
  transform: scale(1.02);
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

@media (max-width: 920px) {
  .page-shell {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
    padding: 28px;
  }

  .intro {
    max-width: 680px;
  }

  .lead {
    font-size: 16px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 22px 16px;
  }

  .back-link {
    margin-bottom: 28px;
  }

  .avatar {
    width: 96px;
    height: 96px;
  }

  .form-panel {
    border-radius: 28px;
    padding: 20px;
  }

  .field-grid,
  .choice-grid,
  .form-footer {
    grid-template-columns: 1fr;
  }

  .choice-card,
  .choice-wide {
    grid-column: auto;
  }

  button {
    width: 100%;
  }
}
