/* ============================================
   Countzy Website - Non-Critical Styles
   ============================================ */

/* ---------- Section Titles ---------- */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 0%, #c4c7d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

/* ---------- Features ---------- */
.features {
  padding: 5rem 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.features .section-title {
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: rgba(17, 18, 39, 0.5);
  /* More transparent for glass effect */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(25, 26, 53, 0.7);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.features-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 2rem;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.feature-pill:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.feature-pill svg {
  width: 16px;
  height: 16px;
}

/* ---------- Screenshots ---------- */
.screenshots {
  padding: 5rem 0;
  position: relative;
}

.screenshots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
}

.screenshots .section-title {
  margin-bottom: 2.5rem;
}

.screenshots-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1rem 1.5rem 3rem;
  /* Standard side padding */
}

.screenshots-carousel::-webkit-scrollbar {
  display: none;
}

.screenshots-track {
  display: flex;
  gap: 1.5rem;
  /* Removed dynamic centered padding */
}

@media (min-width: 769px) {
  .screenshots-track {
    /* Center only on large screens */
    width: max-content;
    margin: 0 auto;
    justify-content: center;
  }
}

.screenshot-item {
  flex: 0 0 auto;
  width: 270px;
  scroll-snap-align: start;
  /* Align to start */
  transition: transform 0.3s ease;
}

.screenshot-item:hover {
  transform: translateY(-8px);
}

.screenshot-item img {
  width: 270px;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.screenshot-item figcaption {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--color-primary);
  transform: scale(1.05);
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 5rem 0;
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.2), transparent);
}

.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  flex: 1;
  min-width: 280px;
  max-width: 360px;
  background: rgba(17, 18, 39, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(99, 102, 241, 0.3);
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.25rem;
  /* Smaller size for longer text */
  font-weight: 800;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff 0%, #c4c7d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  -webkit-text-fill-color: var(--color-text-muted);
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-top: 2rem;
}

.pricing-card li {
  padding: 0.6rem 0;
  color: var(--color-text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  flex-shrink: 0;
}

.pricing-pro {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(17, 18, 39, 0.6) 100%);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1.25rem;
  background: var(--gradient-primary);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* ---------- Download CTA ---------- */
.download {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

/* Glow effect behind download section */
.download::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.download-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.download .play-badge img {
  height: 64px;
  width: auto;
  transition: transform 0.2s;
}

.download .play-badge:hover img {
  transform: scale(1.05);
}

.download .ios-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.download .ios-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.download .ios-badge svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ---------- Footer ---------- */
footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 11, 30, 0.95);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-content p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .pricing-card {
    max-width: 100%;
    width: 100%;
  }

  .screenshot-item {
    width: 240px;
  }

  .screenshot-item img {
    width: 240px;
  }

  .screenshots-track {
    padding: 0 calc((100% - 240px) / 2);
  }
}