:root {
  color-scheme: dark;
  --ink: #fbfff6;
  --muted: rgba(244, 249, 242, 0.72);
  --line: rgba(231, 246, 255, 0.34);
  --mx: 50vw;
  --my: 50vh;
  --px: 0;
  --py: 0;
  --scan: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow: hidden;
  background: #03070d;
  color: var(--ink);
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", monospace;
  line-height: 1.5;
}

a {
  color: rgba(229, 255, 248, 0.92);
  text-underline-offset: 4px;
}

.video-hero-stage,
.video-hero-media,
.video-hero-canvas,
.pointer-aura,
.scene-grade,
.film-grain {
  position: fixed;
  inset: 0;
}

.video-hero-stage {
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
}

.video-hero-media {
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: #03070d;
}

.video-hero-media::before {
  content: "";
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 0;
  width: min(24rem, 34vw);
  height: min(14rem, 28vh);
  background:
    radial-gradient(ellipse at 82% 76%, rgba(0, 5, 10, 0.86), rgba(0, 5, 10, 0.54) 0 34%, rgba(0, 5, 10, 0.22) 58%, transparent 78%),
    linear-gradient(135deg, transparent 18%, rgba(0, 5, 10, 0.38));
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.04) contrast(1.04) brightness(0.96);
  transform:
    translate3d(calc(var(--px) * -5px), calc(var(--py) * -3px), 0)
    scale(1.006);
  transform-origin: center center;
  will-change: transform;
}

.video-hero-canvas {
  z-index: 10;
  width: 100%;
  height: 100%;
}

.pointer-aura {
  z-index: 5;
  opacity: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(250, 255, 255, 0.13), rgba(128, 219, 255, 0.045) 0 3.4rem, transparent 8.8rem),
    conic-gradient(from calc(var(--scan) * 3deg) at var(--mx) var(--my), transparent 0deg, rgba(205, 238, 255, 0.052) 14deg, transparent 31deg, transparent 360deg);
  mix-blend-mode: screen;
  transition: opacity 220ms ease;
}

.video-hero-home.has-pointer .pointer-aura {
  opacity: 0.54;
}

.scene-grade {
  z-index: 8;
  background:
    radial-gradient(ellipse at 55% 61%, rgba(255, 217, 158, 0.13), transparent 0 28%),
    radial-gradient(ellipse at 68% 13%, rgba(152, 216, 255, 0.12), transparent 0 31%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.38) 22%, rgba(0, 0, 0, 0.1) 47%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 6, 12, 0.1), transparent 46%, rgba(0, 4, 9, 0.66));
}

.scene-grade::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 45%, rgba(0, 0, 0, 0.42), transparent 0 33%),
    linear-gradient(180deg, transparent 0 78%, rgba(0, 0, 0, 0.42) 100%);
}

.scene-grade::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8.5rem;
  background:
    linear-gradient(180deg, transparent, rgba(0, 4, 9, 0.8));
}

.film-grain {
  z-index: 12;
  opacity: 0.1;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 74% 46%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 36% 82%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px);
  background-size: 89px 89px, 137px 137px, 223px 223px;
  transform: translate3d(calc(var(--scan) * 1px), calc(var(--scan) * -0.65px), 0);
}

.video-hero-nav {
  position: fixed;
  z-index: 20;
  left: clamp(1.15rem, 4.8vw, 4.6rem);
  top: clamp(1rem, 3.8vh, 2.25rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  color: rgba(248, 250, 243, 0.84);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.52);
}

.brand img {
  width: 1.6rem;
  height: 1.6rem;
  filter: drop-shadow(0 0 16px rgba(154, 216, 255, 0.22));
}

.hero-copy {
  position: fixed;
  z-index: 20;
  left: clamp(1.45rem, 6.3vw, 5rem);
  top: clamp(8rem, 25vh, 13.2rem);
  width: min(27.5rem, calc(100vw - 2.9rem));
  text-shadow: 0 1px 32px rgba(0, 0, 0, 0.72);
}

.hero-copy h1 {
  display: grid;
  gap: 0.01em;
  margin: 0;
  color: #fbfff6;
  font-size: clamp(3.45rem, 6.45vw, 6.1rem);
  line-height: 0.93;
  letter-spacing: 0;
  font-weight: 900;
}

.eyebrow {
  margin: 1rem 0 1.52rem;
  color: var(--muted);
  font-size: clamp(0.76rem, 0.96vw, 0.9rem);
  font-weight: 760;
}

.hero-actions {
  display: flex;
  gap: 0.62rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.55rem;
  min-height: 2.72rem;
  padding: 0.68rem 1.18rem;
  border: 1px solid rgba(232, 246, 255, 0.34);
  border-radius: 0.38rem;
  color: rgba(250, 255, 247, 0.96);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 820;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.026)),
    rgba(0, 8, 15, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.72rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: 0.82;
  transform: rotate(45deg);
}

.button:hover,
.button:focus-visible {
  border-color: rgba(244, 250, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(16, 34, 47, 0.34);
  transform: translateY(-1px);
}

.button.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.016)),
    rgba(0, 6, 12, 0.2);
}

.site-footer {
  position: fixed;
  z-index: 24;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.95rem clamp(1.2rem, 4vw, 4rem) calc(0.95rem + env(safe-area-inset-bottom));
  color: rgba(229, 236, 232, 0.76);
  font-size: clamp(0.68rem, 0.92vw, 0.78rem);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.footer-inner > :first-child {
  justify-self: start;
}

.footer-inner > :nth-child(2) {
  justify-self: center;
}

.footer-inner > :last-child {
  justify-self: end;
}

.police-filing {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.police-filing img {
  width: 1rem;
  height: auto;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  body {
    overflow: auto;
    min-height: 100dvh;
  }

  .hero-video {
    object-position: 58% center;
  }

  .scene-grade {
    background:
      radial-gradient(ellipse at 63% 50%, rgba(255, 217, 158, 0.12), transparent 0 30%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.34) 54%, rgba(0, 0, 0, 0.12)),
      linear-gradient(180deg, rgba(0, 6, 12, 0.08), transparent 42%, rgba(0, 4, 9, 0.76));
  }

  .hero-copy {
    top: 20vh;
    left: 1.5rem;
    width: calc(100vw - 3rem);
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 14vw, 4.25rem);
  }

  .hero-actions {
    display: grid;
    width: min(18rem, 100%);
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.36rem;
  }

  .footer-inner > :first-child,
  .footer-inner > :nth-child(2),
  .footer-inner > :last-child {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    transform: none;
  }

  .video-hero-canvas,
  .pointer-aura {
    display: none;
  }
}
