/* Indigo crosshatch hacker-night theme with frosted glass */

/* CSS variables */
:root {
  --indigo-dark: #0b0a3a;
  --indigo: #4b3bd2;
  --bg: #0a0a1a;
  --card: rgba(255, 255, 255, 0.88);
  --text: #0a0a0a;
  --muted: #555;
  --border: rgba(0,0,0,.15);
  --focus: #7aa2ff;
  --shadow: 0 8px 28px rgba(0,0,0,.25);
}

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

/* Page base */
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background-color: #0a0a1a;
  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;
  background-image:
    repeating-linear-gradient(45deg, rgba(75,0,130,.22) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(-45deg, rgba(100,0,160,.22) 0 10px, transparent 10px 20px);
  background-blend-mode: overlay;
  align-items: start;
  justify-items: center;
  overflow-x: hidden;
}

/* 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.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand {
  font-weight: 700;
  color: #e9e9ff;
  text-shadow: 0 0 8px rgba(0,0,0,.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* Hero (donation centerpiece) */
.hero {
  position: relative;
  width: min(92%, 860px);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg at 50% 50%, rgba(0,0,0,.08), transparent 25%, rgba(0,0,0,.08), transparent 50%);
  filter: blur(12px);
  z-index: -1;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.8rem);
  color: #0a0a0a;
}
.subhead {
  font-size: clamp(1rem, 0.8vw + 0.8rem, 1.25rem);
  color: #333;
  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: #2b2b2b;
  font-size: 1rem;
  margin: 0;
}
.telegram-link a {
  color: #1a1a1a;
  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,0.55);
  color: #e8e8e8;
  border-top: 1px solid rgba(255,255,255,.15);
}
.footer-ad {
  font-size: 0.95rem;
  color: #f0f0f0;
}
.footer-ad a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.6);
}
.footer-ad a:hover, .footer-ad a:focus { text-decoration: underline; }

/* Closing note */
.gratitude { margin: 0.5rem 0 0; font-size: 0.92rem; color: #d8d8d8; }

/* Accessibility focus */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 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; }
}