:root {
  --neon-red: #ff2a2a;
  --cube-size: 50vmin;
  --bg-a: #030407;
  --bg-b: #0c1118;
  --page-pad-top: clamp(22px, 5vw, 60px);
  --page-pad-x: clamp(18px, 5vw, 72px);
  --page-pad-bottom: clamp(96px, 13vh, 136px);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: #f7fbff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(255, 42, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 42, 0.028) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255, 42, 42, 0.09), transparent 34vmin),
    linear-gradient(145deg, var(--bg-a), var(--bg-b) 58%, #050204);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
}

.landing {
  position: relative;
  display: grid;
  align-items: stretch;
  justify-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--page-pad-top) var(--page-pad-x) var(--page-pad-bottom);
  text-align: center;
  perspective: 1100px;
  isolation: isolate;
}

.landing::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0 50%, rgba(0, 0, 0, 0.46) 100%),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 6px);
}

.scene {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  gap: clamp(16px, 3.2vmin, 34px);
  width: min(100%, 980px);
  min-height: calc(100vh - var(--page-pad-top) - var(--page-pad-bottom));
  min-height: calc(100dvh - var(--page-pad-top) - var(--page-pad-bottom));
}

.hero-copy {
  display: grid;
  gap: 0.7rem;
  max-width: 780px;
}

.eyebrow,
.intro {
  margin: 0;
}

.eyebrow {
  color: #ffb8b8;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.78rem, 2.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 42, 42, 0.3);
}

h1 {
  margin: 0;
  color: #fff7f7;
  font-size: clamp(2rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-wrap: balance;
  text-shadow:
    0 0 10px rgba(255, 42, 42, 0.45),
    0 0 34px rgba(255, 42, 42, 0.25);
}

.intro {
  max-width: 660px;
  justify-self: center;
  color: rgba(255, 236, 236, 0.82);
  font-size: clamp(0.98rem, 2.4vw, 1.22rem);
  line-height: 1.55;
}

.cube-wrap {
  align-self: center;
  width: var(--cube-size);
  height: var(--cube-size);
  transform-style: preserve-3d;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cube-spin 44s linear infinite;
  will-change: transform;
}

.face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 66, 66, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 42, 42, 0.105), rgba(255, 42, 42, 0.018)),
    rgba(8, 9, 13, 0.68);
  box-shadow:
    inset 0 0 18px rgba(255, 42, 42, 0.15),
    0 0 9px rgba(255, 42, 42, 0.34);
  backface-visibility: visible;
}

.face::before,
.face::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 76, 76, 0.24);
  pointer-events: none;
}

.face::after {
  inset: 22px;
  border-color: rgba(255, 42, 42, 0.13);
}

.face span {
  max-width: 86%;
  color: #ffe9e9;
  font-size: clamp(1.05rem, 4.2vmin, 2.6rem);
  font-weight: 800;
  line-height: 1;
  text-shadow:
    0 0 5px rgba(255, 42, 42, 0.9),
    0 0 14px rgba(255, 42, 42, 0.46);
  white-space: nowrap;
}

.face-front {
  transform: translateZ(calc(var(--cube-size) / 2));
}

.face-back {
  transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2));
}

.face-right {
  transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2));
}

.face-left {
  transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2));
}

.face-top {
  transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2));
}

.face-bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2));
}

.terminal-status {
  position: fixed;
  right: clamp(18px, 5vw, 56px);
  bottom: clamp(18px, 5vh, 46px);
  left: clamp(18px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.4em;
  margin: 0;
  color: #ffecec;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-shadow:
    0 0 5px rgba(255, 42, 42, 0.56),
    0 0 12px rgba(255, 42, 42, 0.26);
}

.cursor {
  display: inline-block;
  width: 0.58em;
  height: 1em;
  margin-left: 0.16em;
  background: #ff3d3d;
  box-shadow: 0 0 8px rgba(255, 42, 42, 0.48);
  transform: translateY(0.12em);
  animation: cursor-blink 1s steps(1, end) infinite;
}

@keyframes cube-spin {
  from {
    transform: rotateX(-22deg) rotateY(32deg) rotateZ(0deg);
  }

  to {
    transform: rotateX(-22deg) rotateY(32deg) rotateZ(360deg);
  }
}

@keyframes cursor-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (max-height: 760px) {
  :root {
    --page-pad-top: 18px;
    --page-pad-bottom: clamp(76px, 11vh, 96px);
  }

  .landing {
    padding-top: 18px;
  }
}

@media (max-width: 560px) {
  .landing {
    padding-inline: 16px;
  }

  .eyebrow {
    letter-spacing: 0.1em;
  }
}

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