/* ============================================
   3 BIT PRODUCTIONS - Main Stylesheet
   Modern + Pixel Accent | Indie Gaming Studio
   Colors: Blue #2979FF, Black, Gray #999, White
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --blue: #2979FF;
  --blue-light: #64B5F6;
  --blue-dark: #1565C0;
  --blue-glow: rgba(41, 121, 255, 0.25);
  --blue-subtle: rgba(41, 121, 255, 0.08);
  --black: #000000;
  --dark: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-solid: #111111;
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --gray: #888888;
  --gray-light: #b0b0b0;
  --white: #f0f0f0;
  --pixel-font: 'Press Start 2P', monospace;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--body-font);
  background-color: var(--dark);
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--white);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-dark) transparent;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--blue-dark);
  border-radius: 3px;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--blue-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Pixel Accent Elements --- */
.pixel-accent {
  font-family: var(--pixel-font);
  color: var(--blue);
}

.pixel-divider {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(41, 121, 255, 0.15) 0px,
    rgba(41, 121, 255, 0.15) 6px,
    transparent 6px,
    transparent 12px
  );
  margin: 4rem 0;
}

/* --- Boot Screen --- */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease-out;
}

#boot-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#boot-screen.hidden {
  display: none;
}

.boot__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.boot__text {
  font-family: var(--pixel-font);
  font-size: 0.7rem;
  color: var(--blue);
  letter-spacing: 2px;
  z-index: 2;
  min-height: 1.5em;
}

.boot__bar-container {
  width: 300px;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 2;
  overflow: hidden;
}

.boot__bar {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width 0.1s step-end;
}

