:root {
  --navy: #061428;
  --cyan: #2ab4e8;
  --gold: #b89a63;
  --text-main: rgba(255, 255, 255, 0.96);
  --text-sub: rgba(226, 235, 245, 0.78);
  --text-muted: rgba(226, 235, 245, 0.55);
  --safe-x: clamp(22px, 6vw, 92px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--navy);
  color: var(--text-main);
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 20;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--cyan);
  color: #fff;
  background: rgba(4, 19, 38, 0.96);
  font-weight: 900;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #05070d;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.28;
  background:
    radial-gradient(circle at var(--entry-cursor-x, 70%) var(--entry-cursor-y, 26%), rgba(42, 180, 232, 0.3), transparent min(34vw, 480px)),
    linear-gradient(110deg, transparent 0%, rgba(184, 154, 99, 0.1) 48%, transparent 64%);
  mix-blend-mode: screen;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.08);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Keep the video color intact; this is a neutral readability layer, not a blue mask. */
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.62));
}

.hero__grid,
.hero__scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__grid {
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 66%, transparent 100%);
}

.hero__scan {
  opacity: 0.16;
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 7px, rgba(255, 255, 255, 0.05) 8px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  mix-blend-mode: screen;
}

.hero__brand {
  position: absolute;
  left: var(--safe-x);
  top: clamp(22px, 4.8vw, 52px);
  z-index: 6;
  --brand-x: 0px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 12px;
  margin: -10px -18px;
  overflow: visible;
  isolation: isolate;
  text-decoration: none;
  transform-origin: center;
  animation: brandSettle 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__brand::before {
  content: "";
  position: absolute;
  inset: 0 14px 40px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background: radial-gradient(ellipse at 50% 48%, rgba(229, 173, 82, 0.3), rgba(229, 173, 82, 0.1) 34%, transparent 68%);
  border-radius: 999px;
  filter: blur(8px);
  animation: brandAura 6.4s ease-in-out infinite;
}

.hero__brand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 0;
  width: min(146px, 68%);
  height: 1px;
  pointer-events: none;
  opacity: 0.5;
  background: linear-gradient(90deg, transparent, rgba(236, 191, 105, 0.56), transparent);
  transform: translateX(-50%) scaleX(0.76);
  box-shadow: 0 0 12px rgba(218, 166, 82, 0.22);
}

