:root {
  --bg: #050505;
  --bar: #121212;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --field: #1b1b1b;
  --wave-a: #1c1c1c;
  --wave-b: #141414;
  --wave-c: #0c0c0c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, sans-serif;
  overflow: hidden;
}

.waves {
  position: fixed;
  inset: auto 0 0;
  height: 42vh;
  pointer-events: none;
  z-index: 0;
}

.waves svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave {
  animation: drift 18s var(--ease) infinite alternate;
}

.wave-a {
  fill: var(--wave-a);
}

.wave-b {
  fill: var(--wave-b);
  animation-duration: 22s;
  animation-delay: -4s;
}

.wave-c {
  fill: var(--wave-c);
  animation-duration: 26s;
  animation-delay: -8s;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-3%);
  }
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 14px 16px 0;
  padding: 14px 22px;
  background: var(--bar);
  border-radius: 18px;
}

.logo {
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.88;
  transition:
    opacity 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.nav-item svg {
  width: 16px;
  height: 16px;
}

.nav-item:hover {
  opacity: 1;
  background: #1c1c1c;
}

.nav-item.is-active {
  opacity: 1;
  background: #222;
}

.stage {
  position: relative;
  z-index: 1;
  height: calc(100% - 84px);
}

.view[hidden] {
  display: none;
}

.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 8vh;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.view.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.view.is-exit {
  opacity: 0;
  transform: translateY(-10px);
}

h1 {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

form {
  width: min(560px, 86vw);
  margin-top: 28px;
}

input {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--field);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  text-align: center;
  outline: none;
  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

input::placeholder {
  color: #8d8d8d;
}

input:focus {
  background: #222;
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .nav-item {
    font-size: 0;
    gap: 0;
    padding: 8px;
  }

  .nav-item svg {
    width: 18px;
    height: 18px;
  }
}
