:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --panel: #141619;
  --ink: #f4f5f0;
  --muted: #999e9a;
  --line: #303438;
  --acid: #d7ff3f;
  --red: #ff5a45;
  --radius: 6px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header, footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header { height: 88px; border-bottom: 1px solid var(--line); }

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand > span:last-child span { color: var(--acid); }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--bg); background: var(--acid); border-radius: 2px; }
.secure-label { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.secure-label i { width: 7px; height: 7px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 12px rgba(215,255,63,.65); }

main {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .75fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  padding: 58px 0 72px;
}

.eyebrow, .panel-heading p, .result-kicker { margin: 0 0 20px; color: var(--acid); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
h1 { margin: 0; max-width: 650px; font-size: clamp(52px, 6.6vw, 92px); line-height: .98; letter-spacing: 0; }
h1 span { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.lede { max-width: 560px; margin: 34px 0; color: #c6c9c5; font-size: 17px; line-height: 1.8; }

.process { display: flex; gap: 26px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.process span { display: flex; gap: 8px; align-items: center; }
.process b { color: var(--red); font: 700 10px ui-monospace, monospace; }

.pickup-panel { min-height: 540px; padding: 38px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 18px 18px 0 rgba(0,0,0,.22); }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; }
.panel-heading p { margin: 0 0 5px; }
h2 { margin: 0; font-size: 28px; letter-spacing: 0; }

label, legend { display: block; margin-bottom: 10px; color: #c5c8c4; font-size: 13px; font-weight: 650; }
input[type="text"] { width: 100%; height: 54px; padding: 0 15px; color: var(--ink); background: #0d0f11; border: 1px solid #3b4045; border-radius: 4px; outline: 0; text-transform: uppercase; }
input[type="text"]:focus { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(215,255,63,.1); }
input::placeholder { color: #666c6b; text-transform: none; }
fieldset { padding: 0; margin: 28px 0 30px; border: 0; }

.plan-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan-option { position: relative; margin: 0; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option span { min-height: 76px; padding: 14px 10px; display: flex; flex-direction: column; justify-content: center; text-align: center; background: #0d0f11; border: 1px solid #34383c; border-radius: 4px; transition: border-color .18s, background .18s; }
.plan-option strong { color: var(--ink); font-size: 15px; }
.plan-option small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.plan-option input:checked + span { background: rgba(215,255,63,.08); border-color: var(--acid); }
.plan-option input:focus-visible + span { outline: 2px solid var(--acid); outline-offset: 2px; }

.primary-button { width: 100%; min-height: 54px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: #080a08; background: var(--acid); border: 0; border-radius: 4px; font-weight: 800; text-decoration: none; cursor: pointer; transition: background .18s, transform .18s; }
.primary-button:hover { background: #e4ff78; transform: translateY(-1px); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.message { margin: -15px 0 18px; font-size: 13px; line-height: 1.5; }
.error { color: #ff8a79; }
.support-note { margin: 18px 0 0; color: #737977; font-size: 11px; line-height: 1.6; text-align: center; }

.result-view { padding-top: 45px; text-align: center; }
.success-mark { width: 58px; height: 58px; margin: 0 auto 25px; display: grid; place-items: center; color: #10120b; background: var(--acid); border-radius: 50%; font-size: 25px; font-weight: 900; }
.result-view > p:not(.result-kicker):not(.copy-status) { margin: 14px 0 28px; color: var(--muted); font-size: 14px; }
.key-box { margin: 0 0 8px; padding: 8px 8px 8px 15px; display: flex; align-items: center; gap: 10px; background: #0b0d0f; border: 1px dashed #4c5357; border-radius: 4px; }
.key-box code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--acid); font: 700 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: left; }
.key-box button { height: 36px; padding: 0 12px; color: var(--ink); background: #272b2e; border: 0; border-radius: 3px; cursor: pointer; }
.copy-status { min-height: 20px; margin: 0 0 18px; color: var(--acid); font-size: 12px; }

footer { min-height: 82px; color: #646967; border-top: 1px solid var(--line); font: 600 10px ui-monospace, monospace; }

[hidden] { display: none !important; }

@media (max-width: 820px) {
  .site-header, main, footer { width: min(100% - 28px, 600px); }
  .site-header { height: 70px; }
  main { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding: 48px 0 56px; }
  h1 { font-size: 52px; }
  .lede { margin: 26px 0; font-size: 15px; }
  .process { gap: 14px; justify-content: space-between; }
  .process span { gap: 5px; flex-direction: column; align-items: flex-start; }
  .pickup-panel { min-height: 500px; padding: 26px 20px; box-shadow: 8px 8px 0 rgba(0,0,0,.22); }
  .panel-heading { display: block; }
  .panel-heading p { margin-bottom: 8px; }
  footer { padding: 22px 0; gap: 10px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 370px) {
  h1 { font-size: 44px; }
  .plan-option span { padding-inline: 5px; }
}

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