:root {
  --bg-light: #f8fafc;
  --surface: #ffffff;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.03);
  --shadow-hover: 0 20px 30px -10px rgba(79, 70, 229, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Banner */
.top-banner {
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  color: #ffffff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.5px;
  cursor: pointer;
}

.owl-ai-badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: transform 0.3s ease;
}

.logo:hover .owl-ai-badge {
  transform: scale(1.05) rotate(-3deg);
}

.owl-ai-badge svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 0.75rem;
  min-width: 340px;
  max-height: 460px;
  overflow-y: auto;
  box-shadow: 0 20px 40px -5px rgba(15, 23, 42, 0.15), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  list-style: none;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu,
  .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.dropdown-menu::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 8px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

.dropdown-menu li {
  margin-bottom: 3px;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 0.9rem;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dropdown-menu li a i {
  width: 22px;
  font-size: 0.95rem;
  color: var(--primary);
  text-align: center;
}

.dropdown-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}

.nav-cta {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}

.nav-cta:hover {
  background-color: var(--primary-hover) !important;
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Global Container & Pill Badge */
main {
  flex: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem 2rem 2rem;
  margin-top: 3rem;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto 3rem auto;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-column h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile Responsive Common */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1.25rem;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem;
    gap: 0.4rem;
    display: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-links.show {
    display: flex;
    animation: slideDown 0.25s ease forwards;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: 1px solid var(--border-subtle);
    background: #f8fafc;
    border-radius: 12px;
    margin: 0.4rem 0 0.6rem 0;
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none !important;
    padding: 0.4rem;
  }

  .dropdown.open .dropdown-menu {
    display: block !important;
  }

  .dropdown-menu li a {
    padding: 0.65rem 0.8rem;
    font-size: 0.86rem;
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
