@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  background: #fbf9ff url("../images/background.webp") center/cover fixed no-repeat;
  overflow-x: hidden;
}

.brand {
  position: relative;
  z-index: 20;
  width: min(1556px, calc(100% - 116px));
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  text-decoration: none;
}

.brand .brand-mark {
  display: block;
  width: 69px;
  height: 69px;
  object-fit: contain;
}

.brand .brand-text {
  display: block;
  width: 235px;
  height: auto;
}

.desktop-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 3vw, 52px);
}

.desktop-nav a {
  position: relative;
  padding: 12px 0 14px;
  color: #090d4d;
  font-size: clamp(15px, 1.08vw, 18px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e94bd8, #8a48fb 52%, #3b91ff);
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .18s ease, transform .18s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta {
  min-width: 190px;
  height: 55px;
  padding: 0 22px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(100deg, #ee58c7, #b34eea 52%, #448cff);
  box-shadow: 0 8px 20px rgba(135, 76, 224, .16);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta span {
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.page-social-footer {
  position: relative;
  z-index: 4;
  padding: 30px 58px 24px;
}

.social-links {
  width: min(1050px, 100%);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid #ddd8f2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.social-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #404a85;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.social-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 0;
  width: 1px;
  height: 28px;
  background: #cfc8ee;
}

.social-links svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: #7255f5;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links .icon-fill {
  fill: #7255f5;
  stroke: none;
}

.social-links .icon-cutout {
  fill: #fff;
  stroke: none;
}

.social-links .tiktok-icon .icon-fill {
  fill: #080d3f;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: #563bf1;
}

@media (max-width: 1180px) {
  .brand {
    width: min(calc(100% - 48px), 1120px);
  }

  .desktop-nav {
    gap: 22px;
  }

  .header-cta {
    min-width: 170px;
    padding-inline: 17px;
    font-size: 16px;
  }
}

@media (max-width: 860px) {
  .brand {
    width: calc(100% - 36px);
    padding-top: 20px;
    gap: 9px;
  }

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

  .brand .brand-text {
    width: 168px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 10px 7px;
    border: 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    color: #111653;
    background: rgba(255,255,255,.72);
    box-shadow: 0 5px 16px rgba(72, 57, 130, .10);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    padding: 14px;
    border: 1px solid rgba(213, 207, 239, .8);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 40px rgba(48, 37, 108, .15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 12px 14px;
    border-radius: 11px;
    color: #0b1050;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    background: #f5f1ff;
  }

  .mobile-nav .mobile-cta {
    margin-top: 6px;
    color: #fff;
    text-align: center;
    background: linear-gradient(100deg, #ee58c7, #a34cf2 52%, #448cff);
  }

  .page-social-footer {
    padding: 28px 24px 24px;
  }

  .social-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 0;
  }

  .social-links a {
    font-size: 14px;
    white-space: normal;
  }

  .social-links a:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand .brand-text {
    width: 147px;
  }

  .page-social-footer {
    padding: 24px 14px 20px;
  }

  .social-links {
    gap: 13px 0;
    padding-top: 16px;
  }

  .social-links a {
    gap: 8px;
    font-size: 12px;
  }

  .social-links svg {
    width: 23px;
    height: 23px;
  }
}
