:root {
  --bg-deep-space: #070312;
  --bg-surface: #0e0720;
  --bg-surface-elevated: #160c33;
  --bg-card: rgba(22, 12, 51, 0.75);
  --bg-card-hover: rgba(35, 18, 77, 0.85);
  
  --primary-uv: #8b5cf6;
  --primary-uv-glow: rgba(139, 92, 246, 0.35);
  --accent-electric: #38bdf8;
  --accent-electric-glow: rgba(56, 189, 248, 0.3);
  --accent-coral: #fb7185;
  --accent-coral-glow: rgba(251, 113, 133, 0.25);
  
  --text-starlight: #f8fafc;
  --text-nebula: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(139, 92, 246, 0.2);
  --border-active: rgba(56, 189, 248, 0.5);
  
  --font-sans: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-space: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(139, 92, 246, 0.15);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep-space);
  color: var(--text-starlight);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(251, 113, 133, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Slim Unstuck Header */
.site-header {
  position: relative;
  width: 100%;
  background: rgba(11, 5, 26, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-starlight);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-logo svg {
  filter: drop-shadow(0 0 8px var(--primary-uv));
}

.brand-name-highlight {
  background: linear-gradient(135deg, #fff 30%, var(--accent-electric) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-nebula);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-starlight);
  background: rgba(139, 92, 246, 0.15);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header-cta {
  background: linear-gradient(135deg, var(--primary-uv), #6d28d9);
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 0 15px var(--primary-uv-glow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-starlight);
  padding: 0.4rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
}

.mobile-nav-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-drawer .nav-link {
  font-size: 1rem;
  padding: 0.5rem;
}

/* Common Layout */
.main-wrapper {
  flex: 1 0 auto;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* Hero Section */
.hero-cosmos {
  position: relative;
  padding: 4.5rem 1.25rem 3.5rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-deep-space);
}

/* Hero Background Media */
.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.22;
  filter: blur(1px) brightness(0.85) saturate(1.25);
  transform: scale(1.04);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 25%, rgba(139, 92, 246, 0.28) 0%, rgba(7, 3, 18, 0.7) 60%, var(--bg-deep-space) 100%),
    linear-gradient(180deg, rgba(7, 3, 18, 0.55) 0%, rgba(7, 3, 18, 0.85) 60%, var(--bg-deep-space) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-electric);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 960px;
  margin: 0 auto 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-electric) 70%, var(--primary-uv) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-nebula);
  max-width: 720px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

/* Fluid Hero Image Showcase */
.hero-fluid-showcase {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.5rem;
  z-index: 2;
}

.hero-fluid-glow {
  position: absolute;
  top: 15%;
  left: 5%;
  right: 5%;
  bottom: 10%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.45) 0%, rgba(56, 189, 248, 0.25) 50%, transparent 75%);
  filter: blur(45px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.hero-fluid-image-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 240px;
  border-radius: clamp(16px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.2);
  background: #0d061f;
  transform: perspective(1000px) rotateX(1deg);
  transition: var(--transition);
}

.hero-fluid-image-frame:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-4px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 45px rgba(139, 92, 246, 0.45);
}

.hero-fluid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-fluid-image-frame:hover .hero-fluid-image {
  transform: scale(1.03);
}

.hero-fluid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 3, 18, 0.15) 0%,
    rgba(7, 3, 18, 0) 40%,
    rgba(7, 3, 18, 0.75) 100%
  );
  pointer-events: none;
}

.hero-fluid-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hero-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 7, 32, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--text-starlight);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-electric);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-electric);
  animation: pulse-glow 2s infinite ease-in-out;
}

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

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-electric), #0284c7);
  color: #070312;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

.btn-secondary {
  background: rgba(22, 12, 51, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-starlight);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--accent-electric);
  background: rgba(35, 18, 77, 0.9);
}

/* Section Header */
.section-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

/* Card Grids */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.game-card, .article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-space);
  position: relative;
}

.game-card:hover, .article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 25px var(--primary-uv-glow);
}

.card-media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #110826;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .card-media img, .article-card:hover .card-media img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(7, 3, 18, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--accent-electric);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-coral);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-starlight);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.card-text {
  color: var(--text-nebula);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer-action {
  margin-top: auto;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  padding-top: 1rem;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(139, 92, 246, 0.12);
  color: var(--text-starlight);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.btn-card:hover {
  background: var(--primary-uv);
  color: #fff;
  border-color: var(--primary-uv);
}

/* Feature/Highlights Section */
.orbital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.orbital-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
}

.orbital-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-electric);
  margin-bottom: 1rem;
}

/* Single Article / Detail Layout */
.article-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.article-hero-img {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border-subtle);
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-prose {
  font-size: 1.05rem;
  color: var(--text-nebula);
  line-height: 1.8;
}

.content-prose h2 {
  color: var(--text-starlight);
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.content-prose h3 {
  color: var(--accent-electric);
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
}

.content-prose p {
  margin-bottom: 1.4rem;
}

.content-prose ul, .content-prose ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.content-prose li {
  margin-bottom: 0.5rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--bg-surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.spec-table th, .spec-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.spec-table th {
  background: rgba(139, 92, 246, 0.15);
  color: var(--text-starlight);
  font-weight: 600;
}

.callout-box {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--accent-electric);
  padding: 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.75rem 0;
}

/* Contact Page Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-starlight);
}

.form-control {
  width: 100%;
  background: var(--bg-deep-space);
  border: 1px solid var(--border-subtle);
  color: var(--text-starlight);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-electric);
  box-shadow: 0 0 10px var(--accent-electric-glow);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Universal Footer */
.site-footer {
  background: #05020d;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.25rem 2rem;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 340px;
}

.footer-col-title {
  color: var(--text-starlight);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-nebula);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-electric);
  padding-left: 4px;
}

.footer-address {
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 680px;
  background: rgba(14, 7, 32, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-electric);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-electric-glow);
  display: none;
}

.cookie-banner.visible {
  display: block;
  animation: slideUpFade 0.4s ease forwards;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--text-nebula);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-cookie-accept {
  background: var(--accent-electric);
  color: #070312;
  border: none;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-cookie-necessary {
  background: transparent;
  color: var(--text-starlight);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-fluid-image-frame {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-cosmos {
    padding: 3.25rem 1rem 2.25rem;
  }
  .hero-actions {
    margin-bottom: 1.75rem;
  }
  .hero-fluid-image-frame {
    aspect-ratio: 4 / 3;
    min-height: 200px;
  }
  .hero-fluid-caption {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
  }
  .hero-live-indicator {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}