/* ================================================================
   ISTHATHUX — Design System & Styles
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Custom Properties ─────────────────────────────────────────── */
:root {
  --clr-bg:        #050508;
  --clr-surface:   #0d0d14;
  --clr-card:      rgba(255,255,255,0.04);
  --clr-border:    rgba(255,255,255,0.08);

  --clr-purple:    #a855f7;
  --clr-purple-d:  #7c3aed;
  --clr-cyan:      #22d3ee;
  --clr-cyan-d:    #0891b2;
  --clr-pink:      #ec4899;

  --clr-text:      #f0f0f8;
  --clr-muted:     #8888aa;

  --radial-purple: radial-gradient(circle at 20% 50%, rgba(168,85,247,0.18) 0%, transparent 60%);
  --radial-cyan:   radial-gradient(circle at 80% 30%, rgba(34,211,238,0.14) 0%, transparent 55%);

  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-h: 70px;
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

/* ── Suppress native cursor everywhere ────────────────────────── */
*, *::before, *::after,
a, button, input, label,
[role="button"], [tabindex] {
  cursor: none !important;
}

/* ── Custom Cursor ─────────────────────────────────────────────── */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  /* Decorative overlay — native cursor is preserved */
}
#cursor-dot {
  width: 8px; height: 8px;
  background: var(--clr-cyan);
  box-shadow: 0 0 10px var(--clr-cyan), 0 0 20px var(--clr-cyan);
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid rgba(168,85,247,0.6);
  box-shadow: 0 0 8px rgba(168,85,247,0.4);
  transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease,
              background 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
}
#cursor-ring.hovered {
  width: 44px; height: 44px;
  border-color: var(--clr-cyan);
  background: rgba(34,211,238,0.12);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.15), 0 0 20px rgba(34,211,238,0.4);
}

/* ── Canvas Particle Background ───────────────────────────────── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Navbar ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(5,5,8,0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
}
nav.scrolled {
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--clr-border);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--clr-purple), var(--clr-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--clr-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--clr-purple), var(--clr-cyan));
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--clr-text); }
.nav-links a:hover::after { width: 100%; }
.nav-live-badge.live-active {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
.live-dot {
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
}
.live-dot.pulse {
  animation: pulse-ring 1.5s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ── Hamburger ─────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  /* Proper 44×44 tap target */
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--clr-border);
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.hamburger:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(168,85,247,0.35);
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(5,5,8,0.97);
  backdrop-filter: blur(20px);
  padding: 1.5rem 2rem;
  z-index: 99;
  border-bottom: 1px solid var(--clr-border);
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--clr-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--clr-text); }

/* ── Section Wrapper ───────────────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-purple);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--clr-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}
.section-subtitle {
  color: var(--clr-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
}

/* ── Hero ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  /* overflow:clip blocks overflow without creating a scroll container,
     so the browser can still composite-scroll this section on the GPU
     thread. overflow:hidden would force full repaints on every scroll tick
     which is what was causing the visible jump. */
  overflow: clip;
  background:
    var(--radial-purple),
    var(--radial-cyan);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  /* Fixed height prevents the typer emptying text from collapsing
     this row and causing the whole hero grid to re-center */
  min-height: 2rem;
}
.hero-eyebrow-line {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--clr-purple), var(--clr-cyan));
  border-radius: 2px;
}
.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-cyan);
  /* Never collapse to zero height during typer delete cycles */
  display: inline-block;
  min-height: 1.2em;
  min-width: 80px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-title span.grad {
  background: linear-gradient(135deg, var(--clr-purple), var(--clr-cyan) 60%, var(--clr-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: var(--clr-muted);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  outline: none;
  position: relative;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--clr-purple-d), var(--clr-purple));
  color: #fff;
  box-shadow: 0 4px 24px rgba(168,85,247,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(168,85,247,0.6); }
.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
/* TikTok primary button */
.btn-tiktok {
  background: linear-gradient(135deg, #ff0050, #ff4081);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255,0,80,0.4);
}
.btn-tiktok:hover { box-shadow: 0 8px 32px rgba(255,0,80,0.6); }

/* ── Hero Discord bar ──────────────────────────────────────────── */
.hero-discord-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: rgba(88,101,242,0.1);
  border: 1px solid rgba(88,101,242,0.25);
  font-size: 0.88rem;
  color: var(--clr-muted);
  max-width: fit-content;
}
.hero-discord-bar svg { flex-shrink: 0; }
.hero-discord-btn {
  margin-left: auto;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  background: #5865f2;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), box-shadow var(--transition);
}
.hero-discord-btn:hover {
  background: #4752c4;
  box-shadow: 0 4px 16px rgba(88,101,242,0.5);
}
.hero-stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}
.stat-item { 
  display: flex; 
  flex-direction: column; 
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.8rem 1.4rem;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  min-width: 130px;
  transition: transform var(--transition), border-color var(--transition);
}
.stat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  margin-bottom: 0.15rem;
}
#stat-tiktok { color: #ff0050; }
#stat-youtube { color: #ff0000; }
#stat-twitch { color: #9147ff; }
#stat-kick { color: #53fc18; }

