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

:root {
  --bg:        #080a0f;
  --bg-2:      #0d1017;
  --bg-3:      #111520;
  --surface:   rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.08);
  --accent:    #a855f7;
  --accent-2:  #7c3aed;
  --gold:      #f59e0b;
  --text:      #e2e8f0;
  --text-muted:#8892a4;
  --radius:    14px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  direction: rtl;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ── Shared Utilities ──────────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 99px;
  padding: 5px 16px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 56px;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 28px rgba(168,85,247,0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(168,85,247,0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 36px; font-size: 1rem; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(8,10,15,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
}

.nav__logo-icon {
  font-size: 1.6rem;
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: #fff; }

.nav__cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700 !important;
  box-shadow: 0 0 18px rgba(168,85,247,0.3);
}
.nav__cta:hover { box-shadow: 0 0 28px rgba(168,85,247,0.5) !important; }

/* ── Section 1 · Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Background */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 8s ease-in-out infinite;
}
.hero__orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: -120px; left: -100px;
  animation-duration: 10s;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  bottom: -80px; right: -80px;
  animation-duration: 13s;
  animation-delay: -4s;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #f59e0b44, transparent 70%);
  top: 50%; left: 55%;
  animation-duration: 9s;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
}

.hero__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 99px;
  padding: 5px 18px;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent), #ec4899, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.3); }
}

/* Stats bar */
.hero__stats-bar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 20px 24px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}
.stat-pill strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-pill span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Section 2 · About ─────────────────────────────────────────────────────── */
.about {
  padding: 120px 0;
  background: var(--bg-2);
  text-align: center;
}

.about .section-sub { margin: 0 auto 56px; }

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: right;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
  background: linear-gradient(135deg, rgba(168,85,247,0.08), transparent);
}
.card:hover { transform: translateY(-6px); border-color: rgba(168,85,247,0.3); }
.card:hover::before { opacity: 1; }

.card--glow:hover {
  box-shadow: 0 20px 60px rgba(168,85,247,0.15);
}

.card--featured {
  border-color: rgba(168,85,247,0.3);
  background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(124,58,237,0.05));
}

.card__icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.card p { color: var(--text-muted); line-height: 1.7; }

/* ── Section 3 · Features ──────────────────────────────────────────────────── */
.features {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.features__bg-accent {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,0.07), transparent 70%);
  right: -150px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 36px 32px;
  background: var(--bg);
  transition: background var(--transition);
}
.feature-item:hover {
  background: var(--bg-3);
}

.feature-item__num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 4px;
  min-width: 28px;
  opacity: 0.7;
}

.feature-item__body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.feature-item__body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Section 4 · Stats ─────────────────────────────────────────────────────── */
.stats {
  padding: 120px 0;
  background: var(--bg-2);
  text-align: center;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: right;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: rgba(168,85,247,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(168,85,247,0.1);
}

.stat-card__value {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.stat-card__value span {
  font-size: 1.6rem;
  color: var(--accent);
}
.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.stat-card__bar {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.stat-card__bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 99px;
  animation: barGrow 1.4s cubic-bezier(0.4,0,0.2,1) both;
  animation-delay: 0.2s;
  box-shadow: 0 0 10px rgba(168,85,247,0.5);
}
@keyframes barGrow {
  from { width: 0 !important; }
}

/* ── Section 5 · Join ──────────────────────────────────────────────────────── */
.join {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.join__bg { position: absolute; inset: 0; pointer-events: none; }
.join__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}
.join__orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -200px; left: -100px;
}
.join__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  bottom: -100px; right: -80px;
}

.join__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.join__inner .section-sub { margin: 0 auto 56px; }

.join__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  text-align: right;
  transition: var(--transition);
}
.step:hover {
  border-color: rgba(168,85,247,0.35);
  background: rgba(168,85,247,0.06);
}

.step__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(168,85,247,0.4);
}

.step__text { display: flex; flex-direction: column; gap: 2px; }
.step__text strong { font-size: 0.9rem; color: #fff; font-weight: 700; }
.step__text span   { font-size: 0.78rem; color: var(--text-muted); }

.step__arrow {
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0.5;
}

.join__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.join__server-info {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 22px;
  margin-top: 8px;
}
.server-info__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.server-info__ip {
  font-size: 0.95rem;
  color: var(--accent);
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--accent); }

/* ── Footer Trust / Enamad ─────────────────────────────────────────────────── */
.footer__trust {
  text-align: center;
  min-width: 140px;
}
.footer__trust h3 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer__trust p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  opacity: 0.7;
}
.enamad-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 2px dashed rgba(168,85,247,0.35);
  border-radius: var(--radius);
  background: rgba(168,85,247,0.05);
  color: var(--text-muted);
  font-size: 0.68rem;
  text-align: center;
  padding: 12px;
  line-height: 1.5;
  transition: var(--transition);
}
.enamad-placeholder:hover {
  border-color: rgba(168,85,247,0.55);
  background: rgba(168,85,247,0.1);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav__links { gap: 20px; }
  .about__cards,
  .stats__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .hero__stats-bar { gap: 0; }
  .stat-pill { padding: 0 20px; }
}

@media (max-width: 640px) {
  .nav__links li:not(:last-child) { display: none; }
  .hero__stats-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
  .stat-pill { padding: 16px; }
  .stat-divider { display: none; }
  .step__arrow { display: none; }
  .join__steps { flex-direction: column; width: 100%; }
  .step { width: 100%; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__trust { min-width: unset; }
  .enamad-placeholder { width: 100px; height: 100px; }
}
