: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: #ffffff;
}

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

.page {
  min-height: 100vh;
  background: #ffffff;
}

.nav {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.nav__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
  padding: 0 1rem;
}

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

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

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

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

.nav__link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.nav__link:hover {
  color: var(--brand);
}

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

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav__cta {
  display: none;
  align-items: center;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    transform 150ms ease,
    border-color 150ms ease;
}

.nav__cta--secondary {
  background: #ffffff;
  color: var(--foreground);
  border: 1px solid var(--border);
  font-weight: 500;
}

.nav__cta--secondary:hover {
  border-color: rgba(23, 23, 23, 0.3);
}

.nav__cta--primary {
  background: var(--brand);
  color: var(--brand-foreground);
  border: 1px solid transparent;
}

.nav__cta--primary: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.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: none;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 150ms ease;
}

.nav__menu-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

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

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

/* Drawer */

.drawer-root {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  animation: nb7-overlay 200ms ease-out both;
}

@keyframes nb7-overlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: -20px 0 48px -20px rgba(0, 0, 0, 0.35);
  animation: nb7-drawer 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes nb7-drawer {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-overlay,
  .drawer {
    animation: none;
  }
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.drawer__wordmark {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.drawer__close svg {
  width: 1.125rem;
  height: 1.125rem;
}

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

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

.drawer__nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
}

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

.drawer__heading:first-child {
  margin-top: 0;
}

.drawer__link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 150ms ease;
}

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

.drawer__footer {
  border-top: 1px solid var(--border);
  padding: 1rem;
}

.drawer__cta {
  display: block;
  text-align: center;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-foreground);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 150ms ease;
}

.drawer__cta:hover {
  transform: scale(1.02);
}

.content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.content__placeholder {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .nav__inner,
  .content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

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

  .nav__cta {
    display: inline-flex;
  }

  .nav__menu-btn {
    display: none;
  }

  .drawer-root {
    display: none !important;
  }

  .nav__inner,
  .content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
