:root {
  --navy-950: #020817;
  --navy-900: #06142c;
  --navy-850: #0a1d3c;
  --navy-800: #0d2c56;
  --white: #f8fbff;
  --ink: #081426;
  --muted: #a9b9cf;
  --line: #cadefa33;
  --cyan: #31d6ff;
  --blue: #2867e8;
  --lime: #b9f45b;
  --coral: #ff7a67;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy-950);
  scroll-behavior: smooth;
}

body {
  background: var(--navy-950);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: #020817e0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  min-height: 82px;
  padding: 12px 34px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  min-width: 0;
}

.nav-links a {
  color: #dce8f8;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-dropdown {
  align-items: center;
  display: inline-flex;
  position: relative;
}

.nav-dropdown-toggle {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.nav-dropdown-menu {
  background: rgba(2, 8, 23, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 4px;
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  left: 50%;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 220ms ease;
  z-index: 70;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-links .nav-dropdown-menu a {
  border-radius: 6px;
  color: #dce8f8;
  display: block;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  white-space: nowrap;
}

.nav-links .nav-dropdown-menu a:hover,
.nav-links .nav-dropdown-menu a:focus-visible {
  background: rgba(49, 214, 255, 0.22);
  color: var(--cyan);
  outline: none;
}

.top-cta {
  align-items: center;
  background: var(--white);
  border-radius: 999px;
  color: var(--navy-950);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  white-space: nowrap;
}

.top-cta span {
  font-size: 20px;
}

footer {
  align-items: center;
  background: var(--navy-950);
  color: var(--muted);
  display: grid;
  font-size: 11px;
  gap: 24px;
  grid-template-columns: minmax(160px, 0.8fr) minmax(280px, 1.4fr) auto auto;
  padding: 32px 34px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand .brand-logo {
  height: 34px;
  width: 34px;
}

footer p {
  margin: 0;
}

.footer-info {
  color: #c7d6e9;
  display: flex;
  flex-wrap: wrap;
  font-style: normal;
  gap: 6px 14px;
  line-height: 1.6;
}

.footer-info span {
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 72px;
  }

  .topbar {
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 72px;
    padding: 10px 12px;
  }

  .topbar .brand-logo {
    height: 34px;
    width: 34px;
  }

  .topbar .brand-name,
  .brand small,
  .top-cta {
    display: none;
  }

  .nav-links {
    align-items: center;
    display: flex;
    gap: 10px;
    grid-column: auto;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 12px;
    padding: 8px 12px;
  }

  .nav-dropdown {
    flex: 0 0 auto;
  }

  .nav-dropdown-menu {
    left: 0;
    top: 100%;
    transform: translateY(-8px);
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: translateY(0);
  }

  .nav-links .nav-dropdown-menu a {
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    padding: 9px 10px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 30px 18px;
  }

  .footer-info span {
    white-space: normal;
  }
}
