:root {
  --bg1: #0f172a;
  --bg2: #111827;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #7c3aed;
  --accent2: #06b6d4;
  --good: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --border: rgba(255, 255, 255, .18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(124,58,237,.35), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(6,182,212,.30), transparent 30%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 50px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 16px 45px rgba(6,182,212,.24);
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a, .back {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.hero {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  border-radius: 32px;
  padding: 30px;
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: .95;
  letter-spacing: -0.06em;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  max-width: 800px;
  margin: 18px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  border-radius: 26px;
  padding: 22px;
  backdrop-filter: blur(18px);
}

.card.full {
  grid-column: 1 / -1;
}

h2 {
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

h3 {
  margin: 18px 0 8px;
}

p, li {
  color: var(--muted);
  line-height: 1.55;
}

ul, ol {
  padding-left: 22px;
  margin-bottom: 0;
}

code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.32);
  color: #e0f2fe;
  word-break: break-word;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.10);
  transition: .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
}

.btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 18px 50px rgba(6,182,212,.20);
}

.note {
  border-left: 4px solid var(--good);
  background: rgba(34,197,94,.12);
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text);
  margin-top: 14px;
}

.warn {
  border-left: 4px solid var(--warn);
  background: rgba(245,158,11,.12);
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text);
  margin-top: 14px;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.green {
  background: var(--good);
  box-shadow: 0 0 0 6px rgba(34,197,94,.14);
}

.dot.yellow {
  background: var(--warn);
  box-shadow: 0 0 0 6px rgba(245,158,11,.14);
}

.qr {
  width: 170px;
  max-width: 100%;
  background: white;
  border-radius: 20px;
  padding: 12px;
}

footer {
  margin-top: 28px;
  color: rgba(203,213,225,.75);
  font-size: 14px;
}

@media (max-width: 820px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .grid,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}
