/* ============================================
   StreamerW — Global Stylesheet
   Dark theme · Neon blue/purple accents
   Mobile-first responsive · No frameworks
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Palette */
  --color-bg-900: #0b0d17;
  --color-bg-800: #111427;
  --color-bg-700: #1a1d35;
  --color-neon-blue: #00b4ff;
  --color-neon-purple: #9b4dff;
  --color-neon-pink: #ff4daf;
  --color-primary-500: #6d5dfc;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-border: rgba(255, 255, 255, 0.1);

  /* Layout */
  --max-w: 1280px;
  --px: 1rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-bg-900);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

@media (min-width: 640px) { :root { --px: 1.5rem; } }
@media (min-width: 1024px) { :root { --px: 2rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Gradient text helper */
.gradient-text {
  background: linear-gradient(135deg, var(--color-neon-blue), var(--color-neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-wide {
  background: linear-gradient(135deg, var(--color-neon-blue), #fff, var(--color-neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Desktop nav */
.desktop-nav {
  display: none;
  gap: 2rem;
}

.desktop-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #fff;
}

.desktop-nav a.active {
  border-bottom-color: var(--color-neon-purple);
}

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .mobile-menu-btn { display: none !important; }
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  color: #fff;
  cursor: pointer;
}

.mobile-menu-btn svg { width: 1.25rem; height: 1.25rem; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--color-bg-800);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-left: 3px solid transparent;
  transition: all 0.2s var(--ease);
}

.mobile-nav a:hover {
  color: #fff;
  border-left-color: var(--color-text-dim);
}

.mobile-nav a.active {
  color: #fff;
  border-left-color: var(--color-neon-purple);
  background: var(--color-bg-700);
}

/* --- Main content grows to fill --- */
main { flex: 1; }

/* --- Base content typography (prevents "stacked" pages) --- */
main p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

main h2 {
  margin: 2rem 0 0.85rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.25;
  color: #fff;
}

main h3 {
  margin: 1.35rem 0 0.6rem;
  font-size: 1.1rem;
  line-height: 1.35;
  color: #fff;
}

main ul,
main ol {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
  color: var(--color-text-muted);
}

main ul { list-style: disc; }
main ol { list-style: decimal; }

main li { margin-bottom: 0.45rem; }

main table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.85rem 0 1.35rem;
}

main th,
main td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

main th {
  color: #fff;
  font-weight: 600;
}

main a {
  color: var(--color-neon-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

main a:hover { color: var(--color-neon-purple); }

/* --- Hero sections --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-neon-blue), var(--color-neon-purple), var(--color-neon-pink));
  animation: gradient-shift 8s ease infinite;
  background-size: 200% 200%;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 500px at 50% 200px, rgba(155, 77, 255, 0.3), transparent);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .container { position: relative; }

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 600;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
  cursor: pointer;
  border: none;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-neon-blue), var(--color-neon-purple));
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .btn-group { flex-direction: row; }
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg { transform: translateX(3px); }

/* --- Section spacing --- */
.section { padding: 4rem 0; }
.section-lg { padding: 6rem 0; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: rgba(17, 20, 39, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover {
  border-color: rgba(155, 77, 255, 0.2);
  transform: translateY(-4px);
}

.card-accent {
  height: 3px;
  width: 5rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.card-accent-1 { background: linear-gradient(90deg, var(--color-neon-blue), var(--color-neon-purple)); }
.card-accent-2 { background: linear-gradient(90deg, var(--color-neon-purple), var(--color-neon-pink)); }
.card-accent-3 { background: linear-gradient(90deg, var(--color-neon-pink), var(--color-neon-blue)); }

.card-icon {
  display: inline-flex;
  padding: 0.75rem;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
}

.card-icon-1 { background: linear-gradient(135deg, var(--color-neon-blue), var(--color-neon-purple)); }
.card-icon-2 { background: linear-gradient(135deg, var(--color-neon-purple), var(--color-neon-pink)); }
.card-icon-3 { background: linear-gradient(135deg, var(--color-neon-pink), var(--color-neon-blue)); }

.card-icon svg { width: 2rem; height: 2rem; color: #fff; }

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-neon-blue);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.card:hover .card-link { color: var(--color-neon-purple); }

.card-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease);
}

.card:hover .card-link svg { transform: translateX(6px); }

/* Featured streamer cards */
.streamer-card {
  background: var(--color-bg-800);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

.streamer-card:hover { transform: scale(1.02); }

.streamer-card-bar { height: 3px; }

.streamer-card-body { padding: 2rem; }

.streamer-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.streamer-card .desc {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.spec-row + .spec-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.spec-label { color: var(--color-text-dim); }
.spec-value { color: #fff; font-weight: 500; }

.spec-value a {
  color: #fff;
  transition: color 0.2s var(--ease);
}
.spec-value a:hover { color: var(--color-neon-purple); }

.price-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

/* --- Checklist --- */
.checklist {
  background: rgba(17, 20, 39, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2rem;
}

.checklist-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checklist-header-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--color-bg-700);
  color: var(--color-neon-purple);
}

.checklist-header-icon svg { width: 1.25rem; height: 1.25rem; }

.checklist-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.checklist-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .checklist-grid { grid-template-columns: repeat(2, 1fr); }
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(26, 29, 53, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 1rem;
}

.checklist-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(155, 77, 255, 0.2);
  background: rgba(11, 13, 23, 0.5);
  color: var(--color-neon-purple);
  font-size: 0.75rem;
  font-weight: 600;
}

.checklist-item span {
  color: var(--color-text-muted);
}

/* --- Phase section --- */
.phase {
  margin-bottom: 3.5rem;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.phase-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(17, 20, 39, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-neon-purple);
}

.phase-icon svg { width: 1.5rem; height: 1.5rem; }

.phase-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.phase-subtitle {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Check items inside cards */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--color-text-muted);
}

.check-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--color-neon-purple);
}

/* --- Challenge cards --- */
.challenge-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
}

.challenge-card {
  background: rgba(17, 20, 39, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.3s var(--ease);
}

.challenge-card:hover { border-color: rgba(155, 77, 255, 0.2); }

.challenge-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.challenge-icon {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(11, 13, 23, 0.5);
  color: var(--color-neon-purple);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.challenge-icon svg { width: 1.5rem; height: 1.5rem; }

.challenge-card h3 { font-size: 1.25rem; font-weight: 700; color: #fff; }

.challenge-card p { color: var(--color-text-muted); }

/* --- Affiliate disclosure --- */
.affiliate-disclosure {
  padding: 3rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-dim);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-800);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 3rem;
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr; }
}

.footer-brand p {
  color: var(--color-text-muted);
  max-width: 28rem;
  margin-top: 1rem;
}

.footer-links h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-links a {
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom p { color: var(--color-text-muted); font-size: 0.875rem; }

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: color 0.2s var(--ease);
}

.footer-legal a:hover { color: #fff; }

/* --- Background helper sections --- */
.bg-900 { background: var(--color-bg-900); }
.bg-800 { background: var(--color-bg-800); }

.glow-top {
  position: relative;
}
.glow-top::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: radial-gradient(circle 800px at 50% -100px, rgba(155, 77, 255, 0.3), transparent);
  pointer-events: none;
}

/* --- Text/content helpers --- */
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-muted { color: var(--color-text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }
