@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #05070c;
  --bg-2: #0b1018;
  --bg-3: #121825;

  --card: rgba(14, 20, 30, 0.92);
  --card-2: rgba(18, 24, 36, 0.96);

  --gold: #caa24a;
  --gold-2: #f2dc96;
  --gold-3: #866319;
  --gold-soft: rgba(202, 162, 74, 0.14);

  --red: #6e1520;
  --red-2: #9f2131;

  --text: #f8f2e9;
  --muted: #b9bfcb;
  --line: rgba(202, 162, 74, 0.16);
  --white-line: rgba(255, 255, 255, 0.06);

  --shadow:
    0 30px 80px rgba(0,0,0,.48),
    0 14px 30px rgba(0,0,0,.18);

  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", sans-serif;
  color: var(--text);
  line-height: 1.85;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(110, 21, 32, 0.14), transparent 22%),
    radial-gradient(circle at 85% 15%, rgba(202, 162, 74, 0.12), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(25, 39, 68, 0.20), transparent 35%),
    linear-gradient(180deg, #04060a 0%, #08101a 28%, #05070c 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .18;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), transparent 94%);
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 52%, rgba(0,0,0,.35) 100%);
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1200px, calc(100% - 42px));
  margin-inline: auto;
}

/* =========================
   COMMON
========================= */

.section {
  position: relative;
  padding: 120px 0;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: min(180px, 45vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(202,162,74,.85), transparent);
  opacity: .6;
}

.section-heading {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 58px;
}

.section-heading > span,
.section-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(202, 162, 74, 0.08);
  border: 1px solid rgba(202, 162, 74, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.section-heading h2,
.rules-content h2,
.download-box h2 {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -1px;
}

.section-heading p,
.rules-content > p,
.download-box p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(202,162,74,.10);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(202,162,74,.5), transparent);
}

.nav-wrapper {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  border: 1px solid rgba(202,162,74,.35);
  background:
    linear-gradient(145deg, rgba(202,162,74,.14), rgba(255,255,255,.02));
  box-shadow:
    0 0 30px rgba(202,162,74,.12),
    inset 0 1px 0 rgba(255,255,255,.08);
  font-size: 23px;
}

.brand strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  direction: ltr;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  font-size: 14px;
  color: #d5d9e2;
  position: relative;
  transition: .25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: .25s ease;
  border-radius: 99px;
}

.desktop-nav a:hover {
  color: #fff;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

/* =========================
   ROYAL BUTTONS
========================= */

.royal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  min-height: 52px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 14px;
  transition: .25s ease;
  overflow: hidden;
  isolation: isolate;
}

.royal-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(242,220,150,.9), rgba(134,99,25,.6));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .7;
}

.royal-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.09) 50%, transparent 100%);
  transform: translateX(-130%);
  transition: .5s ease;
  pointer-events: none;
}

.royal-btn:hover::after {
  transform: translateX(130%);
}

.royal-btn:hover {
  transform: translateY(-2px);
}

.royal-btn-solid {
  color: #161108;
  background:
    linear-gradient(180deg, #f3df9b 0%, #d4ad53 48%, #b48626 100%);
  box-shadow:
    0 12px 28px rgba(202,162,74,.20),
    inset 0 1px 0 rgba(255,255,255,.38);
}

.royal-btn-outline {
  color: var(--gold-2);
  background:
    linear-gradient(145deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(202,162,74,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.nav-download {
  padding-inline: 20px;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 90px 0 80px;

  background-image:
    linear-gradient(
      90deg,
      rgba(4, 6, 10, 0.15) 0%,
      rgba(4, 6, 10, 0.28) 30%,
      rgba(4, 6, 10, 0.72) 62%,
      rgba(4, 6, 10, 0.94) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 6, 10, 0.06) 0%,
      rgba(4, 6, 10, 0.02) 50%,
      rgba(4, 6, 10, 0.90) 100%
    ),
    url("../images/hero-achaemenid.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 25%),
    radial-gradient(circle at 70% 25%, rgba(202,162,74,.10), transparent 24%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-copy {
  width: min(650px, 58%);
  position: relative;
  padding: 42px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(5,7,12,.78), rgba(13,17,25,.50));
  border: 1px solid rgba(202,162,74,.18);
  backdrop-filter: blur(12px);
  box-shadow:
    0 30px 80px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px solid rgba(202,162,74,.08);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -2px;
  text-shadow: 0 10px 35px rgba(0,0,0,.30);
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(135deg, #fff5bf, var(--gold-2), var(--gold), #805f17);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 40px rgba(202,162,74,.15);
}

.hero-description {
  margin-top: 24px;
  color: #cbd0da;
  font-size: 17px;
  max-width: 610px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 40px;
}

.stat-item {
  position: relative;
  padding-right: 18px;
}

.stat-item::before {
  content: "";
  position: absolute;
  right: 0;
  top: 5px;
  width: 6px;
  height: 28px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
}

.stat-item strong {
  display: block;
  color: var(--gold-2);
  font-size: 15px;
  font-weight: 900;
}

.stat-item span {
  color: var(--muted);
  font-size: 12px;
}

.scroll-indicator {
  position: absolute;
  bottom: 18px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.38);
  font-size: 11px;
}

/* =========================
   ABOUT
========================= */

.about-section {
  border-top: 1px solid rgba(255,255,255,.03);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid rgba(202,162,74,.10);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: .25s ease;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(202,162,74,.06), transparent 30%);
  pointer-events: none;
}

.info-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px solid rgba(202,162,74,.07);
  pointer-events: none;
}

.info-card:hover {
  transform: translateY(-8px);
  border-color: rgba(202,162,74,.18);
}

.info-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: rgba(202,162,74,.10);
  border: 1px solid rgba(202,162,74,.16);
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.info-card h3 {
  font-size: 22px;
  margin-bottom: 9px;
}

.info-card p {
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   CHARACTERS
========================= */

.characters-section {
  background:
    linear-gradient(to bottom, transparent, rgba(255,255,255,.012), transparent);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.character-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,162,74,.10);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: .25s ease;
}

.character-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(202,162,74,.07);
  border-radius: 24px;
  pointer-events: none;
}

.character-card:hover {
  transform: translateY(-8px);
  border-color: rgba(202,162,74,.18);
}

.character-art {
  height: 320px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.character-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.10), transparent 26%),
    linear-gradient(to top, rgba(5,7,12,.95), transparent 75%);
}

