@import url('../style.css');

:root {
  --primary: #7289da;
  --primary-dark: #5a6eb8;
  --text-primary: #ffffff;
  --text-secondary: #b9bbbe;
  --background: #12141d;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-highlight: rgba(114, 137, 218, 0.1);
}

a {
  color: var(--primary);
  font-weight: bold;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.main {
  flex: 1;
}

.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero__title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
}

.section {
  padding: 4rem 0;
}

.section__title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(to right, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
  border-color: rgba(114, 137, 218, 0.3) !important;
}

.pricing-card.popular {
  border: 2px solid var(--primary) !important;
  transform: scale(1.03) !important;
}

.pricing-card.popular:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.pricing-card__popular {
  position: absolute;
  top: 30px;
  right: -40px;
  background: var(--primary);
  color: white;
  padding: 0.3rem 2rem;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card__title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pricing-card__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: normal;
  color: var(--text-secondary);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-card__features li {
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.feature-icon {
  margin-right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.feature-info {
  flex-direction: column;
  align-items: center;
}

.feature-info small {
  color: grey;
}

.check {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.times {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.pricing-card__action {
  margin-top: auto;
}

.feature-table {
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto 0;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
}

.feature-table th {
  background: rgba(114, 137, 218, 0.1);
  padding: 1.2rem;
  text-align: left;
  font-weight: 600;
}

.feature-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-table tr:last-child td {
  border-bottom: none;
}

.feature-table .feature-name {
  font-weight: 500;
}

.feature-table .feature-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.comparison {
  padding: 4rem 0;
  background: linear-gradient(
    180deg,
    rgba(18, 20, 29, 0.6) 0%,
    rgba(18, 20, 29, 0.8) 100%
  );
}

.faq {
  padding: 4rem 0;
}

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

.faq-item {
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  display: none;
}

.faq-answer.active {
  display: block;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.footer {
  padding: 3rem 0;
  background: rgba(10, 12, 18, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__contact {
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.footer__contact:hover {
  color: var(--primary);
}

.footer__copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .section__title {
    font-size: 2rem;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-10px);
  }

  .nav__actions {
    display: none;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-card,
.feature-table {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.pricing-card:nth-child(1) {
  animation-delay: 0.1s;
}
.pricing-card:nth-child(2) {
  animation-delay: 0.3s;
}
.pricing-card:nth-child(3) {
  animation-delay: 0.5s;
}
.feature-table {
  animation-delay: 0.7s;
}
