*, *::before, *::after { box-sizing: border-box; }
html { background: #0d1628; } /* Prevents white strip at bottom */
html, body { margin: 0; padding: 0; overflow-x: hidden; }
/* ══════════════════════════════════════════
   PLATFORM ELEVATE — UNIFIED NAV STYLESHEET
   Loaded on every page via <link>
   ══════════════════════════════════════════ */

/* BASE NAV — transparent, white text, for dark hero pages */
nav#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .35s ease, border-color .35s ease,
              box-shadow .35s ease, padding .35s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

/* SCROLLED STATE — frosted white */
nav#nav.s {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(62,207,207,.12);
  box-shadow: 0 2px 24px rgba(13,22,40,.06);
  padding: .85rem 3.5rem;
}

/* LIGHT START — pages with white/light backgrounds start pre-scrolled */
nav#nav.light-start {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(62,207,207,.12);
  box-shadow: 0 2px 24px rgba(13,22,40,.06);
}

/* LOGO */
nav#nav .logo { display:flex;align-items:center;text-decoration:none; }
nav#nav .logo img { height:38px;display:block; }

/* NAV LINKS — dark hero default = white text */
nav#nav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
nav#nav .nav-links a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: color .25s;
  position: relative;
  white-space: nowrap;
}
nav#nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: #3ecfcf;
  transition: width .3s;
}
nav#nav .nav-links a:hover { color: white; }
nav#nav .nav-links a:hover::after { width: 100%; }
nav#nav .nav-links a.active { color: white; }
nav#nav .nav-links a.active::after { width: 100%; }

/* NAV LINKS — scrolled state = navy text */
nav#nav.s .nav-links a,
nav#nav.light-start .nav-links a {
  color: #8899bb;
}
nav#nav.s .nav-links a:hover,
nav#nav.light-start .nav-links a:hover {
  color: #0d1628;
}
nav#nav.s .nav-links a.active,
nav#nav.light-start .nav-links a.active {
  color: #0d1628;
}
nav#nav.s .nav-links a::after,
nav#nav.light-start .nav-links a::after {
  background: #3ecfcf;
}

/* NAV ACTIONS */
nav#nav .nav-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* GHOST BUTTON */
nav#nav .btn-ghost {
  padding: .45rem 1rem;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.85);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  text-decoration: none;
  transition: all .3s;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}
nav#nav .btn-ghost:hover {
  border-color: #3ecfcf;
  color: #3ecfcf;
}
nav#nav.s .btn-ghost,
nav#nav.light-start .btn-ghost {
  border-color: rgba(30,111,199,.3);
  color: #1e6fc7;
}
nav#nav.s .btn-ghost:hover,
nav#nav.light-start .btn-ghost:hover {
  border-color: #3ecfcf;
  color: #3ecfcf;
}

/* FILL BUTTON */
nav#nav .btn-fill {
  padding: .5rem 1.2rem;
  border-radius: 100px;
  background: linear-gradient(135deg,#1245a8 0%,#1e6fc7 40%,#3ecfcf 100%);
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(30,111,199,.28);
  transition: all .3s;
  display: inline-block;
  white-space: nowrap;
}
nav#nav .btn-fill:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(62,207,207,.35);
}

/* MOBILE */
@media(max-width:960px) {
  nav#nav { padding: .9rem 1.25rem; }
  nav#nav.s { padding: .8rem 1.25rem; }
  nav#nav .nav-links { display: none; }
  nav#nav .btn-ghost { display: none; }
}