.stat-label {
  font-size: 0.65rem;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
/* Avatar card */
.hero-avatar-wrap {
  position: relative;
  /* Isolate the avatar + all its animations into its own stacking context
     so they never affect the parent section's paint layer */
  isolation: isolate;
}
.hero-avatar-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(168,85,247,0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-glow 4s ease-in-out infinite;
  /* Own GPU layer — animates without touching the parent's paint */
  will-change: transform, opacity;
}
@keyframes float-glow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.05); opacity: 1; }
}
.hero-avatar {
  position: relative;
  width: 280px; height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(168,85,247,0.5);
  box-shadow:
    0 0 0 6px rgba(168,85,247,0.12),
    0 0 60px rgba(168,85,247,0.35),
    0 0 120px rgba(34,211,238,0.15);
  animation: avatar-float 4s ease-in-out infinite;
  /* Own GPU layer — float animation is fully compositor-thread */
  will-change: transform;
}
@keyframes avatar-float {
  /* Removed translateY bounce. Replaced with subtle shadow pulse to keep it
     alive without moving it. */
  0%, 100% { 
    box-shadow:
      0 0 0 6px rgba(168,85,247,0.12),
      0 0 60px rgba(168,85,247,0.35),
      0 0 120px rgba(34,211,238,0.15); 
  }
  50% { 
    box-shadow:
      0 0 0 6px rgba(168,85,247,0.2),
      0 0 80px rgba(168,85,247,0.5),
      0 0 140px rgba(34,211,238,0.25); 
  }
}
.hero-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Orbiting ring */
.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 330px; height: 330px;
  border-radius: 50%;
  border: 1px dashed rgba(168,85,247,0.25);
  animation: spin-slow 12s linear infinite;
  /* Own compositor layer for the spin */
  will-change: transform;
}
.orbit-dot {
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: var(--clr-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--clr-cyan);
}
@keyframes spin-slow { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ── Scroll indicator ──────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  /* Use opacity pulse instead of translateY so it never grows the page */
  animation: fade-hint 2.5s ease infinite;
  /* Prevent this from affecting document overflow */
  pointer-events: none;
  overflow: hidden;
}
.scroll-hint svg { width: 20px; height: 20px; opacity: 0.6; }
@keyframes fade-hint {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ── About ─────────────────────────────────────────────────────── */
#about {
  background: linear-gradient(180deg, transparent, rgba(168,85,247,0.04) 50%, transparent);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff, var(--clr-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-text {
  color: var(--clr-muted);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.about-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.trait-chip {
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--clr-border);
  background: var(--clr-card);
  color: var(--clr-text);
  letter-spacing: 0.03em;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.trait-chip:hover {
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 0 12px rgba(168,85,247,0.2);
}
/* Streaming schedule card */
.schedule-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(16px);
}
.schedule-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-purple);
  margin-bottom: 1.5rem;
}
.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.9rem;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-day { color: var(--clr-muted); }
.schedule-time { color: var(--clr-text); font-weight: 500; }
.schedule-status {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.status-live {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
}
.status-varies {
  background: rgba(168,85,247,0.12);
  color: var(--clr-purple);
  border: 1px solid rgba(168,85,247,0.25);
}
/* Timezone label next to heading */
.schedule-tz {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.25);
  color: var(--clr-cyan);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 0.4rem;
}
/* Chaos / random stream notice */
.schedule-chaos-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(168,85,247,0.07);
  border: 1px solid rgba(168,85,247,0.18);
  font-size: 0.82rem;
  color: var(--clr-muted);
  line-height: 1.6;
}
.chaos-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.schedule-chaos-notice strong {
  color: var(--clr-text);
  display: block;
  margin-bottom: 0.2rem;
}


