/* ═══════════════════════════════════════════════════════════════
   REM FREELANCER – Landing Page Styles
   Visual identity from >REM< Launcher Template (Titillium Web, #aafffc)
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  --teal-bright:   #aafffc;
  --teal-mid:      #31d4d0;
  --teal-dark:     #135151;
  --teal-glow:     rgba(170, 255, 252, 0.15);
  --teal-border:   rgba(170, 255, 252, 0.3);
  --teal-border-faint: rgba(170, 255, 252, 0.12);

  --bg-void:       #060c14;
  --bg-navy:       #0d1a2e;
  --bg-panel:      #0e1e35;
  --bg-panel-dark: #080f1d;

  --text-primary:  #e8f4f8;
  --text-dim:      rgba(232, 244, 248, 0.55);
  --accent-warn:   #f7ef6b;

  --container-max: 1200px;
  --navbar-height: 72px;
  --font: 'Titillium Web', sans-serif;
}

/* ── 2. RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ── 3. TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

/* ── 4. UTILITIES ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-primary);
}

.title-line {
  width: 60px;
  height: 2px;
  background: var(--teal-bright);
  margin: 16px auto 0;
  box-shadow: 0 0 10px rgba(170, 255, 252, 0.5);
}

.teal-glow {
  color: var(--teal-bright);
  text-shadow: 0 0 18px rgba(170, 255, 252, 0.55);
}

/* ── 5. CORNER BORDER SYSTEM (from TPL Launcher) ──────────────── */
.panel {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--teal-border-faint);
}

.corner-tl, .corner-tr, .corner-bl, .corner-br {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--teal-bright);
  border-style: solid;
  transition: border-color 0.2s ease;
  z-index: 1;
}
.corner-tl { top: -1px; left: -1px;   border-width: 2px 0 0 2px; }
.corner-tr { top: -1px; right: -1px;  border-width: 2px 2px 0 0; }
.corner-bl { bottom: -1px; left: -1px;  border-width: 0 0 2px 2px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ── 6. BUTTON SYSTEM ──────────────────────────────────────────── */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background: rgba(170, 255, 252, 0.08);
  border-top: 2px solid var(--teal-bright);
  border-bottom: 2px solid var(--teal-bright);
  color: var(--teal-bright);
}
.btn-primary:hover {
  background: rgba(170, 255, 252, 0.2);
  color: var(--accent-warn);
  border-color: var(--accent-warn);
}

.btn-secondary {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background: transparent;
  border-top: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  color: var(--text-dim);
}
.btn-secondary:hover {
  background: rgba(170, 255, 252, 0.06);
  border-color: var(--teal-mid);
  color: var(--teal-bright);
}

/* ── 7. NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--navbar-height);
  background: linear-gradient(to bottom, rgba(6,12,20,0.97), rgba(8,15,29,0.95));
  border-bottom: 1px solid var(--teal-border-faint);
  transition: height 0.2s ease, box-shadow 0.2s ease;
}
.navbar.condensed {
  height: 52px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.navbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.navbar-logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(170,255,252,0.3));
}
.brand-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--teal-bright);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links li a {
  display: block;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--teal-bright);
}
.nav-links li a.active {
  border-bottom: 1px solid var(--teal-bright);
}

.nav-discord {
  color: #7289da !important;
}
.nav-discord:hover {
  color: #aab4ff !important;
}

.nav-guide {
  color: var(--teal-bright) !important;
  opacity: .85;
}
.nav-guide:hover {
  color: #fff !important;
  opacity: 1;
}

.nav-cta {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  background: rgba(170,255,252,0.08) !important;
  border: 1px solid var(--teal-bright) !important;
  color: var(--teal-bright) !important;
  padding: 6px 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  margin-left: 8px;
}
.nav-cta:hover {
  background: rgba(170,255,252,0.18) !important;
  color: var(--accent-warn) !important;
  border-color: var(--accent-warn) !important;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-bright);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 8. HERO ───────────────────────────────────────────────────── */
