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

:root {
  --bg: #ffffff;
  --bg2: #f4f4f4;
  --bg3: #fafafa;
  --border: rgba(69, 87, 201, 0.12);
  --border2: rgba(65, 64, 66, 0.14);
  --text: #414042;
  --text2: #414042;
  --text3: #888888;
  --accent: #4557c9;
  --accent2: #182ba8;
  --accent-dark: #182ba8;
  --radius: 999px;
  --display: 'Oxanium', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', 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(--bg);
  color: var(--text2);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.promo-strip {
  background: linear-gradient(180deg, #4557c9 34%, #182ba8 77%);
  color: #fff;
  text-align: center;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

.gate {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100vh - 38px);
}

.gate__media {
  position: relative;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3vw, 48px);
}

.gate__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 25% 30%, rgba(69, 87, 201, 0.12), transparent 70%),
    radial-gradient(ellipse 45% 40% at 80% 70%, rgba(24, 43, 168, 0.08), transparent 70%);
  pointer-events: none;
}

.gate__brand {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate__frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 36px);
  box-shadow: 0 16px 48px rgba(69, 87, 201, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(560px, 92%);
}

.gate__lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 28px);
}

.gate__icon {
  display: block;
  width: clamp(96px, 18vw, 148px);
  height: auto;
  flex-shrink: 0;
}

.gate__word {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
}

.gate__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.4vw, 68px);
  background: var(--bg);
}

.gate__inner {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.gate__eyebrow {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.gate__headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

.gate__headline em {
  font-style: normal;
  color: var(--accent);
}

.gate__question {
  margin: 22px 0 32px;
  max-width: 38ch;
  font-size: 0.95rem;
  color: var(--text3);
}

.gate__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.btn-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.btn-yes:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}

.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(--body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border2);
  transition: color var(--dur-fast) var(--ease-out);
}

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

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

.gate__denied h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

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

.btn-leave {
  appearance: none;
  border: 2px solid var(--border2);
  border-radius: var(--radius);
  background: transparent;
  padding: 0.75rem 1.5rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.btn-leave:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

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

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

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

.enter-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(180deg, #4557c9 34%, #182ba8 77%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  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 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 7vw, 60px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  margin: 0;
}

.enter-veil__sub {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 560ms var(--ease-out) both; }
  .reveal.d1 { animation-delay: 40ms; }
  .reveal.d2 { animation-delay: 100ms; }
  .reveal.d3 { animation-delay: 180ms; }
  .reveal.d4 { animation-delay: 260ms; }

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

@media (max-width: 860px) {
  .gate {
    grid-template-columns: 1fr;
    grid-template-rows: 35vh 1fr;
    min-height: calc(100vh - 38px);
    height: calc(100vh - 38px);
  }

  .gate__media {
    height: 35vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
  }

  .gate__frame {
    padding: 20px 24px;
    width: min(420px, 94%);
  }

  .gate__lockup {
    gap: 14px;
  }

  .gate__icon {
    width: clamp(72px, 20vw, 96px);
  }

  .gate__word {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .gate__panel {
    padding: 28px 22px 36px;
    overflow-y: auto;
  }

  .gate__actions { width: 100%; align-items: stretch; }
  .btn-yes { width: 100%; }
  .link-no { align-self: center; }
}
