/* Black waves with teal accents and frosted glass for a hacker-night vibe */

/* Root tokens (mobile-first) */
:root {
  --bg: #000;                    /* base black */
  --card: rgba(255, 255, 255, 0.92); /* frosted glass panel */
  --text: #e8fffd;
  --muted: #66f1db;
  --border: rgba(0, 0, 0, 0.15);
  --focus: #2ff3d6;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  --cta: #18f0d7;
  --teal: #2bd5c0;
  --bg-wave-1: rgba(0, 255, 230, 0.15);
  --bg-wave-2: rgba(0, 255, 210, 0.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }

/* Page base (mobile-first) */
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: #000;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  /* subtle black waves using layered gradients + teal glow */
  background-image:
    radial-gradient(circle at 15% 0, rgba(0,255,210,.18) 0 12px, transparent 12px),
    radial-gradient(circle at 85% 20%, rgba(0,255,210,.15) 0 12px, transparent 12px),
    linear-gradient(135deg, rgba(0,0,0,.75) 0 60%, rgba(0,0,0,.9) 100%);
  background-size: 80px 80px, 80px 80px, 100% 100%;
  background-blend-mode: overlay;
  isolation: isolate;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, rgba(0,255,255,.15) 0 20px, transparent 20px),
              radial-gradient(circle at 75% 60%, rgba(0,255,180,.15) 0 20px, transparent 20px);
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  animation: shimmer 12s linear infinite;
}
@keyframes shimmer { 0%,100% { opacity: 0.95; } 50% { opacity: 1; } }

/* Header */
.site-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}
.brand {
  font-weight: 700;
  color: #d6fff8;
  text-shadow: 0 0 8px rgba(0,0,0,.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Main container */
main {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

/* Grid helper (mobile-first) */
.grid-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }

/* Hero section (central donation QR) */
.hero {
  width: min(92%, 860px);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.92); /* frosted glass */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
  color: #0a0a0a;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 40% 0%, rgba(0,255,200,.25), transparent 40%),
              radial-gradient(circle at 60% 100%, rgba(0,0,0,.08), transparent 40%);
  filter: blur(14px);
  z-index: -1;
  animation: glow 12s ease-in-out infinite;
}
@keyframes glow { 0%,100% { transform: translateZ(0); } 50% { transform: scale(1.02); } }

.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.8rem);
  color: #eaf8f8;
}
.subhead {
  font-size: clamp(1rem, 0.8vw + 0.8rem, 1.25rem);
  color: #b3e6e0;
  margin: 0;
}
.qr-hero {
  display: grid;
  place-items: center;
  margin-top: 6px;
}
.qr-hero img {
  width: min(72vw, 420px);
  height: auto;
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 14px 38px rgba(0,0,0,.25);
}
.telegram-link {
  color: #1b2b2b;
  font-size: 1rem;
  margin: 0;
}
.telegram-link a {
  color: #0a2a2a;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,0,0,.4);
}
.telegram-link a:hover, .telegram-link a:focus { color: #000; text-decoration: underline; }

/* Footer advertisement */
.site-footer {
  width: 100%;
  padding: 1rem;
  text-align: center;
  background: rgba(0,0,0,.55);
  color: #e6fffb;
  border-top: 1px solid rgba(255,255,255,.15);
}
.footer-ad {
  font-size: 0.95rem;
  color: #e6fffb;
}
.footer-ad a {
  display: inline-block;
  padding: 0.6em 1.0em;
  border-radius: 999px;
  background: linear-gradient(135deg, #2bd7a9, #1bd2a6);
  color: #062f2f;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.15);
  transition: transform .2s ease;
}
.footer-ad a:hover, .footer-ad a:focus {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.footer-ad a:active { transform: translateY(0); }
.gratitude { margin: 0.5rem 0 0; font-size: 0.92rem; color: #d6ffd6; }

/* Focus ring for accessibility */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Responsive tweaks */
@media (min-width: 768px) {
  .hero { padding: 2.5rem; }
  .brand { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 3rem; }
  .qr-hero img { width: 420px; }
}