*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --nav-height: 72px;
  --nav-breakpoint: 900px;
  --color-label: #13171a;
  --color-title: #0a090b;
  --color-description: #84838c;
  --color-border: #ececed;
  --color-surface: #ffffff;
  --color-hero: #9eb5c5;
  --color-badge-bg: #e1faea;
  --color-badge-text: #016626;
  --shadow-dropdown:
    0 4px 2px rgba(12, 12, 13, 0.05),
    0 16px 16px rgba(12, 12, 13, 0.1);
  --font-family: "Inter", system-ui, -apple-system, sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--color-label);
  background: var(--color-surface);
}

.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
}

.hero-backdrop {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-hero);
}

.hero-backdrop__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 70%;
  max-width: 100%;
}

.hero-backdrop__lottie {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1;
  max-height: min(56vh, 70vw);
  pointer-events: none;
}

.hero-backdrop__lottie svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-enter {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: var(--color-label);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease;
}

.hero-enter:hover {
  background: #f4f4f5;
}

.hero-enter:focus-visible {
  outline: 2px solid var(--color-label);
  outline-offset: 2px;
}

.hero-tagline {
  display: none;
  margin: 0;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  letter-spacing: -0.02px;
  text-align: center;
  color: var(--color-label);
}

.hero-enter__text--narrow {
  display: none;
}

@media (max-width: 900px) {
  .hero-tagline {
    display: block;
  }

  .hero-enter__text--desktop {
    display: none;
  }

  .hero-enter__text--narrow {
    display: inline;
  }

  .hero-enter {
    max-width: 100%;
    padding: 0 20px;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .hero-backdrop {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 48px;
  }

  .hero-backdrop__content {
    gap: 20px;
    width: 77%;
  }

  .hero-backdrop__lottie {
    max-height: min(46.2vh, 85.8vw);
  }
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: var(--nav-height);
  padding: 0 24px;
  overflow: visible;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.top-nav__logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  line-height: 0;
}

.top-nav__panel {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.top-nav__menu-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 auto;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.top-nav__menu-toggle:hover {
  background: rgba(19, 23, 26, 0.04);
}

.top-nav__menu-toggle:focus-visible {
  outline: 2px solid var(--color-label);
  outline-offset: 2px;
}

.top-nav__menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 1px;
  background: var(--color-label);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.top-nav.is-menu-open .top-nav__menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.top-nav.is-menu-open .top-nav__menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.top-nav.is-menu-open .top-nav__menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.top-nav__menu {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
}

.top-nav__link,
.top-nav__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 72px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: var(--color-label);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.02px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.top-nav__link:hover,
.top-nav__trigger:hover {
  background: rgba(19, 23, 26, 0.04);
}

.top-nav__link--active {
  position: relative;
}

.top-nav__link--active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #ffd800;
}

.top-nav__trigger[aria-expanded="true"] {
  background: rgba(19, 23, 26, 0.06);
}

.top-nav__trigger[aria-expanded="true"] .top-nav__chevron {
  transform: rotate(180deg);
}

.top-nav__chevron {
  display: block;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.top-nav__dropdown {
  position: relative;
  z-index: 40;
}

.top-nav__headline {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding-right: 12px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  letter-spacing: -0.02px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-nav__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.top-nav__icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.top-nav__icon-link img {
  display: block;
  width: 23.8px;
  height: 23.8px;
}

.top-nav__icon-link:hover {
  opacity: 1;
}

.top-nav__icon-link--linkedin img {
  width: 25.5px;
  height: 25.5px;
  object-fit: contain;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 13px);
  left: 0;
  z-index: 50;
  width: 288px;
  max-height: min(70vh, 520px);
  overflow: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-dropdown);
}

.dropdown-menu[hidden] {
  display: none;
}

.dropdown-menu__list {
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--color-surface);
  border-radius: 8px;
}

.dropdown-menu__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s ease;
}

.dropdown-menu__item:hover,
.dropdown-menu__item:focus-visible {
  background: #f4f4f5;
  outline: none;
}

.dropdown-menu__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dropdown-menu__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-title);
}

.dropdown-menu__description {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--color-description);
}

.dropdown-menu__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.dropdown-menu__badge img {
  display: block;
  flex-shrink: 0;
}

.hero {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  body.is-nav-open {
    overflow: hidden;
  }

  .top-nav__menu-toggle {
    display: flex;
  }

  .top-nav__panel {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    z-index: 45;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--nav-height));
    padding: 8px 16px 24px;
    overflow-y: auto;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-dropdown);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .top-nav.is-menu-open .top-nav__panel {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .top-nav__menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .top-nav__link,
  .top-nav__trigger {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 8px;
  }

  .top-nav__dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 0;
    box-shadow: none;
  }

  .dropdown-menu__list {
    padding: 0 0 8px 8px;
    background: transparent;
  }

  .top-nav__headline {
    flex: none;
    padding: 16px 8px 12px;
    text-align: left;
    white-space: normal;
    border-top: 1px solid var(--color-border);
  }

  .top-nav__actions {
    justify-content: flex-start;
    min-width: 0;
    padding: 12px 8px 4px;
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 720px) {
  .top-nav {
    padding: 0 16px;
  }
}
