:root {
  color-scheme: light;
  --ink: #24172f;
  --muted: #6e6178;
  --violet: #6f2bd9;
  --violet-dark: #4e159d;
  --violet-soft: #eee3ff;
  --paper: #fffdf9;
  --line: #e8deed;
  --shadow: 0 24px 70px rgb(66 33 87 / 16%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgb(255 255 255 / 90%) 0 9%, transparent 31%),
    radial-gradient(circle at 88% 92%, rgb(242 218 255 / 78%) 0 8%, transparent 34%),
    linear-gradient(145deg, #f9f3ff 0%, #f4ecff 48%, #fff4ec 100%);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  color: rgb(111 43 217 / 14%);
  content: "★";
  pointer-events: none;
}

body::before {
  top: 6vh;
  right: 8vw;
  font-size: clamp(5rem, 15vw, 11rem);
  transform: rotate(12deg);
}

body::after {
  bottom: 4vh;
  left: 6vw;
  font-size: clamp(3rem, 9vw, 7rem);
  transform: rotate(-16deg);
}

.page-shell {
  display: grid;
  min-height: 100vh;
  padding: 32px 18px;
  place-items: center;
}

.card {
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 52px);
  overflow: hidden;
  background: rgb(255 253 249 / 94%);
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 38px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(145deg, #8c42ec, #5014a5);
  border-radius: 11px;
  box-shadow: 0 8px 20px rgb(92 33 170 / 28%);
  place-items: center;
}

.eyebrow,
.platform-label {
  margin: 0 0 10px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.65rem, 10vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 48ch;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.actions {
  display: grid;
  gap: 12px;
}

.button,
.copy-button {
  min-height: 52px;
  border-radius: 16px;
  font: inherit;
  font-weight: 760;
  -webkit-tap-highlight-color: transparent;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  box-shadow: 0 12px 28px rgb(86 25 169 / 28%);
}

.button-secondary {
  color: var(--violet-dark);
  background: var(--violet-soft);
}

.button:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.copy-button:focus-visible {
  outline: 3px solid rgb(111 43 217 / 32%);
  outline-offset: 3px;
}

.hint {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.divider {
  height: 1px;
  margin: 34px 0;
  background: var(--line);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 6vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.username-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: #f7f2fa;
  border: 1px solid var(--line);
  border-radius: 18px;
}

code {
  padding-left: 10px;
  overflow: hidden;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.76rem, 3.3vw, 0.98rem);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 44px;
  padding: 10px 14px;
  color: #fff;
  cursor: pointer;
  background: var(--ink);
  border: 0;
}

.copy-status {
  min-height: 1.3em;
  margin: 8px 4px 0;
  color: var(--violet-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 25px;
  color: var(--muted);
  line-height: 1.5;
}

.steps li::marker {
  color: var(--violet);
  font-weight: 800;
}

.footer-note {
  margin: 30px 0 0;
  color: #897d90;
  font-size: 0.76rem;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .page-shell {
    padding: 0;
  }

  .card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand {
    margin-bottom: 32px;
  }

  .username-row {
    grid-template-columns: 1fr;
  }

  code {
    padding: 8px 6px 2px;
    text-align: center;
  }
}

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