:root {
  --bg: #05060a;
  --bg-alt: #0b0d14;
  --card: #11141f;
  --accent: #b38bff;
  --accent-two: #ff6b9f;
  --accent-soft: rgba(179,139,255,0.15);
  --text: #f5f5f7;
  --muted: #9a9fb3;
  --border: #232633;
  --radius: 10px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #15182a 0, #05060a 55%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(5,6,10,0.95), rgba(5,6,10,0.85));
  border-bottom: 1px solid rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.logo:hover { text-decoration: none; }

.logo img {
  width: 120px;
  height: auto;
  display: block;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, #b38bff);
  box-shadow: 0 0 12px rgba(179,139,255,0.9);
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: rgba(179,139,255,0.4);
  background: rgba(179,139,255,0.06);
  color: var(--text);
  text-decoration: none;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.home-main,
.support-main,
.episode-main {
  display: grid;
  gap: 1.75rem;
}

.home-main { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr); }
.support-main { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.episode-main { max-width: 900px; }

section { margin-bottom: 2rem; }

.hero,
.page-head {
  background: radial-gradient(circle at top left, rgba(179,139,255,0.18), transparent 55%),
              linear-gradient(to bottom right, #0b0d18, #05060a);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
  position: relative;
  overflow: hidden;
}

.hero { padding: 1.75rem 1.5rem; }
.page-head { margin-bottom: 1.5rem; }
.support-main .page-head { grid-column: 1 / -1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 120% -10%, rgba(255,255,255,0.12), transparent 55%);
  opacity: 0.4;
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-title,
.page-head h1 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.page-head h1 { font-size: 1.7rem; }

.hero-sub,
.page-head p,
.content-card p,
.sidebar-card p,
.episode-meta,
.episode-desc,
.resource-card p,
.resource-meta,
.support-card p,
.support-card li {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-sub {
  max-width: 32rem;
  font-size: 0.95rem;
}

.hero-tags,
.hero-cta,
.actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag,
.pill {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(5,6,10,0.7);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-color: rgba(255,255,255,0.18);
  background: transparent;
  margin-bottom: 0.5rem;
}

.tag {
cursor: pointer;
}

.tag-accent {
  border-color: rgba(179,139,255,0.9);
  background: rgba(179,139,255,0.12);
  color: var(--accent);
}

.btn {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary {
  background: linear-gradient(135deg, #b38bff, #ff6b9f);
  border: none;
  color: #05060a;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-ghost,
.episode-link,
.resource-card .btn {
  border-color: rgba(179,139,255,0.7);
  color: var(--accent);
  background: rgba(179,139,255,0.08);
}

.btn-ghost:hover,
.episode-link:hover,
.resource-card .btn:hover {
  border-color: rgba(179,139,255,0.7);
  color: var(--accent);
  background: rgba(179,139,255,0.18);
  text-decoration: none;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.section-title span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.preview-grid,
.card-list,
.resource-grid {
  display: grid;
  gap: 0.75rem;
}

.preview-grid,
.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card,
.sidebar-card,
.resource-card,
.support-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.9rem;
  border: 1px solid var(--border);
}

.sidebar-card {
  background: var(--bg-alt);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.25rem;
}

.content-card h3,
.sidebar-card h2,
.resource-card h2,
.support-card h2 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.content-card p,
.sidebar-card p,
.resource-card p {
  margin-bottom: 0.6rem;
}

.card-meta,
.resource-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.support-box {
  background: linear-gradient(135deg, rgba(179,139,255,0.16), rgba(255,107,159,0.12));
  border-radius: 14px;
  padding: 0.9rem;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.85rem;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.episode-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.9rem;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
}

.episode-title {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.episode-desc { margin-top: 0.35rem; }

.episode-link {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(179,139,255,0.7);
  white-space: nowrap;
}

.support-card ul {
  padding-left: 1rem;
  margin-top: 0.4rem;
}

.episode-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 900px) {
  header { position: static; }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-main,
  .support-main,
  .episode-main,
  .preview-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .episode-card { grid-template-columns: 1fr; }
  .episode-link { width: fit-content; }
}
