:root {
  color-scheme: dark;
  --background: #191a1e;
  --surface: rgb(255 255 255 / 4%);
  --line: rgb(255 255 255 / 11%);
  --text: #ffffff;
  --text-soft: #a9abb2;
  --red: #e63946;
  --red-bright: #ff5a5f;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2.5%) 1px, transparent 1px);
  background-position: center;
  background-size:
    100px 100px,
    100px 100px,
    20px 20px,
    20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 94% 86% at 50% 50%, #000 28%, rgb(0 0 0 / 76%) 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 94% 86% at 50% 50%, #000 28%, rgb(0 0 0 / 76%) 66%, transparent 100%);
  animation: grid-breathe 9s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    ellipse 82% 78% at 50% 48%,
    transparent 25%,
    rgb(7 8 11 / 10%) 52%,
    rgb(7 8 11 / 56%) 84%,
    rgb(7 8 11 / 86%) 100%
  );
  box-shadow: inset 0 0 180px rgb(0 0 0 / 48%);
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding: clamp(70px, 10vh, 124px) 0 clamp(64px, 9vh, 104px);
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-right: 8px;
  color: var(--red-bright);
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(4.8rem, 10vw, 9.4rem);
  font-weight: 750;
  line-height: 0.78;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

.outline-text {
  margin-top: 0.17em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(245 247 255 / 72%);
  text-stroke: 1.5px rgb(245 247 255 / 72%);
}

.intro {
  max-width: 570px;
  margin: 38px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.7;
}

.loader-stage {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
}

.loader-stage::before,
.loader-stage::after {
  content: "";
  position: absolute;
  background: var(--line);
}

.loader-stage::before {
  width: 112%;
  height: 1px;
}

.loader-stage::after {
  width: 1px;
  height: 112%;
}

.orbit {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
}

.orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    rgb(255 255 255 / 13%) 0 76%,
    rgb(255 90 95 / 34%) 85%,
    var(--red-bright) 100%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
}

.orbit::after {
  content: "";
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 10px var(--red-bright), 0 0 22px rgb(255 90 95 / 62%);
}

.orbit-outer {
  width: 92%;
  animation: spin 22s linear infinite;
}

.orbit-middle {
  width: 68%;
  animation: spin-reverse 15s linear infinite;
}

.orbit-middle::before {
  background: conic-gradient(
    from 0deg,
    var(--red-bright) 0%,
    rgb(255 90 95 / 34%) 15%,
    rgb(255 255 255 / 13%) 24% 100%
  );
}

.orbit-inner {
  width: 44%;
  animation: spin 10s linear infinite;
}

.loader-core {
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.loader-mark {
  color: var(--text);
  font-size: clamp(3.8rem, 7vw, 6.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.09em;
}

.loader-mark span {
  color: var(--red-bright);
}

.loader-label {
  margin-top: 18px;
  color: var(--text-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.loader-dots {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.loader-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: dot-wave 1.35s ease-in-out infinite;
}

.loader-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

.loader-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

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

@keyframes spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes dot-wave {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

@keyframes grid-breathe {
  from {
    opacity: 0.56;
  }
  to {
    opacity: 0.82;
  }
}

@media (max-width: 940px) {
  .page-shell {
    width: min(100% - 40px, 720px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  h1 {
    font-size: clamp(4.7rem, 17vw, 8rem);
  }

  .loader-stage {
    width: min(100%, 470px);
  }
}

@media (max-width: 680px) {
  body::before {
    background-size:
      80px 80px,
      80px 80px,
      16px 16px,
      16px 16px;
  }

  .page-shell {
    width: calc(100% - 32px);
  }

  .hero {
    gap: 48px;
    padding: 62px 0 70px;
  }

  h1 {
    font-size: clamp(4rem, 20.5vw, 6.2rem);
  }

  .intro {
    margin-top: 30px;
  }

  .loader-stage {
    width: 88vw;
    max-width: 390px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
