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

:root {
  --color-bg: #0a0a12;
  --color-bg-dark: #050508;
  --color-gold: #c9a84c;
  --color-gold-light: #e8d48b;
  --color-gold-dark: #8a6d1b;
  --color-accent: #4a90d9;
  --color-accent-glow: rgba(74, 144, 217, 0.3);
  --color-text: #d4d4d8;
  --color-text-muted: #71717a;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-border: rgba(201, 168, 76, 0.15);
  --font-display: 'Cinzel', serif;
  --font-body: 'Raleway', sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: url('../img/background_loading_lost_tower.jpg') center/cover no-repeat fixed;
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* ===== Particle Canvas ===== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}


/* ===== Language Switcher ===== */
.lang-switcher {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.25rem;
  z-index: 100;
  background: rgba(10, 10, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.25rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  color: var(--color-gold-light);
}

.lang-btn.active {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--color-gold-dark);
  color: var(--color-gold);
}

/* ===== Hero Section ===== */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  width: 100%;
  animation: fadeInUp 1.2s ease-out;
}

/* ===== Logo ===== */
.logo-container {
  margin-bottom: 2rem;
  text-align: center;
}

.logo-img {
  width: clamp(200px, 50vw, 600px);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.3));
}


/* ===== Tagline ===== */
.tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
  opacity: 0.8;
}

/* ===== CTA Buttons ===== */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.5rem;
  border-radius: 4px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: var(--color-bg-dark);
  border: 1px solid var(--color-gold);
  box-shadow:
    0 0 20px rgba(201, 168, 76, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  box-shadow:
    0 0 30px rgba(201, 168, 76, 0.35),
    0 0 60px rgba(201, 168, 76, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}


/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-left {
  text-align: left;
}

.footer-links {
  margin-bottom: 0.75rem;
}

.footer-logo-dg {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-logo-dg:hover {
  opacity: 1;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-gold);
}

.footer-separator {
  color: var(--color-border);
  margin: 0 1rem;
  font-size: 0.8rem;
}

.copyright {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* ===== Beta Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-box {
  position: relative;
  font-family: 'Noto Sans', var(--font-body);
  background: linear-gradient(165deg, rgba(20, 18, 30, 0.97), rgba(10, 10, 18, 0.98));
  border: 1px solid var(--color-gold-dark);
  border-radius: 8px;
  padding: 2.5rem 2rem 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow:
    0 0 40px rgba(201, 168, 76, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.4s ease;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--color-gold);
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.4));
}

.modal-title {
  font-family: 'Noto Sans', var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.modal-btn {
  display: inline-block;
  min-width: 160px;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding: 1.5rem 1rem;
  }

  .logo-container {
    margin-bottom: 1.5rem;
  }

  .tagline {
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .footer-separator {
    margin: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .lang-switcher {
    top: 0.75rem;
    right: 0.75rem;
  }

  .lang-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }

  .hero {
    padding: 1rem 0.75rem;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content {
    max-width: 650px;
  }
}

/* ===== High-res / Large screens ===== */
@media (min-width: 1440px) {
  html {
    font-size: 18px;
  }
}

@media (min-width: 1920px) {
  html {
    font-size: 20px;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }

  .btn::before {
    display: none;
  }

  .btn:hover {
    transform: none;
  }
}
