:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #0ea5e9;
  --dark: #0f172a;
  --darker: #1e293b;
  --light: #e2e8f0;
  --lighter: #f8fafc;
  --accent: #8b5cf6;
  --success: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', sans-serif;
}

body {
  background: linear-gradient(135deg, var(--dark), var(--darker));
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 4rem;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 20%);
  z-index: -1;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  background: rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header Styles */
header {
  padding: 2rem 0;
  text-align: center;
  animation: fadeInDown 1s ease-out;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.logo-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
  position: relative;
  overflow: hidden;
  animation: pulse 4s infinite;
}

.logo-circle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M100,0c55.2,0,100,44.8,100,100s-44.8,100-100,100S0,155.2,0,100S44.8,0,100,0z M100,30c-38.7,0-70,31.3-70,70s31.3,70,70,70s70-31.3,70-70S138.7,30,100,30z'/%3E%3C/svg%3E");
  background-size: contain;
  animation: rotate 30s linear infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(79, 70, 229, 0.6); }
  100% { transform: scale(1); box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4); }
}

.logo-circle i {
  font-size: 4rem;
  color: white;
  z-index: 1;
}

.logo-text {
  position: absolute;
  bottom: -25px;
  background: rgba(30, 41, 59, 0.9);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--secondary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: slideIn 1s ease-out;
}

h1 {
  font-size: 2.8rem;
  background: linear-gradient(to right, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--primary));
  border-radius: 2px;
}

.subtitle {
  font-size: 1.3rem;
  color: var(--lighter);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.highlight {
  color: var(--secondary);
  font-weight: 600;
}

/* Button Styles */
.cta-container {
  margin: 3rem 0;
  text-align: center;
}

.btn-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 1.2rem 2.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: pulseBtn 2s infinite;
}

.btn-telegram::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-telegram:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.6);
}

.btn-telegram:hover::before {
  opacity: 1;
}

.btn-telegram i {
  font-size: 1.6rem;
}

@keyframes pulseBtn {
  0% { box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 10px 35px rgba(99, 102, 241, 0.6); }
  100% { box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4); }
}

/* Features Section */
.section-title {
  text-align: center;
  margin: 4rem 0 2.5rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--lighter);
  display: inline-block;
  background: rgba(30, 41, 59, 0.7);
  padding: 0.5rem 2rem;
  border-radius: 50px;
  position: relative;
}

.section-title h2::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -60px;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -60px;
  width: 50px;
  height: 3px;
  background: linear-gradient(to left, var(--primary), var(--secondary));
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(79, 70, 229, 0.3);
  border-color: rgba(99, 102, 241, 0.4);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  z-index: -1;
  border-radius: 22px;
  animation: rotateBorder 6s linear infinite;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.85);
  border-radius: 18px;
  z-index: -1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  color: var(--secondary);
  font-size: 2.5rem;
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: pulseIcon 3s infinite;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--lighter);
}

.feature-card p {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Steps Section */
.steps-section {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 4rem 0;
  border: 1px solid rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
}

.steps-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='rgba(99,102,241,0.05)' d='M100,0c55.2,0,100,44.8,100,100s-44.8,100-100,100S0,155.2,0,100S44.8,0,100,0z M100,30c-38.7,0-70,31.3-70,70s31.3,70,70,70s70-31.3,70-70S138.7,30,100,30z'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.3;
  z-index: -1;
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  flex: 1;
  min-width: 230px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.step-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.step-card h3 {
  font-size: 1.4rem;
  margin: 1rem 0 1.5rem;
  color: var(--lighter);
  position: relative;
}

.step-card h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.step-card p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.step-highlight {
  background: rgba(99, 102, 241, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  color: var(--secondary);
  font-weight: 600;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  color: #94a3b8;
  font-size: 0.9rem;
  position: relative;
}

.footer-heart {
  color: #f43f5e;
  animation: heartbeat 1.2s infinite;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseIcon {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .btn-telegram {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .section-title h2::before,
  .section-title h2::after {
    width: 30px;
  }
  
  .step-card {
    min-width: 100%;
  }
  
  .section-title h2::before,
  .section-title h2::after {
    display: none;
  }
  
}


/* استایل های جدید برای نویگیشن و صفحات جدید */
.main-nav {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

.logo-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-nav .logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.logo-nav .logo-circle i {
  font-size: 1.2rem;
  color: white;
}

.logo-nav .logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}



/* رسپانسیو برای نویگیشن */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .rules-container,
  .about-stats,
  .support-features {
    grid-template-columns: 1fr;
  }
  
  .support-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .support-btn {
    width: 100%;
    max-width: 300px;
  }
}


