:root {
  color-scheme: dark;
  --navy: #071a34;
  --navy-soft: #0d284a;
  --card: rgba(13, 40, 74, 0.9);
  --line: rgba(255, 255, 255, 0.14);
  --text: #fffdf4;
  --muted: rgba(255, 253, 244, 0.7);
  --gold: #ffb928;
  --blue-light: #51b4e8;
  --magenta: #e94b9b;
  --danger: #ff9bce;
  --ink: #0a1b2f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
    Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 15%, rgba(17, 120, 181, 0.3), transparent 34rem),
    radial-gradient(circle at 90% 80%, rgba(233, 75, 155, 0.18), transparent 30rem),
    var(--navy);
}

main {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) 0 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  object-fit: cover;
}

.card {
  margin-top: 28px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 185, 40, 0.12), transparent 42%),
    var(--card);
  box-shadow: 0 28px 80px rgba(0, 7, 20, 0.34);
  backdrop-filter: blur(16px);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 { margin: 0 0 8px; font-size: 22px; }
.section-title { margin-top: 32px; }
p { color: var(--muted); line-height: 1.6; }
.legal { margin-top: 18px; font-size: 13px; }
.legal a,
footer a { color: var(--blue-light); text-underline-offset: 0.18em; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

form { display: grid; gap: 14px; margin-top: 28px; }
label { font-size: 14px; color: var(--muted); }

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(81, 180, 232, 0.55);
  outline-offset: 3px;
}

button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 185, 40, 0.65);
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 13px 30px rgba(255, 185, 40, 0.18);
  font: 700 15px/1.2 inherit;
  text-decoration: none;
  cursor: pointer;
}

button.secondary,
.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
}

button:disabled { cursor: wait; opacity: 0.58; }
.hidden { display: none !important; }
.notice { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: rgba(104, 224, 207, 0.08); }
.error { color: var(--danger); }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.status { font-size: 18px; color: var(--text); }

.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.offer { padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.offer strong { display: block; font-size: 20px; margin-bottom: 6px; }
.offer button { width: 100%; margin-top: 14px; }

.secret {
  overflow-wrap: anywhere;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}

footer { margin-top: 24px; font-size: 13px; color: var(--muted); line-height: 1.6; }

@media (prefers-reduced-motion: no-preference) {
  .card { animation: appear 420ms ease-out both; }
  @keyframes appear { from { opacity: 0; transform: translateY(8px); } }
}
