:root {
  --navy: #0b1630;
  --navy-soft: #121f3f;
  --purple: #5b2d8f;
  --gold: #ffd54a;
  --gold-deep: #c9920a;
  --orange: #ff8c2a;
  --emerald: #1ecf7a;
  --text: #f4f7ff;
  --muted: #a8b8e8;
  --glass: rgba(14, 26, 52, 0.72);
  --border: rgba(255, 213, 74, 0.35);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--navy);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 140, 42, 0.22), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(91, 45, 143, 0.45), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(30, 207, 122, 0.12), transparent 35%),
    linear-gradient(180deg, #0a1428 0%, #0b1630 40%, #14082a 100%);
}

.bg-orbs::before,
.bg-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.bg-orbs::before {
  width: 420px;
  height: 420px;
  background: rgba(255, 213, 74, 0.18);
  top: 10%;
  left: -8%;
}

.bg-orbs::after {
  width: 360px;
  height: 360px;
  background: rgba(91, 45, 143, 0.35);
  bottom: 5%;
  right: -5%;
  animation-delay: -6s;
}

@keyframes floatOrb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -30px) scale(1.08); }
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 30%, rgba(255, 213, 74, 0.8), transparent),
    radial-gradient(1px 1px at 85% 75%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 55% 88%, rgba(255, 255, 255, 0.55), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 16, 36, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--purple), #2a1450);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(91, 45, 143, 0.45);
  font-size: 1.2rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text small {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.brain-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 140, 42, 0.12), transparent 65%);
  z-index: -1;
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero h1 .en {
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: none;
  -webkit-text-fill-color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.clash-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 213, 74, 0.25);
  animation: spinRing 18s linear infinite;
}

.ring-1 { width: 380px; height: 380px; }
.ring-2 {
  width: 300px;
  height: 300px;
  border-color: rgba(91, 45, 143, 0.35);
  animation-direction: reverse;
  animation-duration: 12s;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pulse {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 140, 42, 0); }
  50% { box-shadow: 0 0 24px rgba(255, 140, 42, 0.35); }
}

.mock-event {
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.75rem;
  background: linear-gradient(90deg, #7e57c2, #4527a0);
  border: 1px solid rgba(255, 213, 74, 0.35);
}

.btn-green {
  background: linear-gradient(145deg, #3dffa0, #1ecf7a);
  color: #042a18;
  box-shadow: 0 12px 32px rgba(30, 207, 122, 0.35);
}

.event-section {
  padding-top: 1rem;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(91, 45, 143, 0.35), rgba(11, 22, 48, 0.95));
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.event-glow {
  position: absolute;
  inset: -30% auto auto -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 213, 74, 0.35), transparent 70%);
  pointer-events: none;
}

.event-content {
  position: relative;
  z-index: 1;
}

.event-tag {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.event-card h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.event-card p {
  color: var(--muted);
  line-height: 1.8;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.9rem;
}

.event-art {
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 8vw, 5rem);
  filter: drop-shadow(0 12px 32px rgba(255, 213, 74, 0.25));
  animation: phoneFloat 5s ease-in-out infinite;
}

code {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(145deg, #ffe082, #ffb300);
  color: #2a1a00;
  box-shadow: 0 12px 32px rgba(255, 179, 0, 0.35);
}

.btn-blue {
  background: linear-gradient(145deg, #4d8dff, #1e5fd9);
  color: #fff;
  box-shadow: 0 12px 32px rgba(30, 95, 217, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.hero {
  padding: 4.5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 213, 74, 0.12);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.25;
  background: linear-gradient(90deg, #fff 10%, #ffe082 55%, #ffb74d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat {
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 120px;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--gold);
}

.stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

.phone-mock {
  position: relative;
  justify-self: center;
  width: min(320px, 88vw);
  aspect-ratio: 9 / 19;
  border-radius: 32px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255, 213, 74, 0.5), rgba(91, 45, 143, 0.6));
  box-shadow: var(--shadow);
  animation: phoneFloat 5s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.phone-screen {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #162447 0%, #0b1630 55%, #2a1450 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.65rem;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4d8dff, #5b2d8f);
  border: 2px solid var(--gold);
}

.mock-king {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  filter: drop-shadow(0 8px 24px rgba(255, 213, 74, 0.35));
}

.mock-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mock-btn {
  padding: 0.55rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.mock-btn.gold { background: linear-gradient(90deg, #ffb300, #ff8c2a); color: #2a1500; }
.mock-btn.purple { background: linear-gradient(90deg, #7e57c2, #4527a0); }
.mock-btn.blue { background: linear-gradient(90deg, #42a5f5, #1565c0); }

.section {
  padding: 3.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

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

.feature-card {
  padding: 1.35rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
  background: rgba(255, 213, 74, 0.12);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

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

.showcase-card {
  border-radius: 18px;
  padding: 1.25rem;
  min-height: 160px;
  background: linear-gradient(145deg, rgba(22, 36, 71, 0.9), rgba(11, 22, 48, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 213, 74, 0.25), transparent 70%);
}

.showcase-card h4 {
  margin: 0 0 0.35rem;
  color: var(--gold);
}

.showcase-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.cta {
  margin: 2rem 0 4rem;
  padding: 2rem;
  border-radius: 24px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 213, 74, 0.14), rgba(91, 45, 143, 0.25)),
    var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p.lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