.section-hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Video background – fallback to nebula when no videos loaded */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #060c14 url('./media/hubble-carina-nebula-landscape.jpg') center 40% / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.8s ease; /* langsam = weicher Überblend vom Wallpaper */
}
.hero-video.active {
  opacity: 1; /* deckt das Wallpaper vollständig ab sobald eingeblendet */
}

/* Flash overlay for the "hyperjump" crossfade transition */
.hero-flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(170, 255, 252, 0.95) 0%,
    rgba(100, 200, 255, 0.4) 35%,
    rgba(6, 12, 20, 0) 70%);
  opacity: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(6,12,20,0.35) 0%,
      rgba(6,12,20,0.25) 40%,
      rgba(6,12,20,0.72) 80%,
      rgba(6,12,20,1) 100%);
  z-index: 4;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeDown 0.8s ease 0.3s forwards;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 0.95;
  color: var(--teal-bright);
  animation: glowPulse 3.5s ease-in-out infinite, fadeUp 0.9s ease 0.5s both;
  margin-bottom: 28px;
}

.title-line-1 {
  opacity: 0;
  animation: warpIn 0.6s ease 0.8s forwards;
}
.title-line-2 {
  opacity: 0;
  font-size: 0.72em;
  letter-spacing: 0.35em;
  color: rgba(170,255,252,0.7);
  animation: warpIn 0.6s ease 1.1s forwards;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 40px;
  min-height: 1.6em;
}

/* typewriter cursor */
.hero-tagline::after {
  content: '|';
  color: var(--teal-bright);
  animation: cursorBlink 1s step-end infinite;
  margin-left: 2px;
}
.hero-tagline.typing-done::after {
  display: none;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 2.2s forwards;
}

/* scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: scrollBounce 2.2s ease-in-out infinite;
  opacity: 0.5;
}
.scroll-line-wrap {
  width: 1px;
  height: 40px;
  background: var(--teal-border-faint);
  overflow: hidden;
}
.scroll-line {
  width: 100%;
  height: 50%;
  background: var(--teal-bright);
  animation: scrollLineMove 2.2s ease-in-out infinite;
}
.scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--teal-dark);
}

/* ── 9. STATS BAR ──────────────────────────────────────────────── */
.section-stats {
  position: relative;
  background: var(--bg-panel-dark);
  border-top: 1px solid var(--teal-border-faint);
  border-bottom: 1px solid var(--teal-border-faint);
  padding: 28px 0;
  overflow: hidden;
}

.hud-scan {
  position: absolute;
  top: 0; bottom: 0;
  left: -100%;
  width: 60%;
  background: linear-gradient(to right, transparent, rgba(170,255,252,0.04), transparent);
  pointer-events: none;
}
.hud-scan.active {
  animation: hudScan 1.4s cubic-bezier(0.4,0,0.6,1) forwards;
}

.stats-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--teal-bright);
  text-shadow: 0 0 16px rgba(170,255,252,0.45);
}

.status-online {
  color: #4ade80;
  text-shadow: 0 0 12px rgba(74,222,128,0.5);
  font-size: 1.1rem !important;
  letter-spacing: 0.3em !important;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--teal-border-faint);
  flex-shrink: 0;
}

