/* ==========================================================================
   RetroNexus — Premium Retro Gaming Design System
   Aesthetic: Obsidian Dark Mode, Cyber Neon Accents, Ultra-clean Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Colors */
  --bg-main: #0c0914;
  --bg-surface: #140f22;
  --bg-surface-elevated: #1b142d;
  --bg-surface-glass: rgba(23, 17, 39, 0.72);
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.065);

  --lime: #d4f67a;
  --lime-glow: rgba(212, 246, 122, 0.35);
  --lime-bright: #e3ffa1;
  --purple-glow: rgba(147, 95, 255, 0.28);
  --purple-accent: #9d6fff;
  --purple-deep: #5933a8;
  --cyan-accent: #4ef2d2;
  
  --text-main: #f8f6fd;
  --text-muted: #a39bb5;
  --text-dim: #716885;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(212, 246, 122, 0.4);

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 40px var(--lime-glow);
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: var(--bg-main);
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle background ambient mesh glow */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(119, 82, 197, 0.18) 0%, rgba(212, 246, 122, 0.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
}

button, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--lime);
  color: var(--bg-main);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

/* Layout container */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 32px;
}

/* Accessibility skip link */
.skip {
  position: fixed;
  top: -120px;
  left: 24px;
  z-index: 999;
  background: var(--lime);
  color: var(--bg-main);
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: top 0.2s;
}

.skip:focus {
  top: 16px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  background: rgba(12, 9, 20, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-main);
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: rotate(-6deg) scale(1.05);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(212, 246, 122, 0.12);
  color: var(--lime);
  border: 1px solid rgba(212, 246, 122, 0.25);
  margin-left: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.desktop-nav a {
  position: relative;
  padding-block: 6px;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
  transition: width 0.25s ease;
}

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

.desktop-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.button-small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 10px;
  gap: 8px;
}

.button-lime {
  background: var(--lime);
  color: var(--bg-main);
  box-shadow: 0 4px 20px var(--lime-glow);
}

.button-lime:hover {
  background: var(--lime-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--lime-glow);
}

.button-lime:active {
  transform: translateY(0);
}

.button-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.button-dark {
  background: #110d1c;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
}

.button-dark:hover {
  background: #181226;
  border-color: var(--lime);
  transform: translateY(-2px);
  color: var(--lime);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.text-link:hover {
  color: var(--lime);
  transform: translateX(3px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  background: rgba(16, 12, 26, 0.98);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav a {
  font-size: 16px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav a:hover {
  color: var(--lime);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 720px;
  padding-top: 60px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 20px 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  width: fit-content;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(52px, 6.2vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -3px;
  margin: 0 0 24px 0;
  color: #ffffff;
}

h1 > span {
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 10%, var(--lime) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 440px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 32px 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  margin: 24px 0 0 0;
}

.hero-note-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Hero Art Visual */
.hero-art {
  position: relative;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-art-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 95, 255, 0.22) 0%, rgba(212, 246, 122, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: floatGlow 8s infinite alternate ease-in-out;
}

@keyframes floatGlow {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.1) translateY(-20px); }
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 480px;
  height: 480px;
}

.orbit-two {
  width: 360px;
  height: 360px;
  border-style: solid;
  border-color: rgba(147, 95, 255, 0.15);
}

.preview-card {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12);
  margin: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  background: #110d1c;
}

.preview-card img {
  width: 100%;
  height: auto;
  display: block;
}

.preview-back {
  width: 230px;
  left: 20px;
  top: 40px;
  transform: rotate(-10deg);
  z-index: 1;
}

.preview-back:hover {
  transform: rotate(-7deg) scale(1.03);
  z-index: 3;
}

.preview-front {
  width: 260px;
  right: 20px;
  top: 60px;
  transform: rotate(7deg);
  z-index: 2;
}

.preview-front:hover {
  transform: rotate(4deg) scale(1.03);
  z-index: 3;
}

/* Floating Badges */
.art-stamp {
  position: absolute;
  left: 10px;
  bottom: 80px;
  z-index: 4;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--bg-main);
  border-radius: 14px;
  font-family: var(--font-heading);
  box-shadow: 0 10px 30px var(--lime-glow);
  transform: rotate(-6deg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% { transform: rotate(-6deg) translateY(0); }
  100% { transform: rotate(-6deg) translateY(-8px); }
}

.art-stamp strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.1;
  display: block;
}

.art-stamp span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2b3310;
  display: block;
}

