:root {
  --zh-lime: #b2c73a;
  --zh-neon-intensity: 0.7;
}

@font-face {
  font-family: 'Digital-7';
  src: url('digital-7/digital-7.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Digital-7', ui-monospace, monospace;
  background: #0a0d12;
  color: #c8d4e0;
  -webkit-font-smoothing: antialiased;
}

.zh-page {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zh-bg-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.zh-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.9) contrast(1.04) brightness(0.72);
}

.zh-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 13, 18, 0.55) 0%, rgba(10, 13, 18, 0.35) 45%, rgba(10, 13, 18, 0.72) 100%),
    linear-gradient(135deg, rgba(20, 35, 55, 0.25) 0%, transparent 50%, rgba(10, 13, 18, 0.4) 100%);
  pointer-events: none;
}

.zh-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    ellipse 80% 70% at 50% 45%,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 65%,
    rgba(0, 0, 0, 0.75) 100%
  );
  pointer-events: none;
}

.zh-haze {
  position: absolute;
  z-index: 3;
  width: 120vmax;
  height: 120vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  animation: zhHazeDrift 28s ease-in-out infinite;
}

.zh-haze-a {
  top: -40%;
  left: -30%;
  background: radial-gradient(circle, rgba(140, 180, 220, 0.4) 0%, transparent 70%);
}

.zh-haze-b {
  bottom: -50%;
  right: -35%;
  background: radial-gradient(circle, rgba(178, 199, 58, 0.12) 0%, transparent 70%);
  animation-delay: -14s;
  animation-direction: reverse;
}

@keyframes zhHazeDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, 2%) scale(1.05); }
}

.zh-grain {
  position: absolute;
  inset: -50%;
  z-index: 4;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: zhGrainShift 8s steps(6) infinite;
  mix-blend-mode: overlay;
}

@keyframes zhGrainShift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(2%, 2%); }
}

.zh-hud-top {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: clamp(0.58rem, 1.9vw, 0.68rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(220, 230, 240, 0.72);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.zh-hud-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.zh-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--zh-lime);
  box-shadow: 0 0 8px rgba(178, 199, 58, 0.6);
  animation: zhPulse 2.4s ease-in-out infinite;
}

@keyframes zhPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.zh-hud-readout {
  font-variant-numeric: tabular-nums;
  color: rgba(220, 230, 240, 0.65);
}

.zh-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(92vw, 520px);
  padding: clamp(0.75rem, 2dvh, 1.25rem) 1.5rem;
  gap: clamp(0.45rem, 1.4dvh, 0.85rem);
}

.zh-reveal {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(18px) scale(1.03);
  animation: zhEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s) forwards;
}

