/* Professional SaaS Design System */

:root {
  --primary-bg: #f8fafc;
  --secondary-bg: #ffffff;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --border-color: #e2e8f0;
  --card-shadow: none;
  --card-shadow-hover: none;
  --card-radius: 12px;
  --btn-radius: 8px;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --section-gap: 100px;
  --max-container: 1300px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mesh Gradient Utility */
.mesh-gradient {
  background-color: #ffffff;
  background-image:
    radial-gradient(at 0% 0%, hsla(217, 100%, 97%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(212, 100%, 98%, 1) 0, transparent 50%),
    radial-gradient(at 100% 100%, hsla(210, 100%, 99%, 1) 0, transparent 50%),
    radial-gradient(at 0% 100%, hsla(215, 100%, 97%, 1) 0, transparent 50%);
}

/* Global Typography & Background */
body {
  background-color: var(--primary-bg);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Panel Structure */
.saas-panel {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
}

/* Background Blobs */
.bg-blob-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.blob-1 { top: 20%; left: -100px; }
.blob-2 { top: 50%; right: -100px; }
.blob-3 { bottom: 10%; left: 30%; }

/* Section Refinement */
.py-section {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '.';
    color: var(--accent-color);
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 12px;
    display: block;
}

/* Container Polish */
@media (min-width: 1400px) {
    .container {
        max-width: var(--max-container);
    }
}

/* Force Bootstrap Navbar Reset */
.navbar {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-shadow: none !important;
}

.saas-navbar {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 1040;
  height: 72px;
  display: flex;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.saas-navbar.scrolled {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  height: 62px;
}

/* Dropdown Essentials */
.dropdown-menu {
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: none;
  border-radius: 14px;
  padding: 12px;
  margin-top: 8px;
  transform-origin: top center;
  animation: smoothSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes smoothSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-menu-mega {
  min-width: 640px;
}

@media (max-width: 991px) {
  .dropdown-menu-mega {
    min-width: 100%;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0.5rem;
  }
}

.dropdown-item {
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: normal;
  border-radius: 10px;
  padding: 10px 14px;
}

.dropdown-item:hover {
  background-color: #f8fafc;
  color: var(--accent-color);
  transform: translateX(4px);
}

.dropdown-item .icon-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.dropdown-item:hover .icon-box {
  background: var(--accent-color);
  color: white;
  transform: scale(1.15) rotate(-3deg);
}

.dropdown-item:hover .icon-box i,
.dropdown-item:hover .icon-box img {
    filter: brightness(0) invert(1);
}

.dropdown-item img {
  width: 20px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Nav Links */
.nav-link {
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 10px 20px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 99px;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

.nav-link:hover,
.nav-item.show .nav-link {
  color: var(--text-main) !important;
  background: rgba(15, 23, 42, 0.06) !important;
}

.nav-item.active .nav-link {
    color: var(--accent-color) !important;
    background: #eff6ff !important;
}

.navbar-brand img {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.v-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  margin: 0 12px;
}

.lang-toggle {
  background: #f1f5f9;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  border-radius: 99px;
  padding: 8px 16px;
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.lang-toggle:hover {
  color: var(--text-main);
  background: #e2e8f0;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 24px 0;
  opacity: 0;
  transform: translateY(20px);
}

.bento-grid.ready {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Category Navigation */
.category-nav-wrapper {
  position: sticky;
  top: 72px;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  margin-bottom: 40px;
  padding: 12px 0;
  transition: all 0.4s ease;
}

.saas-navbar.scrolled + .page-content .category-nav-wrapper {
    top: 62px;
}

.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-link {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.category-link:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-main);
}

.category-link.active {
  background: white;
  color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

/* Floating Pill Variant */
.category-nav-pill {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 2000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.category-nav-pill.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.category-nav-pill .category-link {
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 22px;
}

.category-nav-pill .category-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.category-nav-pill .category-link.active {
    background: white;
    color: var(--text-main);
}

/* Mesh Hubs */
.suite-hub {
    position: relative;
    border-radius: 40px;
    margin: 40px 0;
    padding: 20px;
    transition: all 0.4s ease;
}

.mesh-blue {
    background: radial-gradient(at 0% 0%, hsla(217, 100%, 98%, 1) 0, transparent 50%),
                radial-gradient(at 100% 100%, hsla(215, 100%, 97%, 1) 0, transparent 50%);
}

.mesh-indigo {
    background: radial-gradient(at 0% 0%, hsla(230, 100%, 98%, 1) 0, transparent 50%),
                radial-gradient(at 100% 100%, hsla(225, 100%, 97%, 1) 0, transparent 50%);
}

.mesh-emerald {
    background: radial-gradient(at 0% 0%, hsla(150, 100%, 98%, 1) 0, transparent 50%),
                radial-gradient(at 100% 100%, hsla(145, 100%, 97%, 1) 0, transparent 50%);
}

.mesh-slate {
    background: radial-gradient(at 0% 0%, hsla(210, 20%, 98%, 1) 0, transparent 50%),
                radial-gradient(at 100% 100%, hsla(215, 20%, 96%, 1) 0, transparent 50%);
}

/* Glass Shimmer effect */
@keyframes shimmer {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: none;
    pointer-events: none;
}

.bento-card:hover::after {
    animation: shimmer 0.8s ease-in-out;
}

.bento-card {
  background: var(--secondary-bg);
  border-radius: var(--card-radius);
  padding: 32px 28px; /* Increased padding for better hierarchy */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  text-decoration: none !important;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); /* Very subtle action shadow */
}

.bento-card:hover .bento-icon {
  background: white;
  border-color: var(--accent-color);
  transform: scale(1.08) rotate(-2deg);
}

.bento-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: all 0.3s ease;
  position: relative;
}

/* Launch Arrow hint */
.bento-card::before {
    content: '\f178';
    font-family: FontAwesome;
    position: absolute;
    top: 32px;
    right: -20px;
    color: var(--accent-color);
    font-size: 1.1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.bento-card:hover::before {
    right: 28px;
    opacity: 1;
}

.bento-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.bento-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.55;
  max-width: 90%;
}

.pro-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Step Cards */
.step-card {
    padding: 40px 32px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.step-number {
    width: 32px;
    height: 32px;
    background: #eff6ff;
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.step-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats Row */
.stats-row {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

.stat-item {
    text-align: center;
    padding: 10px 20px;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 5px;
}

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

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active {
    border-color: var(--accent-color);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
    display: none;
}

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

/* Buttons */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.btn-premium {
  background: var(--text-main);
  color: white !important;
  border: 1px solid var(--text-main);
  border-radius: 10px;
  padding: 10px 32px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-section .btn-premium {
    animation: pulseGlow 2s infinite;
}

.btn-premium:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-outline-saas {
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-saas:hover {
  border-color: #94a3b8;
  color: var(--text-main) !important;
  background: #f8fafc;
}

/* Hero Section */
.hero-section {
  padding: 120px 0 100px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

/* CSS Mockup Stack */
.mockup-container {
  position: relative;
  perspective: 1000px;
}

.mockup-stack {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 380px;
  margin: 0 auto;
}

.mockup-layer {
  position: absolute;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s ease;
}

.layer-main {
  width: 400px;
  height: 280px;
  background: white;
  top: 40px;
  left: 0;
  z-index: 10;
  padding: 24px;
}

.layer-accent {
  width: 320px;
  height: 240px;
  background: var(--glass-bg);
  top: 0;
  right: 0;
  z-index: 5;
  animation: float 6s ease-in-out infinite;
}

.layer-floating {
  width: 120px;
  height: 120px;
  background: var(--accent-color);
  bottom: 0px;
  right: 40px;
  z-index: 15;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  animation: float 4s ease-in-out infinite reverse;
}

.mockup-element {
  height: 12px;
  background: #f1f5f9;
  border-radius: 4px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #0f172a;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Features List in Hero */
.hero-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.hero-checklist li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.hero-checklist i {
  color: var(--accent-color);
  margin-right: 12px;
  font-size: 1.2rem;
}

/* Footer Premium */
.footer-premium {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.social-circle {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-right: 12px;
  transition: all 0.2s ease;
}

.social-circle:hover {
  background: var(--secondary-bg);
  border-color: #cbd5e1;
  color: var(--accent-color);
}

/* Input Overrides */
.form-control-premium {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--btn-radius);
  padding: 12px 16px;
  box-shadow: none !important;
}

.form-control-premium:focus {
  border-color: var(--accent-color);
  outline: 0;
  box-shadow: none !important;
}

/* Testimonials */
.testimonial-card {
  padding: 40px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: #cbd5e1;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 5rem;
  font-family: serif;
  color: #f1f5f9;
  z-index: 0;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-main);
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
  margin-right: 16px;
}

/* Tool Pages Global Override */
.whiteblock {
  background: var(--secondary-bg) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--card-shadow) !important;
  border-radius: var(--card-radius) !important;
  padding: 32px !important;
  margin-top: 16px !important;
  margin-bottom: 24px !important;
}

.post-detail h2 {
  font-weight: 800 !important;
  margin-bottom: 16px !important;
  color: var(--text-main) !important;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

.post-detail p {
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  color: var(--text-secondary) !important;
}

/* Universal Dropzone Overrides */
.dropzone {
  border: 2px dashed #94a3b8 !important;
  border-radius: var(--card-radius) !important;
  background: var(--primary-bg) !important;
  padding: 40px !important;
  transition: all 0.2s ease !important;
}

.dropzone:hover {
  border-color: var(--accent-color) !important;
  background: #f0fdf4 !important;
  /* Gentle green hint */
}

/* Legacy Button Overrides on Tool Pages */
.btn-success {
  background-color: #10b981 !important;
  border-color: #059669 !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.btn-info {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  font-weight: 600 !important;
}

.btn-info:hover {
  background-color: #e2e8f0 !important;
}