@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #fdfcfb;
  --bg2: #e4f5f2;
  --bg3: #f9f9f9;
  --border: rgba(19, 129, 119, 0.14);
  --border2: rgba(43, 43, 43, 0.12);
  --text: #2b2b2b;
  --text2: #5d5d5d;
  --text3: #7c7c7c;
  --mint: #81d8d0;
  --green: #138177;
  --green-dark: #0f6b62;
  --warm: #e6ded4;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Open Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-slow: 720ms;
  --strip-h: 34px;
}

*, *::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-stack {
  position: relative;
  z-index: 2;
}

.promo-strip {
  overflow: hidden;
  white-space: nowrap;
  height: var(--strip-h);
  display: flex;
  align-items: center;
}

.promo-strip--ruo {
  background: var(--green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.promo-strip--perks {
  background: var(--mint);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.marquee {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 28s linear infinite;
  padding-left: 100%;
}

.marquee__item {
  flex-shrink: 0;
}

.marquee__dot {
  opacity: 0.45;
  margin: 0 0.35rem;
}

.gate {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  min-height: calc(100vh - (var(--strip-h) * 2));
}

.gate__media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
  background:
    linear-gradient(145deg, #e4f5f2 0%, #f9f9f9 42%, #e6ded4 100%);
}

.gate__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(129, 216, 208, 0.55), transparent 42%),
    radial-gradient(circle at 78% 22%, rgba(19, 129, 119, 0.18), transparent 38%),
    radial-gradient(circle at 62% 78%, rgba(129, 216, 208, 0.35), transparent 40%);
  animation: mesh-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.gate__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: orb-float 9s ease-in-out infinite;
}

.gate__orb--1 {
  width: 220px;
  height: 220px;
  background: rgba(129, 216, 208, 0.45);
  top: 12%;
  left: 8%;
}

.gate__orb--2 {
  width: 180px;
  height: 180px;
  background: rgba(19, 129, 119, 0.2);
  bottom: 14%;
  right: 10%;
  animation-delay: -3s;
}

.gate__brand {
  position: relative;
  z-index: 1;
  width: min(480px, 92%);
  text-align: center;
}

.gate__frame {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 52px) clamp(28px, 4vw, 40px);
  box-shadow:
    0 24px 60px rgba(19, 129, 119, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: frame-rise 800ms var(--ease-out) both;
}

.gate__frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(129, 216, 208, 0.8), rgba(19, 129, 119, 0.35), rgba(129, 216, 208, 0.5));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.gate__logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.gate__logo-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(19, 129, 119, 0.22);
  animation: ring-pulse 3.2s ease-in-out infinite;
}

.gate__logo {
  display: block;
  width: min(220px, 72%);
  height: auto;
  animation: logo-float 5s ease-in-out infinite;
}

.gate__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.gate__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(19, 129, 119, 0.08);
  border: 1px solid rgba(19, 129, 119, 0.14);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

.gate__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(129, 216, 208, 0.35);
  animation: dot-pulse 2s ease-in-out infinite;
}

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

.gate__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(228, 245, 242, 0.35), transparent 40%);
  pointer-events: none;
}

.gate__inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(43, 43, 43, 0.06);
}

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

.gate__headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.gate__headline em {
  font-style: italic;
  color: var(--green);
}

.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 {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.btn-yes::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: btn-shine 3.5s ease-in-out infinite;
}

.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(--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: 600;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  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: 999px;
  background: transparent;
  padding: 0.75rem 1.5rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  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(--green);
  color: var(--green);
}

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

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

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(135deg, #138177 0%, #0f6b62 45%, #81d8d0 100%);
  background-size: 200% 200%;
  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;
  animation: veil-gradient 2.4s ease infinite;
}

.enter-veil__text {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  margin: 0;
}

.enter-veil__sub {
  font-family: var(--body);
  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); }
  }

  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
  }

  @keyframes mesh-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-2%, 2%, 0) scale(1.04); }
  }

  @keyframes orb-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -18px, 0); }
  }

  @keyframes frame-rise {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.06); opacity: 1; }
  }

  @keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  @keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.75; }
  }

  @keyframes btn-shine {
    0%, 100% { transform: translateX(-120%); }
    45%, 55% { transform: translateX(120%); }
  }

  @keyframes veil-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
}

@media (max-width: 860px) {
  .gate {
    grid-template-columns: 1fr;
    grid-template-rows: 42vh 1fr;
    min-height: calc(100vh - (var(--strip-h) * 2));
    height: calc(100vh - (var(--strip-h) * 2));
  }

  .gate__media {
    padding: 20px 24px;
  }

  .gate__frame {
    padding: 24px 20px;
  }

  .gate__logo {
    width: min(180px, 58%);
  }

  .gate__badges {
    gap: 8px;
  }

  .gate__badge {
    font-size: 0.62rem;
    padding: 0.4rem 0.7rem;
  }

  .gate__panel {
    padding: 24px 18px 32px;
    overflow-y: auto;
  }

  .gate__inner {
    padding: 22px 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; padding-left: 1rem; }
  .gate__mesh,
  .gate__orb,
  .gate__logo,
  .gate__logo-ring,
  .gate__badge-dot,
  .btn-yes::after { animation: none; }
}
