/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  font-family: Arial, sans-serif;
  background: #f9fafb;
  color: #111827;
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 20px;
  color: #2563eb;
}

.logo-icon {
  width: 20px;
  height: 20px;
  background: #2563eb;
  margin-right: 8px;
  border-radius: 4px;
}

/* CTA Button */
.cta-button {
  background: #2563eb;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.cta-button:hover {
  background: #1e40af;
}

/* Hero */
.hero {
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #4b5563;
}

.primary-btn {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.primary-btn:hover {
  background: #1e40af;
}

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 30px 0;
  text-align: center;
  background: white;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  color: #6b7280;
} 
/* Header Scroll Effect */
.site-header.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
} 
/* ============================= */
/* Hero SaaS Layout */
/* ============================= */

.hero {
  padding: 120px 0;
  background: linear-gradient(
    to bottom,
    #f8fafc 0%,
    #ffffff 60%,
    #ffffff 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content h1 {
  font-size: 40px;
  margin: 20px 0;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  color: #4b5563;
  margin-bottom: 30px;
}

.hero-badge {
  display: inline-block;
  background: #e0e7ff;
  color: #2563eb;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.secondary-btn {
  display: inline-block;
  border: 2px solid #2563eb;
  color: #2563eb;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.secondary-btn:hover {
  background: #2563eb;
  color: white;
}

/* Preview Card */

.hero-preview {
  display: flex;
  justify-content: center;
}

.preview-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.preview-header {
  height: 50px;
  background: #f3f4f6;
}

.preview-body {
  height: 250px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}
/* ============================= */
/* Features Section */
/* ============================= */

.features {
  padding: 80px 0;
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.feature-item {
  padding: 30px;
  border-radius: 16px;
  background: #f9fafb;
  transition: 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.feature-item h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.feature-item p {
  font-size: 15px;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================= */
/* Popular Tools Section */
/* ============================= */

.popular-tools {
  padding: 100px 0;
  background: #f8fafc;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 60px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.tool-card {
  display: block;
  padding: 30px;
  background: white;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
  border: 1px solid #e5e7eb;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
  border-color: #2563eb;
}

.tool-card h4 {
  margin-bottom: 12px;
  font-size: 18px;
}

.tool-card p {
  font-size: 14px;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 1000px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================= */
/* Navigation & Mega Menu */
/* ============================= */

.main-nav {
  margin-left: 40px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  text-decoration: none;
  color: #111827;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  display: inline-block;
}

.nav-item > a:hover {
  color: #2563eb;
}

/* Mega Menu */

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 100vw;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 40px 0;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-item:hover .mega-menu {
  display: block;
}

.mega-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
}

.mega-column a {
  display: block;
  margin-bottom: 15px;
  text-decoration: none;
  color: #374151;
  font-size: 14px;
}

.mega-column a:hover {
  color: #2563eb;
}

.mega-side h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.mega-side p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
}

.view-all-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.view-all-btn:hover {
  background: #1e40af;
}
/* ============================= */
/* Mobile Navigation */
/* ============================= */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  margin-right: 15px;
}

/* Hide desktop nav on mobile */
@media (max-width: 900px) {

  .nav-list {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

}
@media (max-width: 900px) {

  .nav-list.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    gap: 20px;
    border-top: 1px solid #e5e7eb;
  }

}
/* ============================= */
/* Improved Mobile Menu */
/* ============================= */

@media (max-width: 900px) {

  .nav-list.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: calc(100vh - 65px);
    background: white;
    padding: 30px 20px;
    gap: 25px;
    border-top: 1px solid #e5e7eb;
    overflow-y: auto;
    animation: slideDown 0.25s ease;
  }

  .nav-list.mobile-open a {
    font-size: 18px;
    font-weight: 500;
  }

  .nav-item:hover .mega-menu {
    display: none;
  }

}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 900px) {

  .mega-menu {
    display: none !important;
    position: static;
    box-shadow: none;
    border: none;
    padding: 10px 0;
  }

  .mobile-expanded .mega-menu {
    display: block !important;
  }

  .mega-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mega-side {
    margin-top: 20px;
  }

}
@media (max-width: 900px) {

  .mega-menu {
    position: static;
    transform: none !important;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 15px 0;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .mobile-expanded > .mega-menu {
    display: block;
  }

  .mega-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

}
/* ============================= */
/* Tool Page Layout */
/* ============================= */

.tool-page {
  padding: 120px 0 80px;
  background: #f8fafc;
  min-height: 70vh;
}

.tool-page h1 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 15px;
}

.tool-description {
  text-align: center;
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 50px;
}

.tool-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 50px;
  background: white;
  border-radius: 16px;
  border: 2px dashed #d1d5db;
  text-align: center;
  transition: 0.3s ease;
}

.tool-box:hover {
  border-color: #2563eb;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.tool-box p {
  margin-bottom: 20px;
  color: #374151;
}
/* ============================= */
/* Comparison Layout */
/* ============================= */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.compare-grid img {
  max-width: 100%;
  border-radius: 12px;
}

.compare-box p {
  margin-bottom: 10px;
}

.saving-badge {
  color: #16a34a;
  font-weight: 600;
}