@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700&display=swap");

/* ── Nav bar ─────────────────────────────────────────────────────────────── */
.topnav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  width: min(960px, calc(100vw - 24px));
  padding: 0 6px 0 10px;
  height: 48px;

  background: rgba(8, 8, 18, 0.75);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  font-family: "Inter", sans-serif;
}

/* ── Brand (left) ────────────────────────────────────────────────────────── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav-brand:hover {
  background: rgba(255, 255, 255, 0.07);
}
.nav-brand img {
  border-radius: 8px;
  cursor: pointer;
  display: block;
}
.nav-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f0f8;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* ── Links (right) ───────────────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav-links > a,
.nav-links .topnavbutton {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  color: rgba(240, 240, 248, 0.75);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.nav-links > a:link,
.nav-links > a:visited {
  color: rgba(240, 240, 248, 0.75);
}
.nav-links > a:hover,
.nav-links .topnavbutton:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Dropdown ────────────────────────────────────────────────────────────── */
.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(10, 10, 22, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 1100;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 500;
  color: rgba(240, 240, 248, 0.8);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown-content a:link,
.dropdown-content a:visited {
  color: rgba(240, 240, 248, 0.8);
}
.dropdown-content a:hover {
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
}

/* ── Hamburger (mobile) ──────────────────────────────────────────────────── */
#hamburger-icon {
  display: none;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1001;
  cursor: pointer;
  background: rgba(8, 8, 18, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 12px;
}
#hamburger-icon div {
  width: 22px;
  height: 2px;
  background: rgba(240, 240, 248, 0.9);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.25s;
}
.open .bar1 { transform: rotate(-45deg) translate(-5px, 5px); }
.open .bar2 { opacity: 0; }
.open .bar3 { transform: rotate(45deg) translate(-5px, -7px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  right: 12px;
  width: 200px;
  list-style: none;
  background: rgba(10, 10, 22, 0.96);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  z-index: 1002;
  padding: 8px;
  margin: 0;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.6);
}
.open .mobile-menu { display: block; }
.mobile-menu li { list-style: none; }
.mobile-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: rgba(240, 240, 248, 0.85);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-menu a:hover { background: rgba(139, 92, 246, 0.2); color: #fff; }

@media (max-width: 680px) {
  .topnav { display: none; }
  #hamburger-icon { display: block; }
}

/* ── Scrolled state ─────────────────────────────────────────────────────── */
.header-scrolled {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 36px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: "Inter", sans-serif;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { border-radius: 10px; opacity: 0.9; }
.footer-title {
  font-weight: 700;
  font-size: 1rem;
  color: #f0f0f8;
  text-decoration: none;
  display: block;
}
.footer-sub {
  font-size: 0.82rem;
  color: rgba(240, 240, 248, 0.45);
  margin-top: 2px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(167, 139, 250, 0.75);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.86rem;
  color: rgba(240, 240, 248, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: rgba(240, 240, 248, 0.9); }
.footer-manifesto p {
  font-size: 0.84rem;
  color: rgba(240, 240, 248, 0.45);
  line-height: 1.6;
  margin: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(240, 240, 248, 0.3);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
