﻿/* ============================================
   ORBITHAVEN GAMES - style.css
   Mobile-first, CSS variables, no frameworks
   ============================================ */

/* ============================================
   BOX SIZING & RESET
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img, video, iframe, embed, object, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

[class*="grid"] > *,
[class*="flex"] > * {
  min-width: 0;
}

pre, code {
  max-width: 100%;
  overflow-x: auto;
}

p, li, td, th, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

input, textarea, select, button {
  max-width: 100%;
  font: inherit;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   CSS VARIABLES - LIGHT THEME (:root)
   ============================================ */
:root {
  --background: #f8f3ea;
  --foreground: #201811;
  --card: #fffaf2;
  --card-foreground: #130f0b;
  --popover: #ffffff;
  --popover-foreground: #130f0b;
  --primary: #b45309;
  --primary-foreground: #ffffff;
  --secondary: #ecddc5;
  --secondary-foreground: #3b2718;
  --muted: #efe2cf;
  --muted-foreground: #3d5a80;
  --accent: #0f766e;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #dcc8aa;
  --input: #eef1f8;
  --ring: #b45309;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Fraunces', 'Nunito Sans', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(32, 24, 17, 0.08);
  --shadow-md: 0 4px 16px rgba(32, 24, 17, 0.12);
  --shadow-lg: 0 8px 32px rgba(32, 24, 17, 0.16);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(200, 212, 232, 0.6);
  --glass-blur: 12px;

  /* Hero gradient */
  --hero-gradient: linear-gradient(135deg, #130f0b 0%, #3b2718 50%, #130f0b 100%);

  /* Gradient accent */
  --gradient-primary: linear-gradient(135deg, #b45309, #0f766e);
}

/* ============================================
   CSS VARIABLES - DARK THEME
   ============================================ */
[data-theme="dark"] {
  --background: #130f0b;
  --foreground: #fff2df;
  --card: #21170f;
  --card-foreground: #fff2df;
  --popover: #21170f;
  --popover-foreground: #fff2df;
  --primary: #f59e0b;
  --primary-foreground: #1c1008;
  --secondary: #2e2117;
  --secondary-foreground: #a8c4e0;
  --muted: #342519;
  --muted-foreground: #7da4c0;
  --accent: #2dd4bf;
  --accent-foreground: #e8edf7;
  --destructive: #dc2626;
  --destructive-foreground: #f8fafc;
  --border: #4c3524;
  --input: #25190f;
  --ring: #f59e0b;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);

  --glass-bg: rgba(32, 24, 17, 0.7);
  --glass-border: rgba(26, 47, 74, 0.8);

  --gradient-primary: linear-gradient(135deg, #f59e0b, #2dd4bf);
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  min-width: 320px;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { line-height: 1.7; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-12);
  }
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  min-height: 44px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 85%, #000);
  border-color: color-mix(in srgb, var(--primary) 85%, #000);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 40%, transparent);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--muted);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--muted);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  min-height: 36px;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  min-height: 52px;
}

/* ============================================
   TAG PILLS
   ============================================ */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-heading);
  background: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.tag-primary {
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

.tag-accent {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-header-left {
  text-align: left;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.section-subtitle {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  max-width: 600px;
  margin-inline: auto;
}

.section-header-left .section-subtitle {
  margin-inline: 0;
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 64px;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .header-inner {
    padding-inline: var(--space-8);
  }
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  text-decoration: none;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.logo-accent {
  color: var(--primary);
}

/* Nav */
.header-nav {
  display: none;
  flex: 1;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    justify-content: center;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--muted);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.wishlist-link {
  display: none;
  align-items: center;
  gap: var(--space-1);
  padding: 0.5rem 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: color var(--transition-fast);
}

.wishlist-link:hover {
  color: var(--foreground);
}

@media (min-width: 768px) {
  .wishlist-link {
    display: flex;
  }
}

.wishlist-label {
  display: none;
}

@media (min-width: 1024px) {
  .wishlist-label {
    display: inline;
  }
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--muted-foreground);
  transition: color var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--foreground);
  background: var(--muted);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.icon-sun,
.icon-moon {
  position: absolute;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.icon-sun { opacity: 1; transform: rotate(0deg); }
.icon-moon { opacity: 0; transform: rotate(-90deg); }

[data-theme="dark"] .icon-sun { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: rotate(0deg); }

.theme-toggle {
  position: relative;
}

/* Burger */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.burger-btn:hover {
  background: var(--muted);
}

.burger-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .burger-btn {
    display: none;
  }
}

.burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  z-index: 99;
  padding: var(--space-6) var(--space-4);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.mobile-menu[aria-hidden="false"] {
  transform: translateX(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.mobile-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: var(--radius-md);
  min-height: 52px;
  display: flex;
  align-items: center;
  transition: background var(--transition-fast);
  border: 1px solid transparent;
}

.mobile-nav-link:hover {
  background: var(--muted);
  border-color: var(--border);
}

.mobile-cta {
  width: 100%;
  justify-content: center;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  overflow: hidden;
  background: var(--hero-gradient);
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #030810 0%, #060d1a 50%, #0a1628 100%);
}

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Stars */
.stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 90%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 50%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 10%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 40%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 15%, rgba(255,255,255,0.5) 0%, transparent 100%);
  animation: stars-twinkle 4s ease-in-out infinite alternate;
}

@keyframes stars-twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Orbital Rings */
.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid;
  transform: translate(-50%, -50%);
}

.orbital-ring-1 {
  width: 500px;
  height: 500px;
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
  animation: orbit-spin 20s linear infinite;
}

.orbital-ring-2 {
  width: 750px;
  height: 750px;
  border-color: color-mix(in srgb, var(--accent) 15%, transparent);
  animation: orbit-spin 35s linear infinite reverse;
}

.orbital-ring-3 {
  width: 1000px;
  height: 1000px;
  border-color: color-mix(in srgb, var(--primary) 10%, transparent);
  animation: orbit-spin 50s linear infinite;
}

@keyframes orbit-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Core Pulse */
.core-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 30%, transparent), transparent 70%);
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding-top: var(--space-12);
  padding-bottom: var(--space-8);
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: var(--space-12);
    padding-top: var(--space-20);
  }
}