/* ── Platforms ─────────────────────────────────────────────────── */
#platforms {
  background: var(--radial-cyan);
}
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.platform-card {
  position: relative;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: var(--clr-text);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(16px);
}
.platform-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-grad);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.platform-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent);
  box-shadow: 0 16px 48px var(--card-shadow);
}
.platform-card:hover::before { opacity: 1; }
.platform-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-icon-bg);
  flex-shrink: 0;
}
.platform-icon svg { width: 28px; height: 28px; }
.platform-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.platform-desc {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.6;
  flex: 1;
}
.platform-cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--card-accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.platform-card:hover .platform-cta { gap: 0.8rem; }

/* Twitch */
.card-twitch {
  --card-accent: #9147ff;
  --card-shadow: rgba(145,71,255,0.25);
  --card-grad: linear-gradient(135deg, rgba(145,71,255,0.06) 0%, transparent 70%);
  --card-icon-bg: rgba(145,71,255,0.15);
}
/* Kick */
.card-kick {
  --card-accent: #53fc18;
  --card-shadow: rgba(83,252,24,0.2);
  --card-grad: linear-gradient(135deg, rgba(83,252,24,0.05) 0%, transparent 70%);
  --card-icon-bg: rgba(83,252,24,0.1);
}
/* TikTok */
.card-tiktok {
  --card-accent: #ff0050;
  --card-shadow: rgba(255,0,80,0.2);
  --card-grad: linear-gradient(135deg, rgba(255,0,80,0.06) 0%, transparent 70%);
  --card-icon-bg: rgba(255,0,80,0.12);
}
/* YouTube */
.card-youtube {
  --card-accent: #ff0000;
  --card-shadow: rgba(255,0,0,0.2);
  --card-grad: linear-gradient(135deg, rgba(255,0,0,0.06) 0%, transparent 70%);
  --card-icon-bg: rgba(255,0,0,0.12);
}

/* ── Discord ───────────────────────────────────────────────────── */
#discord {
  background: linear-gradient(180deg, transparent, rgba(88,101,242,0.06) 50%, transparent);
}
.discord-card {
  position: relative;
  background: var(--clr-card);
  border: 1px solid rgba(88,101,242,0.25);
  border-radius: 24px;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.discord-card::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88,101,242,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.discord-logo {
  width: 64px; height: 64px;
  margin-bottom: 1.5rem;
}
.discord-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.discord-subtitle {
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.btn-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 4px 24px rgba(88,101,242,0.4);
  padding: 0.9rem 2rem;
  font-size: 1rem;
}
.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 8px 32px rgba(88,101,242,0.6);
}
.discord-perks {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 220px;
}
.perk-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--clr-muted);
}
.perk-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Merch ─────────────────────────────────────────────────────── */
#merch {
  background: var(--radial-purple);
}
.merch-inner {
  text-align: center;
}
.merch-banner {
  position: relative;
  margin: 3rem auto 0;
  max-width: 860px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: 0 32px 80px rgba(168,85,247,0.25);
}
.merch-banner img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 400px;
}
.merch-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,8,0.55);
  backdrop-filter: blur(2px);
  gap: 1.5rem;
}
.merch-coming {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--clr-purple), var(--clr-cyan) 60%, var(--clr-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.merch-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}
/* Notify form */
.merch-notify {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.merch-notify input {
  flex: 1;
  padding: 0.75rem 1.2rem;
  border-radius: 99px;
  border: 1px solid var(--clr-border);
  background: rgba(255,255,255,0.06);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.merch-notify input::placeholder { color: var(--clr-muted); }
.merch-notify input:focus { border-color: rgba(168,85,247,0.5); }
.btn-notify {
  background: linear-gradient(135deg, var(--clr-purple-d), var(--clr-purple));
  color: #fff;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(168,85,247,0.35);
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-notify:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(168,85,247,0.5);
}
.notify-success {
  font-size: 0.85rem;
  color: var(--clr-cyan);
  letter-spacing: 0.05em;
  display: none;
  margin-top: 0.5rem;
}

/* ── Stream Highlights ─────────────────────────────────────────── */
#highlights {
  background: linear-gradient(180deg, transparent, rgba(34,211,238,0.04) 50%, transparent);
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.highlight-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.highlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,0.3);
  box-shadow: 0 12px 40px rgba(168,85,247,0.15);
}
.highlight-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(34,211,238,0.1));
}
.play-btn {
  position: absolute;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}
