@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-v2071.woff2") format("woff2");
}

:root {
  --night: #15143a;
  --surface-raised: #2b2a5c;
  --text: #ffffff;
  --text-soft: #f1f0fa;
  --text-muted: #c3c1ee;
  --link: #c7c4ff;
  --accent: #ff8a5b;
  --focus: #c7c4ff;
}

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

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Page frame */

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-header {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
}

.site-header__logo {
  display: block;
  width: auto;
  height: 34px;
}

.site-header__home {
  display: block;
  border-radius: 4px;
}

/* Home page */

.hero {
  width: 100%;
  max-width: 884px;
  margin: 0 auto;
  padding: 28px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  background: var(--surface-raised);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
}

.tag__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__title {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero__lead {
  margin: 0;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Orbit graphic */

.orbit {
  flex: 1;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%);
  mask-image: linear-gradient(to bottom, transparent, #000 38%);
  pointer-events: none;
}

.orbit__svg {
  position: absolute;
  left: 50%;
  bottom: -500px;
  width: 1000px;
  height: 1000px;
  margin-left: -500px;
}

.orbit__ring {
  transform-box: view-box;
  transform-origin: 500px 500px;
}

.orbit__ring--1 {
  animation: orbit 150s linear infinite reverse;
}

.orbit__ring--2 {
  animation: orbit 110s linear infinite;
}

.orbit__ring--3 {
  animation: orbit 72s linear infinite reverse;
}

.orbit__ring--4 {
  animation: orbit 44s linear infinite;
}

.orbit__pulse {
  opacity: 0.2;
  animation: pulse 3.2s ease-in-out infinite;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.16;
  }

  50% {
    opacity: 0.45;
  }
}

/* Not found page */

.not-found {
  flex: 1;
  width: 100%;
  max-width: 884px;
  margin: 0 auto;
  padding: 28px 32px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.not-found__title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

@media (max-width: 519.98px) {
  .site-header {
    padding: 20px;
  }

  .hero,
  .not-found {
    padding-left: 20px;
    padding-right: 20px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