.art-pill {
  position: absolute;
  right: 10px;
  bottom: 40px;
  z-index: 4;
  padding: 10px 16px;
  background: rgba(18, 14, 28, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  transform: rotate(3deg);
}

.art-pill span {
  color: var(--lime);
  font-size: 14px;
}

/* ==========================================================================
   Supported Systems Bar
   ========================================================================== */
.systems {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
  padding-block: 28px;
}

.systems-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.systems-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.systems-label span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.systems-label strong {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-main);
}

.system-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.system-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.system-pill:hover {
  background: rgba(212, 246, 122, 0.1);
  border-color: rgba(212, 246, 122, 0.35);
  color: var(--lime);
  transform: translateY(-2px);
}

.system-pill small {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.6;
}

/* ==========================================================================
   Section Common Styling
   ========================================================================== */
.section-space {
  padding-block: 100px;
}

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.08;
  margin: 0;
  color: #ffffff;
}

h2 .highlight {
  color: var(--lime);
}

.section-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin: 12px 0 0 0;
}

/* ==========================================================================
   Bento Grid Feature Section (Replaces the jarring white cream block)
   ========================================================================== */
.features-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-main) 0%, #110d1c 50%, var(--bg-main) 100%);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-top: 40px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bento-card-main {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-copy {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.bento-copy .file-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.bento-visual {
  position: relative;
  margin-top: auto;
  background: radial-gradient(circle at 50% 30%, rgba(147, 95, 255, 0.18) 0%, rgba(12, 9, 20, 0.7) 70%);
  border-radius: 20px;
  padding: 28px 24px 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  min-height: 360px;
}

.device-frame {
  position: relative;
  width: 230px;
  max-width: 100%;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: #110d1c;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  line-height: 0;
}

.device-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 1731;
  display: block;
  object-fit: cover;
  object-position: top center;
  border-radius: 26px 26px 0 0;
}

.bento-card-main:hover .device-frame {
  transform: translateY(-8px);
  box-shadow: 0 -18px 50px rgba(147, 95, 255, 0.35), 0 0 0 1px rgba(212, 246, 122, 0.35);
}

