:root {
  color-scheme: dark;
  --bg-top: #061a3a;
  --bg-mid: #0b4097;
  --bg-bottom: #1578d6;
  --surface: rgba(248, 251, 255, 0.96);
  --ink: #08111f;
  --muted: #556982;
  --accent: #0b6fcb;
  --accent-soft: rgba(11, 111, 203, 0.12);
  --border: rgba(11, 64, 151, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(150deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bottom) 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 32px;
  gap: 20px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: 28px;
  padding: 28px 24px 26px;
  box-shadow: 0 24px 60px rgba(3, 18, 46, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(11, 64, 151, 0.25);
  flex-shrink: 0;
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(8, 17, 31, 0.06);
  color: var(--ink);
}

.pill-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.subcopy {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.code-panel {
  margin-top: 20px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  text-align: center;
}

.code-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--muted);
}

.code-tiles {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 14px;
}

.code-tile {
  width: 40px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid rgba(11, 111, 203, 0.25);
}

.copy-status {
  margin: 8px 0 0;
  min-height: 18px;
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
}

.cta-stack {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: linear-gradient(135deg, #0b4097, #0b6fcb);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(11, 64, 151, 0.28);
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.hint {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
}

.footer {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 360px) {
  .code-tile {
    width: 34px;
    height: 40px;
    font-size: 17px;
  }
}
