/* Reset and base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; font-size: 16px; }
body {
  margin: 0;
  color: #eaffff;
  /* Olive gradient with teal accents for a hacker night theme */
  background: linear-gradient(135deg, #2d3b0a 0%, #1e2f0a 50%, #0f140a 100%);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(0, 254, 204, .25) 0 60px, transparent 61px),
    radial-gradient(circle at 85% 25%, rgba(0, 179, 159, .25) 0 60px, transparent 61px);
  background-size: 60px 60px, 60px 60px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Overlay glow for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(0,255,200,.15) 0 500px, transparent 501px),
              radial-gradient(circle at 50% 100%, rgba(0,255,150,.15) 0 500px, transparent 501px);
  mix-blend-mode: overlay;
  opacity: .6;
  z-index: 0;
}

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

/* Frosted glass hero layout */
.hero {
  width: min(960px, 92%);
  margin: 3rem auto 2rem;
  padding: 2.5rem 1.75rem;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  text-align: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw + 1rem, 2.6rem);
  margin: 0;
  color: #ffffff;
}
.hero h2 {
  font-size: clamp(1.25rem, 2.4vw + 0.5rem, 1.75rem);
  margin: 0;
  color: #2eead0;
  text-shadow: 0 2px 8px rgba(0, 255, 200, 0.6);
}
.subhead {
  color: #e7f6f0;
  opacity: 0.95;
  margin: 0.25rem 0 0;
}
.qr-center {
  width: min(360px, 78%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(0, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.qr-center img { width: 100%; height: auto; border-radius: 12px; }
.telegram-link { font-size: .95rem; color: #eaffff; margin-top: .25rem; }

/* Footer with advertisement styling */
footer { text-align: center; padding: 1rem; }
.footer-ad {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(0, 220, 220, 0.28);
  border: 1px solid rgba(0, 220, 220, 0.6);
  margin-bottom: .5rem;
}
.footer-ad a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
  padding: .25rem .5rem;
  display: inline-block;
}
.footer-ad a:hover { text-decoration: underline; }
.gratitude { color: #ffd9c8; margin: .25rem 0 1.25rem; }

/* Accessibility */
a { color: #c6fff5; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
:focus-visible { outline: 2px solid #35ffd2; 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; }
}