.highlight-card:hover .play-btn {
  opacity: 1;
  background: rgba(168,85,247,0.4);
}
.play-btn svg { width: 18px; height: 18px; fill: white; margin-left: 3px; }
.highlight-info { padding: 1.1rem 1.25rem; }
.highlight-platform {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-purple);
  margin-bottom: 0.4rem;
}
.highlight-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--clr-text);
  margin-bottom: 0.4rem;
}
.highlight-views {
  font-size: 0.78rem;
  color: var(--clr-muted);
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--clr-border);
  padding: 3.5rem 2rem 2.5rem;
  background: rgba(5,5,8,0.6);
  backdrop-filter: blur(20px);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--clr-border);
}
.footer-brand { display: flex; flex-direction: column; }
.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--clr-purple), var(--clr-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.footer-tagline {
  color: var(--clr-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--clr-border);
  background: var(--clr-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}
.social-link:hover {
  border-color: rgba(168,85,247,0.4);
  background: rgba(168,85,247,0.1);
  color: var(--clr-purple);
  box-shadow: 0 0 16px rgba(168,85,247,0.2);
}
.social-link svg { width: 18px; height: 18px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col ul a {
  text-decoration: none;
  color: var(--clr-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--clr-text); }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--clr-muted);
}

/* ── Stream Recaps skeletons ───────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton-thumb {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 400px 100%;
  animation: shimmer 1.6s infinite linear;
}
.skel-line {
  height: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 400px 100%;
  animation: shimmer 1.6s infinite linear;
}
.skel-short { width: 40%; }
.skel-long  { width: 90%; height: 14px; }
.skel-med   { width: 55%; }

/* API notice below the grid */
.recaps-api-notice {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--clr-muted);
  padding: 1rem 1.5rem;
  border: 1px dashed var(--clr-border);
  border-radius: 12px;
  line-height: 1.7;
}
.recaps-api-notice code {
  background: rgba(255,255,255,0.07);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.82em;
  color: var(--clr-cyan);
}
.recaps-api-notice a {
  color: var(--clr-purple);
  text-decoration: underline;
}

/* anchor highlight-card inherits all div styles */
a.highlight-card { color: var(--clr-text); text-decoration: none; display: block; }

/* ── Reveal Animations ─────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Glitch effect on hero title ───────────────────────────────── */
.glitch {
  display: inline-block;
  animation: safe-glitch 5s infinite;
}

@keyframes safe-glitch {
  0%, 93%, 100% {
    text-shadow: none;
    color: inherit;
  }
  94% {
    text-shadow: 4px 0 0 var(--clr-purple), -4px 0 0 var(--clr-cyan);
  }
  96% {
    text-shadow: -4px 0 0 var(--clr-purple), 4px 0 0 var(--clr-cyan);
    color: #fff;
  }
  98% {
    text-shadow: 2px 2px 0 var(--clr-purple), -2px -2px 0 var(--clr-cyan);
  }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-eyebrow, .hero-cta-row, .hero-stats { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-avatar-wrap { order: -1; }
  .hero-avatar { width: 200px; height: 200px; }
  .orbit-ring { width: 250px; height: 250px; }
  .about-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .discord-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-live-badge { display: none; }
  .hamburger { display: flex; }
  /* Hide scroll hint on mobile — not useful on touch, and it overlaps content */
  .scroll-hint { display: none; }
  /* Give hero enough bottom room so stacked content doesn't bleed into next section */
  #hero { padding-bottom: 4rem; }
  /* Center the discord bar on mobile */
  .hero-discord-bar { max-width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  section { padding: 4rem 1.25rem; }
  .highlights-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-stats { flex-wrap: wrap; justify-content: center; }
  .discord-card { padding: 2.5rem 1.5rem; }
  .merch-notify { flex-direction: column; }
  nav { padding: 0 1.25rem; }
}
