:root {
  --foreground: #171717;
  --muted-foreground: #6b6b6b;
  --border: #e5e5e5;
  --brand: #39ff14;
  --brand-foreground: #0a0a0a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--foreground);
  background: #fafafa;
}

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

.page {
  min-height: 100vh;
}

.nav-wrap {
  position: sticky;
  top: 1rem;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 36px -16px rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0 0.25rem 0 0.5rem;
}

.nav__mark {
  height: 1.25rem;
  width: auto;
  display: block;
}

.nav__wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 0.125rem;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 150ms ease;
}

.nav__link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav__link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav__chevron {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

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

.nav__dropdown {
  position: relative;
}

.nav__dropdown-panel,
.nav__mobile-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  z-index: 30;
  animation: nb4-panel 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav__dropdown-panel {
  width: 16rem;
}

.nav__mobile-panel {
  width: 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

@media (prefers-reduced-motion: reduce) {
  .nav__dropdown-panel,
  .nav__mobile-panel {
    animation: none;
  }
}

@keyframes nb4-panel {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.nav__dropdown-item,
.nav__mobile-link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 150ms ease;
}

.nav__dropdown-item:hover,
.nav__dropdown-item:focus-visible,
.nav__mobile-link:hover {
  background: rgba(57, 255, 20, 0.1);
  outline: none;
}

.nav__mobile-heading {
  padding: 0.25rem 0.75rem 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.nav__mobile-cta {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-foreground);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav__cta {
  display: none;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-foreground);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 150ms ease;
}

.nav__cta:hover {
  transform: scale(1.03);
}

.nav__cta:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: none;
  background: none;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 150ms ease;
}

.nav__menu-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav__menu-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.icon-menu,
.icon-close {
  width: 1rem;
  height: 1rem;
}

.icon-close {
  display: none;
}

.nav__menu-btn.is-open .icon-menu {
  display: none;
}

.nav__menu-btn.is-open .icon-close {
  display: block;
}

.content {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 1rem 8rem;
}

.content__block {
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  background: #ffffff;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .nav__cta {
    display: inline-flex;
  }

  .content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }

  .nav__menu-btn {
    display: none;
  }

  .nav__mobile-panel {
    display: none !important;
  }
}
