/* Beige low-poly triangles background with gray hacker-night theme */
/* Mobile-first, single stylesheet, frosted glass panels, accessible focus */

:root {
  --bg-beige: #efe6d0;
  --card: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 0, 0, 0.15);
  --text: #1b1b1b;
  --muted: #5a5a5a;
  --shadow: rgba(0, 0, 0, 0.25);
  --focus: rgba(0, 0, 0, 0.8);
  --glow: rgba(0, 0, 0, 0.6);
}

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

html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg-beige);
  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;
  line-height: 1.5;
  /* Beige low-poly triangles background (subtle) */
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.04) 25%, transparent 25%),
    linear-gradient(225deg, rgba(0,0,0,.04) 25%, transparent 25%),
    linear-gradient(315deg, rgba(0,0,0,.04) 25%, transparent 25%),
    linear-gradient(45deg, rgba(0,0,0,.04) 25%, transparent 25%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0;
  /* Subtle motion for depth without heavy motion preferences */
  animation: bgPulse 14s ease-in-out infinite;
}
@keyframes bgPulse {
  0%, 100% { filter: saturate(1); transform: translateZ(0); }
  50% { filter: saturate(1.05); transform: scale(1.01); }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 12px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(0,0,0,.25);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  font-weight: 700;
  color: #e9e9e9;
  text-shadow: 0 0 10px rgba(0,0,0,.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand span { filter: drop-shadow(0 0 6px rgba(0,0,0,.5)); }

/* Main layout */
main {
  display: grid;
  justify-items: center;
  padding: 2rem 1rem;
}
.hero {
  width: min(92%, 860px);
  padding: 2rem;
  border-radius: 18px;
  text-align: center;
  display: grid;
  gap: 1rem;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.85), rgba(255,255,255,0.75));
  border: 1px solid var(--card-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
}
.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(14px);
  z-index: -1;
  mix-blend-mode: multiply;
  animation: rotate 12s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

.hero h1 {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.8rem);
  margin: 0;
  color: #1a1a1a;
}
.subhead {
  font-size: clamp(1rem, 0.8vw + 0.8rem, 1.25rem);
  color: #555;
  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,0.18);
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 14px 38px rgba(0,0,0,.25);
}
.telegram-link {
  color: #6b6b6b;
  font-size: 1rem;
  margin: 0;
}
.telegram-link a {
  color: #3a3a3a;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,0,0,.4);
}
.telegram-link a:hover, .telegram-link a:focus { color: #2c2c2c; text-decoration: underline; }

.site-footer {
  padding: 1rem;
  text-align: center;
  color: #4a4a4a;
  background: #f4f4f4;
  border-top: 1px solid rgba(0,0,0,.08);
}
.footer-ad {
  font-size: 0.95rem;
  color: #2f2f2f;
}
.footer-ad a {
  color: #2f2f2f;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,0,0,.4);
}
.footer-ad a:hover, .footer-ad a:focus { text-decoration: underline; }
.gratitude { margin: 0.5rem 0 0; font-size: 0.93rem; color: #6b6b6b; }

/* 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.15rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 3rem; }
  .qr-hero img { width: 420px; }
}