/* Sign-up gate: the first screen every visitor sees. */
.gate { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; position: relative; isolation: isolate; background: var(--teal-950); overflow-x: clip; }

.gate-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.gate-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; animation: drift 26s ease-in-out infinite alternate; }
.gate-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(270deg, rgba(2, 38, 43, .96) 0%, rgba(2, 38, 43, .78) 34%, rgba(2, 62, 70, .18) 72%, rgba(2, 38, 43, .35) 100%),
    linear-gradient(0deg, rgba(2, 38, 43, .65) 0%, rgba(2, 38, 43, 0) 35%);
}
@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.12) translateX(-1.5%); } }

.gate-main {
  width: 100%; max-width: 1180px; margin: auto;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 84px); align-items: center;
}

/* pitch (start side) */
.gate-pitch { display: grid; gap: 1.15rem; justify-items: start; }
.gate-brand { display: flex; align-items: center; gap: 14px; }
.gate-emblem { width: 76px; height: 76px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
.eyebrow {
  font: 700 .95rem/1 var(--font-body); letter-spacing: .02em; color: var(--silver);
  padding: .5rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.gate-pitch h1 { font: 700 clamp(2.2rem, 5.4vw, 4rem)/1.3 var(--font-display); text-wrap: balance; }
.gate-pitch h1 em { font-style: normal; color: var(--gold); display: block; }
.gate-pitch .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--silver); max-width: 34em; }
.gate-points { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.gate-points li {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem; border-radius: 999px;
  background: rgba(2, 38, 43, .55); border: 1px solid rgba(255, 255, 255, .16); font-weight: 500; font-size: .98rem;
}
.gate-points li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(211, 32, 47, .3); }

/* card (end side) */
.gate-card {
  position: relative; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, rgba(3, 47, 53, .86), rgba(2, 38, 43, .92));
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.gate-card .rope { border-radius: 0; height: 14px; }
.gate-form { padding: clamp(22px, 3.4vw, 36px); display: grid; gap: 1.05rem; }
.gate-form h2 { font: 700 1.7rem/1.3 var(--font-display); }
.gate-form .sub { color: var(--muted); margin-block-start: -.5rem; font-size: .98rem; }

.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .98rem; color: var(--silver); }
.field input {
  width: 100%; min-height: 54px; padding: .75rem 1rem; border-radius: 12px; color: #fff;
  font: 500 1.05rem/1.4 var(--font-body); background: rgba(2, 38, 43, .7); border: 1.5px solid rgba(255, 255, 255, .24);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input[dir="ltr"] { text-align: end; }
.field input::placeholder { color: rgba(166, 192, 196, .65); }
.field input:hover { border-color: rgba(255, 255, 255, .45); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242, 193, 78, .25); background: rgba(2, 38, 43, .9); }
.field input[aria-invalid="true"] { border-color: #ff8a94; box-shadow: 0 0 0 4px rgba(255, 138, 148, .18); }
.field .err { color: #ffb3ba; font-size: .92rem; line-height: 1.5; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }

.gate-form .btn { width: 100%; min-height: 58px; font-size: 1.15rem; margin-block-start: .3rem; }
.gate-form .btn[disabled] { opacity: .75; cursor: progress; }
.form-error { color: #ffb3ba; background: rgba(211, 32, 47, .16); border: 1px solid rgba(255, 138, 148, .4); padding: .6rem .9rem; border-radius: 10px; font-size: .95rem; line-height: 1.6; }
.fine { color: var(--muted); font-size: .86rem; line-height: 1.7; }

.gate-done { display: none; padding: clamp(36px, 6vw, 56px) 28px; text-align: center; gap: .8rem; justify-items: center; }
.gate-card.is-done .gate-form { display: none; }
.gate-card.is-done .gate-done { display: grid; }
.gate-done svg { width: 76px; height: 76px; }
.gate-done circle { stroke: var(--gold); fill: none; stroke-width: 3; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .6s var(--ease) forwards; }
.gate-done path { stroke: #fff; fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .4s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.gate-done h2 { font: 700 1.6rem/1.4 var(--font-display); }
.gate-done p { color: var(--silver); }

.gate-foot { display: flex; justify-content: center; align-items: center; padding: 0 20px 28px; }
.gate-foot a {
  display: inline-flex; align-items: center; gap: .6rem; color: var(--silver); text-decoration: none; font-weight: 500;
  padding: .55rem 1.1rem; border-radius: 999px; background: rgba(2, 38, 43, .6); border: 1px solid rgba(255, 255, 255, .18);
  transition: background-color .2s, color .2s;
}
.gate-foot a:hover { background: var(--fb); color: #fff; border-color: var(--fb); }
.gate-foot svg { width: 20px; height: 20px; }

/* entrance */
.gate-pitch > *, .gate-card { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.gate-pitch > :nth-child(2) { animation-delay: .08s; }
.gate-pitch > :nth-child(3) { animation-delay: .16s; }
.gate-pitch > :nth-child(4) { animation-delay: .24s; }
.gate-card { animation-delay: .2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .gate-main { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding-block: 22px; align-content: start; }
  .gate-bg img { object-position: 42% 50%; }
  .gate-bg::after { background: linear-gradient(180deg, rgba(2, 38, 43, .55) 0%, rgba(2, 38, 43, .9) 38%, rgba(2, 38, 43, .98) 100%); }
  .gate-emblem { width: 58px; height: 58px; }
  .gate-pitch { gap: .85rem; }
  .gate-pitch h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .gate-points { display: none; }
  .gate-pitch .lead { font-size: 1rem; }
}
