@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #e03030;
  --red2:   #ff5555;
  --bg:     #0c0c0e;
  --bg2:    #111115;
  --bg3:    #18181f;
  --border: #26262f;
  --text:   #e8e8ec;
  --muted:  #6b6b7a;
  --green:  #3dba72;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Subtle noise texture via pseudo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

/* Header */
.brand {
  text-align: center;
  margin-bottom: 28px;
}
.brand-name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--red);
}
.brand-name em {
  color: var(--text);
  font-style: normal;
}
.brand-tag {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Card */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
}

/* Steps indicator */
.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.step-dot.done    { background: #1a3a25; color: var(--green); border: 1px solid #2a5a3a; }
.step-dot.active  { background: var(--red); color: #fff; }
.step-dot.pending { background: var(--bg3); color: #444; border: 1px solid var(--border); }
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 40px;
}

/* Content */
.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

/* Input */
label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 14px;
}
.input:focus { border-color: var(--red); }
.input::placeholder { color: #3a3a48; }

/* Button */
.btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, opacity 0.15s;
}
.btn:hover { background: var(--red2); }
.btn.off   { background: var(--bg3); color: #444; cursor: not-allowed; pointer-events: none; }

/* Key display */
.key-display {
  background: var(--bg3);
  border: 1px solid #2a3a2a;
  border-radius: 8px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  color: var(--green);
  letter-spacing: 2px;
  text-align: center;
  margin: 18px 0;
  word-break: break-all;
}

/* Instructions box */
.how {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 18px;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.75;
}
.how b { color: var(--text); }
.how code {
  font-family: 'JetBrains Mono', monospace;
  background: #0a0a0e;
  color: #7ab8ff;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.82rem;
}

/* Misc */
.note  { font-size: 0.78rem; color: var(--muted); margin-top: 12px; text-align: center; }
.ok    { color: var(--green); }
.warn  { color: #e8a030; font-size: 0.82rem; margin-top: 12px; }
.err   { color: var(--red2); }
.mono  { font-family: 'JetBrains Mono', monospace; }
