@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --void: #000000;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.85);
  --mint: #c8f0b8;
  --purple: #9b6bb8;
  --ui: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-slow: 720ms;
}

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

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

body {
  background: var(--void);
  color: var(--muted);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 56px) 20px;
  background:
    radial-gradient(ellipse 50% 40% at 50% 20%, rgba(155, 107, 184, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(200, 240, 184, 0.1), transparent 55%),
    url("hero.jpg") center / cover no-repeat,
    var(--void);
}

.gate__inner {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px 32px;
  border-radius: 40px;
  background: rgba(0, 0, 0, 0.72);
}

.gate__logo {
  display: block;
  width: min(120px, 38vw);
  height: auto;
  margin-bottom: 18px;
}

.gate__headline {
  margin: 0;
  font-size: clamp(1.15rem, 4.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.gate__question {
  margin: 14px 0 22px;
  max-width: 28ch;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}

.gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-yes,
.link-no,
.btn-leave {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--void);
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.btn-yes:hover,
.link-no:hover,
.btn-leave:hover {
  background: var(--ink);
  color: var(--void);
}

.gate__denied {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.gate__denied h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.gate__denied p {
  margin: 0 0 6px;
  max-width: 28ch;
  font-size: 0.85rem;
  color: var(--muted);
}

.back-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mint);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.is-denied .gate__headline,
body.is-denied .gate__question,
body.is-denied .gate__actions { display: none; }

body.is-denied .gate__denied { display: flex; }

.enter-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--void);
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

.enter-veil.show {
  transform: translateY(0);
  pointer-events: auto;
}

.enter-veil__text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.enter-veil__sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 520ms var(--ease-out) both; }
  .reveal.d1 { animation-delay: 40ms; }
  .reveal.d2 { animation-delay: 120ms; }
  .reveal.d3 { animation-delay: 200ms; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
