body.aifa-nav-ready {
  padding-top: 0 !important;
}

body.aifa-nav-ready #aifa-footer-mount {
  margin-top: auto;
}

html.aifa-footer-only-root,
body.aifa-footer-only {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.aifa-footer-only .stage {
  position: relative !important;
  min-height: 100vh;
}

.aifa-global-nav {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: linear-gradient(180deg, #e60ba0 0%, #ffd6f1 100%);
  border-bottom: 1px solid rgba(230, 11, 160, 0.18);
  color: #070811;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.aifa-global-nav * {
  box-sizing: border-box;
}

.aifa-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.72rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.aifa-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #070811;
  text-decoration: none;
  font-weight: 800;
  min-width: 0;
}

.aifa-nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #e60ba0, #c026d3);
  color: #fff;
  font-size: 1rem;
}

.aifa-nav-name {
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  background: none;
  color: #070811;
}

.aifa-nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.22rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aifa-nav-link,
.aifa-nav-trigger {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 0;
  border-radius: 7px;
  padding: 0 0.66rem;
  background: transparent;
  color: #070811;
  text-decoration: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.aifa-nav-link:hover,
.aifa-nav-link:focus-visible,
.aifa-nav-trigger:hover,
.aifa-nav-trigger:focus-visible {
  color: #070811;
  background: rgba(255, 255, 255, 0.32);
  outline: none;
}

.aifa-nav-trigger::after {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.aifa-nav-item {
  position: relative;
}

.aifa-nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 246px;
  padding: 0.45rem;
  border: 1px solid rgba(230, 11, 160, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.aifa-nav-item:last-child .aifa-nav-dropdown,
.aifa-nav-item:nth-last-child(2) .aifa-nav-dropdown {
  left: auto;
  right: 0;
}

.aifa-nav-item:hover .aifa-nav-dropdown,
.aifa-nav-item:focus-within .aifa-nav-dropdown,
.aifa-nav-item.is-open .aifa-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aifa-nav-dropdown a {
  display: block;
  padding: 0.62rem 0.72rem;
  border-radius: 7px;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.25;
}

.aifa-nav-dropdown a:hover,
.aifa-nav-dropdown a:focus-visible {
  color: #070811;
  background: rgba(230, 11, 160, 0.12);
  outline: none;
}

.aifa-nav-cta {
  min-height: 38px;
  padding: 0 0.95rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #e60ba0, #c026d3);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(230, 11, 160, 0.28);
}

.aifa-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(7, 8, 17, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  color: #070811;
  cursor: pointer;
}

.aifa-nav-toggle span,
.aifa-nav-toggle::before,
.aifa-nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.aifa-global-nav.is-open .aifa-nav-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

.aifa-global-nav.is-open .aifa-nav-toggle span {
  opacity: 0;
}

.aifa-global-nav.is-open .aifa-nav-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.aifa-global-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: #0f172a;
  color: #cbd5e1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.aifa-global-footer * {
  box-sizing: border-box;
}

.aifa-footer-inner {
  width: min(1230px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.25rem 0 1.8rem;
}

.aifa-footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(145px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: 3.6rem;
}

.aifa-footer-brand-block {
  max-width: 315px;
}

.aifa-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 1.45rem;
  color: #f8fafc;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
}

.aifa-footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #e60ba0, #c026d3);
  color: #fff;
  font-size: 1rem;
}

.aifa-footer-brand span:last-child {
  background: linear-gradient(135deg, #ff7acb, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aifa-footer-brand-block p,
.aifa-footer-bottom p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.91rem;
  font-weight: 550;
  line-height: 1.7;
}

.aifa-footer-column {
  display: grid;
  align-content: start;
  gap: 0.78rem;
}

.aifa-footer-column h2 {
  margin: 0 0 0.35rem;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.aifa-footer-column a,
.aifa-footer-bottom a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.35;
}

.aifa-footer-column a:hover,
.aifa-footer-column a:focus-visible,
.aifa-footer-bottom a:hover,
.aifa-footer-bottom a:focus-visible {
  color: #fff;
  outline: none;
}

.aifa-footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.aifa-footer-bottom p + p {
  margin-top: 0.32rem;
}

.aifa-footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.aifa-footer-social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 122, 203, 0.24);
  border-radius: 8px;
  background: rgba(230, 11, 160, 0.1);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.aifa-footer-social a:hover,
.aifa-footer-social a:focus-visible {
  border-color: rgba(255, 122, 203, 0.48);
  background: rgba(230, 11, 160, 0.16);
  color: #fff;
  outline: none;
}

@media (max-width: 1040px) {
  .aifa-nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .aifa-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    max-height: calc(100vh - 62px);
    overflow: auto;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid rgba(230, 11, 160, 0.18);
    background: rgba(255, 226, 246, 0.98);
  }

  .aifa-global-nav.is-open .aifa-nav-menu {
    display: grid;
    gap: 0.28rem;
  }

  .aifa-nav-link,
  .aifa-nav-trigger {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 0.8rem;
    font-size: 0.95rem;
  }

  .aifa-nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .aifa-nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: 0.1rem 0 0.45rem;
    padding: 0.3rem;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.62);
  }

  .aifa-nav-item.is-open .aifa-nav-dropdown {
    display: block;
  }
}

@media (max-width: 880px) {
  .aifa-footer-inner {
    padding-top: 3.25rem;
  }

  .aifa-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }

  .aifa-footer-brand-block {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .aifa-footer-inner {
    width: min(100% - 1.5rem, 1230px);
    padding: 2.75rem 0 1.5rem;
  }

  .aifa-footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.6rem;
  }

  .aifa-footer-bottom {
    display: grid;
    align-items: start;
    gap: 1.4rem;
  }

  .aifa-footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .aifa-nav-inner {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .aifa-nav-name {
    font-size: 0.82rem;
    white-space: normal;
  }
}
