a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.9; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  padding: 53px 100px 0;
  border: none;
  transition: background 180ms ease, box-shadow 180ms ease;
}

/* Extra large screen styles (xl: 1280px+) */
@media (min-width: 1280px) {
  .header { padding: 53px 143px 0; }
  .header-divider { padding: 12px 143px 0; }
}
.header.scrolled {
  background: var(--color-white-value);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.header-divider {
  padding: 12px 100px 0;
  margin-top: 12px;
  border-top: 0;
  border-bottom: 0.5px solid #d7d7d7;
}
.logo img {
  height: 29px;
  width: auto;
  transition: height 0.3s ease;
}
.nav { display: flex; gap: 32px; align-items: center; font-size: 15px; color: #717182; margin-right: 12px}
.nav a.active { color: var(--secondary); }
.nav a { color: #717182; }

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
  position: relative;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: #717182;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: var(--color-white-value);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-sidebar.open {
  transform: translateX(0);
}

.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mobile-sidebar.open ~ .mobile-sidebar-overlay,
body.menu-open .mobile-sidebar-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  border-bottom: 0.5px solid #d7d7d7;
}

.mobile-sidebar-logo {
  display: flex;
  align-items: center;
}

.mobile-sidebar-logo img {
  height: 29px;
  width: auto;
}

.mobile-sidebar-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-sidebar-close span {
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #717182;
  border-radius: 2px;
}

.mobile-sidebar-close span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-sidebar-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-sidebar-nav {
  flex: 1;
  padding: 24px 0;
}

.mobile-sidebar-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-sidebar-nav-list li {
  margin: 0;
  padding: 0;
}

.mobile-sidebar-nav-list a {
  display: block;
  padding: 16px 20px;
  font-size: 16px;
  color: #717182;
  text-decoration: none;
  border-bottom: 0.5px solid #f0f0f0;
  transition: color 0.2s ease;
  text-align: left;
}

.mobile-sidebar-nav-list a:not(.mobile-cta-link):hover,
.mobile-sidebar-nav-list a:not(.mobile-cta-link).active {
  color: var(--secondary);
}

.mobile-cta-link {
  background: var(--secondary) !important;
  color: #ffffff !important;
  margin: 0;
  text-align: left;
  box-shadow: 0 10px 30px rgba(100, 128, 206, 0.2);
  border-bottom: none !important;
}

.mobile-cta-link:hover {
  background: var(--secondary) !important;
  opacity: 0.9;
}
.cta-pill {
  background: var(--secondary);
  color: #fff;
  padding: 4px 18px;
  border-radius: 10px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(100, 128, 206, 0.2);
}

/* CTA Dropdown Styles */
.cta-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.cta-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  background-color: #6480CE;
  border-radius: 12px;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.cta-dropdown-wrapper:hover .cta-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cta-dropdown-content {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 48px;
  padding: 40px 48px 48px;
  width: max-content;
}

.cta-dropdown-column {
  display: flex;
  flex-direction: column;
  min-width: max-content;
  width: auto;
}

.cta-dropdown-heading {
  font-family: 'Libre Caslon Text', serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.cta-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-dropdown-list li {
  margin: 0;
  padding: 0;
}

.cta-dropdown-list a {
  font-family: 'Libre Caslon Text', serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.cta-dropdown-list a:hover {
  color: #ffffff;
  opacity: 1;
}

@media (max-width: 1024px) {
  .cta-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }
  
  .cta-dropdown-wrapper:hover .cta-dropdown {
    transform: translateX(-50%) translateY(0);
  }
  
  .cta-dropdown-content {
    grid-template-columns: repeat(3, auto);
    gap: 32px;
    padding: 32px 32px 40px;
  }
}

@media (max-width: 768px) {
  .cta-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }
  
  .cta-dropdown-wrapper:hover .cta-dropdown {
    transform: translateX(-50%) translateY(0);
  }
  
  .cta-dropdown-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px 40px;
  }
  
  .cta-dropdown-list a {
    white-space: normal;
  }
}

.page-main { margin-top: 0; }
.hero-shell { background: var(--color-white-value); }
.hero-offset { margin-top: var(--header-height); }


/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .header { padding: 40px 48px 0; }
  .header-divider { padding: 12px 48px 0; margin-top: 12px; }
  .logo img {
    height: 24px;
  }
  .nav {
    font-size: 14px;
    gap: 24px;
  }
  .cta-pill {
    font-size: 14px;
    padding: 4px 16px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .header { padding: 24px 20px 0; }
  .header-divider { padding: 12px 20px 0; margin-top: 12px; }
  
  /* Hide logo on mobile */
  .logo {
    display: none;
  }
  
  /* Hide desktop nav on mobile */
  .nav {
    display: none;
  }
  
  /* Show hamburger menu on left */
  .mobile-menu-toggle {
    display: flex;
    order: -1;
  }
  
  .header-inner {
    gap: 16px;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container-wide, .container-tight { padding: 0 20px; }
  .header { padding: 20px 16px 0; }
  .header-divider { padding: 12px 16px 0; margin-top: 12px; }
  .hero { padding-top: 16px; }
  
  .mobile-sidebar {
    width: 280px;
  }
}

/* Features Cards Masonry Layout */
.features-masonry {
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .features-masonry {
    column-count: 1;
    column-gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .features-masonry {
    column-count: 2;
    column-gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .features-masonry {
    column-count: 3;
    column-gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .features-masonry {
    column-count: 3;
    column-gap: 2rem;
  }
}

.features-first-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .features-first-row {
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
}

@media (min-width: 768px) {
  .features-first-row {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .features-first-row {
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .features-first-row {
    gap: 2rem;
  }
}

.features-second-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .features-second-row {
    gap: 1.5rem;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .features-second-row {
    gap: 1.5rem;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .features-second-row {
    gap: 2rem;
    justify-content: space-around;
    align-items: flex-start;
  }
}

@media (min-width: 1280px) {
  .features-second-row {
    gap: 2rem;
    justify-content: space-around;
    align-items: flex-start;
  }
}

@media (min-width: 1280px) and (max-width: 1295px) {
  #hero-img-container {
    margin-bottom: 16px !important;
  }
  .features-desc {
    font-size: 20px !important;
  }
}