:root {
  --bg: #000000;
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.6);
  --fg-subtle: rgba(255, 255, 255, 0.55);
  --hover: rgba(255, 255, 255, 0.85);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 48px 24px 32px;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  text-align: center;
}

.logo {
  width: min(390px, 60vw);
  height: auto;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px;
}

.nav a {
  position: relative;
  color: var(--fg);
  text-decoration: none;
  font-size: 9.8px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  padding: 14px 0 14px 2.8px;
  transition: color 160ms ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(0.65em);
  height: 1px;
  background: var(--hover);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--hover);
  outline: none;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-expanded="true"]::after {
  opacity: 1;
}

.nav-block {
  position: relative;
}

.panel {
  position: absolute;
  top: calc(100% + 64px);
  left: 50%;
  transform: translate(-50%, -4px);
  width: max-content;
  max-width: calc(100vw - 48px);
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
  letter-spacing: 0.5px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease, visibility 0s 260ms;
}

.panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 260ms ease, transform 260ms ease, visibility 0s 0s;
}

.panel p {
  margin: 0;
  white-space: nowrap;
}

.panel p + p {
  margin-top: 16px;
}

.panel a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.panel a:hover,
.panel a:focus-visible {
  color: var(--fg);
  border-bottom-color: var(--fg);
  outline: none;
}

@media (max-width: 720px) {
  .panel p {
    white-space: normal;
  }
}

.logo,
.nav-block,
.footer {
  animation: rise 800ms cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.logo { animation-delay: 80ms; }
.nav-block { animation-delay: 320ms; }
.footer { animation-delay: 560ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .nav-block,
  .footer {
    animation: none;
  }
  .panel {
    transition: opacity 0s, transform 0s, visibility 0s;
  }
  .panel.is-open {
    transition: opacity 0s, transform 0s, visibility 0s;
  }
}

.dialog {
  background: #000;
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0;
  max-width: 460px;
  width: calc(100vw - 48px);
  font-family: inherit;
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog[open] {
  animation: dialog-in 380ms ease;
}

.dialog[open]::backdrop {
  animation: backdrop-in 380ms ease;
}

@keyframes dialog-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.dialog-inner {
  padding: 44px 40px 36px;
  text-align: center;
}

.dialog-title {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--fg);
}

.dialog-body {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
  letter-spacing: 0.4px;
}

.dialog-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.dialog-cta {
  display: inline-block;
  padding: 12px 36px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--fg);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease;
}

.dialog-cta:hover,
.dialog-cta:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--fg);
  outline: none;
}

.dialog-cancel {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--fg-subtle);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease;
}

.dialog-cancel:hover,
.dialog-cancel:focus-visible {
  color: var(--fg);
  outline: none;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
}

.social {
  display: flex;
  gap: 28px;
}

.social a {
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: color 160ms ease;
}

.social a:hover,
.social a:focus-visible {
  color: var(--fg);
  outline: none;
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.copyright {
  font-family: 'Times New Roman', Times, serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--fg-subtle);
}

@media (max-width: 540px) {
  .main {
    gap: 40px;
  }

  .nav {
    gap: 28px;
  }

  .nav a {
    font-size: 8.4px;
    letter-spacing: 2.1px;
    padding: 14px 0 14px 2.1px;
  }

  .copyright {
    font-size: 10px;
  }
}
