:root {
  --bg: #070409;
  --bg-soft: #0d080c;
  --panel: rgba(20, 13, 16, 0.82);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f2f2;
  --soft: #d8cccc;
  --muted: #a99c9f;
  --faint: #776b70;
  --red: #e01010;
  --red-bright: #ff2b2b;
  --red-dark: #9c0b0b;
  --green: #55e0a3;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button, input { font: inherit; }

img { display: block; max-width: 100%; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(10px);
}
.glow-a {
  top: -220px;
  left: 50%;
  width: 820px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(224, 16, 16, 0.2), transparent 72%);
}
.glow-b {
  right: -200px;
  bottom: -260px;
  width: 700px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(140, 8, 8, 0.16), transparent 70%);
}
.grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 72%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand img {
  width: 38px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(224, 16, 16, 0.35));
}
.brand-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-tag {
  padding: 3px 8px;
  border: 1px solid rgba(224, 16, 16, 0.32);
  border-radius: 999px;
  background: rgba(224, 16, 16, 0.08);
  color: #ffb3b3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.topbar-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.topbar-link b { color: var(--soft); font-weight: 700; }
.topbar-link:hover, .topbar-link:hover b { color: #fff; }

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 30px;
}

.hero {
  max-width: 780px;
  margin: 46px auto 34px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 4px rgba(224, 16, 16, 0.12);
}
.hero h1 {
  margin: 22px 0 16px;
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.grad {
  background: linear-gradient(105deg, #ffffff 8%, #ffb1b1 48%, #e01010 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 590px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.panel {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 27px 28px 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(460px 240px at 50% -10%, rgba(224, 16, 16, 0.13), transparent 70%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008)),
    var(--panel);
  box-shadow: 0 40px 100px -60px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  border: 1px solid rgba(224, 16, 16, 0.22);
  border-radius: 15px;
  background: radial-gradient(circle at 50% 40%, rgba(224, 16, 16, 0.18), rgba(224, 16, 16, 0.03));
}
.logo-mark img { width: 34px; height: auto; }
.panel-head h2 {
  margin: 0 0 3px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.panel-head p {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
}

#key-form { padding-top: 21px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.field input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input::placeholder { color: #5f5459; }
.field input:focus {
  border-color: rgba(224, 16, 16, 0.6);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 0 4px rgba(224, 16, 16, 0.09);
}
.hint {
  margin: 7px 0 0;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.5;
}
.hint code {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 9.5px;
}
.error {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 76, 76, 0.28);
  border-radius: 10px;
  background: rgba(224, 16, 16, 0.08);
  color: #ffb5b5;
  font-size: 11.5px;
  line-height: 1.5;
}
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border: 1px solid rgba(255, 120, 120, 0.28);
  border-radius: 12px;
  background: linear-gradient(100deg, #e01010, #b10c0c);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 18px 36px -20px rgba(224, 16, 16, 0.9);
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { cursor: wait; opacity: 0.65; transform: none; }
.arrow { font-size: 16px; line-height: 1; }
.secure {
  margin: 13px 0 0;
  color: var(--faint);
  font-size: 9.5px;
  text-align: center;
}
.lock { color: var(--red-bright); }

.success { padding-top: 22px; }
.success-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.check {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(85, 224, 163, 0.3);
  border-radius: 50%;
  background: rgba(85, 224, 163, 0.08);
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
}
.success-head h2 {
  margin: 1px 0 3px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.success-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}
.file-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 48px;
  flex: 0 0 42px;
  border: 1px solid rgba(224, 16, 16, 0.25);
  border-radius: 9px;
  background: rgba(224, 16, 16, 0.09);
  color: #ff9d9d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.file-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.file-copy b {
  overflow: hidden;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-copy span { color: var(--faint); font-size: 9.5px; }
.btn-download {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255, 120, 120, 0.3);
  border-radius: 9px;
  background: linear-gradient(100deg, #e01010, #b10c0c);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-download:hover { transform: translateY(-1px); filter: brightness(1.08); }

.install-steps {
  display: grid;
  gap: 8px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}
.install-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.install-steps li span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
}
.install-steps li p { margin: 0; }
.install-steps b { color: var(--soft); }

.note {
  margin: 15px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--faint);
  font-size: 10px;
  line-height: 1.55;
}
.download-progress { margin: 14px 0 0; }
.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e01010, #ff6b6b);
  transition: width 0.2s ease;
}
.download-progress p {
  margin: 7px 0 0;
  color: var(--faint);
  font-size: 9.5px;
}

.key-recap {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.key-recap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.key-recap h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
}
.key-recap > p {
  margin: 6px 0 9px;
  color: var(--faint);
  font-size: 10px;
}
.btn-copy {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.btn-copy:hover { border-color: rgba(224, 16, 16, 0.35); background: rgba(224, 16, 16, 0.06); }
.cfg-lines {
  max-height: 210px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--soft);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 9.5px;
  line-height: 1.55;
  white-space: pre;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.btn-discord, .btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-discord:hover, .btn-reset:hover { border-color: rgba(224, 16, 16, 0.35); background: rgba(224, 16, 16, 0.06); }
.btn-discord span { color: var(--red-bright); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(940px, 100%);
  margin: 34px auto 0;
}
.steps article {
  padding: 18px 18px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.018);
}
.step-num {
  display: inline-block;
  margin-bottom: 10px;
  color: #ff8f8f;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.steps h3 {
  margin: 0 0 5px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.steps p {
  margin: 0;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.6;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #5d5257;
  font-size: 9.5px;
}
footer a { color: var(--faint); }
footer a:hover { color: var(--soft); }

.lost {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px;
  text-align: center;
}
.lost img { filter: drop-shadow(0 0 20px rgba(224, 16, 16, 0.35)); }
.lost h1 {
  margin: 24px 0 6px;
  font-family: var(--display);
  font-size: 38px;
  letter-spacing: -0.04em;
}
.lost p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.lost-btn { width: auto; margin-top: 0; padding: 0 24px; }

@media (max-width: 720px) {
  .topbar { padding: 18px 0; }
  .brand-tag { display: none; }
  .topbar-link { font-size: 10.5px; }
  .hero { margin: 34px auto 26px; }
  .panel { padding: 22px 18px 20px; border-radius: 18px; }
  .steps { grid-template-columns: 1fr; }
  .download-card { flex-wrap: wrap; }
  .btn-download { width: 100%; text-align: center; }
  footer { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 16px; }
  .brand img { width: 32px; }
  main, .topbar, footer { width: calc(100% - 30px); }
  .panel-head { gap: 10px; }
  .logo-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .logo-mark img { width: 29px; }
}
