:root {
  --bg: #07080d;
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, .62);
  --green: #7CFC66;
  --amber: #f0c884;
  --moon: #9db8ff;
  --card: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- ambient background layers --- */
#stars {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.aurora {
  position: fixed; inset: -20%; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 18% 12%, rgba(124, 252, 102, .10), transparent 70%),
    radial-gradient(42% 34% at 82% 18%, rgba(157, 184, 255, .12), transparent 70%),
    radial-gradient(46% 36% at 55% 88%, rgba(240, 200, 132, .08), transparent 70%);
  filter: blur(10px);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

/* --- hero --- */
.hero {
  position: relative; z-index: 1;
  min-height: 92vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.eyebrow {
  font-size: .78rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.4rem;
  animation: fadeUp 1s ease both;
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  animation: fadeUp 1s .12s ease both;
}

.hero h1 .italic { font-style: italic; font-weight: 500; }

.sub {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  color: var(--muted);
  max-width: 34rem;
  animation: fadeUp 1s .24s ease both;
}

.moods {
  margin-top: 1.8rem;
  display: flex; align-items: center; gap: 1rem;
  font-size: .92rem; letter-spacing: .06em;
  color: var(--amber);
  animation: fadeUp 1s .36s ease both;
  flex-wrap: wrap; justify-content: center;
}

.moods .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--amber); opacity: .6;
}

.scroll-hint {
  margin-top: 3.2rem;
  color: var(--muted);
  font-size: 1.4rem; text-decoration: none;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(8px); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- channel cards --- */
.cards {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
}

.card {
  --accent: var(--amber);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.4rem 2rem 2.2rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity .8s ease, transform .8s ease, border-color .35s ease, box-shadow .35s ease;
  opacity: 0;
  transform: translateY(18px);
}

.card.visible { opacity: 1; transform: translateY(0); }
.card.visible:nth-child(2) { transition-delay: .12s; }
.card.visible:nth-child(3) { transition-delay: .24s; }
.card.visible:hover { transition: opacity .8s ease, transform .3s ease, border-color .35s ease, box-shadow .35s ease; }

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 24px 60px -24px var(--accent);
}

.card.driftwell { --accent: #f2a4c0; }
.card.cnation   { --accent: var(--green); }
.card.nightlight { --accent: var(--moon); }

.card.featured {
  border-width: 1.5px;
  background: linear-gradient(180deg, rgba(124,252,102,.07), rgba(255,255,255,.04));
}

.mark {
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  position: relative;
}

.mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 22px; }

.card h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.65rem;
  margin-bottom: .7rem;
}

.card p {
  color: var(--muted);
  font-size: .98rem; line-height: 1.6;
  flex: 1;
}

.btn {
  margin-top: 1.8rem;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0b10;
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  width: 100%; justify-content: center;
}

.btn svg { width: 20px; height: 20px; }

.btn:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
  box-shadow: 0 10px 30px -8px var(--accent);
}

/* --- tagline + footer --- */
.tagline {
  position: relative; z-index: 1;
  text-align: center;
  margin: 3.5rem 1.5rem 1rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--muted);
}

footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 1.2rem 1.5rem 3rem;
  color: rgba(244, 241, 234, .38);
  font-size: .85rem;
}

footer a { color: rgba(244, 241, 234, .6); text-decoration: none; }
footer a:hover { color: var(--green); }

.socials {
  display: flex; gap: .9rem; justify-content: center;
}

.link-groups {
  display: flex; gap: 3.5rem; justify-content: center;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.link-group {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
}

.link-label {
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(244, 241, 234, .4);
}

.socials a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color .3s ease, border-color .3s ease, transform .3s ease;
}

.socials a:hover {
  color: var(--green);
  border-color: var(--green);
  transform: translateY(-3px);
}

.socials svg { width: 20px; height: 20px; }

/* --- responsive --- */
@media (max-width: 860px) {
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .card.featured { order: -1; }
  .hero { min-height: 88vh; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}
