:root {
  color-scheme: dark;
  --cyan: #05d9e8;
  --cyan-soft: rgba(5, 217, 232, 0.52);
  --gold: #f5a800;
  --gold-soft: rgba(245, 168, 0, 0.5);
  --ink: #020506;
  --white: #f7fbff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button {
  font: inherit;
}

.stage {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  perspective: 1300px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 212, 232, 0.23), transparent 28rem),
    radial-gradient(circle at 9% 70%, rgba(0, 220, 245, 0.2), transparent 34rem),
    radial-gradient(circle at 90% 69%, rgba(240, 154, 0, 0.21), transparent 34rem),
    #020506;
}

.layer {
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.reference-art {
  position: absolute;
  inset: -2vmax;
  z-index: -4;
  width: calc(100% + 4vmax);
  height: calc(100% + 4vmax);
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(0.95) contrast(1.08) brightness(0.46) blur(1.5px);
}

.stage::before,
.stage::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.stage::before {
  background:
    radial-gradient(ellipse at 50% 46%, rgba(0, 0, 0, 0.78) 0 26%, rgba(0, 0, 0, 0.36) 46%, transparent 68%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.65), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.68)),
    radial-gradient(ellipse at center, transparent 0 34%, rgba(0, 0, 0, 0.78) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 44%, rgba(0, 0, 0, 0.72));
}

.stage::after {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.particles,
.blueprint,
.beam,
.light-sweep {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particles {
  z-index: -2;
  opacity: 0.92;
}

.blueprint {
  z-index: -3;
  opacity: 0.9;
}

.beam {
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% -5%, rgba(17, 226, 255, 0.35), transparent 25rem),
    linear-gradient(102deg, transparent 43%, rgba(0, 216, 232, 0.12), transparent 49%),
    linear-gradient(78deg, transparent 51%, rgba(8, 230, 255, 0.1), transparent 56%);
  animation: breatheBeam 23s ease-in-out infinite;
  mix-blend-mode: screen;
}

.light-sweep {
  z-index: 1;
  opacity: 0;
  background: linear-gradient(102deg, transparent 32%, rgba(255, 255, 255, 0.12), rgba(0, 235, 255, 0.2), transparent 65%);
  filter: blur(16px);
  transform: translateX(-70%);
  animation: sweep 9s cubic-bezier(0.7, 0, 0.3, 1) infinite;
  mix-blend-mode: screen;
}

.hero {
  z-index: 2;
  width: min(920px, calc(100vw - 36px));
  padding: clamp(22px, 4vh, 46px) 0 clamp(18px, 3.5vh, 34px);
  text-align: center;
}

.kicker {
  margin: 0 0 clamp(12px, 2.2vh, 20px);
  color: rgba(245, 250, 255, 0.72);
  font-size: clamp(0.7rem, 1.6vw, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.76);
}

.type-line {
  display: block;
  min-height: clamp(2.75rem, 7.2vw, 5.55rem);
  font-size: clamp(2.35rem, 7.15vw, 5.95rem);
  font-weight: 850;
  line-height: 0.93;
  letter-spacing: 0.11em;
}

.type-line.accent {
  color: var(--cyan);
  text-shadow:
    0 0 26px rgba(0, 219, 232, 0.46),
    0 10px 28px rgba(0, 0, 0, 0.68);
}

.type-line strong {
  color: var(--gold);
  font-weight: 850;
  text-shadow:
    0 0 24px rgba(245, 168, 0, 0.44),
    0 10px 30px rgba(0, 0, 0, 0.72);
}

.type-line.typing::after {
  display: inline-block;
  width: 0.08em;
  height: 0.76em;
  margin-left: 0.12em;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
  content: "";
  transform: translateY(0.08em);
  animation: caret 760ms steps(1) infinite;
}

.teaser {
  min-height: 3.2em;
  max-width: 620px;
  margin: clamp(18px, 3vh, 28px) auto 0;
  color: rgba(248, 252, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.42rem);
  line-height: 1.58;
  text-wrap: balance;
  transition:
    opacity 800ms ease,
    transform 800ms ease;
}

.teaser.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

.mark-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  width: min(340px, 82vw);
  margin: clamp(17px, 2.8vh, 26px) auto clamp(15px, 2.4vh, 22px);
  color: var(--cyan);
}

.mark-row span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 222, 232, 0.54));
}

.mark-row span:last-child {
  background: linear-gradient(90deg, rgba(245, 168, 0, 0.5), transparent);
}

