/* Teaser / gate page — fixed dark, cinematic. Loads after site.css. */

.gate-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(110% 80% at 18% 8%, rgba(10, 132, 255, 0.16), transparent 55%),
    radial-gradient(90% 90% at 88% 100%, rgba(48, 209, 88, 0.08), transparent 60%),
    radial-gradient(120% 90% at 50% 34%, #12161f 0%, #0b0d12 58%, #07080b 100%);
  color: #f5f5f7;
  overflow-x: clip;
}

/* faint grain so the gradients don't band */
.gate-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.gate-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 52px);
}
.gate-top img { height: 24px; width: auto; }
.gate-top .btn--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(245, 245, 247, 0.85);
}
.gate-top .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

.gate-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(8px, 3vh, 40px) clamp(20px, 5vw, 52px) clamp(32px, 6vh, 64px);
}

.gate-copy .kicker { display: block; margin-bottom: 18px; }
.gate-copy h1 {
  font-size: clamp(2.45rem, 5.4vw, 4.1rem);
  font-weight: 900;
  letter-spacing: -0.033em;
  line-height: 1.01;
  color: #fff;
  margin-bottom: 22px;
}
.gate-copy h1 .serif-i { color: #dbe9ff; }
.gate-copy .lede {
  color: rgba(235, 236, 242, 0.78);
  margin-bottom: 34px;
}

.gate-copy .wl {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.gate-copy .wl:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.22);
}
.gate-copy .wl input { color: #fff; }
.gate-copy .wl input::placeholder { color: rgba(235, 236, 242, 0.45); }
.gate-copy .wl-note { color: rgba(235, 236, 242, 0.5); }
.gate-copy .wl-done { color: #6fe092; }

.gate-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 236, 242, 0.62);
}
.gate-proof span { display: inline-flex; align-items: center; gap: 9px; }
.gate-proof i {
  width: 6px; height: 6px;
  background: var(--blue);
  transform: rotate(45deg);
  flex: none;
}

/* ---- Slab cluster ---- */
.gate-stage {
  position: relative;
  height: clamp(420px, 58vh, 640px);
}
.gate-slab {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 10px 30px rgba(0, 0, 0, 0.4);
  rotate: var(--rot, 0deg);
  animation:
    gate-slab-in 1.1s var(--ease-out) var(--d, 0s) both,
    slab-drift 8s ease-in-out calc(var(--d, 0s) + 1.1s) infinite;
}
@keyframes gate-slab-in {
  from { opacity: 0; translate: 0 46px; scale: 0.96; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes slab-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
.gate-slab img { border-radius: 12px; height: 100%; width: auto; }

.gate-slab--hero {
  height: clamp(330px, 46vh, 500px);
  left: 50%;
  top: 6%;
  transform: translateX(-58%);
  --rot: -3.5deg;
  --d: 0.25s;
  z-index: 3;
}
.gate-slab--l {
  height: clamp(200px, 27vh, 300px);
  left: 2%;
  bottom: 4%;
  --rot: -10deg;
  --d: 0.55s;
  z-index: 2;
  filter: brightness(0.92);
}
.gate-slab--r {
  height: clamp(210px, 29vh, 320px);
  right: 0%;
  bottom: 12%;
  --rot: 9deg;
  --d: 0.85s;
  z-index: 2;
  filter: brightness(0.92);
}

/* scan overlay on the hero slab */
.gate-slab--hero .scanbeam__band { animation-duration: 3.2s; }
.gate-price {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: -4%;
  transform: translateX(-58%);
  display: grid;
  gap: 3px;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(24, 27, 34, 0.6);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: price-in 0.8s var(--ease-out) 1.6s both;
}
@keyframes price-in {
  from { opacity: 0; transform: translateX(-58%) translateY(14px) scale(0.94); }
  to { opacity: 1; transform: translateX(-58%) translateY(0) scale(1); }
}
.gate-price .who {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.gate-price .val {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.gate-price .val b {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.gate-price .val span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #6fe092;
  letter-spacing: 0.04em;
}

.gate-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 52px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: rgba(235, 236, 242, 0.45);
}
.gate-foot a { color: rgba(235, 236, 242, 0.65); }
.gate-foot a:hover { color: #fff; }

/* ---- Password modal (dark glass) ---- */
.gate-modal .modal__panel {
  background: rgba(24, 27, 34, 0.62);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 40px 100px rgba(0, 0, 0, 0.6);
  border-radius: 28px;
  color: #fff;
}
.gate-modal .modal__panel h2 { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; }
.gate-modal .modal__panel .sub {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 236, 242, 0.55);
  margin: 8px 0 22px;
}
.gate-modal .input {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.gate-modal .input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.25); }
.gate-modal .err { color: #ff7a72; font-size: 0.86rem; margin-top: 10px; display: none; }
.gate-modal.is-bad .err { display: block; }
.gate-modal.is-bad .modal__panel { animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  55% { transform: translateX(6px); }
  80% { transform: translateX(-3px); }
}
.gate-modal .modal__scrim { background: rgba(4, 6, 10, 0.55); }
.gate-modal .btn--primary { width: 100%; margin-top: 16px; }
.gate-modal .close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
}
.gate-modal .close:hover { color: #fff; }

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .gate-main {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 4px;
  }
  .gate-copy { order: 1; }
  .gate-stage { order: 2; height: clamp(340px, 48vh, 460px); margin-top: 12px; }
  .gate-slab--hero { height: clamp(280px, 38vh, 380px); left: 50%; transform: translateX(-50%); --rot: -3deg; }
  .gate-slab--l { height: 170px; left: -4%; bottom: 0; }
  .gate-slab--r { height: 180px; right: -5%; bottom: 6%; }
  .gate-price { left: 50%; transform: translateX(-50%); }
  @keyframes price-in {
    from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.94); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  }
  .gate-copy h1 { margin-bottom: 16px; }
  .gate-proof { gap: 10px 18px; margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .gate-slab { animation: none; opacity: 1; }
  .gate-price { animation: none; opacity: 1; }
}