/* ── 10. FEATURES ──────────────────────────────────────────────── */
.section-features {
  padding: 100px 0;
  background: var(--bg-void);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.feature-card:hover {
  border-color: var(--teal-border);
  box-shadow: 0 0 28px rgba(170,255,252,0.09);
  transform: translateY(-3px);
}
.feature-card:hover .corner-tl,
.feature-card:hover .corner-tr,
.feature-card:hover .corner-bl,
.feature-card:hover .corner-br {
  border-color: var(--teal-mid);
}

.feature-icon {
  font-size: 2rem;
  color: var(--teal-bright);
  margin-bottom: 18px;
  filter: drop-shadow(0 0 8px rgba(170,255,252,0.4));
}

.feature-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* hologram flicker on hover */
.feature-card:hover {
  animation: hologramFlicker 0.15s ease 3;
}

/* ── 11. FACTIONS ──────────────────────────────────────────────── */
.section-factions {
  padding: 100px 0;
  background: var(--bg-navy);
  border-top: 1px solid var(--teal-border-faint);
  border-bottom: 1px solid var(--teal-border-faint);
}

.faction-tabs {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.tab-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-panel-dark);
  border: 1px solid var(--teal-border-faint);
  border-left: 3px solid transparent;
  color: var(--text-dim);
  text-align: left;
  transition: all 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.tab-btn:hover {
  border-color: var(--teal-border);
  border-left-color: var(--teal-dark);
  color: var(--text-primary);
  background: var(--bg-panel);
}
.tab-btn.active {
  border-color: var(--teal-border-faint);
  border-left-color: var(--teal-bright);
  background: var(--bg-panel);
  color: var(--teal-bright);
}

.tab-number {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.3;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.tab-btn.active .tab-number {
  opacity: 1;
  color: var(--teal-bright);
}

.tab-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tab-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tab-desc {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

/* tab panes – alle in derselben Grid-Zelle gestapelt, kein display-toggle nötig */
.tab-content-wrapper {
  display: grid;
}
.tab-pane {
  grid-area: 1 / 1;          /* alle Panes übereinander */
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  visibility: hidden;
  pointer-events: none;
}
.tab-pane.active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.tab-pane.entering {          /* Kompatibilitäts-Klasse, nicht mehr genutzt */
  opacity: 1;
  transform: translateX(0);
}

.faction-panel {
  overflow: hidden;
  min-height: 380px;
}

.faction-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background-size: cover;
  background-position: center;
}
.faction-bg-freelancer { background: linear-gradient(135deg, #0d2240 0%, #1a4466 100%); opacity: 0.4; }
.faction-bg-trader     { background: linear-gradient(135deg, #0d2e1a 0%, #1a5c35 100%); opacity: 0.4; }
.faction-bg-pirate     { background: linear-gradient(135deg, #2e0d0d 0%, #5c1a1a 100%); opacity: 0.4; }
.faction-bg-military   { background: linear-gradient(135deg, #1a1a0d 0%, #3a3a10 100%); opacity: 0.4; }

.faction-content {
  position: relative;
  z-index: 1;
  padding: 36px;
}

.faction-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--teal-bright);
  text-shadow: 0 0 24px rgba(170,255,252,0.3);
}

.faction-line {
  width: 80px;
  height: 2px;
  background: var(--teal-bright);
  margin: 14px 0 18px;
  box-shadow: 0 0 8px rgba(170,255,252,0.5);
}

.faction-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  max-width: 560px;
  line-height: 1.75;
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.ability {
  background: rgba(170,255,252,0.04);
  border: 1px solid var(--teal-border-faint);
  padding: 14px 16px;
}

.ability-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 6px;
}
.ability-name i {
  margin-right: 6px;
  font-size: 0.85em;
}

.ability p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── 12. SCREENSHOTS ───────────────────────────────────────────── */
.section-screenshots {
  padding: 100px 0;
  background: var(--bg-void);
}

.slider-wrap {
  position: relative;
  overflow: visible;
}

.slider {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--teal-border-faint);
  position: relative;
}
.slider::before, .slider::after {
  content: '';
  position: absolute;
  top: -1px; bottom: -1px;
  width: 2px;
  background: var(--teal-bright);
  z-index: 2;
  box-shadow: 0 0 12px rgba(170,255,252,0.6);
}
.slider::before { left: 0; }
.slider::after  { right: 0; }

.slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.slide img:hover {
  transform: scale(1.02);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(6,12,20,0.75);
  border: 1px solid var(--teal-border);
  color: var(--teal-bright);
  font-size: 2.4rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.slider-arrow:hover {
  background: rgba(170,255,252,0.15);
  border-color: var(--teal-bright);
  box-shadow: 0 0 16px rgba(170,255,252,0.25);
}
.slider-prev { left: -24px; }
.slider-next { right: -24px; }

.slider-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--teal-dark) transparent;
}
.thumb-btn {
  flex: 0 0 auto;
  width: 80px;
  height: 50px;
  overflow: hidden;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  opacity: 0.45;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-btn.active {
  border-color: var(--teal-bright);
  opacity: 1;
  box-shadow: 0 0 10px rgba(170,255,252,0.3);
}
.thumb-btn:hover {
  opacity: 0.8;
}

/* ── 13. INSTALL ───────────────────────────────────────────────── */
.section-install {
  padding: 100px 0;
  background: var(--bg-navy);
  border-top: 1px solid var(--teal-border-faint);
}

.content-box {
  padding: 0;
}

.install-box {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  border: 1px solid var(--teal-border-faint);
  border-top: 2px solid var(--teal-bright);
  border-bottom: 2px solid var(--teal-bright);
  overflow: hidden;
}
.install-box .corner-tl, .install-box .corner-tr { border-color: var(--teal-bright); }
.install-box .corner-bl, .install-box .corner-br { border-color: var(--teal-bright); }

.install-steps {
  padding: 40px;
  border-right: 1px solid var(--teal-border-faint);
}

.install-subtitle {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 28px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--teal-border-faint);
}
.step:first-child { padding-top: 0; }
.step:last-child  { border-bottom: none; }

.step-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  line-height: 1.2;
}

.step-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.step-text p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.step-text code {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  background: rgba(170,255,252,0.07);
  border: 1px solid var(--teal-border-faint);
  padding: 1px 6px;
  color: var(--teal-bright);
}

.install-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.install-requirements {
  padding: 40px;
  background: var(--bg-panel-dark);
}

.req-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.req-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.req-list li i {
  color: var(--teal-dark);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.req-note {
  padding: 16px 20px;
  background: rgba(170,255,252,0.03) !important;
}
.req-note p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── 14. FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-panel-dark);
  padding-top: 56px;
  padding-bottom: 28px;
}

.footer-glow-line {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--teal-dark), transparent);
  box-shadow: 0 -4px 20px rgba(170,255,252,0.06);
  margin-bottom: 56px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(170,255,252,0.2));
}

