@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-800-italic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #0f0f10;
  --panel: #15171a;
  --line: #262b32;
  --soft: #bcc4cd;
  --muted: #949da8;
  --blue: #3572b8;
  --sky: #6fabf0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  position: relative;
}

h1,
h2 {
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.035em;
}

h2 {
  max-width: 17em;
  font-size: clamp(31px, 4.4vw, 50px);
  line-height: 1.1;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  background: var(--text);
  color: #101113;
  z-index: 60;
}

.skip:focus {
  top: 12px;
}

.button {
  min-height: 50px;
  padding: 0 24px;
  border-color: #56616e;
  background: rgb(15 15 16 / 55%);
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.button.primary:hover:not(:disabled) {
  background: #2b62a1;
  border-color: #2b62a1;
}

.button.primary .icon {
  filter: none;
}

.button.compact {
  min-height: 42px;
  padding: 0 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.notice {
  margin: 20px 0;
}

.top {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--ground);
  z-index: 50;
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  object-fit: contain;
}

.links {
  display: flex;
  gap: 26px;
}

.links a,
footer a {
  color: var(--soft);
  text-decoration: none;
  transition: color var(--speed);
}

.links a:hover,
footer a:hover {
  color: var(--sky);
}

.menu {
  display: none;
  position: relative;
}

.menu summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--strong);
  border-radius: 8px;
  list-style: none;
  cursor: pointer;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary span {
  width: 18px;
  height: 12px;
  border: solid var(--text);
  border-width: 2px 0;
}

.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  width: 230px;
  padding: 8px;
  border: 1px solid var(--strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 30px rgb(0 0 0 / 50%);
}

.menu a {
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
}

.menu a:hover {
  background: var(--hover);
}

.hero {
  display: flex;
  align-items: flex-start;
  min-height: min(820px, calc(100svh - 148px));
  overflow: hidden;
  background: #0b0c0f;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero .wrap {
  position: relative;
  padding-top: clamp(44px, 9vh, 96px);
  padding-bottom: 56px;
}

.hero .wrap > * {
  animation: arrive 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .wrap > :nth-child(2) {
  animation-delay: 70ms;
}

.hero .wrap > :nth-child(3) {
  animation-delay: 130ms;
}

.hero .wrap > :nth-child(4) {
  animation-delay: 190ms;
}

h1 span {
  display: block;
}

h1 span:first-child {
  font-size: clamp(84px, 17vw, 208px);
  line-height: 0.82;
  letter-spacing: -0.045em;
  margin-left: -0.04em;
  text-transform: uppercase;
}

h1 span:nth-child(2) {
  margin-top: 0.22em;
  font-size: clamp(29px, 5.7vw, 70px);
  line-height: 1;
  color: var(--sky);
  text-transform: uppercase;
}

.tagline {
  margin-top: 26px;
  font-size: 21px;
  font-weight: 600;
}

.lead {
  max-width: 33em;
  margin-top: 8px;
  color: #d5dce4;
  font-size: 17px;
}

.hero .actions {
  margin-top: 28px;
}

.beacon {
  animation: beacon 2.6s ease-in-out infinite;
}

.beacon.two {
  animation-delay: -1.3s;
}

.lane {
  transform-origin: 1080px 558px;
  animation: lane 2.8s linear infinite;
}

@keyframes beacon {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.18;
  }
}

@keyframes lane {
  25% {
    transform: scale(1.251);
  }

  50% {
    transform: scale(1.565);
  }

  75% {
    transform: scale(1.958);
  }

  100% {
    transform: scale(2.45);
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}

.live {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid #2b5687;
  background: var(--panel);
}

.live .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  min-height: 78px;
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--soft);
}

.state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.state::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.state.on::before {
  background: var(--good);
}

.code {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--strong);
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  transition: border-color var(--speed);
}

.code:hover {
  border-color: var(--sky);
}

.code b {
  color: var(--text);
  font-weight: 600;
}

.code span {
  color: var(--sky);
}

