:root {
  color-scheme: dark;
  --page-bg: #07131b;
  --text-main: #f1f4f7;
  --text-dim: #a4b3bc;
  --accent: #ff7676;
  --hero-max-width: 78rem;
  --header-height: 4.5rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 118, 118, 0.12), transparent 32%),
    radial-gradient(circle at 82% 16%, rgba(255, 201, 120, 0.08), transparent 26%),
    linear-gradient(180deg, #07131b 0%, #0b1a23 100%);
  color: var(--text-main);
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(5, 15, 22, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  width: min(100% - 2rem, var(--hero-max-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.hero {
  width: min(100% - 2rem, var(--hero-max-width));
  margin: 0 auto;
  padding: 2rem 0 1rem;
}

.hero__copy {
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero__text,
.content-row p {
  margin-top: 1rem;
  color: var(--text-dim);
  line-height: 1.65;
  font-size: 1rem;
}

.hero__stage-shell {
  border-radius: 1.75rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.26);
}

.hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 24 / 9;
  min-height: clamp(20rem, 48vh, 34rem);
  overflow: hidden;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 50% 50%, rgba(255, 118, 118, 0.1), transparent 38%),
    linear-gradient(180deg, #0c1820 0%, #061017 100%);
  cursor: grab;
  user-select: none;
  touch-action: none;
  outline: none;
}

.hero__stage.is-dragging {
  cursor: grabbing;
}

.hero__stage:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(241, 244, 247, 0.16),
    inset 0 0 1.6rem rgba(255, 138, 107, 0.08);
}

.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.hero__glow {
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.28;
  pointer-events: none;
}

.hero__glow--left {
  top: 12%;
  left: -4rem;
  background: radial-gradient(circle, rgba(255, 118, 118, 0.8), transparent 62%);
}

.hero__glow--right {
  right: -3rem;
  bottom: 8%;
  background: radial-gradient(circle, rgba(255, 193, 92, 0.78), transparent 62%);
}

.hero__brand-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(72%, 64rem);
  text-align: center;
  background: transparent;
  color: rgba(0, 0, 0, 0.74);
  font-size: clamp(2.5rem, 8vw, 7.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0.18rem 0.55rem rgba(255, 255, 255, 0.1);
}

.hero__click-cue {
  position: absolute;
  top: 17%;
  left: 10%;
  transform: translate(0, 0);
  z-index: 3;
  width: 10rem;
  height: 10rem;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.hero__stage.is-engaged .hero__click-cue {
  opacity: 0;
  transform: translate(0, -0.8rem);
}

.hero__click-text {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0.4rem 1.1rem rgba(0, 0, 0, 0.34);
  animation: clickCuePulse 1.45s ease-in-out infinite;
}

.hero__click-ripple {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  animation: clickRipple 1.8s ease-out infinite;
}

.hero__click-ripple--two {
  animation-delay: 0.9s;
}

.hero__help {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}

.hero__help-trigger {
  color: rgba(164, 179, 188, 0.74);
  font-size: 0.82rem;
  line-height: 1;
  cursor: default;
  user-select: none;
}

.hero__help-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  min-width: max-content;
  margin: 0;
  padding: 0.55rem 0.65rem;
  background: rgba(6, 12, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(241, 244, 247, 0.88);
  font-size: 0.78rem;
  line-height: 1.35;
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.25rem);
  transition:
    opacity 150ms ease,
    transform 150ms ease,
    visibility 150ms ease;
}

.hero__help:hover .hero__help-popover,
.hero__help:focus-within .hero__help-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.content-row {
  width: min(100% - 2rem, var(--hero-max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.content-row h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

@media (max-width: 700px) {
  .site-header__inner,
  .site-nav {
    flex-wrap: wrap;
  }

  .site-nav {
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 1.25rem;
  }

  .hero__stage {
    aspect-ratio: 16 / 9;
    min-height: 18rem;
  }

  .hero__brand-mark {
    width: min(86%, 30rem);
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .hero__help {
    right: 0.55rem;
    bottom: 0.45rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-canvas,
  .hero__stage {
    transition: none !important;
  }

  .hero__click-text,
  .hero__click-ripple {
    animation: none !important;
  }
}

@keyframes clickCuePulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes clickRipple {
  0% {
    opacity: 0.42;
    width: 3rem;
    height: 3rem;
  }

  100% {
    opacity: 0;
    width: 8.5rem;
    height: 8.5rem;
  }
}