.footer-brand-text {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-col-title {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 18px;
  font-weight: 400;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
  letter-spacing: 0.05em;
}
.footer-links a:hover {
  color: var(--teal-bright);
}

.footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7289da !important;
}
.footer-discord:hover {
  color: var(--teal-bright) !important;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid var(--teal-border-faint);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ── 15. BACK TO TOP ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 40px;
  height: 40px;
  background: rgba(6,12,20,0.85);
  border: 1px solid var(--teal-border);
  color: var(--teal-bright);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: rgba(170,255,252,0.15);
}

/* ── 16. SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-fast {
  opacity: 0;
  animation: fadeUp 0.7s ease 1.8s both;
}

/* ── 17. KEYFRAMES ─────────────────────────────────────────────── */
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 24px rgba(170,255,252,0.35); }
  50%       { text-shadow: 0 0 60px rgba(170,255,252,0.65), 0 0 100px rgba(170,255,252,0.2); }
}

@keyframes warpIn {
  0%   { opacity: 0; letter-spacing: 0.8em; filter: blur(6px); }
  100% { opacity: 1; letter-spacing: inherit; filter: blur(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollLineMove {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@keyframes hudScan {
  from { left: -60%; }
  to   { left: 160%; }
}

@keyframes hologramFlicker {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.82; }
}

@keyframes shootingStar {
  0%   { transform: translateX(0) translateY(0) scaleX(1); opacity: 1; }
  100% { transform: translateX(300px) translateY(120px) scaleX(6); opacity: 0; }
}

/* ── 18. RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .install-box {
    grid-template-columns: 1fr;
  }
  .install-steps {
    border-right: none;
    border-bottom: 1px solid var(--teal-border-faint);
  }
}

@media (max-width: 960px) {
  .faction-tabs {
    grid-template-columns: 1fr;
  }
  .tab-menu {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tab-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 140px;
  }
  .tab-btn {
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    border-left: 1px solid var(--teal-border-faint);
    border-bottom: 3px solid transparent;
  }
  .tab-btn.active {
    border-bottom-color: var(--teal-bright);
    border-left-color: var(--teal-border-faint);
  }
}

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

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: 0; right: 0;
    background: rgba(6,12,20,0.97);
    border-bottom: 1px solid var(--teal-border-faint);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-left: 0;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li a {
    padding: 12px 24px;
    font-size: 0.88rem;
  }
  .nav-cta {
    margin: 8px 24px 0 !important;
    text-align: center;
    justify-content: center;
    display: flex !important;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .stat-divider { display: none; }
  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    justify-items: center;
  }

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

  .feature-card {
    clip-path: none;
  }

  .section-features,
  .section-factions,
  .section-screenshots,
  .section-install { padding: 70px 0; }

  .faction-content { padding: 24px; }

  .slider-prev { left: 4px; }
  .slider-next { right: 4px; }

  .install-steps,
  .install-requirements { padding: 28px 24px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── 19. FEATURE BADGE + HERO CARD ────────────────────────────── */
.feature-card { position: relative; }

.feature-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-void);
  background: var(--teal-bright);
  padding: 3px 8px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.feature-card--hero {
  border-color: var(--teal-border);
  background: linear-gradient(145deg, #0e1e35 0%, #0a1828 100%);
}
.feature-card--hero .feature-icon {
  color: var(--teal-bright);
  filter: drop-shadow(0 0 14px rgba(170,255,252,0.55));
}

/* ── 20. GOG DREAMLIST BANNER ──────────────────────────────────── */
.gog-banner {
  background: linear-gradient(to right, rgba(86,56,130,0.25), rgba(120,80,180,0.15), rgba(86,56,130,0.25));
  border-top: 1px solid rgba(160,100,255,0.25);
  border-bottom: 1px solid rgba(160,100,255,0.25);
  padding: 24px 0;
}

.gog-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.gog-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.gog-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c084fc;
}

.gog-banner-text p {
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.55;
}

.gog-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c084fc;
  background: rgba(160, 100, 255, 0.1);
  border-top: 2px solid #9333ea;
  border-bottom: 2px solid #9333ea;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.gog-btn:hover {
  background: rgba(160, 100, 255, 0.22);
  color: #e9d5ff;
  border-color: #c084fc;
}

/* ── 21. LANG SWITCHER ─────────────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 12px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 3px 6px;
  transition: color 0.15s ease;
  cursor: pointer;
}
.lang-btn:hover { color: var(--teal-mid); }
.lang-btn.active { color: var(--teal-bright); }
.lang-divider {
  color: var(--teal-dark);
  font-size: 0.7rem;
  user-select: none;
}

/* ── 20. YOUTUBE SECTION ───────────────────────────────────────── */
.section-videos {
  padding: 100px 0;
  background: var(--bg-navy);
  border-top: 1px solid var(--teal-border-faint);
  border-bottom: 1px solid var(--teal-border-faint);
}

.yt-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.yt-player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--teal-border-faint);
  border-top: 2px solid var(--teal-bright);
}

