/* Final visual polish for the shared NextBias header and footer */
.pro-header.site-header {
  border-bottom-color: color-mix(in srgb, var(--line, rgba(56, 38, 104, .15)) 72%, transparent);
  background: color-mix(in srgb, var(--paper, #fff7fc) 95%, transparent);
  box-shadow: 0 8px 26px rgba(40, 22, 80, .055);
}

.pro-header .header-inner {
  width: min(100% - 48px, 1520px);
  min-height: 78px;
  gap: 16px;
}

.pro-header .brand {
  min-width: 205px;
  gap: 12px;
}

.pro-header .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  box-shadow: 0 10px 26px rgba(118, 87, 255, .22), inset 0 1px rgba(255, 255, 255, .4);
}

.pro-header .brand-copy { gap: 4px; }
.pro-header .brand-copy strong {
  font-size: 21px;
  letter-spacing: -.055em;
}
.pro-header .brand-copy small {
  color: color-mix(in srgb, var(--muted, #69617b) 88%, transparent);
  font-size: 8.5px;
  letter-spacing: .14em;
}

.pro-header .primary-nav {
  padding: 5px;
  border-color: color-mix(in srgb, var(--violet, #7657ff) 13%, var(--line, rgba(56, 38, 104, .15)));
  background: color-mix(in srgb, var(--white, #fff) 91%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 8px 24px rgba(54, 35, 99, .055);
}

.pro-header .primary-nav a {
  min-height: 42px;
  padding-inline: 15px;
  font-size: 12.5px;
}

.pro-header .primary-nav a:hover {
  background: color-mix(in srgb, var(--paper-2, #f2edff) 86%, transparent);
}

.pro-header .primary-nav a[aria-current="page"] {
  background: linear-gradient(110deg, #24183f, #31235a);
  box-shadow: 0 8px 20px rgba(29, 18, 53, .18);
}

.pro-header .header-cta {
  min-height: 46px;
  padding-inline: 20px;
  box-shadow: 0 10px 24px rgba(118, 87, 255, .2);
}

.pro-header .theme-toggle,
.pro-header .menu-toggle {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--white, #fff) 92%, transparent);
  box-shadow: 0 7px 20px rgba(43, 28, 81, .055);
}

html[data-theme="dark"] .pro-header.site-header {
  background: color-mix(in srgb, #151020 94%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .pro-header .primary-nav,
html[data-theme="dark"] .pro-header .theme-toggle,
html[data-theme="dark"] .pro-header .menu-toggle {
  background: color-mix(in srgb, #241a35 92%, transparent);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 8px 24px rgba(0, 0, 0, .16);
}

html[data-theme="dark"] .orbit-note {
  border-color: rgba(255, 255, 255, .16);
  background: linear-gradient(135deg, rgba(24, 17, 42, .97), rgba(43, 30, 72, .95));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .055);
  color: #fff;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
}

html[data-theme="dark"] .orbit-note span {
  color: #ff58bd;
  opacity: 1;
}

.pro-footer.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 4% -30%, rgba(255, 60, 166, .24), transparent 27rem),
    radial-gradient(circle at 96% 10%, rgba(112, 244, 239, .12), transparent 31rem),
    linear-gradient(118deg, #110a20 0%, #1d1237 54%, #30265d 100%);
}

.pro-footer.site-footer::before {
  position: absolute;
  top: -170px;
  left: -120px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(169, 91, 255, .28);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.pro-footer .footer-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1520px);
  padding: 50px 0 22px;
}

.pro-footer .footer-top {
  grid-template-columns: minmax(310px, 1.35fr) repeat(3, minmax(150px, .68fr));
  gap: clamp(36px, 5vw, 78px);
  padding-bottom: 38px;
}

.pro-footer .footer-intro { padding-right: clamp(0px, 2vw, 32px); }
.pro-footer .footer-intro .brand {
  gap: 12px;
  font-size: 22px;
  letter-spacing: -.055em;
}
.pro-footer .footer-intro .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.pro-footer .footer-intro > p {
  max-width: 430px;
  margin: 19px 0 22px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1.65;
}
.pro-footer .footer-cta {
  min-height: 44px;
  padding-inline: 16px;
  border-color: rgba(255, 255, 255, .21);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 28px rgba(4, 1, 12, .12);
}

.pro-footer .footer-column h2 {
  margin: 4px 0 17px;
  color: rgba(255, 255, 255, .42);
  font-size: 9px;
  letter-spacing: .16em;
}
.pro-footer .footer-column nav { gap: 11px; }
.pro-footer .footer-column a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 760;
}
.pro-footer .footer-column a::after {
  color: #70f4ef;
  content: "↗";
  font-size: 9px;
  opacity: 0;
  transform: translate(-3px, 1px);
  transition: opacity .16s ease, transform .16s ease;
}
.pro-footer .footer-column a:hover { color: #fff; text-decoration: none; }
.pro-footer .footer-column a:hover::after { opacity: 1; transform: translate(0, 1px); }
.pro-footer .footer-intro + .footer-column a[href*="guides/"] { display: none; }

.pro-footer .footer-bottom {
  grid-template-columns: minmax(280px, 1fr) auto;
  grid-template-areas:
    "status utility"
    "legal legal";
  gap: 16px 28px;
  padding-top: 20px;
  align-items: center;
}
.pro-footer .footer-status {
  grid-area: status;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 10.5px;
}
.pro-footer .footer-status span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #70f4ef;
  box-shadow: 0 0 0 4px rgba(112, 244, 239, .11), 0 0 16px rgba(112, 244, 239, .28);
}
.pro-footer .footer-utility {
  grid-area: utility;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 0;
}
.pro-footer .footer-utility a {
  display: inline-flex;
  min-height: 32px;
  padding: 0 12px;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .63);
  font-size: 10px;
  font-weight: 760;
}
.pro-footer .footer-utility a:first-child { border-left: 0; }
.pro-footer .footer-utility a:hover { color: #fff; }
.pro-footer .legal {
  grid-area: legal;
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 1080px) {
  .pro-header .brand { min-width: 0; }
  .pro-header .brand-copy small { display: none; }
  .pro-header .primary-nav a { padding-inline: 12px; }
  .pro-footer .footer-top { grid-template-columns: minmax(280px, 1.2fr) repeat(3, minmax(130px, .65fr)); gap: 30px; }
}

@media (max-width: 860px) {
  .pro-header .header-inner,
  .pro-footer .footer-inner { width: min(100% - 28px, 1520px); }
  .pro-header .header-inner { min-height: 70px; }
  .pro-header .brand-mark { width: 43px; height: 43px; border-radius: 13px; }
  .pro-header .brand-copy strong { font-size: 19px; }
  .pro-header .header-cta { min-height: 42px; padding-inline: 15px; }
  .pro-header .theme-toggle,
  .pro-header .menu-toggle { width: 42px; height: 42px; border-radius: 13px; }
  .pro-footer .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-footer .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .pro-header .brand-copy small { display: none; }
  .pro-header .header-cta { display: none; }
  .pro-footer .footer-inner { padding-top: 38px; }
  .pro-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .pro-footer .footer-column:last-child { grid-column: 1 / -1; }
  .pro-footer .footer-bottom {
    grid-template-columns: 1fr;
    grid-template-areas: "status" "utility" "legal";
    align-items: start;
  }
  .pro-footer .footer-utility { justify-content: flex-start; }
  .pro-footer .footer-utility a:first-child { padding-left: 0; }
}

@media (max-width: 420px) {
  .pro-footer .footer-top { grid-template-columns: 1fr; }
  .pro-footer .footer-column:last-child { grid-column: auto; }
}
