/* ==========================================================================
   DELEGATE ERP — Enterprise Responsive Header Stylesheet
   Theme: DelegatePortal Green (#374C31, #16a34a, #22c55e, #4ade80, #86efac)
   ========================================================================== */

:root {
  --brand-forest: #374c31;
  --brand-forest-dark: #273822;
  --brand-forest-soft: #455c39;
  --brand-primary: #16a34a;
  --brand-secondary: #22c55e;
  --brand-mint: #4ade80;
  --brand-accent: #86efac;
  --brand-soft-bg: #eefbf3;
  --brand-pill-bg: rgba(34, 197, 94, 0.1);

  --text-main: #253324;
  --text-muted: #596958;
  --text-white: #ffffff;

  --utility-height: 36px;
  --header-height: 78px;
  --border-subtle: rgba(55, 76, 49, 0.12);
  --shadow-dropdown: 0 24px 56px -14px rgba(24, 52, 22, 0.18), 0 6px 16px -4px rgba(24, 52, 22, 0.06);
  --shadow-btn: 0 6px 18px -4px rgba(34, 197, 94, 0.42);
  --shadow-scrolled: 0 10px 30px -10px rgba(28, 56, 25, 0.14);

  --radius-pill: 9999px;
  --radius-btn: 8px;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 200ms var(--ease-smooth);
  --transition-smooth: 340ms var(--ease-smooth);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: #f6fcf8;
  min-height: 100vh;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Fixed Header Wrapper (GPU-Composited Smooth Scroll — Zero Layout Jitter)
   ========================================================================== */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transform: translate3d(0, 0, 0);
  transition: transform var(--transition-smooth);
  will-change: transform;
}

/* Smoothly slides the utility bar up out of view using GPU transform only */
.header-wrapper.is-scrolled {
  transform: translate3d(0, calc(-1 * var(--utility-height)), 0);
}

/* ==========================================================================
   Top Slim Utility Bar (#374C31 Forest Green)
   ========================================================================== */
.top-utility-bar {
  width: 100%;
  height: var(--utility-height);
  background: linear-gradient(90deg, var(--brand-forest-dark) 0%, var(--brand-forest) 55%, #2f442a 100%);
  color: #e6f4ea;
  font-size: 0.78rem;
}

.utility-container {
  width: 100%;
  max-width: 1380px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.utility-announcement {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(74, 222, 128, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--brand-mint);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-mint);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.utility-text {
  color: #dcebe0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-mint);
  font-weight: 600;
  flex-shrink: 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.utility-link svg {
  width: 13px;
  height: 13px;
  transition: transform var(--transition-fast);
}

.utility-link:hover {
  color: #ffffff;
}

.utility-link:hover svg {
  transform: translateX(3px);
}

.utility-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.utility-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d7e8dc;
  transition: color var(--transition-fast);
}

.utility-contact-item svg {
  width: 13px;
  height: 13px;
  color: var(--brand-mint);
}

.utility-contact-item:hover {
  color: #ffffff;
}

.utility-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Main Site Header (Always Full-Width & Properly Contained — Zero Overflow)
   ========================================================================== */
.site-header {
  position: relative;
  width: 100%;
  height: var(--header-height);
  background: rgba(250, 254, 251, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(34, 197, 94, 0.14);
  transition:
    background-color var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
}

.header-wrapper.is-scrolled .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(34, 197, 94, 0.2);
  box-shadow: var(--shadow-scrolled);
}

.header-container {
  width: 100%;
  max-width: 1380px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Edge-to-Edge Smooth Emerald Scroll Progress Line */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-mint));
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: opacity var(--transition-fast);
  will-change: transform;
  pointer-events: none;
}

.header-wrapper.is-scrolled .scroll-progress {
  opacity: 1;
}

/* ==========================================================================
   Brand Logo
   ========================================================================== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  outline: none;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-logo:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 4px;
  border-radius: 8px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-forest);
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.brand-erp {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--brand-mint) 0%, var(--brand-secondary) 55%, var(--brand-primary) 100%);
  padding: 3px 6px;
  border-radius: 6px;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.28);
}

.brand-tagline {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-forest-soft);
  margin-top: 3px;
}

.brand-logo--compact .brand-mark {
  width: 36px;
  height: 36px;
}

.brand-logo--compact .brand-name {
  font-size: 1.3rem;
}

/* ==========================================================================
   Desktop Navigation (Modern Soft-Pill Hover + Active State)
   ========================================================================== */
