/* =====================================================
   HIP DURIAN — pre-launch splash gate styles
   Delete this file when removing the gate.
   ===================================================== */

/* Lock the real site behind the splash */
html.hd-splash-lock body > *:not(.hd-splash) {
  display: none !important;
}
html.hd-splash-lock,
html.hd-splash-lock body {
  overflow: hidden !important;
  height: 100vh;
}

/* Overlay */
.hd-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(
      ellipse at 50% 30%,
      #1a1712 0%,
      #0a0908 60%,
      #050403 100%
    );
  color: #f5efe3;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: hd-fadein 0.6s ease-out both;
}
.hd-splash.hd-splash-fadeout {
  animation: hd-fadeout 0.5s ease-in forwards;
}

.hd-splash-inner {
  max-width: 520px;
  width: 100%;
  text-align: center;
  transform: translateZ(0);
}
.hd-splash-inner.hd-shake {
  animation: hd-shake 0.4s ease-in-out;
}

/* Logo — gently bouncing durian */
.hd-splash-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 2rem;
  display: block;
  animation: hd-bounce 3s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px rgba(212, 175, 55, 0.28));
}

/* Title */
.hd-splash-title {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #f5efe3;
  letter-spacing: -0.005em;
}
.hd-splash-title em {
  font-style: italic;
  background: linear-gradient(180deg, #f0d67a 0%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d4af37;
}

.hd-splash-sub {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(245, 239, 227, 0.6);
  margin: 0 0 2rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Form */
.hd-splash-form {
  display: flex;
  gap: 0.5rem;
  max-width: 380px;
  margin: 0 auto;
}
.hd-splash-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f5efe3;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
}
.hd-splash-input::placeholder {
  color: rgba(245, 239, 227, 0.35);
  letter-spacing: 0.02em;
}
.hd-splash-input:focus {
  border-color: rgba(212, 175, 55, 0.75);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.hd-splash-btn {
  background: linear-gradient(180deg, #f0d67a 0%, #d4af37 100%);
  color: #0a0908;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.hd-splash-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
  filter: brightness(1.06);
}
.hd-splash-btn:active {
  transform: translateY(0);
}

.hd-splash-err {
  color: #e08f8f;
  font-size: 0.85rem;
  margin: 1rem 0 0;
  min-height: 1.2em;
  letter-spacing: 0.01em;
}

/* Animations */
@keyframes hd-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hd-fadeout {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes hd-bounce {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-14px) rotate(1deg); }
}
@keyframes hd-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hd-splash-logo { animation: none; }
  .hd-splash { animation: none; }
}

/* Mobile */
@media (max-width: 480px) {
  .hd-splash-form {
    flex-direction: column;
  }
  .hd-splash-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 1.5rem;
  }
}
