/* ==========================================================================
   STICKY NAVBAR & HEADER (Self-Contained & 100% Reliable - UI/UX Pro Max)
   Enhanced with generous vertical and horizontal padding, comfortable
   touch targets, and responsive breathing room across viewports.
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 80px;
  padding: 16px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-normal),
    backdrop-filter var(--transition-normal),
    border-bottom var(--transition-normal),
    min-height var(--transition-normal),
    padding var(--transition-normal),
    box-shadow var(--transition-normal);
}

.navbar.scrolled {
  background-color: rgba(248, 250, 252, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  min-height: 74px;
  padding: 12px 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.03em;
  padding: 4px 0;
}

.logo-box {
  width: 36px;
  height: 36px;
  background-color: transparent;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-item-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.dropdown-toggle:hover {
  background-color: rgba(15, 23, 42, 0.04);
}

.dropdown-toggle .chevron {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
  display: inline-block;
  opacity: 0.7;
}

.nav-item-dropdown:hover .dropdown-toggle .chevron,
.nav-item-dropdown.active .dropdown-toggle .chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12), 0 0 20px rgba(37, 99, 235, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
  border-bottom: none !important;
  margin: 0;
  padding: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  width: 100%;
}

.dropdown-item:hover {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--color-accent);
  transform: translateX(3px);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-cta .btn {
  padding: 10px 22px;
  min-height: 42px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
}

.nav-mobile-ctas {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 1024px) {
  .navbar-container {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 68px;
  }

  .navbar {
    min-height: 68px;
    padding: 12px 0;
  }

  .navbar.scrolled {
    min-height: 68px;
    padding: 12px 0;
  }

  .navbar-container {
    padding: 0 20px;
  }

  .menu-toggle {
    display: flex;
    padding: 8px;
    margin-right: -8px;
    box-sizing: content-box;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 68px);
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 28px 20px 44px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-menu ul li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .nav-item-dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    box-shadow: none;
    padding: 6px;
    margin: 4px 0 14px 0;
    min-width: 100%;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-item {
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .navbar-cta {
    display: none;
  }

  .nav-mobile-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
  }

  .nav-mobile-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 16px;
  }

  .menu-toggle {
    margin-right: -4px;
  }
}

/* 100% UNIFIED FONT FAMILY ACROSS ALL SECTIONS, HEADINGS, CARDS, & BUTTONS */
html, body, *, *::before, *::after {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

body, p, span, a, li, input, select, textarea, button, .btn, .chip-item, .comment-pill, .dilemma-list, .faq-answer {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

h1, h2, h3, h4, h5, h6, 
.autodm-title, .section-title, .ready-cta-heading, 
.flow-title, .step-title, .dilemma-title, .diff-title, 
.feat-title, .story-case-title, .faq-question, 
.exchange-equation, .ready-tagline-badge, .badge-creator,
.btn, .sim-tab-btn, .form-submit-btn, .ready-capsule,
.meta-pillar-title, .meta-contrast-title, .meta-strip-title,
.footer-nav-heading, .footer-logo, .hero-ribbon-lead {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: -0.025em;
}

/* Global Micro-Interaction & Transition defaults (Targeted Properties to Avoid Non-Composited Jank) */
.btn, .sim-tab-btn, .flow-box, .step-card, .story-case-card, 
.persona-card, .feat-card, .diff-pillar-card, .gate-step-card, 
.criteria-item, .chip-item, .comment-pill, .faq-item, .modal-close,
.meta-pillar-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}