.mark-row b {
  color: transparent;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0, 224, 232, 0.5));
}

.brand-motion {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 18px);
  width: min(760px, 100%);
  min-height: clamp(38px, 7vh, 54px);
  margin: 0 auto clamp(6px, 1.4vh, 14px);
  padding: 0 clamp(8px, 2vw, 18px);
  overflow: hidden;
  isolation: isolate;
}

.brand-motion::before,
.brand-motion::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.brand-motion::before {
  inset: 0 -12%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0.34;
  transform: translateX(-86%);
  animation: brandScan 6.8s cubic-bezier(0.65, 0, 0.2, 1) infinite;
}

.brand-motion::after {
  inset: 50% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 232, 0.32), rgba(245, 168, 0, 0.32), transparent);
  opacity: 0.5;
}

.motion-word {
  display: inline-block;
  color: #f7fbff;
  font-size: clamp(1rem, 2.7vw, 1.72rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.16em;
  text-shadow:
    0 0 18px rgba(0, 224, 232, 0.24),
    0 8px 22px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  animation: kineticWord 5.8s cubic-bezier(0.18, 0.84, 0.24, 1) infinite;
}

.motion-word:first-child {
  color: var(--cyan);
}

.motion-word:nth-child(5) {
  animation-delay: 260ms;
}

.motion-gold {
  color: var(--gold);
  text-shadow:
    0 0 18px rgba(245, 168, 0, 0.36),
    0 8px 22px rgba(0, 0, 0, 0.7);
  animation-delay: 130ms;
}

.motion-separator {
  display: inline-block;
  color: rgba(255, 255, 255, 0.52);
  font-size: clamp(1.05rem, 2.5vw, 1.65rem);
  font-weight: 300;
  line-height: 1;
  text-shadow:
    0 0 12px rgba(0, 224, 232, 0.2),
    0 0 14px rgba(245, 168, 0, 0.18);
  animation: kineticDivider 5.8s ease-in-out infinite;
}

@keyframes sweep {
  0%,
  58% {
    opacity: 0;
    transform: translateX(-70%);
  }

  66% {
    opacity: 1;
  }

  78% {
    opacity: 0.18;
  }

  88%,
  100% {
    opacity: 0;
    transform: translateX(70%);
  }
}

@keyframes breatheBeam {
  0%,
  100% {
    opacity: 0.65;
    transform: translateY(-1.2%);
  }

  50% {
    opacity: 0.95;
    transform: translateY(1.5%);
  }
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

@keyframes kineticWord {
  0% {
    opacity: 0.82;
    transform: translateY(0) scale(1);
    filter: brightness(0.86);
  }

  10%,
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1.08);
  }

  80% {
    opacity: 0.92;
    transform: translateY(-0.08em) scale(1.01);
    filter: brightness(1.25);
  }

  82% {
    opacity: 0.84;
    transform: translateY(0.08em) scale(0.995);
    filter: brightness(0.82);
  }

  100% {
    opacity: 0.82;
    transform: translateY(0) scale(1);
    filter: brightness(0.86);
  }
}

@keyframes kineticDivider {
  0%,
  100% {
    opacity: 0.36;
    transform: scaleX(0.7);
  }

  20%,
  72% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes brandScan {
  0%,
  42% {
    transform: translateX(-86%);
  }

  70%,
  100% {
    transform: translateX(86%);
  }
}

@media (max-width: 720px) {
  body {
    overflow-y: auto;
  }

  .stage {
    min-height: 100svh;
    padding: 24px 0;
    place-items: center;
  }

  .reference-art {
    opacity: 0.2;
  }

  .hero {
    width: calc(100vw - 28px);
    min-width: 0;
    max-width: 560px;
  }

  .kicker {
    margin-bottom: 16px;
    max-width: 32ch;
    margin-inline: auto;
    line-height: 1.7;
    letter-spacing: 0.16em;
    text-wrap: balance;
  }

  .type-line {
    min-height: clamp(2.35rem, 12vw, 3.35rem);
    font-size: clamp(1.95rem, 10.8vw, 3.2rem);
    letter-spacing: 0.012em;
  }

  .brand-motion {
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 42px;
    padding-inline: 0;
  }

  .motion-word {
    flex: 0 1 auto;
    font-size: clamp(0.74rem, 3.3vw, 1rem);
    letter-spacing: 0.055em;
  }

  .motion-separator {
    font-size: 0.95rem;
  }
}

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