.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 11px;
  border-radius: var(--radius-btn);
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.005em;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.nav-item.is-open > .nav-link {
  color: var(--brand-primary);
  background-color: var(--brand-pill-bg);
}

.nav-link.active {
  font-weight: 600;
}

.nav-link:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

.chevron-icon {
  width: 14px;
  height: 14px;
  color: var(--brand-secondary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav-item.is-open .chevron-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   Enterprise Dropdown & Mega-Menu Panels
   ========================================================================== */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate3d(-50%, 8px, 0);
  width: 350px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast),
    visibility var(--transition-fast);
  z-index: 1050;
}

.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 18px;
}

.dropdown-panel--featured {
  width: 620px;
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 14px;
  padding: 14px;
}

.dropdown-panel--mega {
  width: min(800px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 1.85fr 0.85fr;
  gap: 14px;
  padding: 16px;
}

.nav-item.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}

.dropdown-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-forest-soft);
  padding: 4px 10px 10px;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.dropdown-grid--two-col {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.dropdown-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 11px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.dropdown-card:hover,
.dropdown-card:focus-visible {
  background-color: var(--brand-soft-bg);
  outline: none;
}

.dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.14);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-icon svg {
  width: 18px;
  height: 18px;
}

.dropdown-card:hover .dropdown-icon {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-info strong {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.dropdown-info small {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Mega-Menu Dark Forest-Green Featured Card */
.dropdown-featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 20px 18px;
  background: linear-gradient(155deg, var(--brand-forest) 0%, var(--brand-forest-dark) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.dropdown-featured-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.featured-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(74, 222, 128, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--brand-mint);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dropdown-featured-card h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.dropdown-featured-card p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #cde0d2;
}

.featured-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--brand-mint) 0%, var(--brand-secondary) 100%);
  color: var(--brand-forest-dark);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.featured-cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.featured-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -4px rgba(74, 222, 128, 0.45);
}

.featured-cta:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Right Actions: Portal Login + Book a Demo (Silky Smooth Hover)
   ========================================================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  border: 1.5px solid rgba(22, 163, 74, 0.45);
  background-color: rgba(240, 253, 244, 0.9);
  color: var(--brand-forest);
  font-size: 0.86rem;
  font-weight: 600;
  animation: loginPulseBlink 1.9s ease-in-out infinite;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
}

.btn-login::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  animation: loginDotBlink 1.9s ease-in-out infinite;
}

@keyframes loginPulseBlink {
  0%, 100% {
    border-color: rgba(22, 163, 74, 0.35);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.42);
  }
  50% {
    border-color: #16a34a;
    background-color: #ecfdf5;
    box-shadow: 0 0 0 7px rgba(22, 163, 74, 0);
  }
}

@keyframes loginDotBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.65);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0);
  }
}

.btn-login svg {
  width: 15px;
  height: 15px;
  color: var(--brand-primary);
}

.btn-login:hover {
  animation-play-state: paused;
  border-color: var(--brand-secondary);
  background-color: var(--brand-soft-bg);
  color: var(--brand-primary);
  box-shadow: 0 6px 16px -6px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
}

.btn-login:hover::before {
  animation-play-state: paused;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .btn-login,
  .btn-login::before {
    animation: none;
  }
}

.btn-login--full {
  width: 100%;
  padding: 13px 20px;
}

/* Smooth gradient position shift instead of abrupt gradient swap */
.btn-demo {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  background-image: linear-gradient(115deg, #22c55e 0%, #16a34a 45%, #2f5429 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: var(--text-white);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-btn);
  transition:
    background-position 420ms var(--ease-smooth),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn-demo svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition-fast);
}

.btn-demo:hover {
  background-position: 100% 50%;
  transform: translateY(-1.5px);
  box-shadow: 0 10px 24px -4px rgba(34, 197, 94, 0.5);
}

