/* Neon hacker-night theme with frosted glass, mobile-first layout */

/* CSS Variables */
:root {
  --bg: #0a0a0a;
  --surface: rgba(15, 15, 15, 0.65);
  --border: rgba(255, 122, 0, 0.6);
  --accent: #ff7a00;
  --accent-soft: rgba(255, 122, 0, 0.6);
  --text: #f5f5f5;
  --muted: #d9d9d9;
  --glow: rgba(255, 122, 0, 0.9);
}

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background-color: #0a0a0a;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  min-height: 100dvh;
  line-height: 1.5;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(255, 122, 0, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(255, 140, 0, 0.20) 0%, transparent 40%);
  background-size: 120% 120%, 120% 120%;
  animation: glow 12s ease-in-out infinite;
  overflow-x: hidden;
}
@keyframes glow {
  0%, 100% { background-position: 0% 0%, 0% 0%; }
  50% { background-position: 60% 40%, 40% 60%; }
}

/* Header */
.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 1rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 120, 0, 0.25);
  backdrop-filter: saturate(1.2);
  -webkit-backdrop-filter: saturate(1.2);
}
.brand {
  font-weight: 700;
  font-family: inherit;
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 120, 0, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand span { filter: drop-shadow(0 0 6px rgba(255, 120, 0, 0.9)); }

/* Main content */
main { display: grid; justify-items: center; padding: 2rem 1rem; }

/* Hero (donation centerpiece) */
.hero {
  width: min(92%, 1000px);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 1rem;
  background: linear-gradient(to bottom right, rgba(8,8,8,0.75), rgba(20,20,20,0.65));
  border: 1px solid rgba(255, 140, 0, 0.5);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.65);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg at 50% 50%, rgba(255, 120, 0, 0.25), transparent 25%, rgba(255, 180, 0, 0.25), transparent 50%);
  filter: blur(18px);
  z-index: -1;
  animation: rotate 12s linear infinite;
  mix-blend-mode: screen;
}
@keyframes rotate { to { transform: rotate(360deg); } }

.hero h1 {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.8rem);
  line-height: 1.15;
  color: #fff;
  margin: 0;
  text-shadow: 0 0 12px rgba(255, 122, 0, 0.9);
}
.subhead {
  font-size: clamp(1.05rem, 1vw + 0.6rem, 1.25rem);
  color: #ffd9a8;
  margin: 0;
}
.qr-hero {
  display: grid;
  place-items: center;
  margin-top: 4px;
}
.qr-hero img {
  width: min(70vw, 420px);
  height: auto;
  border-radius: 16px;
  padding: 12px;
  background: rgba(0,0,0,0.25);
  border: 2px solid rgba(255, 180, 60, 0.7);
  box-shadow: 0 16px 40px rgba(0,0,0,0.65);
}
.telegram-link {
  color: #ffd9a8;
  font-size: 1rem;
  margin: 0;
}
.telegram-link a {
  color: #ffd29e;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 196, 92, 0.6);
}
.telegram-link a:hover,
.telegram-link a:focus { text-decoration: underline; color: #fff; }

/* Footer advertisement block */
.site-footer {
  padding: 1rem;
  text-align: center;
  color: #d4d4d4;
  background: #050505;
  border-top: 1px solid rgba(255, 120, 0, 0.25);
}
.footer-ad {
  font-size: 0.92rem;
  color: #eeda9b;
}
.footer-ad a {
  color: #ffd29e;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 196, 92, 0.6);
}
.footer-ad a:hover, .footer-ad a:focus { text-decoration: underline; color: #fff; }
.gratitude { margin: 0.5rem 0 0; font-size: 0.9rem; color: #cfcfcf; }

/* Focus styles for accessibility */
:focus-visible { outline: 2px solid #ffb300; outline-offset: 2px; border-radius: 2px; }

/* Responsive tweaks */
@media (min-width: 768px) {
  .hero { padding: 2.5rem 2rem; grid-template-columns: 1fr; justify-items: center; }
  .hero h1 { font-size: clamp(2rem, 1vw + 2rem, 3rem); }
}
@media (min-width: 1024px) {
  .hero { padding: 3rem 2.5rem; }
  .qr-hero img { width: 420px; }
}