/* Hero Text */
.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: core-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-title {
  color: #ffffff;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

[data-theme="light"] .hero-title {
  color: #e8edf7;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(232, 237, 247, 0.75);
  max-width: 520px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-ctas .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.hero-ctas .btn-secondary {
  background: rgba(232, 237, 247, 0.1);
  border-color: rgba(232, 237, 247, 0.25);
  color: #e8edf7;
}

.hero-ctas .btn-secondary:hover {
  background: rgba(232, 237, 247, 0.2);
}

.hero-ctas .btn-ghost {
  color: rgba(232, 237, 247, 0.8);
  border-color: rgba(232, 237, 247, 0.2);
}

.hero-ctas .btn-ghost:hover {
  background: rgba(232, 237, 247, 0.1);
  color: #e8edf7;
}

/* Hero Cards */
.hero-cards {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .hero-cards {
    justify-content: flex-end;
  }
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--card);
  border-color: var(--glass-border);
}

.hero-card img {
  width: 140px;
  height: 190px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .hero-card img {
    width: 160px;
    height: 220px;
  }
}

.hero-card-1 {
  transform: translateY(0px) rotate(-3deg);
  z-index: 3;
}

.hero-card-2 {
  transform: translateY(-16px) rotate(0deg);
  z-index: 4;
}

.hero-card-3 {
  transform: translateY(8px) rotate(2deg);
  z-index: 3;
  display: none;
}

@media (min-width: 768px) {
  .hero-card-3 {
    display: block;
  }
}

.hero-card-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card-badge.trending {
  background: #f59e0b;
  color: #000;
}

.hero-card-badge.new {
  background: var(--accent);
  color: var(--accent-foreground);
}

.hero-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2) var(--space-2) var(--space-3);
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-2);
}

.card-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #f59e0b;
}

/* Hero Widgets */
.hero-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-12);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-widgets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.widget {
  padding: var(--space-4);
  background: rgba(32, 24, 17, 0.6);
  border-color: rgba(26, 47, 74, 0.7);
}

[data-theme="light"] .widget {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(200, 212, 232, 0.7);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.widget-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.widget-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: rgba(232, 237, 247, 0.9);
}

