:root {
  /* ─── Brand Core ─── */
  --mareana-primary: #4361ee;
  --mareana-primary-2: #5a1aee;
  --mareana-secondary: #8ea0f5;
  --mareana-cyan: #4cc9f0;

  /* ─── Brand Gradient ─── */
  --bg-gradient: linear-gradient(
    225deg,
    var(--mareana-primary) 0%,
    var(--mareana-secondary) 100%
  );

  /* ─── Text Gradient (for headings) ─── */
  --text-gradient: linear-gradient(
    90deg,
    var(--mareana-cyan) 0%,
    var(--mareana-primary) 100%
  );

  /* ─── Foregrounds ─── */
  --foreground-primary: #1a181b;
  --foreground-secondary: #505050;
  --foreground-white: #ffffff;

  /* ─── Semantic Accents ─── */
  --accent-danger: #f94e9b;
  --accent-success: #42ead4;

  /* ─── Borders ─── */
  --mareana-border: #e7e7e7;

  /* ─── Surfaces ─── */
  --surface-black: #1a181b;
  --surface-white: #ffffff;
  --black: #000000;

  /* ─── Glassmorphism System ─── */
  --glass-bg-default: rgba(255, 255, 255, 0.08);
  --glass-bg-scrolled: rgba(10, 10, 10, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-scrolled: rgba(255, 255, 255, 0.15);
}

* {
  padding: 0;
}

li {
  list-style: none;
}

ul {
  padding: 0;
  margin: 0;
}
/* Header Styles */
.header-wrapper {
  position: relative;
  z-index: 100;
  padding-top: 24px;
}

.menu-item {
  width: 100%;
}

.header-nav {
  padding: 8px 8px 8px 32px;
  width: 1100px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 9999;
}
@media (max-width: 1024px) {
  .header-nav {
    padding: 16px 16px 16px 24px;
  }
}

.header-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  transition: all 0.3s ease;
}

.header-nav.mn-scrolled::before {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Design Fix - 24 APR: Dynamic Navbar Light Mode */
.header-nav.nav-light::before {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-nav.nav-light.mn-scrolled::before {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.15);
}

.header-nav.nav-light .nav-link,
.header-nav.nav-light .nav-dropdown {
  color: var(--foreground-primary) !important;
}

.header-nav.nav-light .brand-logo {
  filter: invert(1) brightness(0.2);
}

/* Ensure hamburger icon turns dark in light mode */
.header-nav.nav-light #hdrHamburger span {
  background-color: var(--foreground-primary);
}

.logo-container {
  width: 141px;
  height: 32px;
}

