/* a CSS file for a purple maroon hacker themed donation page with frosted glass */

/* Design tokens */
:root{
  --bg: #4b1a7a;
  --bg-dark: #2b0a3a;
  --card: rgba(255,255,255,.92);
  --card-border: rgba(0,0,0,.15);
  --text: #f7f6fb;
  --muted: #e6d6e8;
  --accent: #a86aff;
  --accent-dark: #7a3ab3;
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  /* subtle glow overlay to hint cyberpunk depth */
  background-image: radial-gradient(circle at 20% 10%, rgba(0,255,255,.15), transparent 40%),
                    radial-gradient(circle at 80% 60%, rgba(255,0,180,.15), transparent 40%);
  background-blend-mode: screen;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  /* cyan/light patterns on purple base for grid-like feel */
  background: radial-gradient(circle at 25% 15%, rgba(0,255,255,.15), transparent 40%),
              radial-gradient(circle at 75% 60%, rgba(0,140,255,.15), transparent 40%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.05);
}

/* Layout layers */
header, main, footer { position: relative; z-index: 1; }

/* Header */
header { text-align: center; padding: 1rem; }
header h2 { margin: 0; font-size: .95rem; color: #e8e8ff; opacity: .95; }

/* Main area */
main { padding: 0 1rem; }

/* Hero area: mobile-first; two-column on larger screens */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: center;
  justify-items: center;
  padding: 1.3rem;
}

/* Frosted glass copy block */
.hero-copy {
  text-align: center;
  padding: 1.75rem;
  border-radius: var(--radius);
  max-width: 760px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 .5rem;
  color: #ffffff;
}
.subhead {
  font-size: 1rem;
  color: #1c1c1f;
  margin-bottom: 1.25rem;
}
.cta {
  display: inline-block;
  padding: 1rem 1.8rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0b0b0b;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #8a5aff 0%, #b04cff 60%, #6b2ab7 100%);
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 20px rgba(138,90,255,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(138,90,255,.8); }
.cta:focus-visible { outline: 3px solid #e6f0ff; outline-offset: 3px; }

/* Centerpiece image */
.hero-media {
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero-media img {
  width: min(680px, 92%);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  image-rendering: crisp-edges;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.92rem;
}
footer .advertisements a {
  color: #9af;
  text-decoration: none;
  border-bottom: 1px dotted rgba(154, 159, 255, .5);
}
footer .advertisements a:hover { text-decoration: underline; }
footer .gratitude { margin-top: .5rem; color: #e9efff; }

/* Desktop two-column layout: text left, image right */
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    padding: 2rem;
  }
  .hero-copy { text-align: left; padding: 2rem; }
  .hero-copy h1 { font-size: 2.4rem; }
  .hero-media { align-self: center; }
  .hero-media img { width: 100%; max-width: 740px; }
}