/* Dark Theme - Unified across all pages */

/* Base dark theme already set in variables.css */

/* Header */
.header {
  background: rgba(15, 23, 32, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }
}

/* Sidebar */
.sidebar {
  background: var(--dark-light);
  border-right: 1px solid var(--border);
}

.sidebar-item {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  transition: all var(--transition-base);
  border-left: 2px solid transparent;
}

.sidebar-item:hover {
  color: var(--primary);
  background: var(--dark-elevated);
}

.sidebar-item.active {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
  border-left-color: var(--primary);
}

/* Main content */
.main {
  background: var(--dark);
}

/* Footer */
.footer {
  background: var(--dark-light);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section {
  margin-bottom: 0;
}

.footer-section h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Sections */
.section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Hero sections */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 6rem;
  max-width: 100%;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1rem 3rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.125rem;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: -50% -20% -50% -20%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* CTA Section */
.cta-section {
  background: var(--dark-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
}

.cta-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Feature cards */
.feature-card {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.2);
  transform: translateY(-4px);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Step cards */
.step {
  text-align: center;
  position: relative;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-description {
  color: var(--text-muted);
}

/* Pricing cards */
.pricing-card {
  background: var(--dark-light);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.pricing-card.popular {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.25);
}

/* Testimonials */
.testimonial {
  background: var(--dark-light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

/* Auth forms */
.auth-card {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3rem;
}

.auth-card:hover {
  border-color: var(--border-hover);
}

/* Error messages */
.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: none;
  margin-bottom: 1rem;
}

.error.show {
  display: block;
}

/* Loading states */
.loading {
  opacity: 0.5;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto 4rem;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.plan-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2rem;
}

.plan-price {
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.price-period {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
}

.plan-features li {
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.plan-features li:last-child {
  border-bottom: none;
}

.feature-highlight {
  color: var(--primary);
  font-weight: 600;
}

/* Pricing Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.toggle-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
}

.toggle-label.active {
  color: var(--primary);
}

.toggle {
  width: 56px;
  height: 28px;
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-base);
}

.toggle.active {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle-slider {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left var(--transition-base);
}

.toggle.active .toggle-slider {
  left: 30px;
}

.savings-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.faq-question {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.faq-answer {
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 3rem 1rem;
  }

  .faq-title {
    font-size: 1.875rem;
  }
}
