:root {
  --lime: #ccff1e;
  --lime-hover: #dbff52;
  --lime-glow: rgba(204, 255, 30, 0.35);
  --dark: #0e1012;
  --font-display: 'Barlow Condensed', 'Impact', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html,
body {
  width: 100%;
  height: 100%;
  background: var(--dark);
  color: #ffffff;
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Fullscreen Hero ===== */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: contrast(1.06) brightness(0.76);
}

/* Vignette & atmospheric depth */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(10, 12, 14, 0.25) 0%, rgba(10, 12, 14, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 25%, transparent 72%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}

/* Subtle gritty scanline / halftone texture like the screenshot */
.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.45) 0px,
      rgba(0, 0, 0, 0.45) 1px,
      transparent 1px,
      transparent 3px
    );
}

/* ===== Top Header ===== */
.hero-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  border-radius: 4px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.brand-badge:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-codex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 18px;
  background: rgba(16, 18, 21, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: skewX(-12deg);
  border-radius: 3px;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
}

.nav-codex-btn > span {
  display: inline-block;
  transform: skewX(12deg);
}

.nav-codex-btn:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: #111315;
  box-shadow: 0 0 16px var(--lime-glow);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 30px;
  padding: 0 10px;
  background: rgba(16, 18, 21, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cfd4dc;
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: skewX(-12deg);
  border-radius: 3px;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
}

.lang-btn > span {
  display: inline-block;
  transform: skewX(12deg);
}

.lang-btn:hover:not(.active) {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.lang-btn.active {
  background: var(--lime);
  border-color: var(--lime);
  color: #111315;
  box-shadow: 0 0 12px var(--lime-glow);
}

/* ===== Center Hero ===== */
.hero-center {
  position: relative;
  z-index: 6;
  text-align: center;
  padding: 0 24px 64px;
  max-width: 780px;
}

.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(68px, 8.8vw, 128px);
  line-height: 0.9;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #f4f5f2;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.65);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: clamp(14.5px, 1.25vw, 18px);
  line-height: 1.55;
  font-weight: 500;
  color: rgba(245, 247, 250, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-play-free {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 248px;
  height: 58px;
  padding: 0 36px;
  background: var(--lime);
  color: #101214;
  text-decoration: none;
  border-radius: 5px;
  transform: skewX(-12deg);
  box-shadow: 0 8px 28px var(--lime-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.btn-play-free:hover {
  background: var(--lime-hover);
  transform: skewX(-12deg) translateY(-2px);
  box-shadow: 0 12px 36px rgba(204, 255, 30, 0.5);
}

.btn-play-free .btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  transform: skewX(12deg);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.steam-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ===== Watch Trailer Button (Bottom Left) ===== */
.watch-trailer-btn {
  position: absolute;
  left: 26px;
  bottom: 92px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.watch-trailer-btn:hover {
  color: var(--lime);
  transform: translateX(2px);
}

.play-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.play-circle svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

.watch-trailer-btn:hover .play-circle {
  border-color: var(--lime);
  background: rgba(204, 255, 30, 0.16);
}

/* ===== Angled Infinite Marquee Ribbon ===== */
.marquee-shell {
  position: absolute;
  left: -4vw;
  right: -4vw;
  bottom: 18px;
  z-index: 9;
  width: 108vw;
  background: #ffffff;
  color: #0e1012;
  padding: 11px 0;
  transform: rotate(-1.55deg);
  box-shadow:
    0 18px 0 18px #0c0e10,
    0 -4px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-shell:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== Trailer Modal ===== */
.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 8, 10, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.trailer-modal.open {
  display: flex;
}

.trailer-box {
  width: min(1100px, 92vw);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
}

.trailer-box video {
  display: block;
  width: 100%;
  max-height: 82vh;
}

.trailer-close {
  position: absolute;
  top: 20px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.trailer-close:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: #101214;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .hero-header {
    padding: 14px 16px;
  }

  .header-right {
    gap: 8px;
  }

  .lang-btn {
    min-width: 34px;
    padding: 0 7px;
    font-size: 13px;
  }

  .watch-trailer-btn {
    left: 16px;
    bottom: 84px;
  }

  .marquee-item {
    font-size: 18px;
    padding: 0 18px;
  }
}
