:root {
  --nav-bg: rgba(10, 10, 20, 0.72);
  --nav-border: rgba(168, 85, 247, 0.24);
  --nav-text: #e2e8f0;
  --nav-muted: #94a3b8;
  --nav-accent: #a855f7;
  --nav-accent-2: #6366f1;
}

#site-navbar {
  position: absolute;
 
  z-index: 9999;
}

.octa-navbar {
  position: fixed;
  top: 2%;
  left: 2%;
  right: 2%;
  transform: translateY(0);
  transition: transform 0.3s ease, background-color 260ms ease, border-color 260ms ease;
 transition-property: border-radius, width, height ,transform,;
  border: 1px solid var(--nav-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(17, 14, 33, 0.9), var(--nav-bg));
border-radius: 999px;
}

.octa-navbar.is-open {
  border-radius: 10px;
  transition-delay: 0s;
}

.octa-navbar.is-closing {
  transition-delay: 0.2s; 
}

.octa-navbar.is-hidden {
  transform: translateY(-130%);
}

.octa-navbar__inner {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.octa-navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.octa-navbar__logo {
    height: 35px;
    display: block;
    object-fit: contain;
}

.octa-navbar__nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.octa-navbar__link {
  color: var(--nav-text);
  text-decoration: none;
  font-family: "Public Sans", "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.octa-navbar__link:hover,
.octa-navbar__link:focus-visible {
  color: #fff;
  border-bottom-color: var(--nav-accent);
  outline: none;
}

.octa-navbar__link.is-active {
  color: #fff;
  border-bottom-color: var(--nav-accent);
}

.octa-navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.octa-navbar__btn {
  text-decoration: none;
  font-family: "Public Sans", "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  transition: all 180ms ease;
  white-space: nowrap;
}

.octa-navbar__btn--ghost {
  color: var(--nav-text);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.3);
}

.octa-navbar__btn--ghost:hover,
.octa-navbar__btn--ghost:focus-visible {
  color: #fff;
  border-color: rgba(168, 85, 247, 0.55);
  outline: none;
}

.octa-navbar__btn--primary {
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.9);
  background: linear-gradient(90deg, #7c3aed, #6366f1);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
}

.octa-navbar__btn--primary:hover,
.octa-navbar__btn--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.55);
  outline: none;
}

.octa-navbar__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.octa-navbar__toggle-line {
  width: 18px;
  height: 2px;
  background: #e2e8f0;
  position: relative;
  transition: transform 180ms ease, background 180ms ease;
}

.octa-navbar__toggle-line::before,
.octa-navbar__toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #e2e8f0;
  transition: transform 180ms ease;
}

.octa-navbar__toggle-line::before { top: -6px; }
.octa-navbar__toggle-line::after { top: 6px; }

.octa-navbar.is-open .octa-navbar__toggle-line {
  background: transparent;
}

.octa-navbar.is-open .octa-navbar__toggle-line::before {
  transform: translateY(6px) rotate(45deg);
}

.octa-navbar.is-open .octa-navbar__toggle-line::after {
  transform: translateY(-6px) rotate(-45deg);
}

.octa-navbar__mobile {
  display: none;
}

@media (max-width: 1080px) {
  .octa-navbar__nav,
  .octa-navbar__actions {
    display: none;
  }

  .octa-navbar__toggle {
    display: inline-flex;
  }

  .octa-navbar__mobile {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
    border-top: 1px solid transparent;
  }

  .octa-navbar.is-open .octa-navbar__mobile {
    max-height: 80vh;
    border-top-color: rgba(148, 163, 184, 0.18);
  }

  .octa-navbar__mobile-inner {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .octa-navbar__mobile-link,
  .octa-navbar__mobile-btn {
    text-decoration: none;
    color: var(--nav-text);
    font-family: "Public Sans", "Inter", sans-serif;
    padding: 0.78rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.33);
  }

  .octa-navbar__mobile-link.is-active {
    color: #fff;
    border-color: rgba(99, 102, 241, 0.6);
  }

  .octa-navbar__mobile-btn--primary {
    color: #fff;
    background: linear-gradient(90deg, #7c3aed, #6366f1);
    border-color: rgba(99, 102, 241, 0.9);
  }
}

.octa-navbar-spacer {
  height: 76px;
}

/* ================= Theme toggle + light navbar ================= */
html.light {
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-border: rgba(124, 58, 237, 0.16);
  --nav-text: #243044;
  --nav-muted: #64748b;
  --nav-accent: #7c3aed;
  --nav-accent-2: #6366f1;
}

html.light .octa-navbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--nav-bg));
  box-shadow: 0 18px 45px -36px rgba(88, 28, 135, 0.42);
}

html.light .octa-navbar__link:hover,
html.light .octa-navbar__link:focus-visible,
html.light .octa-navbar__link.is-active {
  color: #111827;
}

.octa-navbar__mobile-controls {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.octa-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  height: 40px;
  width: 40px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 50%;
  padding: 0.46rem 0.75rem;
  background: rgba(15, 23, 42, 0.32);
  color: var(--nav-text);
  font-family: "Public Sans", "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.octa-theme-toggle:hover,
.octa-theme-toggle:focus-visible {
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.18);
  outline: none;
}

.octa-theme-toggle__icon {
  font-size: 1.1rem;
  line-height: 1;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.octa-theme-toggle--icon-only {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 10px;
  padding: 0;
}

html.light .octa-theme-toggle {
  background: rgba(255, 255, 255, 0.72);
  color: #243044;
  border-color: rgba(124, 58, 237, 0.18);
}

html.light .octa-theme-toggle:hover,
html.light .octa-theme-toggle:focus-visible {
  color: #111827;
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.42);
}

html.light .octa-navbar__btn--ghost,
html.light .octa-navbar__toggle,
html.light .octa-navbar__mobile-link,
html.light .octa-navbar__mobile-btn {
  background: rgba(255, 255, 255, 0.72);
  color: #243044;
  border-color: rgba(124, 58, 237, 0.14);
}

html.light .octa-navbar__mobile-link.is-active {
  color: #111827;
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(124, 58, 237, 0.08);
}

html.light .octa-navbar__toggle-line,
html.light .octa-navbar__toggle-line::before,
html.light .octa-navbar__toggle-line::after {
  background: #243044;
}

html.light .octa-navbar.is-open .octa-navbar__toggle-line {
  background: transparent;
}

@media (max-width: 1080px) {
  .octa-navbar__mobile-controls {
    display: inline-flex;
  }

  .octa-navbar__actions {
    display: none;
  }
}
