/* Minimal reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body { margin: 0; padding: 0; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; line-height: 1.5; color: #f6eaff; background: #0a0420; }

/* Purple circuit board / hacker night background (mobile-first, subtle layers) */
body {
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255, 0, 170, .25) 0 20%, transparent 21%),
    radial-gradient(circle at 75% 25%, rgba(0, 255, 180, .20) 0 18%, transparent 19%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 8px),
    linear-gradient(#0a0420 0, #0a0420 60%, #18023a 60%);
  background-blend-mode: overlay, overlay, overlay, normal;
  background-attachment: fixed;
  background-size: cover;
}

/* Focus visibility for accessibility */
:focus-visible { outline: 2px solid #ffb6e8; outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(4, 0, 25, 0.65);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.brand { padding: 0.75rem 1rem; font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; color: #fff; }

/* Hero (frosted glass) */
.main, main { display: block; }
.hero {
  width: min(1000px, 92%);
  margin: 2.5rem auto 0;
  padding: 2.5rem 1.75rem;
  display: grid;
  gap: 0.75rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw + 1rem, 2.6rem);
  line-height: 1.15;
  margin: 0;
  color: #fff;
}
.hero h2 {
  font-size: clamp(1.25rem, 3vw + .5rem, 1.8rem);
  margin: 0;
  color: #ffd6f8;
  text-shadow: 0 2px 8px rgba(255,0,170,.5);
}
.subhead {
  color: #e9d5ff;
  opacity: .95;
  margin: .25rem 0 0;
}
.qr-center {
  width: min(340px, 75%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 rgba(0,0,0,.0);
}
.qr-center img { width: 100%; height: auto; display: block; border-radius: 12px; }

/* Telegram link line under the QR */
.telegram-link { font-size: .95rem; color: #eec7ff; margin-top: .25rem; }

/* Footer advertisement and gratitude */
footer { text-align: center; padding: 1rem; color: #e8d6ff; }
.footer-ad { padding: .5rem; background: rgba(255,255,255,.06); border-radius: 12px; border: 1px solid rgba(255,255,255,.15); display: inline-block; margin-bottom: .5rem; }
.footer-ad a { color: #ffd6f8; text-decoration: none; font-weight: 700; }
.footer-ad a:hover { text-decoration: underline; }
.gratitude { margin: .25rem 0 1.25rem; color: #dbc2dc; }

/* Accessibility-friendly link focus for all anchors (if any appear as CTA) */
a { color: #ffd6f8; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Small screens adjustments */
@media (max-width: 599px) {
  .hero { padding: 2rem 1rem; }
  .qr-center { width: 78%; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .qr-center { width: 60%; }
}
@media (min-width: 900px) {
  .qr-center { width: 420px; }
}