/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  transition: background-color var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
}

/* Tool Tab Switcher */
.tool-tab {
    opacity: 0.6;
    border-bottom: 2px solid transparent !important;
}

.tool-tab.active {
    opacity: 1;
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary) !important;
    background: white !important;
}

.tool-tab:hover {
    background: rgba(79, 70, 229, 0.05) !important;
    opacity: 1;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.nav-link {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  z-index: 1001;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    padding: var(--space-24) var(--space-8);
    transition: right var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-actions {
    position: fixed;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    flex-direction: column;
    gap: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
  }

  .navbar.nav-open .nav-links {
    right: 0;
  }

  .navbar.nav-open .nav-actions {
    opacity: 1;
    visibility: visible;
    bottom: var(--space-12);
  }
  
  .navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
  }
  
  .navbar.nav-open .navbar-overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* Hero Section */
.hero {
  padding-top: calc(72px + var(--space-12));
  padding-bottom: var(--space-12);
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(79,70,229,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--text-body);
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-12);
}

/* Stats Section */
.stats {
  background-color: var(--bg-surface);
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  padding: var(--space-8) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.stat-item {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
}

.stat-item:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: var(--shadow-lg);
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: var(--text-muted);
  font-size: var(--small-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Features Grid */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

/* Special Highlight (Before/After) */
.highlight-section {
  background-color: var(--text-main);
  color: var(--text-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-8);
  margin: var(--space-16) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  box-shadow: var(--shadow-xl);
}

.highlight-content h2 {
  color: var(--text-light);
}

.comparison-slider {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #2D3748;
}

.comparison-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-img.after {
  clip-path: inset(0 0 0 50%);
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: white;
  cursor: ew-resize;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slider-button {
  width: 32px;
  height: 32px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin: 0 auto var(--space-4);
  box-shadow: 0 0 0 8px var(--bg-main);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.pricing-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid #E5E7EB;
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-xl);
  transform: scale(1.05);
  z-index: 2;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--small-size);
  font-weight: bold;
  text-transform: uppercase;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: var(--space-4) 0;
  display: flex;
  align-items: baseline;
}

.price span {
  font-size: var(--body-size);
  color: var(--text-muted);
  font-weight: normal;
}

.pricing-features {
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-body);
}

.feature-check {
  color: var(--success);
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #E5E7EB;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-4) 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  transition: transform var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer-inner {
  padding-bottom: var(--space-4);
  color: var(--text-body);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

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

/* Footer */
.footer {
  background-color: var(--text-main);
  padding: var(--space-16) 0 var(--space-8);
  color: #D1D5DB;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-col h4 {
  color: white;
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #9CA3AF;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #6B7280;
}

/* CTA Section */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  color: white;
  margin: var(--space-24) auto;
  max-width: 1000px;
  box-shadow: var(--shadow-xl);
}

.cta-banner h2 {
  color: white;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .highlight-section, .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 768px) {
  /* Nav layout is now handled by the .mobile-menu-btn and .navbar.nav-open logic above */
  
  .stats-grid, .steps-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .highlight-section {
    padding: var(--space-8) var(--space-4);
  }
  
  .comparison-slider {
    height: 300px;
  }
}