.yt-splash {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.yt-splash.hidden {
  opacity: 0;
  pointer-events: none;
}
.yt-splash-bg {
  position: absolute;
  inset: 0;
  background: url('./media/hubble-carina-nebula-landscape.jpg') center/cover no-repeat;
  opacity: 0.25;
}
.yt-splash-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,12,20,0.75);
}
.yt-splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.yt-logo-icon {
  font-size: 3.5rem;
  color: #ff4444;
  animation: glowPulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255,68,68,0.4));
}
.yt-splash-title {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

#ytFrame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#ytFrame.loaded {
  opacity: 1;
}

.yt-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yt-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-meta-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yt-arrow {
  position: static;
  transform: none;
  flex-shrink: 0;
}

.yt-counter {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--teal-dark);
  font-weight: 300;
}

.yt-video-title {
  font-size: 0.9rem;
  color: var(--teal-mid);
  letter-spacing: 0.05em;
  font-weight: 300;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-controls {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.footer-yt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff4444 !important;
}
.footer-yt:hover {
  color: var(--teal-bright) !important;
}

@media (max-width: 480px) {
  .tab-btn {
    flex: 1 1 100%;
  }
  .ability-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    letter-spacing: 0.12em;
  }
  .title-line-2 {
    letter-spacing: 0.2em;
  }
}