[data-theme="light"] .widget-list li {
  color: var(--foreground);
}

.widget-rank {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 20px;
}

.widget-list li span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-left: auto;
  flex-shrink: 0;
}

.widget-collection-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(232, 237, 247, 0.95);
  margin-bottom: var(--space-1);
}

[data-theme="light"] .widget-collection-name {
  color: var(--foreground);
}

.widget-collection-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: var(--space-3);
}

.widget-cta {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition-fast);
}

.widget-cta:hover {
  color: color-mix(in srgb, var(--primary) 80%, #fff);
}

/* ============================================
   CATALOG SECTION
   ============================================ */
.catalog-section {
  padding-block: var(--space-20);
  background: var(--background);
}

/* Haven Match Banner */
.core-match-banner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  align-items: flex-start;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 8%, var(--card)),
    color-mix(in srgb, var(--accent) 8%, var(--card))
  );
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}

@media (min-width: 768px) {
  .core-match-banner {
    flex-direction: row;
    align-items: center;
  }
}

.core-match-icon {
  flex-shrink: 0;
}

.core-match-text {
  flex: 1;
  min-width: 0;
}

.core-match-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

.core-match-text p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.core-match-banner .btn {
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .core-match-banner .btn {
    width: auto;
  }
}

/* Catalog Layout */
.catalog-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .catalog-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Filters Sidebar */
.filters-sidebar {
  width: 100%;
  padding: var(--space-5);
  position: relative;
}

@media (min-width: 1024px) {
  .filters-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: calc(64px + var(--space-4));
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.filters-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.filters-reset {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  min-height: 32px;
  transition: background var(--transition-fast);
}

.filters-reset:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.filter-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
}

.filter-group:last-of-type {
  border-bottom: none;
}

.filter-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-2) 0;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  min-height: 44px;
  transition: color var(--transition-fast);
}

.filter-group-toggle:hover {
  color: var(--primary);
}

.filter-group-toggle svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.filter-group-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.filter-group-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-1);
}

.filter-group-content.collapsed {
  display: none;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 36px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.filter-checkbox:hover {
  color: var(--foreground);
  background: var(--muted);
}

.filter-checkbox input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.mobile-filters-close {
  display: block;
  width: 100%;
  margin-top: var(--space-4);
  padding: 0.875rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  min-height: 52px;
  transition: background var(--transition-fast);
}

.mobile-filters-close:hover {
  background: color-mix(in srgb, var(--primary) 85%, #000);
}

@media (min-width: 1024px) {
  .mobile-filters-close {
    display: none;
  }
}

/* Catalog Main */
.catalog-main {
  flex: 1;
  min-width: 0;
}

/* Catalog Toolbar */
.catalog-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.sort-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.sort-pill {
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-heading);
  color: var(--muted-foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  min-height: 36px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.sort-pill:hover {
  color: var(--foreground);
  background: color-mix(in srgb, var(--primary) 10%, var(--muted));
  border-color: var(--primary);
}

.sort-pill.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.mobile-filters-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-heading);
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 44px;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.mobile-filters-btn:hover {
  background: var(--muted);
}

@media (min-width: 1024px) {
  .mobile-filters-btn {
    display: none;
  }
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Game Card */
.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.game-card-cover {
  position: relative;
  overflow: hidden;
}

.game-card-cover img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.game-card:hover .game-card-cover img {
  transform: scale(1.04);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 26, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.game-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  flex: 1;
}

.game-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.game-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  min-width: 0;
}

.game-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f59e0b;
  flex-shrink: 0;
  white-space: nowrap;
}

.game-card-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.platform-icons {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--muted-foreground);
}

.game-year {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  font-family: var(--font-heading);
}

/* Catalog Load More */
.catalog-load-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

/* SEO Block */
.seo-block {
  margin-top: var(--space-16);
  padding: var(--space-8);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.seo-block-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}

.seo-block h3 {
  font-size: 1rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--primary);
}

.seo-block p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.seo-block p + p {
  margin-top: var(--space-3);
}

