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

:root {
  --ink: #1b1c30;
  --ink-deep: #12131f;
  --teal: #3a928c;
  --teal-hi: #47b6ae;
  --teal-deep: #0f766e;
  --gold: #f8be4f;
  --gold-hi: #f5a304;
  --coral: #ff7a59;
  --cream: #fff8ee;
  --text: #ffffff;
  --text2: rgba(255, 255, 255, 0.72);
  --text3: rgba(255, 255, 255, 0.48);
  --radius: 18px;
  --ui: "Poppins", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-slow: 780ms;
}

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

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

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

.gate {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px) 20px;
  overflow: hidden;
  background: var(--ink);
}

.gate__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 115%, rgba(245, 163, 4, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 122, 89, 0.28), transparent 50%),
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(58, 146, 140, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 15%, rgba(71, 182, 174, 0.16), transparent 50%),
    linear-gradient(180deg, #1b1c30 0%, #17182a 55%, #2a1f28 100%);
  pointer-events: none;
}

.gate__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  opacity: 0.7;
}

.gate__orb--teal {
  width: min(380px, 55vw);
  height: min(380px, 55vw);
  top: -8%;
  left: -6%;
  background: rgba(71, 182, 174, 0.45);
  animation: floatA 16s ease-in-out infinite alternate;
}

.gate__orb--gold {
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  bottom: -12%;
  right: -8%;
  background: rgba(248, 190, 79, 0.4);
  animation: floatB 18s ease-in-out infinite alternate;
}

.gate__orb--coral {
  width: min(280px, 42vw);
  height: min(280px, 42vw);
  bottom: 18%;
  left: 8%;
  background: rgba(255, 122, 89, 0.22);
  animation: floatA 20s ease-in-out infinite alternate-reverse;
}

.gate__rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 18%, rgba(255, 255, 255, 0.04) 18.5%, transparent 19.5%),
    radial-gradient(circle at 50% 42%, transparent 0 28%, rgba(255, 255, 255, 0.03) 28.5%, transparent 29.5%),
    radial-gradient(circle at 50% 42%, transparent 0 40%, rgba(255, 255, 255, 0.025) 40.5%, transparent 41.5%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%);
}

.gate__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gate__mark {
  display: block;
  width: clamp(72px, 16vw, 96px);
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 10px 28px rgba(71, 182, 174, 0.45));
}

.gate__brand {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fff;
  line-height: 1;
}

.gate__tag {
  margin: 10px 0 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.gate__card {
  width: 100%;
  padding: clamp(26px, 4vw, 34px) clamp(22px, 4vw, 30px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.gate__eyebrow {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-hi);
}

.gate__headline {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.gate__headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hi) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gate__question {
  margin: 14px 0 26px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text2);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  min-height: 52px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hi) 100%);
  box-shadow: 0 14px 36px rgba(245, 163, 4, 0.38);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    filter var(--dur-fast) var(--ease-out);
}

.btn-yes:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(245, 163, 4, 0.48);
}

.btn-yes:active { transform: scale(0.98); }

.btn-yes svg { flex-shrink: 0; }

.link-no {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition: color var(--dur-fast) var(--ease-out);
}

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

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

.gate__denied h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.gate__denied p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text2);
  max-width: 30ch;
}

.btn-leave {
  appearance: none;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  padding: 0.75rem 1.4rem;
  font-family: var(--ui);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.btn-leave:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

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

.back-link:hover { color: var(--gold); }

body.is-denied .gate__eyebrow,
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: 12px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(245, 163, 4, 0.35), transparent 55%),
    var(--ink-deep);
  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: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
}

.enter-veil__sub {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

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

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

  @keyframes floatA {
    from { transform: translate(0, 0); }
    to { transform: translate(28px, 20px); }
  }

  @keyframes floatB {
    from { transform: translate(0, 0); }
    to { transform: translate(-24px, -16px); }
  }
}

@media (max-width: 480px) {
  .gate__tag { margin-bottom: 22px; }
  .gate__card { padding: 24px 18px; }
  .btn-yes { max-width: none; }
}
