/* Nav section — Figma node 1:2507 */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 64px;
  background: var(--white);
  border-bottom: 0.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  height: 64px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo img {
  height: 20px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-btn-login {
  background: var(--white);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.nav-btn-login:hover {
  background: #f8f9fa;
  border-color: #d1d1d1;
}

.nav-btn-start {
  background: var(--text-main);
  color: var(--white);
}

.nav-btn-start:hover {
  background: #1a1a1a;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-links-mobile-cta {
  display: none;
}

/* Dropdown menus (Platform, Industries) */
.nav-item {
  position: relative;
}

.nav-dropdown-toggle {
  padding: 0;
  background: none;
  border: none;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}

.nav-dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.nav-item.is-open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  width: 340px;
  padding-top: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 300;
}

.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.nav-dropdown-panel {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
  background: #F5F5F5;
}

.nav-dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.nav-dropdown-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
}

.nav-dropdown-icon img {
  width: 16px;
  height: auto;
  display: block;
}

.nav-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.005em;
  color: var(--text-main);
}

.nav-dropdown-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.084px;
  color: #657080;
}

.nav-dropdown-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px -8px -8px;
  padding: 12px 20px;
  background: var(--bg-color);
  border-top: 0.5px solid var(--border-color);
  border-radius: 0 0 11px 11px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.084px;
  color: var(--text-main);
  transition: color 0.15s ease;
}

.nav-dropdown-all:hover {
  color: #0090FF;
}

.nav-dropdown-all svg {
  width: 16px;
  height: 16px;
  stroke-width: 2px;
}

/* Seven links between the mobile menu and wide screens: a little less room each so the row fits before Log in. */
@media (min-width: 961px) and (max-width: 1180px) {
  .nav-links { gap: 16px; }
  .nav-link { font-size: 15px; }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-left {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    padding: 12px 24px 20px;
    z-index: 200;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-right {
    display: none;
  }

  .nav-item {
    width: 100%;
  }

  .nav-dropdown-toggle {
    padding: 12px 0;
  }

  .nav-dropdown {
    position: static;
    display: none;
    width: 100%;
    padding-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-item.is-open .nav-dropdown {
    display: block;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-dropdown-panel {
    padding: 4px 0 8px;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-dropdown-all {
    margin: 4px 0 0;
    padding: 12px;
    border: 0.5px solid var(--border-color);
    border-radius: 8px;
  }

  .nav-links-mobile-cta {
    display: flex;
    gap: 10px;
    margin-top: 16px;
  }

  .nav-links-mobile-cta .nav-btn {
    flex: 1;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .nav-inner {
    padding: 0 20px;
  }
}