/* ============================================
   HAVEN MATCH MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 26, 0.85);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-panel {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6);
  position: relative;
  animation: modal-in var(--transition-base) ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal-close:hover {
  color: var(--foreground);
  background: var(--muted);
}

.modal-close:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.modal-header {
  margin-bottom: var(--space-6);
  padding-right: var(--space-8);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
}

.modal-subtitle {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin-bottom: var(--space-4);
}

.modal-progress {
  height: 4px;
  background: var(--muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.modal-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.modal-question {
  display: none;
}

.modal-question.active {
  display: block;
}

.question-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.question-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.option-pill {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-heading);
  color: var(--foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  min-height: 44px;
  transition: all var(--transition-fast);
}

.option-pill:hover,
.option-pill.selected {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.option-pill:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.modal-result {
  text-align: center;
  padding: var(--space-6) 0;
}

.modal-result[hidden] {
  display: none;
}

.result-label {
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.result-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.result-desc {
  color: var(--muted-foreground);
  margin-bottom: var(--space-6);
}

/* ============================================
   COLLECTIONS SECTION
   ============================================ */
.collections-section {
  padding-block: var(--space-20);
  background: var(--secondary);
}

[data-theme="dark"] .collections-section {
  background: var(--muted);
}

.collections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

@media (min-width: 1280px) {
  .collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Collection Card */
.collection-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.collection-cover {
  position: relative;
  overflow: hidden;
}

.collection-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.collection-card:hover .collection-cover img {
  transform: scale(1.03);
}

.collection-overlay {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.collection-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--primary);
  color: var(--primary-foreground);
}

.collection-badge.new {
  background: #10b981;
  color: #fff;
}

.save-collection {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 13, 26, 0.6);
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.save-collection:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: rgba(239, 68, 68, 0.6);
  transform: scale(1.1);
}

.save-collection:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.save-collection.saved svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.collection-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  flex: 1;
}

.collection-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.collection-intro {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.collection-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.collection-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.collection-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.difficulty-badge,
.session-badge,
.count-badge {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--muted-foreground);
}

.count-badge {
  background: color-mix(in srgb, var(--primary) 12%, var(--muted));
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}

.collection-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.related-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color var(--transition-fast);
}

.related-link:hover {
  color: var(--primary);
}

/* Collections CTA */
.collections-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

/* ============================================
   HAVEN NOTES SECTION
   ============================================ */
.signal-section {
  padding-block: var(--space-20);
  background: var(--background);
}

.signal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.signal-filter-pill {
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-heading);
  color: var(--muted-foreground);
  background: var(--card);
  border: 1px solid var(--border);
  min-height: 36px;
  transition: all var(--transition-fast);
}

.signal-filter-pill:hover,
.signal-filter-pill.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.signal-filter-pill:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Signal Grid */
.signal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .signal-grid {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
}

/* Featured Signal */
.signal-featured {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}

.signal-featured-img {
  position: relative;
  overflow: hidden;
}

.signal-featured-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.signal-featured-img .signal-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}

.signal-featured-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.signal-date {
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-heading);
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.signal-title {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
}

.signal-excerpt {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.signal-verdict {
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--primary);
  background: color-mix(in srgb, var(--primary) 5%, var(--muted));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.6;
}

/* Signal Column */
.signal-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Signal Card */
.signal-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.signal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.signal-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.signal-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.signal-card .signal-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.signal-card .signal-excerpt {
  font-size: 0.8375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.signal-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--primary);
  margin-top: auto;
  padding-top: var(--space-2);
  transition: color var(--transition-fast);
}

.signal-read-more:hover {
  color: color-mix(in srgb, var(--primary) 80%, var(--accent));
}

/* Signal Badges */
.signal-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.signal-new-signal {
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}