.about,
.join,
.features,
.faq,
.departments {
  padding: clamp(72px, 10vw, 128px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: 32px 80px;
  align-items: start;
}

.about p {
  color: var(--soft);
  font-size: 17px;
}

.about p + p {
  margin-top: 20px;
}

.about p:first-child {
  color: var(--text);
}

.departments {
  background: var(--panel);
}

.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px 48px;
}

.intro h2 {
  max-width: 11em;
}

.intro p {
  max-width: 28em;
  color: var(--soft);
}

.units {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.units li {
  position: relative;
  padding: 32px 34px 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ground);
  overflow: hidden;
  transition: border-color 200ms, background 200ms;
}

.units li:hover {
  border-color: var(--blue);
  background: #111a25;
}

.units .icon {
  position: absolute;
  right: -14px;
  bottom: -22px;
  width: 150px;
  height: 150px;
  opacity: 0.07;
  transition: opacity 200ms, transform 300ms ease-out;
}

.units li:hover .icon {
  opacity: 0.16;
  transform: translateX(-10px);
}

.units h3 {
  font-size: 29px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
}

.units p {
  max-width: 30em;
  margin-top: 12px;
  color: var(--soft);
}

.units .activities {
  margin-top: 18px;
  color: var(--sky);
  font-weight: 600;
}

.units a {
  position: relative;
  display: inline-block;
  margin-top: 14px;
}

.note {
  max-width: 62ch;
  margin-top: 26px;
  color: var(--muted);
}

.join ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 54px 0 46px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.join li {
  padding-top: 20px;
  border-top: 3px solid var(--blue);
  counter-increment: step;
}

.join li::before {
  content: counter(step);
  display: block;
  color: var(--sky);
  font-size: 54px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}

.join h3 {
  margin-top: 16px;
}

.join li p,
.features li p {
  margin-top: 7px;
  color: var(--soft);
}

.features {
  border-top: 1px solid var(--line);
}

.features ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px 48px;
  margin-top: 52px;
}

.features .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color var(--speed);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--sky);
}

.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin: -4px 6px 0 0;
  border: solid var(--sky);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 180ms;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-4px, -4px);
}

.faq details p {
  max-width: 60ch;
  padding: 0 0 24px;
  color: var(--soft);
}

.cta {
  overflow: hidden;
  padding: clamp(84px, 12vw, 150px) 0;
  border-top: 1px solid #2b5687;
  background: #10233a;
}

.wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wall text {
  fill: #1a3453;
  font: italic 800 40px 'Poppins', sans-serif;
  letter-spacing: -1.5px;
  text-transform: uppercase;
}

.cta .wrap {
  position: relative;
}

.cta h2 {
  max-width: 10em;
  font-size: clamp(42px, 7.4vw, 92px);
  line-height: 0.98;
}

.cta p {
  max-width: 34em;
  margin: 22px 0 30px;
  color: #d5dfea;
  font-size: 18px;
}

footer {
  padding: 60px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}

footer .about-us p {
  max-width: 28em;
}

footer b {
  color: var(--text);
  font-weight: 600;
}

footer img {
  object-fit: contain;
}

footer nav {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 9px;
}

footer h2 {
  color: var(--text);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
}

.legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.missing {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: start;
  padding: 24px;
}

.missing h1 {
  font-size: 44px;
}

.missing .button {
  margin-top: 24px;
}

@media (max-width: 960px) {
  .scene {
    inset: auto auto 0 76%;
    width: 1400px;
    height: 788px;
    margin-left: -1144px;
  }

  .links {
    display: none;
  }

  .menu {
    display: block;
  }

  .top .wrap {
    gap: 12px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .join ol,
  .features ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 830px;
  }

  .scene {
    inset: auto auto 0 50%;
    width: max(924px, 200vw);
    height: max(520px, 112.5vw);
    margin-left: 0;
    transform: translateX(-74.2%);
  }

  .hero .button,
  .cta .button,
  .join .button {
    width: 100%;
  }

  .units,
  .join ol,
  .features ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .units li {
    padding: 26px 24px 28px;
  }

  .code {
    width: 100%;
    margin-left: 0;
  }

  .code span {
    margin-left: auto;
  }

  footer .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer .about-us {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .beacon,
  .lane {
    animation-play-state: paused;
    animation-duration: 6s !important;
  }
}
