/* Shared header & footer + global responsive base */
:root {
  --grad: linear-gradient(90deg, rgba(50, 165, 251, 1) 0%, rgba(57, 30, 149, 1) 100%);
  --dark: #212B36;
  --mid: #454F5B;
  --light-bg: #F9FAFB;
  --black: #000;
  --page-pad: clamp(16px, 6vw, 180px);
  --page-pad-sm: clamp(16px, 4vw, 80px);
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  max-width: 100vw;
}

img,
video,
svg,
iframe,
table {
  max-width: 100%;
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 4px;
  background-image: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 20px;
  transition: opacity .2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
}

.btn-gradient:hover {
  opacity: .85;
}

/* Fixed site nav — overrides styles.css .nav */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 0px solid rgba(33, 43, 54, .06);
  display: block;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

header.nav.is-scrolled,
header.nav.nav--scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(33, 43, 54, .08);
}

header.nav .nav-inner {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 2vw, 1.25rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 40px);
}

header.nav .nav-link.nav-link--active,
header.nav .nav-link--active {
  font-weight: 700;
  color: #32A5FB;
  background: linear-gradient(96deg, #32A5FB 0%, #391E95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Nav Item & Dropdown Menu ── */
.nav-item--dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Hover bridge to keep dropdown open when cursor moves to panel */
.nav-item--dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 20px;
  background: transparent;
}

.nav-link--dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-chevron {
  margin-left: 6px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  stroke-width: 2.2;
}

.nav-item--dropdown.is-open .nav-dropdown-chevron,
.nav-item--dropdown.is-dropdown-open .nav-dropdown-chevron {
  transform: rotate(180deg);
  color: #32A5FB;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: max-content;
  min-width: 620px;
  max-width: 680px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(50, 165, 251, 0.18);
  border-radius: 18px;
  box-shadow: 0 20px 48px -12px rgba(57, 30, 149, 0.15), 0 0 1px rgba(0, 0, 0, 0.08);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 1000;
}

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

.nav-dropdown-inner {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(33, 43, 54, 0.06);
}

.nav-dropdown-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #32A5FB;
  background: linear-gradient(135deg, rgba(50, 165, 251, 0.12) 0%, rgba(57, 30, 149, 0.08) 100%);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(50, 165, 251, 0.2);
}

.nav-dropdown-tagline {
  font-size: 0.8rem;
  color: #637381;
  font-weight: 500;
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.nav-dropdown-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
}

.nav-dropdown-card:hover {
  background: linear-gradient(135deg, rgba(50, 165, 251, 0.07) 0%, rgba(57, 30, 149, 0.04) 100%);
  border-color: rgba(50, 165, 251, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(50, 165, 251, 0.08);
}

.nav-dropdown-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(50, 165, 251, 0.1) 0%, rgba(57, 30, 149, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s ease, background 0.22s ease;
}

.nav-dropdown-card:hover .nav-dropdown-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(50, 165, 251, 0.2) 0%, rgba(57, 30, 149, 0.16) 100%);
}

.nav-dropdown-content {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #212B36;
  transition: color 0.2s;
  margin-bottom: 2px;
  display: block;
}

