/* ─── Landing — Font Flash Cut ─── */
@import url('./hao-flash.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
}

body.is-exiting { pointer-events: none; }

.landing {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000;
}

.landing__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.landing__title-wrap {
  pointer-events: none;
}

.landing__title-wrap .landing__title {
  pointer-events: auto;
}

/* hao-title-stage + .hao-title-flash base styles live in hao-flash.css */

/* ─── Button — fixed position, no jump ─── */
.landing__enter {
  position: absolute;
  bottom: clamp(2.5rem, 8vh, 4.5rem);
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.82);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.landing__enter:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  transform: translateX(-50%) translateY(-2px);
}

.landing__enter:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 5px;
}

.landing.is-exiting .landing__enter {
  animation: landingExit 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.landing.is-exiting .landing__title-wrap {
  z-index: 700;
}

.landing.is-exiting {
  background: #000;
}

@keyframes landingExit {
  to { opacity: 0; }
}

@media (max-width: 640px) {
  .landing__enter {
    font-size: 0.5625rem;
    letter-spacing: 0.18em;
    padding: 0.75rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing__title { font-family: Inter, sans-serif !important; color: #fff !important; }
  .fx-glitch { animation: none; }
}