.signal-core-pick {
  background: color-mix(in srgb, #f59e0b 15%, transparent);
  color: #d97706;
  border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
}

[data-theme="dark"] .signal-core-pick {
  color: #fbbf24;
}

.signal-hidden-world {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.signal-coming-soon {
  background: color-mix(in srgb, #10b981 15%, transparent);
  color: #059669;
  border: 1px solid color-mix(in srgb, #10b981 30%, transparent);
}

[data-theme="dark"] .signal-coming-soon {
  color: #34d399;
}

/* Signal Footer */
.signal-footer {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

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

/* Signal Subscribe */
.signal-subscribe {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
  max-width: 560px;
}

@media (min-width: 768px) {
  .signal-subscribe {
    flex-direction: row;
    align-items: center;
  }
}

.subscribe-text {
  flex: 1;
  min-width: 0;
}

.subscribe-title {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

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

.subscribe-form {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.subscribe-input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--foreground);
  font-size: 0.9375rem;
  min-height: 44px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.subscribe-input::placeholder {
  color: var(--muted-foreground);
}

.subscribe-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 20%, transparent);
}

/* ============================================
   ABOUT / PLATFORM CORE SECTION
   ============================================ */
.about-section {
  padding-block: var(--space-20);
  background: var(--secondary);
}

[data-theme="dark"] .about-section {
  background: var(--muted);
}

/* About Hero */
.about-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin-bottom: var(--space-16);
}

@media (min-width: 1024px) {
  .about-hero {
    flex-direction: row;
    align-items: center;
    gap: var(--space-12);
  }
}

.about-hero-text {
  flex: 1;
  min-width: 0;
}

.mission-block {
  margin-top: var(--space-6);
}

.mission-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mission-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.1em;
  background: var(--gradient-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.mission-text {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.mission-text + .mission-text {
  margin-top: var(--space-3);
}

.about-hero-visual {
  flex-shrink: 0;
}

.about-hero-visual img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .about-hero-visual img {
    width: 440px;
  }
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.value-card {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--primary) 10%, var(--muted));
  flex-shrink: 0;
}

.value-title {
  font-size: 0.9375rem;
  font-weight: 700;
}

.value-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* Trust Block */
.trust-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .trust-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
  }
}

.trust-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.trust-label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  display: none;
}

@media (min-width: 768px) {
  .trust-divider {
    display: block;
  }
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-heading);
  color: #10b981;
  background: color-mix(in srgb, #10b981 10%, transparent);
  border: 1px solid color-mix(in srgb, #10b981 25%, transparent);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

/* Community Block */
.community-block {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .community-block {
    flex-direction: row;
    align-items: center;
  }
}

.community-text {
  flex: 1;
  min-width: 0;
}

.community-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.community-text p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.community-socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border: 1px solid var(--border);
  background: var(--card);
  min-height: 44px;
  transition: all var(--transition-fast);
}

.social-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.social-discord {
  color: #5865f2;
  border-color: color-mix(in srgb, #5865f2 30%, var(--border));
}

.social-discord:hover {
  background: color-mix(in srgb, #5865f2 10%, var(--card));
}

.social-youtube {
  color: #ff0000;
  border-color: color-mix(in srgb, #ff0000 25%, var(--border));
}

.social-youtube:hover {
  background: color-mix(in srgb, #ff0000 8%, var(--card));
}

.social-twitch {
  color: #9146ff;
  border-color: color-mix(in srgb, #9146ff 30%, var(--border));
}

.social-twitch:hover {
  background: color-mix(in srgb, #9146ff 10%, var(--card));
}

.social-x {
  color: var(--foreground);
  border-color: var(--border);
}

.social-x:hover {
  background: var(--muted);
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding-block: var(--space-16);
}

.final-cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-3);
}

.final-cta-subtitle {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  margin-bottom: var(--space-8);
}

.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

[data-theme="dark"] .site-footer {
  background: #060d1a;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
  }
}

/* Footer Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: var(--space-2);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--muted));
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Footer Columns */
.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--foreground);
  margin-bottom: var(--space-4);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  padding-block: var(--space-1);
  min-height: 32px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
  border: none;
  background: none;
  font-family: inherit;
}

.footer-link:hover {
  color: var(--primary);
}

/* Footer Bottom */
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}

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

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-affiliate {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.footer-affiliate .footer-link {
  display: inline;
  color: var(--primary);
  min-height: unset;
  padding: 0;
}

/* ============================================
   HIDDEN ELEMENTS (JS reveals)
   ============================================ */
[data-theme="light"] .mobile-menu {
  background: var(--background);
}

/* Signal filtering */
[data-signal] {
  transition: opacity var(--transition-base), transform var(--transition-base);
}

[data-signal].hidden {
  display: none;
}

/* ============================================
   SCROLLBAR (Optional refinement)
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--muted);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* ============================================
   FOCUS VISIBLE GLOBAL
   ============================================ */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


