/* REV JAMi-PROFILE-1.32 - 2026 swipe gate visual polish
   Additive gate styling only. Keeps the existing profile, modal, gallery and main JS systems untouched. */

body.interest-gate-active,
body.contact-verify-open {
  overflow: hidden;
}

.interest-gate,
.contact-verify {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom));
  color: #f4f8f8;
  background:
    radial-gradient(circle at 16% 18%, rgba(111, 247, 239, 0.16), transparent 26%),
    radial-gradient(circle at 82% 84%, rgba(255, 42, 160, 0.12), transparent 28%),
    linear-gradient(rgba(111, 247, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 247, 239, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(1, 9, 9, 0.985), rgba(0, 2, 3, 0.995));
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.interest-gate::before,
.contact-verify::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(111, 247, 239, 0.09) 43%, rgba(255, 255, 255, 0.10) 50%, rgba(111, 247, 239, 0.06) 57%, transparent 100%);
  opacity: 0.32;
  transform: translateX(-120%);
  animation: gateLightScan 8.8s ease-in-out infinite;
}

.contact-verify {
  z-index: 10060;
  background:
    radial-gradient(circle at 48% 28%, rgba(111, 247, 239, 0.12), transparent 34%),
    rgba(0, 5, 5, 0.84);
  backdrop-filter: blur(6px);
}

html.interest-confirmed .interest-gate,
.interest-gate.is-hidden,
.contact-verify[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-card,
.contact-verify-card {
  --corner: 24px;
  position: relative;
  width: min(464px, 100%);
  padding: 34px 28px 30px;
  text-align: center;
  border: 1px solid rgba(111, 247, 239, 0.24);
  border-radius: var(--corner);
  background:
    linear-gradient(135deg, rgba(111, 247, 239, 0.12), transparent 30%),
    linear-gradient(315deg, rgba(255, 42, 160, 0.08), transparent 34%),
    rgba(2, 15, 15, 0.88);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 42px rgba(111, 247, 239, 0.10);
  overflow: hidden;
}

.gate-card::before,
.contact-verify-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: calc(var(--corner) - 8px);
  border: 1px solid rgba(111, 247, 239, 0.10);
  background:
    linear-gradient(90deg, rgba(111, 247, 239, 0.18), transparent 22%, transparent 78%, rgba(111, 247, 239, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%);
  opacity: 0.45;
}

.gate-card::after,
.contact-verify-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 18%, rgba(111, 247, 239, 0.42) 42%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 42, 160, 0.18) 58%, transparent 82%);
  opacity: 0.22;
  mix-blend-mode: screen;
  transform: translateX(-64%);
  animation: gatePanelGlide 9.6s ease-in-out infinite;
}

.gate-card > *,
.contact-verify-card > * {
  position: relative;
  z-index: 1;
}

.gate-logo {
  width: min(280px, 78vw);
  height: auto;
  display: block;
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.10));
}

.gate-kicker,
.contact-verify-kicker {
  display: block;
  margin: 0 0 12px;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #69f6ef;
  text-shadow: 0 0 12px rgba(105, 246, 239, 0.22);
}

.gate-card h2,
.contact-verify-card h2 {
  margin: 0 0 28px;
  font-size: clamp(2.1rem, 8vw, 3.05rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.gate-card p,
.contact-verify-card p {
  margin: 18px auto 26px;
  max-width: 34ch;
  color: rgba(244, 248, 248, 0.72);
  font-size: 1rem;
  line-height: 1.48;
}

.swipe-verify {
  --swipe-progress: 0;
  --swipe-max: 260px;
  position: relative;
  user-select: none;
}

.swipe-track {
  position: relative;
  height: 68px;
  border: 1px solid rgba(111, 247, 239, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(111, 247, 239, 0.08), transparent 18%, transparent 82%, rgba(255, 42, 160, 0.07)),
    rgba(0, 7, 7, 0.78);
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.40),
    0 0 24px rgba(111, 247, 239, 0.08);
  overflow: hidden;
}

.swipe-track::before {
  content: "";
  position: absolute;
  inset: 9px 14px 9px 72px;
  border-top: 1px solid rgba(111, 247, 239, 0.18);
  border-bottom: 1px solid rgba(111, 247, 239, 0.08);
  opacity: 0.78;
}

.swipe-track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 82px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(111, 247, 239, 0.45), transparent 70%);
  transform: translateY(-50%);
  opacity: 0.46;
}

.swipe-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--swipe-progress) * 100%);
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(111, 247, 239, 0.30), rgba(111, 247, 239, 0.13), rgba(255, 42, 160, 0.08));
  box-shadow: 0 0 28px rgba(111, 247, 239, 0.16);
  transition: width 180ms ease;
}

.swipe-label,
.swipe-confirmed {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: 86px;
  padding-right: 18px;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 248, 248, 0.76);
  transition: opacity 220ms ease;
}

.swipe-confirmed {
  opacity: 0;
  color: #8dfff7;
}

.swipe-thumb {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #020807;
  font-size: 1.35rem;
  font-weight: 900;
  background:
    linear-gradient(135deg, #7ffff7, #43d1ca 48%, #1c8f91);
  box-shadow:
    0 0 0 5px rgba(111, 247, 239, 0.08),
    0 0 24px rgba(111, 247, 239, 0.32);
  transform: translateX(calc(var(--swipe-progress) * var(--swipe-max)));
  transition: transform 180ms ease, box-shadow 180ms ease, border-radius 180ms ease;
  cursor: grab;
  touch-action: none;
}

.swipe-thumb:active {
  cursor: grabbing;
}

.swipe-verify.is-dragging .swipe-thumb,
.swipe-verify.is-dragging .swipe-fill {
  transition: none;
}

.swipe-verify.is-complete .swipe-label {
  opacity: 0;
}

.swipe-verify.is-complete .swipe-confirmed {
  opacity: 1;
}

.swipe-verify.is-complete .swipe-thumb {
  border-radius: 999px;
  box-shadow:
    0 0 0 7px rgba(111, 247, 239, 0.10),
    0 0 34px rgba(111, 247, 239, 0.52);
}

.contact-verify-card {
  padding-top: 32px;
}

.contact-verify-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(111, 247, 239, 0.30);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #f4f8f8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

@keyframes gateLightScan {
  0%, 58% { transform: translateX(-120%); opacity: 0.14; }
  76% { transform: translateX(0%); opacity: 0.34; }
  100% { transform: translateX(120%); opacity: 0.12; }
}

@keyframes gatePanelGlide {
  0%, 60% { transform: translateX(-64%); opacity: 0.12; }
  76% { transform: translateX(0%); opacity: 0.24; }
  100% { transform: translateX(64%); opacity: 0.10; }
}

@media (max-width: 420px) {
  .gate-card,
  .contact-verify-card {
    --corner: 22px;
    padding: 30px 18px 22px;
  }

  .gate-logo {
    width: min(260px, 78vw);
  }

  .gate-card h2,
  .contact-verify-card h2 {
    font-size: clamp(2rem, 8.2vw, 2.8rem);
  }

  .swipe-label,
  .swipe-confirmed {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    padding-left: 72px;
  }

  .swipe-track {
    height: 64px;
    border-radius: 18px;
  }

  .swipe-thumb {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .interest-gate::before,
  .contact-verify::before,
  .gate-card::after,
  .contact-verify-card::after {
    animation: none;
  }

  .swipe-fill,
  .swipe-thumb,
  .interest-gate,
  .contact-verify {
    transition: none;
  }
}
