:root {
  color-scheme: dark;
  --ink: #f7fbfc;
  --muted: #9ba9b3;
  --panel: rgba(25, 25, 26, 0.82);
  --line: rgba(136, 255, 255, 0.16);
  --cyan: #88ffff;
  --cyan-deep: #00a8bf;
  --error: #ff8f9b;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(145deg, #0c1114 0%, #12191d 46%, #090c0e 100%);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.15;
  pointer-events: none;
}

.ambient-one {
  top: -16rem;
  right: -8rem;
  background: var(--cyan);
}

.ambient-two {
  bottom: -20rem;
  left: -12rem;
  background: var(--cyan-deep);
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 32px;
}

.site-header img {
  width: 144px;
  height: auto;
  filter: brightness(0) invert(1);
}

.partner-label {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--muted);
  font-size: 0.92rem;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  min-height: calc(100vh - 190px);
  padding-block: 40px 80px;
}

.eyebrow,
.step-label {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 590px;
  color: #c3ccd2;
  font-size: 1.15rem;
  line-height: 1.65;
}

.benefits {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  color: #dce4e8;
  list-style: none;
}

.benefits span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.72rem;
}

.card {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(24px);
}

.card > div > p:not(.step-label, .token-warning),
.card form > p:not(.step-label) {
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.55;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #dfe7ea;
  font-size: 0.88rem;
  font-weight: 600;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(136, 255, 255, 0.12);
}

.checkbox-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-weight: 450;
  line-height: 1.45;
}

.checkbox-row input {
  min-height: auto;
  margin-top: 2px;
  accent-color: var(--cyan-deep);
}

.button {
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.button:focus-visible {
  outline: 3px solid rgba(136, 255, 255, 0.55);
  outline-offset: 3px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.button-primary {
  width: 100%;
  color: #071012;
  background: linear-gradient(135deg, var(--cyan), #31d7e8);
}

.button-primary:hover:not(:disabled) {
  filter: brightness(1.07);
}

.button-secondary {
  flex: 0 0 auto;
  min-height: 42px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
}

.notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.45;
}

.notice-error {
  border: 1px solid rgba(255, 143, 155, 0.28);
  color: var(--error);
  background: rgba(255, 143, 155, 0.08);
}

.success-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(136, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(136, 255, 255, 0.08);
  font-size: 1.4rem;
}

.token-box {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
}

.token-box code {
  min-width: 0;
  overflow: hidden;
  color: var(--cyan);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-warning {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-block: 0 28px;
  color: #6f7d85;
  font-size: 0.78rem;
}

[hidden] {
  display: none;
}

@media (max-width: 820px) {
  main {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  h1 {
    max-width: 600px;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    padding-block: 22px;
  }

  main {
    gap: 36px;
    padding-bottom: 48px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card {
    border-radius: 20px;
  }

  .token-box {
    align-items: stretch;
    flex-direction: column;
  }

  footer {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
  }
}
