:root {
  --bg-dark: #0d0b12;
  --bg-card: #16121d;
  --bg-card-hover: #1e1927;
  --border-gold: #c89d42;
  --border-gold-glow: rgba(200, 157, 66, 0.35);
  --border-subtle: #2d2638;
  --text-gold: #f5cb5c;
  --text-gold-light: #fff0be;
  --text-light: #e8e3d9;
  --text-muted: #9f96aa;
  --accent-red: #d94b4b;
  --accent-green: #48bb78;
  --bmc-yellow: #FFDD00;
  --bmc-yellow-hover: #FFEA47;
  --font-pixel: 'Press Start 2P', monospace, system-ui;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle background vignette and grid effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 50% 20%, rgba(200, 157, 66, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(100, 50, 150, 0.06) 0%, transparent 50%),
    #0d0b12;
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 11, 18, 0.85);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--border-gold);
  box-shadow: 0 0 12px var(--border-gold-glow);
}

.brand-title {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  color: var(--text-gold);
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text-gold);
}

.nav-bmc-btn {
  background: var(--bmc-yellow);
  color: #000 !important;
  font-weight: 700 !important;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.2s ease !important;
}

.nav-bmc-btn:hover {
  background: var(--bmc-yellow-hover) !important;
  transform: translateY(-1px);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.85rem;
  gap: 4px;
}

.lang-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-link.active {
  background: var(--border-gold);
  color: #0d0b12 !important;
  font-weight: 700;
}

.lang-link:hover:not(.active) {
  color: var(--text-gold);
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero-banner-wrap {
  position: relative;
  max-width: 920px;
  margin: 0 auto 36px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--border-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px var(--border-gold-glow);
}

.hero-banner {
  width: 100%;
  height: auto;
  display: block;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: 2.2rem;
  color: var(--text-gold);
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(245, 203, 92, 0.4);
  scroll-margin-top: 100px;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-gold-light);
  margin-bottom: 16px;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(180deg, #d4a343 0%, #9e7526 100%);
  color: #171103;
  border: 2px solid #ffdc7a;
  box-shadow: 0 6px 20px rgba(212, 163, 67, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #e4b353 0%, #ad832f 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 163, 67, 0.5);
}

.btn-bmc {
  background: var(--bmc-yellow);
  color: #000000;
  box-shadow: 0 6px 20px rgba(255, 221, 0, 0.3);
}

.btn-bmc:hover {
  background: var(--bmc-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 221, 0, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
}

.badge-tag {
  display: inline-block;
  background: rgba(200, 157, 66, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--text-gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features Grid */
.features {
  padding: 70px 0;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: var(--text-gold);
  text-align: center;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--border-gold-glow);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--text-gold-light);
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Screenshots Showcase */
.screenshots {
  padding: 50px 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.screenshot-item {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.screenshot-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.screenshot-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.screenshot-caption {
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-gold-light);
}

/* Support & Donation Section */
.donation-section {
  padding: 70px 0;
}

.donation-card {
  background: linear-gradient(145deg, #181320 0%, #20182c 100%);
  border: 2px solid var(--border-gold);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--border-gold-glow);
}

.donation-icon {
  font-size: 3.2rem;
  margin-bottom: 16px;
}

.donation-card h2 {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: var(--text-gold);
  margin-bottom: 16px;
}

.donation-card p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 30px;
  line-height: 1.65;
}

/* Privacy Page / Policy Styles */
.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 40px;
  margin: 40px auto;
  max-width: 850px;
}

.policy-card h1 {
  font-family: var(--font-pixel);
  font-size: 1.6rem;
  color: var(--text-gold);
  margin-bottom: 12px;
}

.policy-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.policy-section {
  margin-bottom: 28px;
}

.policy-section h2 {
  color: var(--text-gold-light);
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.policy-section p, .policy-section li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 8px;
}

.policy-section ul {
  padding-left: 24px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 30px;
  margin-top: 60px;
  background: rgba(10, 8, 14, 0.9);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-gold);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.85rem;
}

/* Responsive Overhaul for Mobile */
@media (max-width: 768px) {
  header {
    padding: 12px 0;
  }

  .nav-wrap {
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  /* Hide desktop-only text anchor links in sticky navbar on mobile */
  .nav-link-anchor {
    display: none !important;
  }

  nav ul {
    gap: 8px;
  }

  .nav-bmc-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .hero-banner-wrap {
    margin-bottom: 24px;
    border-radius: 12px;
    border-width: 2px;
  }

  .hero-title {
    font-size: 1.45rem;
    letter-spacing: 1px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .hero-desc {
    font-size: 0.98rem;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .section-title {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .section-desc {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

  .features {
    padding: 48px 0;
  }

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

  .feature-card {
    padding: 22px 18px;
  }

  .screenshots {
    padding: 36px 0;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .screenshot-item img {
    height: 210px;
  }

  .donation-section {
    padding: 48px 0;
  }

  .donation-card {
    padding: 30px 18px;
    border-radius: 12px;
  }

  .donation-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
  }

  .donation-card h2 {
    font-size: 1.05rem;
    line-height: 1.45;
    word-break: break-word;
  }

  .donation-card p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .policy-card {
    padding: 24px 16px;
    margin: 20px auto;
  }

  .policy-card h1 {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .policy-section h2 {
    font-size: 1.1rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .brand-title {
    font-size: 0.82rem;
    letter-spacing: 0.5px;
  }

  .lang-switcher {
    padding: 2px 4px;
  }

  .lang-link {
    padding: 2px 5px;
    font-size: 0.76rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.92rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-subtitle {
    font-size: 1.0rem;
  }

  .screenshot-item img {
    height: 180px;
  }
}
