.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(8,26,53,.07); background: rgba(255,255,255,.9); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); transition: box-shadow .2s ease, background .2s ease; }
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 10px 34px rgba(8,26,53,.07); }
.nav-container { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 39px; height: 39px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { color: var(--navy-950); font-family: "Manrope", sans-serif; font-size: 1rem; letter-spacing: .055em; }
.brand-copy small { margin-top: 5px; color: var(--blue-600); font-size: .54rem; font-weight: 700; letter-spacing: .21em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a { position: relative; color: #43536a; font-size: .88rem; font-weight: 600; transition: color .2s ease; }
.site-nav > a:not(.nav-button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--blue-600); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.site-nav > a:hover { color: var(--navy-950); }
.site-nav > a:not(.nav-button):hover::after { transform: scaleX(1); }
.site-nav .nav-button { padding: 11px 18px; border-radius: 999px; color: white; background: var(--navy-950); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.site-nav .nav-button:hover { color: white; background: var(--blue-600); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(23,105,255,.2); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; border-radius: 2px; background: var(--navy-950); transition: transform .2s ease; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-size: .94rem; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--navy-950); box-shadow: 0 16px 32px rgba(8,26,53,.18); }
.button-primary:hover { background: var(--blue-600); box-shadow: 0 18px 34px rgba(23,105,255,.24); }
.button-secondary { border-color: var(--line); color: var(--navy-900); background: white; }
.button-secondary:hover { border-color: #bfd0e5; box-shadow: var(--shadow-sm); }
.button-dark { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.button-dark:hover { background: rgba(255,255,255,.14); }
.button-light { color: var(--navy-950); background: white; }
.button-ghost { border-color: rgba(255,255,255,.28); color: white; background: rgba(255,255,255,.05); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--blue-600); font-weight: 700; }
.site-footer { padding: 62px 0 28px; color: #c6d5e8; background: var(--navy-950); }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-copy strong { color: white; }
.footer-top > p { color: #8ea3bf; text-align: center; }
.footer-top nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 22px; font-size: .84rem; font-weight: 600; }
.footer-top nav a:hover, .footer-bottom a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; color: #7387a2; font-size: .78rem; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 14px; right: 14px; display: none; align-items: stretch; gap: 0; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-lg); }
  .site-nav.open { display: grid; }
  .site-nav > a { padding: 14px 12px; }
  .site-nav > a::after { display: none; }
  .site-nav .nav-button { margin-top: 6px; text-align: center; }
  .menu-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

@media (max-width: 760px) {
  .nav-container { min-height: 74px; }
  .brand-mark { width: 35px; height: 35px; }
  .footer-top { grid-template-columns: 1fr; justify-items: start; }
  .footer-top > p { text-align: left; }
  .footer-top nav { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Dark theme update ---------- */
.site-header {
  border-bottom-color: rgba(255, 255, 255, .08);
  background: rgba(5, 18, 37, .84);
}

.site-header.scrolled {
  background: rgba(5, 18, 37, .96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .24);
}

.brand-logo img {
  width: 230px;
  height: auto;
}

.site-nav > a {
  color: #c1cee0;
}

.site-nav > a:hover {
  color: var(--white);
}

.site-nav .nav-button {
  color: var(--white);
  background: var(--blue-600);
}

.site-nav .nav-button:hover {
  background: var(--blue-500);
}

.menu-toggle {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
}

.menu-toggle span {
  background: var(--white);
}

.button-primary {
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 16px 34px rgba(23, 105, 255, .25);
}

.button-primary:hover {
  background: var(--blue-500);
}

.button-secondary {
  border-color: rgba(255, 255, 255, .17);
  color: var(--white);
  background: rgba(255, 255, 255, .045);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #030b18;
}

.footer-brand img {
  width: 250px;
}

.footer-top > p,
.footer-bottom {
  color: #8397b3;
}

@media (max-width: 900px) {
  .site-nav {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(5, 18, 37, .98);
  }
}

@media (max-width: 760px) {
  .brand-logo img { width: 190px; }
  .footer-brand img { width: 220px; }
}