.file-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(12, 9, 20, 0.9);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: var(--lime);
  box-shadow: var(--shadow-sm);
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 246, 122, 0.1);
  border: 1px solid rgba(212, 246, 122, 0.25);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.bento-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.bento-card-sub {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features-footer {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.features-footer p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

/* ==========================================================================
   Gallery / Screenshot Section
   ========================================================================== */
.gallery-section {
  position: relative;
}

.gallery-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.gallery-tabs button {
  padding: 8px 18px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.gallery-tabs button.active {
  background: var(--lime);
  color: var(--bg-main);
  box-shadow: 0 2px 10px var(--lime-glow);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.screenshot-grid figure {
  margin: 0;
}

.screenshot-button {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #150f24;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.screenshot-button img {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 1731;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.screenshot-button:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 246, 122, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--lime-glow);
}

.screenshot-button:hover img {
  transform: scale(1.03);
}

.screenshot-button::after {
  content: '⤢';
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(12, 9, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.screenshot-button:hover::after {
  background: var(--lime);
  color: var(--bg-main);
  opacity: 1;
  transform: scale(1.1);
}

figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

figcaption span:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lime);
}

.native-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin-inline: auto;
}

.gallery-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   How to Play / Setup Guide (Premium Visual Timeline)
   ========================================================================== */
.steps-section {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(147, 95, 255, 0.03) 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 30px;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 246, 122, 0.3);
  transform: translateY(-4px);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(212, 246, 122, 0.12);
  color: var(--lime);
  border: 1px solid rgba(212, 246, 122, 0.25);
}

.step-icon {
  font-size: 20px;
  color: var(--text-dim);
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0 0 12px 0;
  color: #ffffff;
}

.step-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.ownership-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 40px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.ownership-note span {
  font-size: 18px;
  color: var(--lime);
  flex-shrink: 0;
}

.ownership-note strong {
  color: var(--text-main);
}

.ownership-note p {
  margin: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 60px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all 0.25s ease;
  overflow: hidden;
}

.faq-list details[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-main);
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary span {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--lime);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

details[open] summary span {
  transform: rotate(45deg);
}

details p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  padding: 0 24px 22px 24px;
  margin: 0;
}

details p a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Download CTA Section (High Conversion Banner)
   ========================================================================== */
.download-section {
  padding-bottom: 100px;
}

.download-panel {
  position: relative;
  background: linear-gradient(135deg, #171128 0%, #201438 50%, #150f24 100%);
  border: 1px solid rgba(212, 246, 122, 0.25);
  border-radius: 28px;
  padding: 70px 60px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(212, 246, 122, 0.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
}

.download-star {
  position: absolute;
  font-size: 240px;
  color: rgba(212, 246, 122, 0.035);
  top: -60px;
  right: -30px;
  pointer-events: none;
  user-select: none;
  transform: rotate(15deg);
}

.download-panel .eyebrow {
  margin-inline: auto;
  color: var(--lime);
  border-color: rgba(212, 246, 122, 0.25);
}

.download-panel h2 {
  font-size: clamp(38px, 5.2vw, 64px);
  margin-bottom: 24px;
  max-width: 680px;
}

.download-panel .button {
  margin-top: 8px;
  font-size: 16px;
  padding: 16px 36px;
}

.download-note {
  font-size: 13px;
  color: var(--text-dim);
  margin: 20px 0 0 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 6, 14, 0.6);
  padding-block: 60px 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.footer-top .brand {
  font-size: 20px;
}

.footer-top p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.footer-top nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-top nav a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p:last-child {
  max-width: 520px;
  text-align: right;
}

/* ==========================================================================
   Lightbox Dialog
   ========================================================================== */
.lightbox {
  background: rgba(14, 10, 24, 0.96);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  color: var(--text-main);
  padding: 24px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  width: 900px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9);
}

.lightbox::backdrop {
  background: rgba(5, 3, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.lightbox-toolbar p {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}

.lightbox button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 10px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--lime);
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}

.lightbox-stage img {
  max-height: calc(100dvh - 160px);
  width: auto;
  max-width: calc(100% - 100px);
  object-fit: contain;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.lightbox-prev, .lightbox-next {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Legal & Support Pages (support.html, privacy.html, 404.html)
   ========================================================================== */
.legal-hero {
  padding-top: 60px;
  padding-bottom: 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  margin-bottom: 24px;
}

.back-link:hover {
  text-decoration: underline;
}

.legal-body {
  padding-bottom: 80px;
}

.prose {
  max-width: 820px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 48px;
}

.prose h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  margin: 40px 0 16px 0;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p, .prose li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-box {
  margin-top: 40px;
  background: rgba(212, 246, 122, 0.05);
  border: 1px solid rgba(212, 246, 122, 0.2);
  border-radius: 18px;
  padding: 32px;
}

.contact-box h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.contact-box .button {
  margin-top: 16px;
  margin-bottom: 16px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .eyebrow {
    margin-inline: auto;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-note {
    justify-content: center;
  }

  .hero-art {
    height: 500px;
  }

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

  .bento-card-main {
    grid-column: auto;
    grid-row: auto;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .systems-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .system-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding-inline: 20px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-actions .button-small {
    display: none;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(42px, 11vw, 62px);
    letter-spacing: -2px;
  }

  .hero-art {
    height: 420px;
  }

  .preview-front {
    width: 200px;
    right: 10px;
  }

  .preview-back {
    width: 180px;
    left: 10px;
  }

  .art-stamp {
    left: 0;
    bottom: 20px;
  }

  .art-pill {
    right: 0;
    bottom: 10px;
  }

  .section-space {
    padding-block: 60px;
  }

  .section-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .gallery-tabs {
    width: 100%;
  }

  .gallery-tabs button {
    flex: 1;
  }

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

  .download-panel {
    padding: 48px 24px;
    border-radius: 20px;
  }

  .prose {
    padding: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom p:last-child {
    text-align: left;
  }
}

/* ==========================================================================
   Support & Guides Enhancements: ROM Sources, PS1 BIOS, and Import Guide
   ========================================================================== */

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.quick-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.quick-nav-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-1px);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0 36px 0;
}

.source-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.source-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
  transition: background 0.25s ease;
}

.source-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.source-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
}

.source-card-featured {
  border-color: rgba(212, 246, 122, 0.35);
  background: linear-gradient(180deg, rgba(212, 246, 122, 0.04) 0%, var(--bg-surface) 100%);
}

.source-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.source-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.source-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.source-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.source-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 246, 122, 0.12);
  color: var(--lime);
  border: 1px solid rgba(212, 246, 122, 0.25);
  white-space: nowrap;
}

.source-badge-cyan {
  background: rgba(78, 242, 210, 0.12);
  color: var(--cyan-accent);
  border-color: rgba(78, 242, 210, 0.25);
}

.source-badge-purple {
  background: rgba(157, 111, 255, 0.12);
  color: var(--purple-accent);
  border-color: rgba(157, 111, 255, 0.25);
}

.source-desc {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--text-muted) !important;
  margin: 0 0 16px 0 !important;
}