.character-art span {
  position: relative;
  z-index: 1;
  font-size: 100px;
  font-weight: 900;
  text-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.rustam-art {
  background: linear-gradient(145deg, #1a2230, #473818);
  color: #f0db96;
}

.zahhak-art {
  background: linear-gradient(145deg, #260b12, #0d1118);
  color: #b93f49;
}

.dragon-art {
  background: linear-gradient(145deg, #12211e, #0a0d14);
  color: #7fd6aa;
}

.character-content {
  padding: 28px;
}

.character-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--gold-2);
  background: rgba(202,162,74,.08);
  border: 1px solid rgba(202,162,74,.12);
  padding: 5px 10px;
  border-radius: 999px;
}

.character-content h3 {
  margin-top: 10px;
  font-size: 28px;
}

.character-content p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   FEATURES
========================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-item {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(202,162,74,.10);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}

.feature-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(202,162,74,.05), transparent 40%);
  pointer-events: none;
}

.feature-item > span {
  font-size: 30px;
  font-weight: 900;
  color: rgba(202,162,74,.45);
  line-height: 1;
  min-width: 52px;
}

.feature-item h3 {
  font-size: 18px;
}

.feature-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   RULES
========================= */

.rules-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
}

.rule-list {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.rule {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(202,162,74,.10);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

.rule strong {
  color: var(--gold-2);
  font-size: 13px;
}

.rule span {
  color: #dadde5;
  font-size: 14px;
}

.rules-emblem {
  display: flex;
  justify-content: center;
}

.emblem-ring {
  width: min(390px, 88vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(202,162,74,.28);
  background: radial-gradient(circle at center, rgba(202,162,74,.06), transparent 52%);
  box-shadow:
    0 0 0 18px rgba(202,162,74,.025),
    0 0 90px rgba(202,162,74,.08);
  position: relative;
}

.emblem-ring::before,
.emblem-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.emblem-ring::before {
  inset: 16px;
  border: 1px dashed rgba(202,162,74,.18);
}

.emblem-ring::after {
  inset: 42px;
  border: 1px solid rgba(255,255,255,.06);
}

.emblem-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.emblem-inner span {
  display: block;
  font-size: 48px;
  color: var(--gold-2);
}

.emblem-inner strong {
  display: block;
  font-size: 76px;
  line-height: 1;
  color: white;
}

.emblem-inner small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

/* =========================
   DOWNLOAD
========================= */

.download-section {
  padding: 60px 0 120px;
}

.download-box {
  position: relative;
  padding: 50px;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  background:
    radial-gradient(circle at 80% 20%, rgba(202,162,74,.14), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid rgba(202,162,74,.14);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.download-box::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(202,162,74,.08);
  pointer-events: none;
}

.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-button {
  min-width: 160px;
  padding: 13px 18px;
  border-radius: 16px;
}

.royal-store {
  background:
    linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(202,162,74,.12);
  box-shadow:
    0 12px 24px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.store-button span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.store-button strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.disabled-link {
  opacity: .72;
  cursor: default;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  position: relative;
  border-top: 1px solid rgba(202,162,74,.10);
  padding-top: 64px;
  background: rgba(0,0,0,.18);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: min(220px, 50vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(202,162,74,.7), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  gap: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand span {
  color: var(--gold-2);
  font-size: 26px;
}

.footer-grid p {
  max-width: 430px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links h4 {
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--gold-2);
}

.footer-links a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
  transition: .2s ease;
}

.footer-links a:hover {
  color: var(--gold-2);
}

.footer-bottom {
  margin-top: 50px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.35);
  font-size: 11px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .desktop-nav,
  .nav-download {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .mobile-menu {
    display: none;
    padding: 8px 20px 18px;
    border-top: 1px solid rgba(255,255,255,.04);
    background: rgba(5,7,12,.96);
  }

  .mobile-menu.active {
    display: grid;
  }

  .mobile-menu a {
    padding: 12px 0;
    color: #d8dde5;
    border-bottom: 1px solid rgba(255,255,255,.04);
  }

  .hero {
    padding-top: 56px;
    background-position: 35% center;
  }

  .hero-copy {
    width: 100%;
  }

  .about-grid,
  .character-grid,
  .features-grid,
  .rules-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .download-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .nav-wrapper {
    height: 72px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 10px;
  }

  .hero {
    min-height: 760px;
    padding: 70px 0;
    background-position: 30% center;
  }

  .hero-copy {
    width: 100%;
    padding: 28px 22px;
    background: rgba(5,7,12,.80);
  }

  .hero h1 {
    font-size: 46px;
    letter-spacing: -1px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
  }

  .royal-btn {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    gap: 20px;
  }

  .section {
    padding: 86px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2,
  .rules-content h2,
  .download-box h2 {
    font-size: 34px;
  }

  .character-art {
    height: 250px;
  }

  .download-box {
    padding: 28px 22px;
  }

  .download-actions {
    width: 100%;
  }

  .store-button {
    flex: 1 1 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}