.nav-dropdown-card:hover .nav-dropdown-title {
  color: #32A5FB;
  background: linear-gradient(96deg, #32A5FB 0%, #391E95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-dropdown-desc {
  font-size: 0.78rem;
  color: #637381;
  line-height: 1.35;
  margin: 0;
  font-weight: 400;
}

.nav-dropdown-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(33, 43, 54, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-dropdown-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #32A5FB;
  transition: all 0.2s;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(50, 165, 251, 0.08);
  border: 1px solid rgba(50, 165, 251, 0.15);
}

.nav-dropdown-all-btn:hover {
  background: var(--grad);
  color: #FFFFFF;
  border-color: transparent;
  transform: translateX(2px);
}

.nav-dropdown-all-btn svg {
  transition: transform 0.2s ease;
}

.nav-dropdown-all-btn:hover svg {
  transform: translateX(3px);
}

.hero .case-image img {
  height: auto;
  position: relative;
}

.hero .case-image {
  position: relative;
  padding-top: 479px;
}

.hero .case-image:after {
  background: url(../src/hero-bottom.png);
  position: absolute;
  left: 0;
  right: 0;
  content: "";
  bottom: 0;
  top: inherit;
  width: 100%;
  height: 367px;
  z-index: 3;
}

.hero .case-image .case-compare::before {
  background: url(../src/hero-bottom.png);
  position: absolute;
  left: 0;
  right: 0;
  content: "";
  bottom: inherit;
  top: 0;
  width: 100%;
  height: 367px;
  z-index: 4;
  transform: rotate(180deg);
}

.hero .case-image .case-compare::after {
  background: url(../src/hero-bottom.png);
  position: absolute;
  left: 0;
  right: 0;
  content: "";
  bottom: inherit;
  top: 0;
  width: 100%;
  height: 367px;
  z-index: 4;
  transform: rotate(180deg);
}

.hero .case-compare-line {
  left: 50%;
  width: 8px;
  margin-left: -1.5px;
  background: #212b36b3;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25) !important;
}

.hero .case-image .case-compare {
  aspect-ratio: inherit;
  position: relative;
}

/* .hero .case-image:before {
  background: url(./src/hero-top.png);
  position: absolute;
  left: 0;
  right: 0;
  content: "";
  bottom: inherit;
  top: 0;
  width: 100%;
  height: 479px;
  z-index: 3;
} */


header.nav .nav-logo {
  flex-shrink: 0;
}

header.nav .nav-logo img {
  height: clamp(32px, 5vw, 48px);
  width: auto;
  object-fit: contain;
  display: block;
}

header.nav .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  margin-inline: auto;
}

header.nav .nav-link {
  font-size: clamp(0.95rem, 1.2vw, 1.25rem);
  font-weight: 500;
  color: var(--mid);
  letter-spacing: -.2px;
  transition: color .2s;
  white-space: nowrap;
  -webkit-text-fill-color: unset;
  background: none;
}

header.nav .nav-link:hover {
  color: var(--dark);
}

header.nav .nav-link--active {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(1rem, 1.3vw, 1.375rem);
}

header.nav .nav-cta {
  flex-shrink: 0;
}

header.nav .nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

header.nav .nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* Offset content for fixed header on inner pages */
body.inner-page {
  padding-top: 80px;
}

/* Site footer — overrides styles.css .footer */
footer.footer {
  background: var(--black);
  border-radius: 32px;
  margin: 90px auto 0 auto;
  max-width: 1840px;
  overflow: hidden;
  display: block;
  padding: 0;
  width: calc(100% - 80px);
}

footer.footer .footer-inner {
  padding: clamp(40px, 5vw, 80px) var(--page-pad) clamp(24px, 3vw, 40px);
}

footer.footer .footer-top {
  display: flex;
  gap: clamp(32px, 5vw, 92px);
  margin-bottom: 60px;
}

footer.footer .footer-brand {
  flex-shrink: 0;
  max-width: 346px;
  align-items: self-start;
}

footer.footer .footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 43px;
  display: block;
}

footer.footer .footer-tagline {
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  letter-spacing: -.32px;
  margin: 0;
  text-transform: capitalize;
}

footer.footer .footer-links {
  display: flex;
  gap: clamp(32px, 5vw, 92px);
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

footer.footer .footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #fff;
  min-width: 120px;
}

footer.footer .footer-col-title {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 20px;
}

footer.footer .footer-col a {
  font-size: 1rem;
  line-height: 40px;
  color: #fff;
  opacity: .8;
  transition: opacity .2s;
}

footer.footer .footer-col a:hover {
  opacity: 1;
}

footer.footer .footer-divider {
  height: 1px;
  background: linear-gradient(30deg, #32A5FB, #391E95);
  opacity: .5;
  margin-bottom: 20px;
  margin-inline: 0;
}

footer.footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -.32px;
  padding-inline: 0;
}

footer.footer .footer-bottom p {
  margin: 0;
}