.source-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.source-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.source-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  text-decoration: none !important;
  transition: all 0.2s ease;
  width: 100%;
}

.source-btn:hover {
  background: var(--lime);
  color: var(--bg-main);
  border-color: var(--lime);
}

.source-btn-featured {
  background: rgba(212, 246, 122, 0.15);
  color: var(--lime-bright);
  border-color: rgba(212, 246, 122, 0.35);
}

.source-btn-featured:hover {
  background: var(--lime);
  color: var(--bg-main);
}

/* Guide steps */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 32px 0;
}

.guide-step {
  display: flex;
  gap: 18px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: border-color 0.2s ease;
}

.guide-step:hover {
  border-color: var(--border-medium);
}

.guide-step-num {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--lime);
  background: rgba(212, 246, 122, 0.1);
  border: 1px solid rgba(212, 246, 122, 0.25);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-content {
  flex: 1;
}

.guide-step-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-main);
}

.guide-step-content p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

.guide-step-content p + p {
  margin-top: 8px !important;
}

/* Callout cards */
.callout-card {
  padding: 20px 24px;
  border-radius: 16px;
  margin: 20px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.callout-card-info {
  background: rgba(78, 242, 210, 0.06);
  border: 1px solid rgba(78, 242, 210, 0.25);
}

.callout-card-warning {
  background: rgba(212, 246, 122, 0.06);
  border: 1px solid rgba(212, 246, 122, 0.25);
}

.callout-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.callout-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-main);
}

.callout-body p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

/* Code pills */
.code-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--lime);
}

/* Formats table */
.formats-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-surface);
}

.formats-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.formats-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.formats-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.formats-table tr:last-child td {
  border-bottom: none;
}

.formats-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
  .source-grid {
    grid-template-columns: 1fr;
  }
  .guide-step {
    flex-direction: column;
    gap: 12px;
  }
}

@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;
  }
}