.hero__brand img {
  position: relative;
  z-index: 1;
  width: clamp(156px, 12vw, 206px);
  height: auto;
  filter:
    brightness(1.3)
    contrast(1.08)
    saturate(1.16)
    drop-shadow(0 0 10px rgba(234, 180, 82, 0.28))
    drop-shadow(0 0 20px rgba(148, 77, 35, 0.16));
  mix-blend-mode: normal;
  animation: brandMarkIn 1.05s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__brand span {
  position: relative;
  z-index: 1;
  color: rgba(247, 226, 181, 0.92);
  font-size: clamp(10px, 0.74vw, 13px);
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 0 14px rgba(218, 166, 82, 0.24),
    0 1px 14px rgba(0, 0, 0, 0.5);
  animation: brandTextIn 0.9s 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes brandSettle {
  from {
    opacity: 0;
    transform: translate(var(--brand-x), -10px);
  }

  to {
    opacity: 1;
    transform: translate(var(--brand-x), 0);
  }
}

@keyframes brandMarkIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    filter: brightness(0.8) contrast(0.96) saturate(0.9) drop-shadow(0 0 0 rgba(234, 180, 82, 0));
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes brandTextIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandAura {
  0%,
  100% {
    opacity: 0.26;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.46;
    transform: scale(1.02);
  }
}

.hero__copy {
  position: absolute;
  left: var(--safe-x);
  top: 48%;
  z-index: 5;
  width: min(650px, 44vw);
  min-height: 300px;
  padding: clamp(26px, 3.2vw, 44px);
  color: var(--text-main);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  --active-transform: translate3d(0, -50%, 0);
  --hidden-transform: translate3d(-38px, -50%, 0) scale(0.985);
  filter: blur(10px);
  opacity: 0;
  transform: var(--hidden-transform);
  transition:
    opacity 1.05s ease,
    filter 1.05s ease,
    transform 1.08s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero__copy::before {
  inset: 0;
  z-index: -1;
  border-left: 1px solid rgba(184, 154, 99, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(100deg, rgba(3, 8, 14, 0.1), rgba(3, 8, 14, 0.5) 48%, rgba(3, 8, 14, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 78px);
  box-shadow:
    0 26px 88px rgba(0, 0, 0, 0.24),
    inset 24px 0 42px rgba(184, 154, 99, 0.08);
  mask-image: linear-gradient(90deg, #000 0%, #000 72%, transparent 100%);
}

.hero__copy::after {
  left: 0;
  bottom: 20px;
  width: min(220px, 42%);
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 154, 99, 0.95), rgba(255, 255, 255, 0.55), transparent);
  animation: hudPulse 3.6s ease-in-out infinite;
}

.hero__copy[data-zone="right"] {
  left: auto;
  right: var(--safe-x);
  top: 43%;
  width: min(620px, 42vw);
  --active-transform: translate3d(0, -50%, 0);
  --hidden-transform: translate3d(44px, -50%, 0) scale(0.985);
}

.hero__copy[data-zone="left"] {
  left: var(--safe-x);
  right: auto;
  top: 51%;
  width: min(660px, 45vw);
  --active-transform: translate3d(0, -50%, 0);
  --hidden-transform: translate3d(-44px, -50%, 0) scale(0.985);
}

.hero__copy[data-zone="center"] {
  left: 50%;
  right: auto;
  top: 50%;
  width: min(820px, 72vw);
  text-align: center;
  align-items: center;
  --active-transform: translate3d(-50%, -50%, 0);
  --hidden-transform: translate3d(-50%, -42%, 0) scale(0.98);
}

.hero__copy[data-zone="center"]::before {
  border-left: 0;
  border-top-color: rgba(184, 154, 99, 0.58);
  border-bottom: 1px solid rgba(184, 154, 99, 0.28);
  background:
    radial-gradient(circle at 50% 40%, rgba(184, 154, 99, 0.16), transparent 58%),
    linear-gradient(90deg, transparent, rgba(3, 8, 14, 0.52), transparent);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.hero__copy[data-zone="center"]::after {
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
}

.hero__copy.is-active {
  filter: blur(0);
  opacity: 1;
  transform: var(--active-transform);
}

.hero__copy.is-leaving {
  filter: blur(12px);
  opacity: 0;
  transform: var(--hidden-transform);
  transition-duration: 0.46s;
}

.hero__eyebrow {
  position: relative;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 11px 7px 48px;
  color: rgba(238, 219, 176, 0.96);
  border: 1px solid rgba(184, 154, 99, 0.28);
  background: rgba(2, 7, 13, 0.22);
  font-size: clamp(11px, 0.92vw, 14px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: copyRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, 0.18));
}

.hero__copy[data-zone="center"] .hero__eyebrow {
  padding-left: 11px;
  margin-inline: auto;
}

.hero__copy[data-zone="center"] .hero__eyebrow::before {
  display: none;
}

.hero__title {
  margin: 0;
  font-family: "Arial Narrow", "DIN Alternate", "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(42px, 4.7vw, 74px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
  color: #f7fbff;
  text-shadow:
    0 14px 30px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(255, 255, 255, 0.16),
    0 0 34px rgba(196, 164, 107, 0.18);
}

.hero__title span {
  display: block;
  animation: titleLift 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__title span:nth-child(2) {
  animation-delay: 0.08s;
}

.hero__desc {
  width: min(600px, 100%);
  margin: 24px 0 0;
  padding-left: 18px;
  border-left: 1px solid rgba(184, 154, 99, 0.58);
  color: rgba(239, 246, 255, 0.84);
  font-size: clamp(16px, 1.18vw, 19px);
  line-height: 1.72;
  font-weight: 600;
  animation: copyRise 1.05s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__copy[data-zone="center"] .hero__desc {
  margin-inline: auto;
  padding-left: 0;
  border-left: 0;
}

.hero__actions {
  position: absolute;
  right: var(--safe-x);
  bottom: clamp(30px, 5vw, 58px);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(6, 20, 40, 0.34);
  backdrop-filter: blur(14px);
  font-size: 15px;
  font-weight: 900;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.hero__enter {
  border-color: rgba(184, 154, 99, 0.68);
  background: rgba(184, 154, 99, 0.78);
}

.hero__enter::after {
  content: "→";
  margin-left: 12px;
}

.hero__enter:hover {
  transform: translateY(-3px);
}

.hero__enter::before {
  content: "";
  position: absolute;
  top: -80%;
  bottom: -80%;
  left: -48%;
  width: 42%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(42, 180, 232, 0.5), rgba(255, 255, 255, 0.82), rgba(184, 154, 99, 0.5), transparent);
  filter: drop-shadow(0 0 18px rgba(42, 180, 232, 0.45));
  mix-blend-mode: screen;
  transform: skewX(-18deg);
  transition:
    opacity 0.24s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__enter::after {
  content: "\2197";
  position: relative;
  z-index: 1;
  margin-left: 12px;
}

.hero__enter:hover,
.hero__enter:focus-visible {
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 0 26px rgba(42, 180, 232, 0.22),
    0 16px 42px rgba(0, 0, 0, 0.28);
}

.hero__enter:hover::before,
.hero__enter:focus-visible::before {
  opacity: 1;
  transform: skewX(-18deg) translateX(360%);
}

.entry-ripple {
  position: absolute;
  z-index: 2;
  width: var(--entry-ripple-size, 90px);
  height: var(--entry-ripple-size, 90px);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(42, 180, 232, 0.3) 34%, rgba(184, 154, 99, 0.2) 48%, transparent 70%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(0.1);
  animation: entryRipple 0.62s ease-out forwards;
}

@keyframes titleLift {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes copyRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes hudPulse {
  0%,
  100% {
    opacity: 0.46;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(22px);
  }
}

@keyframes entryRipple {
  0% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(0.08);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 620px;
  }

  .hero__copy,
  .hero__copy[data-zone] {
    left: var(--safe-x);
    right: var(--safe-x);
    top: 48%;
    width: auto;
    min-height: 300px;
    max-width: 620px;
    text-align: left;
    align-items: flex-start;
    --active-transform: translate3d(0, -50%, 0);
    --hidden-transform: translate3d(0, -42%, 0) scale(0.985);
  }

  .hero__actions {
    left: var(--safe-x);
    right: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --safe-x: 20px;
  }

  .hero {
    height: 100svh;
    min-height: 620px;
  }

  .hero__brand {
    left: 50%;
    --brand-x: -50%;
    transform: translateX(-50%);
  }

  .hero__brand img {
    width: 150px;
  }

  .hero__brand span {
    font-size: 10px;
  }

  .hero__copy,
  .hero__copy[data-zone] {
    top: 46%;
    max-width: none;
    min-height: 292px;
    padding: 22px;
    filter: none;
    transition:
      opacity 0.72s ease,
      transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero__eyebrow {
    margin-bottom: 18px;
    padding-left: 34px;
    letter-spacing: 0.18em;
  }

  .hero__eyebrow::before {
    width: 24px;
  }

  .hero__title {
    font-size: clamp(31px, 9vw, 42px);
  }

  .hero__title span,
  .hero__desc {
    animation: none;
    filter: none;
    opacity: 1;
    transform: none;
  }

  .hero__desc {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.68;
  }

  .hero__actions {
    right: var(--safe-x);
    bottom: 28px;
    display: grid;
    grid-template-columns: 1fr;
    width: min(220px, calc(100% - var(--safe-x) * 2));
  }

  .hero__enter {
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy,
  .hero__enter {
    transition: none;
  }

  .hero__scan {
    animation: none;
  }

  .hero__eyebrow,
  .hero__title span,
  .hero__desc,
  .hero__copy::after,
  .hero::before,
  .hero__enter::before,
  .entry-ripple {
    animation: none;
  }

  .hero__enter::before,
  .entry-ripple {
    display: none;
  }
}
