:root {
  --bg: #0a0f1c;
  --bg2: #111827;
  --card: rgba(255, 255, 255, 0.06);
  --card-solid: #121a2b;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #2563eb;
  --blue2: #3b82f6;
  --gold: #f59e0b;
  --gold2: #fbbf24;
  --green: #22c55e;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.35), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(245, 158, 11, 0.22), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, #070b14 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}
.orb-a { width: 320px; height: 320px; left: -60px; top: 120px; background: #2563eb; }
.orb-b { width: 260px; height: 260px; right: -40px; top: 40%; background: #f59e0b; opacity: 0.35; }
.orb-c { width: 380px; height: 380px; left: 30%; bottom: -120px; background: #1d4ed8; opacity: 0.25; }

.doodles {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M28 36c8-10 22-8 28 2 4 7 2 16-4 20'/%3E%3Ccircle cx='120' cy='34' r='10'/%3E%3Cpath d='M98 88h28v18H98z'/%3E%3Cpath d='M126 94h10c6 0 10 4 10 9s-4 9-10 9h-8'/%3E%3Cpath d='M24 110c10 0 18 8 18 18s-8 18-18 18-18-8-18-18'/%3E%3Cpath d='M70 128c8-14 28-14 36 0'/%3E%3Cpath d='M78 42l8 14 16 2-12 10 4 15-14-8-14 8 4-15-12-10 16-2z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
  animation: drift 48s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 320px 160px; }
}

.top {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue), #1e40af);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 8px 24px rgba(37,99,235,0.35);
  font-size: 18px;
}
.ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.ghost:hover { color: var(--ink); border-color: rgba(255,255,255,0.2); }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: grid;
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero {
  padding: 28px 24px 24px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue2);
}
.eyebrow.gold { color: var(--gold2); }
h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--gold2), #fff, var(--blue2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}
.lead.sm { font-size: 0.98rem; margin-bottom: 18px; }
.lead strong, .step strong { color: var(--ink); font-weight: 700; }

.code-box {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  max-width: 420px;
}
.code-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.code-row code {
  flex: 1;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
}
.copy-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--gold);
  color: #111;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}
.copy-btn:hover { filter: brightness(1.05); }
.copy-btn.done { background: var(--green); color: #052e16; }
.hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--green);
}
.copy-preview {
  margin: 10px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(180deg, var(--blue2), var(--blue));
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}
.btn.secondary {
  background: rgba(255,255,255,0.06);
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.btn.full { width: 100%; }

.qr-panel {
  padding: 22px 20px 20px;
  text-align: center;
}
.qr-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
}
.qr-head p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}
.qr-frame {
  width: min(280px, 78vw);
  margin: 0 auto 12px;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.handle {
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue2);
}
.qr-actions {
  display: grid;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}

.steps {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
  .hero { grid-column: 1; grid-row: 1; }
  .qr-panel { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 16px; }
  .steps { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .work, .reward { grid-column: 1 / -1; }
}
.step {
  padding: 18px 16px;
}
.step .n {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold2);
  margin-bottom: 8px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.work {
  padding: 26px 22px;
}
.work h2, .reward h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  line-height: 1.15;
}
.form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}
.field {
  display: grid;
  gap: 6px;
}
.field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}
.field input:focus,
.field select:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.field select option { color: #111; }
.form-note {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}
.form-ok {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-weight: 600;
}

.reward {
  padding: 26px 22px;
  background:
    linear-gradient(135deg, rgba(37,99,235,0.18), transparent 40%),
    linear-gradient(225deg, rgba(245,158,11,0.14), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}
.reward-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 720px) {
  .reward-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}
.big {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--gold2), #fff 45%, var(--blue2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reward p { color: var(--muted); margin: 0; }
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding: 12px 14px 12px 40px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--gold2) 0 35%, transparent 36%),
    linear-gradient(var(--blue), var(--blue));
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
}

.foot {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 40px;
  color: #64748b;
  font-size: 13px;
}
.foot a { color: #93c5fd; }
.foot .fine { margin-top: 6px; opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  .doodles { animation: none; }
  .btn { transition: none; }
}
