/* =========================================
   OBRIY — Game Website Stylesheet
   Post-apocalyptic dark theme
   ========================================= */

/* --- CSS Variables & Reset --- */
:root {
  --color-bg: #0a0a0f;
  --color-bg-alt: #111118;
  --color-bg-card: #161620;
  --color-text: #e0ddd5;
  --color-text-muted: #8a8780;
  --color-accent: #c4a035;
  --color-accent-glow: #d4b04560;
  --color-accent-dark: #8a7025;
  --color-danger: #8b3a3a;
  --color-green: #3a6b3a;
  --color-green-glow: #4a8b4a40;
  --color-border: #2a2a35;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.8s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #e0c050;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--color-accent);
  text-shadow: 0 0 30px var(--color-accent-glow);
  animation: pulse-glow 0.5s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--color-border);
  margin: 20px auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--color-accent);
  animation: loading-bar 0.5s ease-in-out forwards;
}

@keyframes loading-bar {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 20px var(--color-accent-glow); }
  50% { text-shadow: 0 0 40px var(--color-accent-glow), 0 0 80px var(--color-accent-glow); }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all var(--transition-medium);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--color-accent);
  text-shadow: 0 0 20px var(--color-accent-glow);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-medium);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865F2;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
}

.nav-discord:hover {
  background: #4752c4;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.nav-discord svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.4) saturate(0.7);
  transform: scale(1.05);
  transition: transform 10s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.4) 0%,
    rgba(10, 10, 15, 0.2) 40%,
    rgba(10, 10, 15, 0.6) 80%,
    rgba(10, 10, 15, 1) 100%
  );
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 1s; }
.particle:nth-child(3) { left: 45%; top: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 60%; top: 70%; animation-delay: 3s; }
.particle:nth-child(5) { left: 75%; top: 40%; animation-delay: 4s; }
.particle:nth-child(6) { left: 85%; top: 80%; animation-delay: 5s; }
.particle:nth-child(7) { left: 35%; top: 50%; animation-delay: 6s; }
.particle:nth-child(8) { left: 90%; top: 15%; animation-delay: 7s; }

