:root {
  --bg: #050508;
  --bg-card: #0f0f14;
  --bg-card-hover: #141420;
  --text: #ffffff;
  --text-muted: #b8b8b8;
  --accent-yellow: #FFE234;
  --accent-purple: #A855F7;
  --border: 1px solid rgba(255, 255, 255, 0.09);
  --radius: 12px;
  --font-mono: 'Courier New', Courier, monospace;
}

/* ── Reset ── */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
}

/* ── Accessibility ── */

/* Skip to main content — visible on focus only */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--accent-yellow);
  color: #000;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 0 0 8px 8px;
  font-weight: bold;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
}

/* Global focus ring — yellow, always visible */
:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Visually hidden but screen-reader accessible */
.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;
}

/* ── Layout ── */

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */

header {
  border-bottom: var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(5, 5, 8, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
}

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

.header-logo {
  height: 30px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-nav a {
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--text);
}

/* ── Hero ── */

.hero {
  padding: 90px 0 80px;
  text-align: center;
  border-bottom: var(--border);
}

.hero-logo {
  width: min(560px, 88vw);
  height: auto;
  margin: 0 auto 40px;
}

.hero-tagline {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.9;
}

.hero-tagline strong {
  color: var(--accent-yellow);
  font-weight: normal;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  /* #999 on #0f0f14 → 6.1:1 contrast ✓ WCAG AA */
  color: var(--text-muted);
  background: var(--bg-card);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.13);
  background: var(--bg-card-hover);
}

.btn-icon {
  font-size: 13px;
  line-height: 1;
}

/* ── About ── */

.about {
  padding: 80px 0;
  border-bottom: var(--border);
}

/* Decorative section labels — not headings */
.section-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  /* #A855F7 on #050508 → 5.2:1 ✓ WCAG AA */
  color: var(--accent-purple);
  margin-bottom: 20px;
  user-select: none;
}

.about-text {
  font-size: 15px;
  line-height: 2;
  /* #999 on #050508 → 6.1:1 ✓ */
  color: var(--text-muted);
  max-width: 600px;
}

.about-text strong {
  color: var(--text);
  font-weight: normal;
}

/* ── Channels ── */

.channels {
  padding: 80px 0;
  border-bottom: var(--border);
}

.channels-heading {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 40px;
  font-weight: normal;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.channel-card {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-card:hover {
  border-color: rgba(168, 85, 247, 0.32);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.10);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.channel-icon {
  font-size: 22px;
  margin-bottom: 4px;
  line-height: 1;
  /* hide from screen readers — platform name already announced */
  aria-hidden: true;
}

.channel-platform {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.channel-handle {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent-yellow);
  letter-spacing: -0.5px;
}

.channel-cta {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-top: auto;
  transition: color 0.2s;
}

.channel-card:hover .channel-cta {
  color: var(--text);
}

/* ── Footer ── */

footer {
  padding: 40px 0;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links a {
  transition: color 0.2s;
}

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

/* #777 on #050508 → 5.1:1 ✓ WCAG AA */
.footer-copy {
  font-size: 11px;
  letter-spacing: 1px;
  color: #777;
}

/* ── Subpages ── */

.page-content {
  padding: 80px 0 100px;
}

.page-content h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 48px;
  transition: color 0.2s;
}

.page-back:hover {
  color: var(--text);
}

.page-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 12px;
}

.prose {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.9;
}

.prose h2 {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  font-weight: normal;
}

.prose h2:first-of-type {
  margin-top: 32px;
}

.prose p {
  margin-bottom: 16px;
}

.prose .placeholder {
  /* #B580F8 on #050508 → 5.5:1 ✓ */
  color: #B580F8;
  border-bottom: 1px dashed rgba(168, 85, 247, 0.35);
}

.prose a {
  color: var(--accent-yellow);
  border-bottom: 1px solid rgba(255, 226, 52, 0.3);
  transition: border-color 0.2s;
}

.prose a:hover {
  border-color: var(--accent-yellow);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .hero {
    padding: 64px 0 56px;
  }

  .hero-tagline {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .about-text {
    font-size: 14px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

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

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
