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

:root {
  --ink: #000000;
  --bg: #ffffff;
  --mint: #00ff9c;
  --mint-deep: #00d984;
  --text: #111111;
  --text2: #555555;
  --ui: "Inter", Helvetica, Arial, sans-serif;
  --display: "Assistant", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
}

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

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

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

.gate {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 255, 156, 0.18), transparent 60%),
    #fff;
}

.gate__inner {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  text-align: center;
}

.gate__logo {
  display: block;
  width: min(140px, 42vw);
  height: auto;
  margin: 0 auto 28px;
}

.gate__welcome {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: uppercase;
}

.gate__headline {
  margin: 0 0 28px;
  font-family: var(--ui);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text2);
}

.gate__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-yes {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: min(260px, 100%);
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast) ease;
}

.btn-yes:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.link-no {
  appearance: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--text2);
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-no:hover { color: var(--ink); }

.gate__denied {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeUp 400ms var(--ease-out);
}

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

.gate__denied p {
  margin: 0 0 6px;
  max-width: 32ch;
  font-size: 0.95rem;
}

.btn-leave {
  appearance: none;
  min-width: min(220px, 100%);
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
}

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

body.is-denied .gate__welcome,
body.is-denied .gate__headline,
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: 8px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 480ms var(--ease-out), visibility 480ms;
}

.enter-veil.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

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

.enter-veil__sub {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text2);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 650ms var(--ease-out) forwards;
}
.reveal.d1 { animation-delay: 60ms; }
.reveal.d2 { animation-delay: 160ms; }
.reveal.d3 { animation-delay: 280ms; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}
