/* Font Face */
@font-face {
  font-family: "IRANSans";
  src: url("https://bytebase.armogroup.tech/api/v1/files/public/IRANSansWeb_Medium.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: "IRANSans", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  line-height: 1.7;
  min-height: 100vh;
  direction: rtl;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 50px;
  height: 50px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #5e35b1;
}

.header-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.header-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-links a:hover {
  color: #5e35b1;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 24px;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(45deg, #fff, #e1f5fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 1.2rem;
  color: #e1f5fe;
}

/* Plans Section */
.plans {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #333;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 50px;
}

/* Duration Selector */
.duration-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.duration-tabs {
  display: flex;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 6px;
  gap: 6px;
}

.duration-tab {
  background: transparent;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "IRANSans", sans-serif;
  font-size: 14px;
  color: #666;
}

.duration-tab.active {
  background: #5e35b1;
  color: white;
}

.duration-tab:hover:not(.active) {
  background: #e0e0e0;
}

/* Plans Container */
.plans-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.loading {
  text-align: center;
  padding: 60px;
  color: #666;
  font-size: 1.1rem;
}

.loading i {
  margin-left: 10px;
  color: #5e35b1;
}

/* Plan Card */
.plan-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.plan-card.premium {
  border-color: #5e35b1;
}

.plan-header {
  text-align: center;
  margin-bottom: 18px;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  text-transform: capitalize;
}

.plan-price {
  font-size: 2rem;
  font-weight: bold;
  color: #5e35b1;
  margin-bottom: 6px;
}

.plan-duration {
  color: #666;
  font-size: 0.85rem;
}

.plan-features-wrapper {
  flex: 1;
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  margin: 0;
}

.plan-features li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  font-size: 0.9rem;
}

.plan-features li i {
  color: #22c55e;
  font-size: 1rem;
}

.plan-button {
  width: 100%;
  background: #5e35b1;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  font-family: "IRANSans", sans-serif;
  margin-top: auto;
}

.plan-button:hover {
  background: #4527a0;
}

.plan-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #5e35b1 0%, #4527a0 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: bold;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: #5e35b1;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #e1f5fe;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-features {
    gap: 20px;
  }

  .feature-item {
    padding: 12px 20px;
  }

  .duration-tabs {
    flex-direction: column;
    width: 200px;
  }

  .plans-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .plans-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 50px 0;
  }

  .plans {
    padding: 50px 0;
  }

  .cta {
    padding: 50px 0;
  }
}