@media (max-width: 991.98px) {
  .header-nav {
    /* padding: 14px 20px; */
    margin: 0 16px;
  }

  .logo-container svg {
    width: 120px;
  }

  .cta-button span {
    display: none;
  }

  .cta-button {
    padding: 6px;
    gap: 0;
  }

  .hdr-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
  }

  .hdr-ham-bar {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
  }

  .hdr-mobile-menu {
    --hdr-mobile-menu-space: 8px;
    --hdr-mobile-row-x: 24px;
    display: none;
    flex-direction: column;
    gap: var(--hdr-mobile-menu-space) !important;
    background: #000000;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 8px 0 0;
    padding: var(--hdr-mobile-menu-space);
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-align: left;
    overflow: hidden;
  }

  .hdr-mobile-menu.active {
    display: flex;
  }

  .hdr-mobile-link,
  .hdr-mobile-dropdown {
    font-family: "Poppins", sans-serif;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1;
    color: white;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.6);
    border: 0;
    border-radius: 8px;
    text-align: left;
    padding: 18px var(--hdr-mobile-row-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .hdr-mobile-link {
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hdr-mobile-group {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
  }

  .hdr-mobile-dropdown {
    width: 100%;
    cursor: pointer;
  }

  .hdr-mobile-dropdown .chevron-icon {
    width: 24px;
    height: 24px;
    margin-left: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

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

  .hdr-mobile-dropdown.open {
    border-bottom: 0;
    margin-bottom: 0;
  }

  /* Mobile accordion sub-menu */
  .hdr-mobile-sub {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    margin: 0;
    gap: 0;
    background: #232323;
    overflow: hidden;
  }

  .hdr-mobile-sub.open {
    display: flex;
  }

  .hdr-mobile-sub a {
    color: #fff;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1;
    text-decoration: none;
    padding: 18px var(--hdr-mobile-row-x);
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition:
      background 0.2s ease,
      color 0.2s ease;
  }

  .hdr-mobile-sub a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .hdr-hamburger.active .hdr-ham-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hdr-hamburger.active .hdr-ham-bar:nth-child(2) {
    opacity: 0;
  }

  .hdr-hamburger.active .hdr-ham-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media screen and (max-width: 992px) {
  .logo-container {
    width: 106px;
    height: 24px;
  }
  .logo-container img {
    width: 100%;
  }
}

.nav-link {
  font-size: 16px;
  font-weight: 400;
  color: var(--foreground-white) !important;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s;
  line-height: 1.3;
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-dropdown {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 400;
  color: white;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.3s;
  padding: 0;
  line-height: 1.3;
}

.nav-dropdown:hover {
  opacity: 0.8;
}

.nav-dropdown-wrapper {
  position: relative;
  padding: 10px 0;
}

.dropdown-menu-glass {
  position: absolute;
  top: 100%;
  margin-top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: #ffffff;
  border: 1px solid var(--mareana-border);
  border-radius: 16px;
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.dropdown-menu-glass::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 0;
  right: 0;
  height: 25px;
}

.nav-dropdown-wrapper:hover .dropdown-menu-glass {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu-glass a {
  color: var(--foreground-secondary) !important;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 15px;
  transition:
    background 0.2s ease,
    padding-left 0.2s ease;
}

.dropdown-menu-glass a:hover {
  background: #f8f9fa;
  color: var(--mareana-primary) !important;
}

.chevron-icon {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.chevron-icon path {
  stroke: currentColor;
}

.nav-dropdown-wrapper:hover .chevron-icon {
  transform: rotate(180deg);
}

@media (min-width: 992px) {
  .hdr-mobile-menu {
    display: none !important;
  }

  .hdr-hamburger {
    display: none !important;
  }
}

.btn-pill {
  border: none;
  border-radius: 100px;
  padding: 6px 6px 6px 20px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  gap: 15px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

/* Design Update - 26 APR: Text Sliding Animation */
.btn-text-inner {
  position: relative;
  height: 1.2em;
  /* Relative to font-size for proper scaling */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn-text-main,
.btn-text-hover {
  display: block;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pill:hover .btn-text-main {
  transform: translateY(-100%);
}

.btn-pill:hover .btn-text-hover {
  transform: translateY(-100%);
}

/* Design Update - 26 APR: Double-Arrow Sliding Animation */
.btn-pill .arrow-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.3s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.arrow-inner-wrapper {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 24px;
  transform: translateX(-22px);
}

.arrow-inner-wrapper svg {
  flex-shrink: 0;
}

.btn-pill:hover .arrow-inner-wrapper {
  transform: translateX(22px);
}

/* Primary Variant */
.btn-primary {
  background: var(--bg-gradient);
  color: var(--foreground-white);
}

.btn-primary .arrow-circle {
  background: var(--surface-white);
}

.btn-primary .arrow-circle svg path {
  stroke: var(--foreground-primary);
}

/* Secondary Variant */
.btn-secondary {
  background: var(--surface-white);
  color: var(--foreground-primary);
}

.btn-secondary .arrow-circle {
  background: var(--bg-gradient);
}

.btn-secondary .arrow-circle svg path {
  stroke: var(--foreground-white);
}

@media (max-width: 767px) {
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn-pill {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-right: 56px;
    text-align: center;
  }

  .hero-buttons .btn-pill .arrow-circle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 1024px) {
  .header-nav {
    padding: 16px 16px 16px 24px;
  }
}