footer.footer .footer-bottom p a:hover {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: 0.4s;
}

footer.footer .footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

footer.footer .footer-legal a {
  color: #fff;
  opacity: .8;
}

footer.footer .footer-legal a:hover {
  opacity: 1;
}

@media (max-width: 1580px) {
  header.nav .nav-inner {
    max-width: 95%;
  }

  footer.footer {
    margin: 50px auto 0 auto;
  }

  .hero .case-image .case-compare::after,
  .hero .case-image .case-compare::before,
  .hero .case-image:after {
    background-size: 100% 250px;
    background-repeat: no-repeat;
    height: 250px;
  }
}

@media (max-width: 1200px) {
  footer.footer .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  footer.footer .footer-links {
    justify-content: flex-start;
  }

  .hero .case-image .case-compare::after,
  .hero .case-image .case-compare::before,
  .hero .case-image:after {
    background-size: 100% 150px;
    background-repeat: no-repeat;
    height: 150px;
  }
}

@media (max-width: 1024px) {
  footer.footer {
    width: calc(100% - 24px);
  }

  body.inner-page {
    padding-top: 72px;
  }

  .page-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  footer.footer {
    margin: 30px auto 0 auto;
  }

  header.nav {
    height: 72px;
  }

  header.nav .nav-links {
    display: none;
  }

  header.nav .nav-links.is-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
    z-index: 99;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    height: 100vh;
    align-items: self-start;
  }

  header.nav .nav-links.is-open .nav-item--dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

 header.nav .nav-links.is-open .nav-link--dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    display: flex;
    align-items: center;
}

header.nav .nav-link {
    border-bottom: 1px solid #cdcdcd;
    width: 100%;
    padding: 0 0 20px 0;
}

  header.nav .nav-links.is-open .nav-dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 1px solid rgba(50, 165, 251, 0.15);
    box-shadow: none;
    backdrop-filter: none;
    background: #F8FAFC;
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* header.nav .nav-links.is-open .nav-item--dropdown.is-open .nav-dropdown-menu,
  header.nav .nav-links.is-open .nav-item--dropdown:hover .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
  } */

  header.nav .nav-links.is-open .nav-item--dropdown.is-open .nav-dropdown-menu,
  header.nav .nav-links.is-open .nav-item--dropdown.is-dropdown-open .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
}

  header.nav .nav-links.is-open .nav-dropdown-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  header.nav .nav-links.is-open .nav-dropdown-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  header.nav .nav-burger {
    display: flex;
  }

  header.nav .nav-cta {
    font-size: .875rem;
    padding: 10px 16px;
  }

  header.nav .nav-inner {
    gap: 16px;
    justify-content: space-between;
  }

  footer.footer {
    margin: 24px 12px 0;
    border-radius: 20px;
  }

  footer.footer .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  footer.footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  footer.footer .footer-legal {
    justify-content: center;
  }

  .hero-content {
    top: 160px;
  }

  .hero .case-image {
    padding-top: 360px;
  }

  .hero .case-image:after {
    background-size: 100% 100px;
    background-repeat: no-repeat;
    height: 100px;
  }

  .hero .case-image .case-compare::before {
    background-size: 100% 100px;
    background-repeat: no-repeat;
    height: 100px;
  }

  .hero .case-image .case-compare::after {
    background-size: 100% 100px;
    background-repeat: no-repeat;
    height: 100px;
  }

  .hero .case-compare-line {
    width: 5px;
  }
}

@media (max-width: 600px) {
  .hero .case-image .case-compare::before {
    background-size: 100% 70px;
    background-repeat: no-repeat;
    height: 70px;
  }

  .hero .case-image .case-compare::after {
    background-size: 100% 70px;
    background-repeat: no-repeat;
    height: 70px;
  }

  /* header.nav .nav-cta {
    display: none;
  } */

  footer.footer .footer-logo {
    height: 48px;
  }

  .hero-content {
    top: 110px;
  }

  header.nav .nav-inner {
    max-width: 100%;
  }
}