@keyframes float-particle {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  20% { opacity: 0.6; }
  50% { transform: translateY(-80px) scale(1.5); opacity: 0.3; }
  100% { transform: translateY(-160px) scale(0.5); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-logo {
  max-width: 500px;
  margin: 0 auto 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: 12px;
  text-transform: uppercase;
  color: var(--color-text);
  text-shadow: 0 0 60px var(--color-accent-glow);
  margin-bottom: 8px;
  opacity: 0;
  animation: fade-in-up 1s ease 0.5s forwards;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
  opacity: 0;
  animation: fade-in-up 1s ease 0.8s forwards;
}

.hero-fan-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  background: rgba(196, 160, 53, 0.1);
  border: 1px solid rgba(196, 160, 53, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fade-in-up 1s ease 0.95s forwards;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  opacity: 0;
  animation: fade-in-up 1s ease 1.1s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-in-up 1s ease 1.4s forwards;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: #d4b045;
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
}

.btn-discord:hover {
  background: #4752c4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.3);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-in-up 1s ease 1.8s forwards;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.scroll-indicator .mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--color-text-muted);
  border-radius: 10px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  width: 3px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { top: 6px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- About Section --- */
.about {
  background: var(--color-bg);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text .highlight {
  color: var(--color-accent);
  font-weight: 500;
}

.ugc-notice {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(196, 160, 53, 0.06);
  border: 1px solid rgba(196, 160, 53, 0.2);
  border-radius: 8px;
  border-left: 3px solid var(--color-accent);
}

.ugc-notice p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.ugc-notice a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  pointer-events: none;
}

/* --- Features Section --- */
.features {
  background: var(--color-bg-alt);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-medium);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent-dark);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.feature-card:hover .feature-card-image img {
  transform: scale(1.1);
}

.feature-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(transparent, var(--color-bg-card));
}

.feature-card-content {
  padding: 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.feature-icon.explore {
  background: var(--color-green-glow);
  color: #6aaa6a;
}

.feature-icon.survive {
  background: var(--color-accent-glow);
  color: var(--color-accent);
}

.feature-icon.fight {
  background: rgba(139, 58, 58, 0.3);
  color: #c06060;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Lore Section --- */
.lore {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.lore::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
}

.lore-content {
  position: relative;
  z-index: 1;
}

.lore-story {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.lore-story p + p {
  margin-top: 24px;
}

.lore-story strong {
  color: var(--color-accent);
}

.lore-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.lore-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-accent), var(--color-border), transparent);
}

.lore-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
}

.lore-item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.lore-item h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.lore-item p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* --- Stats Section --- */
.stats {
  background: var(--color-bg-alt);
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- Community / Discord Section --- */
.community {
  background: var(--color-bg);
  position: relative;
}

.community-card {
  background: linear-gradient(135deg, #2a2a40, #1a1a2e);
  border: 1px solid #3a3a55;
  border-radius: 12px;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.community-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(88, 101, 242, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.community-card h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 16px;
  position: relative;
}

.community-card p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.8;
  position: relative;
}

.discord-features {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  position: relative;
}

.discord-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.discord-feature svg {
  width: 20px;
  height: 20px;
  fill: #5865F2;
}

/* --- Download / Launcher Section --- */
.download {
  background: var(--color-bg-alt);
  position: relative;
}

.download-launcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* --- Launcher Preview (mock window) --- */
.launcher-preview {
  display: flex;
  justify-content: center;
}

.launcher-window {
  width: 100%;
  max-width: 420px;
  background: #0e0e16;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px var(--color-accent-glow);
}

.launcher-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #13131d;
  border-bottom: 1px solid var(--color-border);
}

.launcher-dots {
  display: flex;
  gap: 6px;
}

.launcher-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.launcher-dots span:nth-child(1) { background: #ff5f57; }
.launcher-dots span:nth-child(2) { background: #febc2e; }
.launcher-dots span:nth-child(3) { background: #28c840; }

.launcher-titlebar-text {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.launcher-body {
  padding: 40px 30px 30px;
  text-align: center;
}

.launcher-logo-area {
  margin-bottom: 30px;
}

.launcher-logo-text {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 10px;
  color: var(--color-accent);
  text-shadow: 0 0 30px var(--color-accent-glow);
}

.launcher-version {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.05);
  padding: 3px 10px;
  border-radius: 10px;
}

.launcher-progress {
  margin-bottom: 24px;
}

.launcher-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.launcher-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent));
  border-radius: 4px;
  animation: launcher-pulse 2.5s ease-in-out infinite;
}

@keyframes launcher-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.launcher-progress-label {
  font-size: 0.75rem;
  color: var(--color-green);
  letter-spacing: 1px;
}

.launcher-play-btn {
  display: inline-block;
  padding: 12px 48px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  border-radius: 6px;
  cursor: default;
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

/* --- Launcher Info --- */
.launcher-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 12px;
}

.launcher-info p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.launcher-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.launcher-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.launcher-feature-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 160, 53, 0.08);
  border: 1px solid rgba(196, 160, 53, 0.15);
  border-radius: 10px;
  flex-shrink: 0;
}

.launcher-feature div {
  display: flex;
  flex-direction: column;
}

.launcher-feature strong {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 600;
}

.launcher-feature span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.download-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.download-meta span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-meta span strong {
  color: var(--color-text);
}

.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--color-accent);
}

.footer-text {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-text a {
  color: var(--color-text-muted);
}

.footer-text a:hover {
  color: var(--color-accent);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* --- Footer Legal Disclaimer --- */
.footer-legal {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footer-legal p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
  opacity: 0.7;
  text-align: center;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: var(--color-accent);
}

/* --- Animations / Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .download-launcher {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .launcher-preview {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-alt);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right var(--transition-medium);
    border-left: 1px solid var(--color-border);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    letter-spacing: 6px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .community-card {
    padding: 40px 24px;
  }

  .launcher-window {
    max-width: 340px;
  }

  .download-actions {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .section-padding {
    padding: 60px 0;
  }

  .discord-features {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Language selection stays accessible outside the mobile menu. */
.language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  flex-shrink: 0;
}
.language-switch a {
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.language-switch a[aria-current="true"],
.language-switch a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.language-switch a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
@media (min-width: 769px) and (max-width: 1100px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.8rem; letter-spacing: 1px; }
  .nav-discord { padding: 8px 12px; }
}
@media (max-width: 768px) {
  .language-switch { margin-left: auto; margin-right: 16px; }
}

/* Important project status, visible without waiting for scroll animations. */
.development-notice {
  margin-top: 48px;
  padding: clamp(20px, 4vw, 36px);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-accent-dark);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
}
.development-notice h3 {
  margin-bottom: 20px;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}
.development-notice p {
  max-width: 85ch;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.development-notice p + p { margin-top: 16px; }
.development-notice strong { color: var(--color-text); }

/* GitHub counts downloads of the currently linked installer. */
.download-counter {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  align-self: center;
}
.download-counter strong { color: var(--color-accent); }
.download-actions { flex-wrap: wrap; }