.boot__skip {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-family: var(--pixel-font);
  font-size: 0.5rem;
  color: var(--gray);
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.boot__skip:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav__inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav__logo img {
  height: 40px;
  image-rendering: pixelated;
  /* Invert for dark background — black text becomes white, white bg becomes transparent-like */
  filter: invert(1) hue-rotate(180deg);
}

.nav__logo-text {
  font-family: var(--pixel-font);
  font-size: 0.65rem;
  color: var(--white);
  letter-spacing: 1px;
}

.nav__logo-text span {
  color: var(--blue);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}

.nav__links a:hover {
  color: var(--white);
  background: var(--surface-hover);
}

.nav__links a.active {
  color: var(--white);
  background: var(--blue-subtle);
}

/* Mobile menu button */
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.nav__toggle:hover {
  background: var(--surface-hover);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section__header {
  margin-bottom: 3.5rem;
}

.section__label {
  font-family: var(--pixel-font);
  font-size: 0.55rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section__label::before {
  content: '>';
  opacity: 0.6;
}

.section__title {
  font-family: var(--body-font);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Subtle CRT scanline overlay on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Subtle radial gradient behind hero content */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(41, 121, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
}

/* Animated pixel logo container */
.hero__pixel-logo {
  margin: 0 auto 2rem;
  display: inline-block;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero__pixel-logo.visible {
  opacity: 1;
}

.hero__productions {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gray);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
}

.hero__productions.visible {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.hero__logo {
  width: 340px;
  max-width: 80vw;
  margin-bottom: 2rem;
  image-rendering: pixelated;
}

.hero__tagline {
  font-family: var(--pixel-font);
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__cursor {
  display: inline-block;
  width: 10px;
  height: 2px;
  background: var(--blue);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}

.hero__description {
  font-size: 1.2rem;
  color: var(--gray-light);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  position: relative;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(41, 121, 255, 0.3);
}

.btn--primary:hover {
  background: var(--blue-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 121, 255, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(41, 121, 255, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--gray-light);
  border: 1px solid var(--border-hover);
}

.btn--outline:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

/* Pixel-style accent button (used sparingly) */
.btn--pixel {
  font-family: var(--pixel-font);
  font-size: 0.55rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.card:hover {
  border-color: rgba(41, 121, 255, 0.2);
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(41, 121, 255, 0.15),
    0 0 30px rgba(41, 121, 255, 0.06);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.card:hover .card__image img {
  transform: scale(1.03);
}

.card__image--placeholder {
  background: linear-gradient(135deg, #111 0%, #080808 100%);
  overflow: hidden;
}

/* Diagonal shimmer sweep on placeholder images */
.card__image--placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(41, 121, 255, 0.03) 45%,
    rgba(41, 121, 255, 0.06) 50%,
    rgba(41, 121, 255, 0.03) 55%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: none;
}

.card:hover .card__image--placeholder::before {
  transform: translateX(100%);
  transition: transform 0.8s ease;
}

.card__image--placeholder::after {
  content: '';
  width: 48px;
  height: 48px;
  background: var(--blue);
  opacity: 0.12;
  clip-path: polygon(
    0 25%, 25% 25%, 25% 0, 50% 0, 50% 25%, 75% 25%, 75% 0, 100% 0, 100% 25%,
    75% 25%, 75% 50%, 100% 50%, 100% 75%, 75% 75%, 75% 100%, 50% 100%, 50% 75%,
    25% 75%, 25% 100%, 0 100%, 0 75%, 25% 75%, 25% 50%, 0 50%
  );
}

.card__body {
  padding: 1.5rem;
}

.card__tag {
  font-family: var(--pixel-font);
  font-size: 0.45rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.card:hover .card__tag {
  animation: flicker 0.15s steps(2) 1;
}

@keyframes flicker {
  0%   { opacity: 1; }
  25%  { opacity: 0.4; }
  50%  { opacity: 1; }
  75%  { opacity: 0.6; }
  100% { opacity: 1; }
}

.card__title {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card__description {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--pixel-font);
  font-size: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card__status--coming-soon {
  color: var(--gray);
}

.card__status--coming-soon::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gray);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

.card__status--live {
  color: #4caf50;
}

.card__status--live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4caf50;
  border-radius: 50%;
  display: inline-block;
}

/* --- Feature Grid (Home page) --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s;
}

.feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.feature__icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature__title {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.feature__label {
  font-family: var(--pixel-font);
  font-size: 0.4rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.feature__text {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- About Preview (Home page) --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview__text h3 {
  font-family: var(--body-font);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.about-preview__label {
  font-family: var(--pixel-font);
  font-size: 0.5rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-preview__label::before {
  content: '>';
  opacity: 0.6;
}

.about-preview__text p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-preview__visual {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.pixel-avatar {
  width: 100px;
  height: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: all 0.3s;
  overflow: hidden;
}

.pixel-avatar img {
  width: 80%;
  height: 80%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.pixel-avatar:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.pixel-avatar__label {
  font-family: var(--pixel-font);
  font-size: 0.4rem;
  color: var(--gray);
  text-align: center;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Podcast Section --- */
.podcast-hero {
  text-align: center;
  padding: 3rem 0;
}

.podcast-platforms {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--gray);
  transition: all 0.25s;
}

.platform-link:hover {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue-subtle);
}

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.episode {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.episode:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.episode__number {
  font-family: var(--pixel-font);
  font-size: 0.65rem;
  color: var(--blue);
  min-width: 3rem;
}

.episode__info {
  flex: 1;
}

.episode__title {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.episode__meta {
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- About Page --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-member {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.team-member:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.team-member__avatar {
  width: 110px;
  height: 110px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.team-member__avatar img {
  width: 80%;
  height: 80%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.team-member__name {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.team-member__role {
  font-family: var(--pixel-font);
  font-size: 0.4rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.team-member__bio {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gray-light);
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--body-font);
  font-size: 0.95rem;
  transition: all 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.1);
}

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

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

.contact-info h3 {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info__item span:first-child {
  font-size: 1.2rem;
  min-width: 1.5rem;
}

.contact-info__item p {
  color: var(--gray);
  line-height: 1.6;
}

.contact-info__item a {
  color: var(--blue);
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__logo {
  font-family: var(--pixel-font);
  font-size: 0.55rem;
  color: var(--gray);
}

.footer__logo span {
  color: var(--blue);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--gray);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__status {
  width: 100%;
  text-align: center;
  font-family: var(--pixel-font);
  font-size: 0.4rem;
  color: var(--gray);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer__status-dot {
  width: 5px;
  height: 5px;
  background: #4caf50;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(136, 136, 136, 0.5);
  padding-top: 0.75rem;
}

/* --- Legal Pages (Privacy, Terms) --- */
.legal {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
}

.legal h1 {
  font-family: var(--body-font);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.legal .last-updated {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.legal p,
.legal li {
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 3rem;
  text-align: center;
  position: relative;
}

.page-header__label {
  font-family: var(--pixel-font);
  font-size: 0.5rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: block;
}

.page-header h1 {
  font-family: var(--body-font);
  font-weight: 800;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  position: relative;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  line-height: 1.7;
}

/* --- Arcade / Game Section --- */
.arcade-section {
  text-align: center;
  padding: 4rem 0;
}

.game-container {
  display: inline-block;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.game-container canvas {
  display: block;
  border-radius: var(--radius-sm);
}

.game-controls {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.game-controls__hint {
  font-size: 0.85rem;
  color: var(--gray);
}

.game-score {
  font-family: var(--pixel-font);
  font-size: 0.6rem;
  color: var(--blue);
  margin-top: 1rem;
}

/* --- Scroll Fade-In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- CRT Power-On Section Reveals --- */
.fade-in--crt {
  opacity: 0;
  transform: none;
  clip-path: inset(50% 50% 50% 50%);
  transition: none;
  position: relative;
}

.fade-in--crt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  opacity: 0.5;
  transition: none;
}

.fade-in--crt.visible::after {
  transform: scaleX(1);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in--crt.visible {
  opacity: 1;
  clip-path: inset(0% 0% 0% 0%);
  transition: opacity 0.6s ease 0.35s, clip-path 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.3s;
}

/* Line fades out after content reveals */
.fade-in--crt.visible::after {
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease 0.7s;
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(41, 121, 255, 0.1); }
  50% { box-shadow: 0 0 40px rgba(41, 121, 255, 0.2); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in,
  .fade-in--crt {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  #boot-screen {
    display: none !important;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .about-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .section__title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav__toggle {
    display: block;
  }

  .hero__tagline {
    font-size: 0.55rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

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

  .page-header h1 {
    font-size: 2rem;
  }

  .episode {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero__description {
    font-size: 1.05rem;
  }

  .section {
    padding: 4rem 0;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .game-container {
    padding: 1rem;
  }

  .game-container canvas {
    max-width: 100%;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .about-preview__visual {
    gap: 0.75rem;
  }

  .pixel-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .section__title {
    font-size: 1.3rem;
  }
}