@keyframes zhEnter {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(18px) scale(1.03);
  }
  60% {
    opacity: 0.85;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.zh-kicker {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: clamp(0.68rem, 2.4vw, 0.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(230, 236, 242, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.zh-brand-logo {
  display: block;
  width: clamp(140px, 36vw, 240px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 10px rgba(178, 199, 58, 0.3))
    drop-shadow(0 0 22px rgba(178, 199, 58, 0.12));
  margin-bottom: 0.1rem;
}

.zh-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(88vw, 440px);
  margin-inline: auto;
}

.zh-title {
  font-family: 'Digital-7', monospace;
  font-size: clamp(2rem, 12vw, 3.75rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: #d8ec6a;
  animation: zhNeonFlicker 2.6s infinite alternate;
  text-shadow:
    0 0 0.04em rgba(255, 255, 255, 0.45),
    calc(-0.015em * var(--zh-neon-intensity)) calc(-0.015em * var(--zh-neon-intensity)) calc(0.35em * var(--zh-neon-intensity)) rgba(255, 255, 255, 0.25),
    calc(0.015em * var(--zh-neon-intensity)) calc(0.015em * var(--zh-neon-intensity)) calc(0.35em * var(--zh-neon-intensity)) rgba(255, 255, 255, 0.2),
    0 0 calc(0.45em * var(--zh-neon-intensity)) var(--zh-lime),
    0 0 calc(0.9em * var(--zh-neon-intensity)) rgba(178, 199, 58, 0.9),
    0 0 calc(1.6em * var(--zh-neon-intensity)) rgba(178, 199, 58, 0.6),
    0 0 calc(2.8em * var(--zh-neon-intensity)) rgba(178, 199, 58, 0.38),
    0 0 calc(4em * var(--zh-neon-intensity)) rgba(178, 199, 58, 0.22);
}

@keyframes zhNeonFlicker {
  0%,
  18%,
  20%,
  22%,
  24%,
  53%,
  55%,
  100% {
    opacity: 1;
    text-shadow:
      0 0 0.04em rgba(255, 255, 255, 0.45),
      calc(-0.015em * var(--zh-neon-intensity)) calc(-0.015em * var(--zh-neon-intensity)) calc(0.35em * var(--zh-neon-intensity)) rgba(255, 255, 255, 0.25),
      calc(0.015em * var(--zh-neon-intensity)) calc(0.015em * var(--zh-neon-intensity)) calc(0.35em * var(--zh-neon-intensity)) rgba(255, 255, 255, 0.2),
      0 0 calc(0.45em * var(--zh-neon-intensity)) var(--zh-lime),
      0 0 calc(0.9em * var(--zh-neon-intensity)) rgba(178, 199, 58, 0.9),
      0 0 calc(1.6em * var(--zh-neon-intensity)) rgba(178, 199, 58, 0.6),
      0 0 calc(2.8em * var(--zh-neon-intensity)) rgba(178, 199, 58, 0.38),
      0 0 calc(4em * var(--zh-neon-intensity)) rgba(178, 199, 58, 0.22);
  }

  19%,
  23%,
  54% {
    opacity: 0.88;
    text-shadow:
      0 0 0.2em rgba(178, 199, 58, 0.35),
      0 0 0.55em rgba(178, 199, 58, 0.2);
  }
}

.zh-title.is-glitch {
  animation: zhTitleGlitch 0.35s steps(2) 2, zhNeonFlicker 2.6s infinite alternate;
}

@keyframes zhTitleGlitch {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-2px, 0); }
}

.zh-sold-out {
  font-family: 'Digital-7', monospace;
  font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--zh-lime);
  text-shadow:
    0 0 8px rgba(178, 199, 58, 0.55),
    0 0 18px rgba(178, 199, 58, 0.25);
  margin-top: 0.15rem;
}

.zh-divider {
  width: min(280px, 70vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(178, 199, 58, 0.35) 20%,
    rgba(178, 199, 58, 0.35) 80%,
    transparent
  );
}

.zh-specs {
  display: flex;
  gap: clamp(1rem, 4vw, 2rem);
  justify-content: center;
  flex-wrap: wrap;
}

.zh-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.zh-spec-label {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: clamp(0.58rem, 1.8vw, 0.68rem);
  letter-spacing: 0.22em;
  color: rgba(220, 230, 240, 0.7);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.zh-spec-value {
  font-family: 'Digital-7', monospace;
  font-size: clamp(0.85rem, 3vw, 1.05rem);
  letter-spacing: 0.1em;
  color: var(--zh-lime);
  text-shadow:
    0 0 8px rgba(178, 199, 58, 0.55),
    0 0 18px rgba(178, 199, 58, 0.25);
}

.zh-tagline {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: clamp(0.6rem, 2.1vw, 0.72rem);
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: rgba(225, 232, 240, 0.72);
  max-width: 320px;
}

.zh-controls {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}

.zh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(200, 212, 224, 0.2);
  background: rgba(14, 18, 26, 0.45);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  color: rgba(220, 230, 240, 0.85);
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: clamp(0.62rem, 2vw, 0.72rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    background 0.5s ease,
    filter 0.5s ease,
    color 0.5s ease;
}

.zh-btn:hover {
  transform: scale(1.02);
  border-color: rgba(200, 212, 224, 0.45);
  background: rgba(20, 28, 40, 0.55);
  box-shadow:
    0 0 20px rgba(140, 180, 220, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  filter: blur(0);
}

.zh-btn:active {
  transform: scale(0.98);
}

.zh-btn-primary {
  color: var(--zh-lime);
  border-color: rgba(178, 199, 58, 0.35);
  text-shadow:
    0 0 8px rgba(178, 199, 58, 0.55),
    0 0 18px rgba(178, 199, 58, 0.25);
}

.zh-btn-primary:hover {
  border-color: rgba(178, 199, 58, 0.6);
  background: rgba(20, 28, 40, 0.6);
  box-shadow:
    0 0 20px rgba(178, 199, 58, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--zh-lime);
}

.zh-btn-ghost {
  color: rgba(200, 212, 224, 0.55);
}

.zh-btn-ghost:hover {
  color: rgba(220, 230, 240, 0.9);
}

.zh-gallery {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.zh-gallery[hidden] {
  display: none;
}

.zh-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: zhModalFadeIn 0.35s ease forwards;
}

.zh-gallery-card {
  position: relative;
  z-index: 1;
  width: min(96vw, 920px);
  padding: 0;
  border: none;
  background: transparent;
  animation: zhModalSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes zhModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zhModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zh-gallery-close {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 31;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-family: system-ui, sans-serif;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.zh-gallery-close:hover,
.zh-gallery-close:focus-visible {
  color: var(--zh-lime);
  outline: none;
}

.zh-gallery-video {
  display: block;
  width: 100%;
  max-height: min(82dvh, 680px);
  background: transparent;
  border: none;
  border-radius: 0;
  object-fit: contain;
}

.zh-lang-switch {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 20;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(178, 199, 58, 0.35);
  background: rgba(14, 18, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--zh-lime);
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.zh-lang-switch:hover {
  border-color: rgba(178, 199, 58, 0.6);
  background: rgba(20, 28, 40, 0.65);
  color: #d8ec6a;
}

@media (max-width: 768px) {
  .zh-haze {
    filter: blur(50px);
    opacity: 0.08;
  }

  .zh-bg-photo {
    filter: saturate(0.85) contrast(1.02) brightness(0.68);
  }

  .zh-content {
    width: min(94vw, 420px);
    padding-inline: 1rem;
    gap: clamp(0.35rem, 1.2dvh, 0.7rem);
  }

  .zh-brand-logo {
    width: clamp(170px, 44vw, 240px);
  }

  .zh-kicker {
    font-size: clamp(0.72rem, 3.2vw, 0.82rem);
    letter-spacing: 0.18em;
  }

  .zh-tagline {
    font-size: clamp(0.58rem, 2.4vw, 0.68rem);
    color: rgba(225, 232, 240, 0.72);
    max-width: 88vw;
  }

  .zh-spec-label {
    font-size: clamp(0.62rem, 2.6vw, 0.72rem);
  }

  .zh-hud-top {
    font-size: clamp(0.6rem, 2.8vw, 0.68rem);
  }

  .zh-hero {
    width: min(90vw, 360px);
  }

  .zh-title {
    font-size: clamp(1.75rem, 11vw, 3rem);
    --zh-neon-intensity: 0.55;
  }

  .zh-sold-out {
    font-size: clamp(1rem, 4vw, 1.35rem);
  }

  .zh-specs {
    gap: 0.85rem;
  }

  .zh-gallery-card {
    width: 100vw;
  }

  .zh-gallery-close {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 2rem;
  }

  .zh-gallery-video {
    max-height: 78dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zh-haze,
  .zh-grain,
  .zh-status-dot {
    animation: none;
  }

  .zh-reveal {
    animation: zhEnterReduced 0.8s ease var(--d, 0s) forwards;
  }

  @keyframes zhEnterReduced {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .zh-title.is-glitch {
    animation: none;
  }

  .zh-title {
    animation: none;
    text-shadow:
      0 0 0.04em rgba(255, 255, 255, 0.4),
      0 0 0.5em var(--zh-lime),
      0 0 1.2em rgba(178, 199, 58, 0.55),
      0 0 2em rgba(178, 199, 58, 0.3);
  }

  .zh-gallery-backdrop,
  .zh-gallery-card {
    animation: none;
  }
}
