/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Nunito:wght@400;600;700&display=swap');

/* --- Base --- */
:root {
  --bg: #0B0F16;
  --bg-soft: #121824;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: #E9EEF6;
  --muted: #A9B5C6;
  --primary: #62D0FF;
  --primary-strong: #2DB7F5;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 75% -10%, #17314D 0%, transparent 60%) no-repeat,
              var(--bg);
  color: var(--text);
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
}

/* --- Containers --- */
.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* --- Hero Header --- */
.header {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.header .overlay {
  background-image: linear-gradient(180deg, rgba(5,9,14,.55), rgba(5,9,14,.55)),
                    url('/cdn/library_hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  inset: 0;
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 80px 20px;
}

.logo {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.45));
  margin-bottom: 20px;
}

.title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0 0 8px;
  text-shadow: 0 12px 28px rgba(0,0,0,.45);
}

.tagline {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  box-shadow: var(--shadow);
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #05101A;
  border-color: transparent;
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  backdrop-filter: blur(6px);
}

/* --- Snow animation --- */
.snow, .snow::before, .snow::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 20%, rgba(255,255,255,.55) 40%, transparent 41%),
    radial-gradient(2px 2px at 60% 40%, rgba(255,255,255,.55) 40%, transparent 41%),
    radial-gradient(2px 2px at 80% 10%, rgba(255,255,255,.55) 40%, transparent 41%),
    radial-gradient(2px 2px at 30% 70%, rgba(255,255,255,.55) 40%, transparent 41%),
    radial-gradient(2px 2px at 90% 80%, rgba(255,255,255,.55) 40%, transparent 41%);
  animation: snowfall 18s linear infinite;
  z-index: 0;
}
.snow::before {
  content: "";
  animation-duration: 26s;
  opacity: .7;
  filter: blur(0.4px);
}
.snow::after {
  content: "";
  animation-duration: 34s;
  opacity: .5;
  filter: blur(0.8px);
}
@keyframes snowfall {
  0%   { transform: translateY(-10%); }
  100% { transform: translateY(110%); }
}

/* --- About Section --- */
.about {
  padding: 72px 0 0px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 42px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.about h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 10px;
}

.about p {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.note {
  color: var(--muted);
}

/* --- Patreon Features --- */
.features {
  display: grid;
  gap: 16px;
  margin: 18px 0 8px;
}
@media (min-width:700px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
.feature {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}
.feature h3 {
  margin: 0 0 6px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
}
.feature p {
  margin: 0;
  color: #A9B5C6;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 10px 0;
}

.member-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s ease, background .2s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
}

.avatar {
  width: 96px;
  height: 96px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.member-body {
  text-align: center;
}

.member-name {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 6px 0;
}

.member-role {
  font-size: 0.9rem;
  color: #A9B5C6;
  font-weight: 600;
  margin-bottom: 6px;
}

.member-blurb {
  font-size: 0.85rem;
  color: #E0E6F1;
  line-height: 1.4;
  max-width: 180px;
}

/* --- Responsive tweaks for team --- */
@media (max-width: 600px) {
  .avatar {
    width: 80px;
    height: 80px;
  }
  .member-name {
    font-size: 1rem;
  }
  .member-blurb {
    font-size: 0.8rem;
  }
}

/* --- Footer --- */
.site-footer {
  margin-top: 94px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
  padding: 28px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.brand { margin: 0 0 6px; font-weight: 700; }
.muted { margin: 0; color: var(--muted); }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 28px;
}

.footer-links li {
  break-inside: avoid;
  margin: 8px 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .15s ease, border-color .15s ease;
}

.footer-links a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Accessibility */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 14px;
}
