/* Kings & Gods — Shared Styles */

:root {
  --bg-deep: #0c0a09;
  --bg-dark: #15110d;
  --bg-panel: #1e1812;
  --bg-panel-hover: #261f17;
  --gold-light: #e8c547;
  --gold-main: #d9a13b;
  --gold-dark: #b07d28;
  --gold-glow: rgba(232, 197, 71, 0.35);
  --cream: #f3ead6;
  --cream-muted: #c4b59a;
  --cream-dim: #8a7d6b;
  --border-gold: rgba(217, 161, 59, 0.35);
  --border-gold-strong: rgba(217, 161, 59, 0.6);
  --font-heading: Georgia, "Times New Roman", Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
  color: var(--cream);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cream);
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 10, 9, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  text-transform: uppercase;
}

.nav-brand-sub {
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.btn-play {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--gold-glow);
  color: var(--bg-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 1px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: url("assets/hero.png") center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.85) 0%, rgba(12, 10, 9, 0.45) 55%, rgba(12, 10, 9, 0.2) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, var(--bg-deep) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  width: 100%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6), 0 0 60px var(--gold-glow);
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--gold-main);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--cream-muted);
  max-width: 500px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow);
  color: var(--bg-deep);
}

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid var(--gold-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(217, 161, 59, 0.1);
  color: var(--cream);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  text-align: center;
  text-shadow: 0 0 30px var(--gold-glow);
}

.section-subtitle {
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  letter-spacing: 1px;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: linear-gradient(180deg, var(--bg-panel) 0%, rgba(30, 24, 18, 0.6) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 2rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
  opacity: 0.6;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-strong);
  box-shadow: 0 8px 30px rgba(217, 161, 59, 0.15);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--cream-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 161, 59, 0.08);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-main);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   ABOUT
   ============================================ */

.about-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(21, 17, 13, 0.6) 50%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--cream-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ============================================
   DOWNLOAD PAGE
   ============================================ */

.download-hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.download-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px var(--gold-glow);
}

.download-version {
  color: var(--gold-dark);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.platform-card {
  background: linear-gradient(180deg, var(--bg-panel) 0%, rgba(30, 24, 18, 0.5) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-strong);
  box-shadow: 0 8px 30px rgba(217, 161, 59, 0.15);
}

.platform-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 161, 59, 0.08);
}

.platform-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-main);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.platform-card .requirements {
  color: var(--cream-dim);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ============================================
   INSTALL STEPS
   ============================================ */

.install-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.install-section h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 1.5rem;
}

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 1.5rem;
  color: var(--cream-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-main);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 161, 59, 0.08);
}

.steps li:last-child {
  padding-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--border-gold);
  background: var(--bg-deep);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  color: var(--cream-dim);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--cream-dim);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .features-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(12, 10, 9, 0.97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    border-bottom: 1px solid rgba(217, 161, 59, 0.12);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a,
  .nav-links .btn-play {
    display: block;
    padding: 0.9rem 0;
    text-align: center;
    width: 100%;
  }

  .btn-play {
    margin-top: 0.5rem;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-content {
    padding-top: 4rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}
