/* Minimal reset and base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #ffd9f3;
  /* Brown gradient with magenta accents for a hacker night vibe */
  background: linear-gradient(135deg, #2a1a0a 0%, #1a0f0a 60%, #4a1b14 100%);
  background-blend-mode: normal;
  background-image:
    linear-gradient(135deg, rgba(42,26,10,.95), rgba(26,10,8,.95)),
    radial-gradient(circle at 60% 20%, rgba(255,0,170,.25) 0 30%, transparent 31%),
    radial-gradient(circle at 15% 85%, rgba(255,0,170,.18) 0 25%, transparent 26%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Hero section (frosted glass, centerpiece) */
.hero {
  width: min(980px, 92%);
  margin: 3rem auto 2rem;
  padding: 2.5rem 1.75rem;
  display: grid;
  gap: 0.75rem;
  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(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw + 1rem, 2.6rem);
  margin: 0;
  color: #fff;
}
.hero h2 {
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem);
  margin: 0;
  color: #ffb3d9;
  text-shadow: 0 2px 8px rgba(255,0,170,.6);
}
.subhead {
  color: #ffd1e8;
  opacity: 0.95;
  margin: 0.25rem 0 0;
}
.qr-center {
  width: min(320px, 78%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.qr-center img { width: 100%; height: auto; border-radius: 12px; }

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

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

/* Link styles for accessibility */
a { color: #ffd6f8; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }
:focus-visible { outline: 2px solid #ff5c8a; outline-offset: 2px; }

/* Responsive tweaks (mobile-first) */
@media (min-width: 700px) {
  .hero { padding: 3rem 2.5rem; }
  .qr-center { width: 420px; }
}
@media (min-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
}