.btn-demo:hover svg {
  transform: translateX(3px);
}

.btn-demo:active {
  transform: translateY(0);
}

.btn-demo:focus-visible,
.btn-login:focus-visible {
  outline: 2px solid var(--brand-mint);
  outline-offset: 3px;
}

.btn-demo--full {
  width: 100%;
  padding: 14px 24px;
}

/* ==========================================================================
   Mobile Hamburger Button
   ========================================================================== */
.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background-color: rgba(34, 197, 94, 0.12);
  transition: background-color var(--transition-fast);
}

.mobile-toggle:hover {
  background-color: rgba(34, 197, 94, 0.22);
}

.hamburger-line {
  width: 20px;
  height: 2.2px;
  border-radius: 2px;
  background-color: var(--brand-forest);
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

.mobile-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
}

.mobile-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Slide-Over Drawer & Backdrop
   ========================================================================== */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 38, 22, 0.52);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
  z-index: 1090;
}

.mobile-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100dvh;
  background: #ffffff;
  box-shadow: -12px 0 40px rgba(24, 48, 22, 0.2);
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform var(--transition-smooth);
  will-change: transform;
  z-index: 1100;
}

.mobile-drawer.is-open {
  transform: translate3d(0, 0, 0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-forest);
  background: #f1f8f3;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-close-btn:hover {
  background-color: var(--brand-soft-bg);
  color: var(--brand-primary);
}

.mobile-close-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link,
.mobile-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-main);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active,
.mobile-accordion-trigger:hover,
.mobile-accordion.is-open .mobile-accordion-trigger {
  background-color: var(--brand-soft-bg);
  color: var(--brand-primary);
}

.mobile-accordion.is-open .chevron-icon {
  transform: rotate(180deg);
}

.mobile-accordion-content {
  display: none;
  flex-direction: column;
  padding: 4px 0 8px 16px;
  gap: 2px;
}

.mobile-accordion.is-open .mobile-accordion-content {
  display: flex;
}

.mobile-sublink {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 2px solid rgba(34, 197, 94, 0.24);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.mobile-sublink:hover {
  background-color: #f3fcf6;
  color: var(--brand-primary);
  border-left-color: var(--brand-secondary);
}

.mobile-drawer-footer {
  padding: 16px 22px 24px;
  border-top: 1px solid var(--border-subtle);
  background: #f8fdf9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Book a Demo Modal (Executive 2-Column Split)
   ========================================================================== */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 28, 18, 0.56);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
  z-index: 1200;
}

.demo-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.demo-modal-card {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border-radius: 18px;
  padding: 0;
  border: 1px solid #d9e8de;
  box-shadow:
    0 32px 72px -18px rgba(10, 30, 16, 0.34),
    0 8px 20px -8px rgba(10, 30, 16, 0.14);
  overflow: hidden;
  transform: translate3d(0, 14px, 0) scale(0.97);
  transition: transform var(--transition-smooth);
}

.demo-modal-overlay.is-open .demo-modal-card {
  transform: translate3d(0, 0, 0) scale(1);
}

.demo-modal-split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f3f8f5;
  color: #364a3b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: #e4f3ea;
  color: #15803d;
}

.modal-close-btn svg {
  width: 16px;
  height: 16px;
}

/* Left Executive Info Sidebar */
.demo-modal-aside {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: linear-gradient(160deg, #f3faf5 0%, #e7f5ec 100%);
  border-right: 1px solid #dcece1;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d2e9d9;
  color: #15803d;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.modal-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.demo-modal-aside h3 {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #122116;
  margin-bottom: 8px;
}

.demo-modal-aside h3 span {
  color: #15803d;
}

.demo-aside-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #536557;
  margin-bottom: 22px;
}

.demo-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.demo-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.demo-perk-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #15803d;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.demo-perk-icon svg {
  width: 12px;
  height: 12px;
}

.demo-perks strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #122116;
  line-height: 1.25;
}

.demo-perks span {
  display: block;
  font-size: 0.74rem;
  color: #5c6e60;
  line-height: 1.4;
}

.demo-aside-trust {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #d5e7db;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.73rem;
  color: #56685a;
}

