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

:root {
  --bg: #fffaf7;
  --bg2: #fdfadf;
  --bg3: #fffaf5;
  --border: rgba(228, 137, 78, 0.18);
  --border2: rgba(0, 0, 0, 0.12);
  --text: #1a1a1a;
  --text2: #505050;
  --text3: #7a7a7a;
  --accent: #e4894e;
  --accent2: #c96f38;
  --accent-light: #f4ae50;
  --green: #009267;
  --green-dark: #266945;
  --radius: 10px;
  --display: 'Poppins', system-ui, sans-serif;
  --body: 'Poppins', 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: var(--accent);
  color: #fff;
  text-align: center;
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
}

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

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

.gate__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 30% 35%, rgba(244, 174, 80, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 40% at 75% 65%, rgba(228, 137, 78, 0.14), transparent 70%);
  pointer-events: none;
}

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

.gate__frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(20px, 2.5vw, 36px);
  box-shadow: 0 16px 48px rgba(228, 137, 78, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(560px, 90%);
  height: min(100%, calc(100vh - 38px - 48px));
}

.gate__logo {
  display: block;
  width: auto;
  height: 100%;
  max-height: calc(100vh - 38px - 96px);
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.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__headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  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(--text2);
}

.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: 15px 30px;
  font-family: var(--display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  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(--green-dark);
  border-color: var(--green-dark);
}

.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(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  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: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  color: var(--text);
  margin: 0;
}

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

.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.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  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(--display);
  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: var(--accent);
  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, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  margin: 0;
}

.enter-veil__sub {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  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.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;
    align-items: center;
  }

  .gate__brand {
    height: auto;
  }

  .gate__frame {
    padding: 20px 24px;
    width: auto;
    height: auto;
  }

  .gate__logo {
    width: min(220px, 70%);
    height: auto;
    max-height: none;
  }

  .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; }
}
