:root {
  --bg: #050505;
  --orb-bg: #E4EEF1;
  --text: #fff;

  --glow-a: #1e5f9a;
  --glow-b: #00a67a;
  --glow-c: #0ca2c5;

  --glitch-shift: 6px;
  --glitch-red: rgba(255, 60, 60, 0.9);
  --glitch-cyan: rgba(0, 220, 255, 0.9);
  --scan-opacity: 0.24;
  --noise-opacity: 0.34;
  --shape-offset-x: -10%;
  --shape-offset-y: -5%;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.stage {
  min-height: 100vh;
  min-height: 100dvh;
}

.defs {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.hero {
  --mx: 50%;
  --my: 45%;
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  border: 0;
  box-shadow: none;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -45%;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(30, 95, 154, 0.56), transparent 56%),
    radial-gradient(circle at calc(var(--mx) + 18%) calc(var(--my) - 10%), rgba(0, 166, 122, 0.42), transparent 57%),
    radial-gradient(circle at calc(var(--mx) - 16%) calc(var(--my) + 18%), rgba(12, 162, 197, 0.36), transparent 60%);
  filter: blur(62px) saturate(1.18);
  opacity: 0.64;
  transform: scale(1.05);
  transition: opacity 280ms ease-out;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -60%;
  background:
    conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.00),
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.00),
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.00)
    );
  mix-blend-mode: screen;
  opacity: 0.14;
  animation: spin 22s linear infinite;
  z-index: 1;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.78) 72%);
  z-index: 2;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px);
}

.hero-layout {
  width: min(1100px, 94vw);
  min-height: min(700px, 82vh);
  position: relative;
  display: grid;
  place-items: center;
}

.orb {
  width: min(560px, 78vw);
  aspect-ratio: 1 / 1;
  position: relative;
  clip-path: circle(49% at 50% 50%);
  background: var(--orb-bg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}

.stack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateZ(0);
}

.shape {
  width: 70%;
  height: auto;
  display: block;
  transform: translate(var(--shape-offset-x), var(--shape-offset-y)) translateZ(0);
  will-change: transform, filter, opacity;
  fill: currentColor;
}

.shape use,
.shape path {
  fill: currentColor;
}

.layer-main .shape {
  color: #1f0641;
}

.layer-r .shape {
  color: var(--glitch-red);
  mix-blend-mode: multiply;
}

.layer-c .shape {
  color: var(--glitch-cyan);
  mix-blend-mode: multiply;
}

.layer-r {
  transform: translateX(calc(var(--glitch-shift) * -0.25));
}

.layer-c {
  transform: translateX(calc(var(--glitch-shift) * 0.25));
}

.orb.flicker .layer-main {
  opacity: 0.92;
  filter: contrast(1.05);
}

.orb.flicker .layer-r {
  transform: translateX(calc(var(--glitch-shift) * -1));
}

.orb.flicker .layer-c {
  transform: translateX(calc(var(--glitch-shift) * 1));
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--scan-opacity);
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0) 1px,
    rgba(0, 0, 0, 0.82) 2px,
    rgba(0, 0, 0, 0.22) 3px
  );
  mix-blend-mode: multiply;
}

.noise {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.62) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.1) 0.8px, transparent 0.8px);
  background-size: 2px 2px, 3px 3px;
  background-position: 0 0, 1px 1px;
  transform: rotate(10deg);
  mix-blend-mode: overlay;
  animation: drift 2.5s linear infinite;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) rotate(10deg);
  }

  100% {
    transform: translate(40px, -30px) rotate(10deg);
  }
}

.slice {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(0);
  will-change: transform, opacity, clip-path;
}

.title-wrap {
  position: absolute;
  left: 0;
  top: 52%;
  transform: translateY(-50%);
  padding-left: clamp(8px, 2vw, 24px);
}

.wordmark-wrap {
  position: relative;
  display: inline-block;
  user-select: none;
  text-transform: uppercase;
  line-height: 0.92;
}

.wordmark-glow {
  position: absolute;
  inset: 0;
  transform: scale(1.03);
  filter: blur(14px) saturate(1.12) brightness(1.08);
  opacity: 0.38;
  background: linear-gradient(90deg, var(--glow-a), var(--glow-b), var(--glow-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(48px, 9vw, 110px);
  line-height: 0.92;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.85));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  mix-blend-mode: screen;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  .content {
    padding: clamp(16px, 5vw, 24px);
  }

  .hero-layout {
    width: min(560px, 100%);
    min-height: min(640px, 82dvh);
  }

  .orb {
    width: min(72vw, 340px);
  }

  .title-wrap {
    position: absolute;
    left: clamp(8px, 3.2vw, 22px);
    top: 52%;
    transform: translateY(-50%);
    padding-left: 0;
    text-align: left;
  }

  .wordmark {
    font-size: clamp(30px, 10.5vw, 58px);
    line-height: 0.92;
  }

  .hero::before {
    filter: blur(54px) saturate(1.25);
    opacity: 0.76;
  }

  .wordmark-glow {
    filter: blur(12px) saturate(1.15) brightness(1.1);
    opacity: 0.42;
  }
}

.glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.00) 45%);
  opacity: 0.18;
  z-index: 2;
  pointer-events: none;
}

.pulse {
  animation: pulse 3.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(1.05);
  }

  50% {
    opacity: 0.86;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .noise,
  .pulse {
    animation: none;
  }

  .layer-r,
  .layer-c,
  .slice {
    transform: none;
    opacity: 0;
  }
}

@media (min-width: 769px) and (max-width: 820px) {
  .hero-layout {
    width: min(900px, 94vw);
  }

  .orb {
    width: min(520px, 88vw);
  }

  .title-wrap {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-top: clamp(18px, 4vw, 30px);
    text-align: center;
    padding-left: 0;
  }

  .wordmark-glow,
  .wordmark {
    font-size: clamp(44px, 15vw, 86px);
  }
}