.demo-aside-trust strong {
  font-family: "Sora", sans-serif;
  color: #15803d;
  font-weight: 800;
}

.demo-trust-sep {
  width: 1px;
  height: 12px;
  background: #c7dfd0;
}

/* Right Form Column */
.demo-modal-main {
  padding: 32px 32px 28px;
  background: #ffffff;
}

.demo-form-head {
  margin-bottom: 18px;
  padding-right: 30px;
}

.demo-form-head h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: #122116;
  margin-bottom: 3px;
}

.demo-form-head p {
  font-size: 0.8rem;
  color: #607164;
  line-height: 1.45;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #253829;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #6b7e70;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 10px 13px 10px 38px;
  border-radius: 10px;
  border: 1.5px solid #dde8e0;
  background: #f9fcfa;
  color: #122116;
  font-size: 0.86rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-field input::placeholder {
  color: #8b9a8f;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #15803d;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.14);
}

.input-with-icon:focus-within svg {
  color: #15803d;
}

.form-field input.is-invalid,
.form-field select.is-invalid {
  border-color: #dc2626;
}

.demo-submit-btn {
  margin-top: 4px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.demo-form-footnote {
  text-align: center;
  font-size: 0.72rem;
  color: #6f8073;
  margin-top: -2px;
}

.demo-success {
  text-align: center;
  padding: 28px 8px 12px;
}

.success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-mint), var(--brand-primary));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -4px rgba(34, 197, 94, 0.45);
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.demo-success h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-forest);
  margin-bottom: 8px;
}

@media (max-width: 760px) {
  .demo-modal-card {
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
  }

  .demo-modal-split {
    grid-template-columns: 1fr;
  }

  .demo-modal-aside {
    padding: 22px 22px 18px;
    border-right: none;
    border-bottom: 1px solid #dcece1;
  }

  .demo-perks,
  .demo-aside-trust {
    display: none;
  }

  .demo-aside-desc {
    margin-bottom: 0;
  }

  .demo-modal-main {
    padding: 22px;
  }

  .form-row--two {
    grid-template-columns: 1fr;
  }
}

.demo-success p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* ==========================================================================
   Minimal Ambient Canvas (Allows smooth scroll testing)
   ========================================================================== */
.header-preview-canvas {
  position: relative;
  min-height: 160vh;
  padding-top: calc(var(--utility-height) + var(--header-height));
  overflow: hidden;
  background: linear-gradient(180deg, #f8fdf9 0%, #edf8f1 100%);
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  pointer-events: none;
}

.ambient-glow--right {
  width: 440px;
  height: 440px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.28) 0%, rgba(34, 197, 94, 0) 70%);
}

.ambient-glow--left {
  width: 340px;
  height: 340px;
  top: 80px;
  left: -100px;
  background: radial-gradient(circle, rgba(55, 76, 49, 0.1) 0%, rgba(55, 76, 49, 0) 70%);
}

/* ==========================================================================
   Responsive Breakpoints (Zero Overflow at Every Width)
   ========================================================================== */

/* Compact Laptop */
@media (max-width: 1320px) {
  .nav-list {
    gap: 2px;
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 0.85rem;
  }

  .btn-login {
    padding: 9px 13px;
    font-size: 0.82rem;
  }

  .btn-demo {
    padding: 10px 17px;
    font-size: 0.84rem;
  }
}

/* Switch cleanly to Drawer BEFORE any nav item or button can crowd/overflow */
@media (max-width: 1180px) {
  :root {
    --header-height: 72px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }
}

/* Small Tablet */
@media (max-width: 780px) {
  .utility-contacts {
    display: none;
  }

  .utility-announcement {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 580px) {
  :root {
    --utility-height: 0px;
  }

  .top-utility-bar {
    display: none;
  }

  .header-wrapper.is-scrolled {
    transform: translate3d(0, 0, 0);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.32rem;
  }

  .brand-tagline {
    font-size: 0.5rem;
  }

  .header-actions .btn-login,
  .header-actions .btn-demo {
    display: none;
  }

  .form-row--two {
    grid-template-columns: 1fr;
  }
}
