/* v19 pages: landing (the visor boots over the live pitch), module pages, neural sync between, identity check. */

/* ================= landing ================= */
.land { display: grid; align-content: end; padding: calc(24px + var(--sat)) 20px calc(26px + var(--sab)); }
.land__scrim {
  position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(1, 11, 14, .55) 0%, transparent 22%, transparent 38%, rgba(1, 11, 14, .78) 62%, rgba(1, 11, 14, .96) 100%);
}
.land__ret { position: fixed; left: 50%; top: 34%; width: 190px; height: 190px; margin: -95px 0 0 -95px; pointer-events: none; opacity: 0; transition: opacity .8s; }
body.is-live .land__ret { opacity: 1; }
.land__ret i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--holo-line); will-change: transform; }
.land__ret i:nth-child(1) { border-style: dashed; border-color: var(--holo-dim); animation: vz-spin 14s linear infinite; }
.land__ret i:nth-child(2) { inset: 26px; border-top-color: var(--holo); border-bottom-color: var(--holo); animation: vz-spin 5s linear infinite reverse; }
.land__ret i:nth-child(3) { inset: 62px; border-color: var(--holo-faint); }
.land__ret b { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--holo); box-shadow: 0 0 18px var(--holo); }
.land__boot { position: fixed; top: calc(26px + var(--sat)); left: calc(24px + var(--sal)); display: grid; gap: 6px; font: 500 11px/1.3 var(--mono); color: var(--holo-dim); text-transform: uppercase; letter-spacing: .08em; }
.land__boot p { margin: 0; opacity: 0; animation: vz-type .4s steps(6) both; animation-delay: calc(.25s + var(--i) * .45s); }
.land__boot b { color: var(--holo); font-weight: 700; }
.land__boot p:last-child::after { content: '_'; animation: vz-blink 1s steps(2, jump-none) infinite; }
@keyframes vz-type { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.land__in { position: relative; display: grid; gap: 14px; justify-items: start; max-width: 560px; }
.land__kick { margin: 0; display: inline-flex; gap: 8px; align-items: center; font: 700 12px/1 var(--lab); letter-spacing: .24em; text-transform: uppercase; color: var(--holo); }
.land__title {
  margin: 0; font: 700 clamp(56px, 16vw, 112px)/.86 var(--disp); text-transform: uppercase; letter-spacing: .01em; color: var(--ink);
  text-shadow: -2px 0 rgba(255, 79, 216, .55), 2px 0 rgba(94, 242, 255, .55);
  animation: vz-glitch-in .9s steps(8, end) both .1s;
}
.land__title em { font-style: normal; color: var(--holo); text-shadow: 0 0 24px rgba(94, 242, 255, .6), -3px 0 rgba(255, 79, 216, .6); }
@keyframes vz-glitch-in {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); }
  25% { opacity: 1; clip-path: inset(0 0 60% 0); transform: translateX(-6px); }
  50% { clip-path: inset(30% 0 20% 0); transform: translateX(4px); }
  75% { clip-path: inset(0 0 0 0); transform: translateX(-2px); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}
.land__sub { margin: 0 0 6px; max-width: 30ch; font: 500 18px/1.35 var(--body); color: var(--ink-dim); }
.land__names { margin: 2px 0 0; font: 500 11px/1.4 var(--mono); color: var(--ink-faint); letter-spacing: .06em; text-transform: uppercase; }
.land__fail { display: grid; gap: 10px; max-width: 360px; padding: 14px 16px; border: 1px solid rgba(255, 107, 138, .5); background: rgba(40, 4, 14, .7); color: #ffd7e0; }
.land__fail p { margin: 0; }
body.is-booting .land__in { animation: vz-out .4s steps(4, end) forwards; }

@media (min-width: 900px) {
  .land { align-content: center; padding: 60px 9vw; }
  .land__ret { left: 66%; top: 46%; width: 260px; height: 260px; margin: -130px 0 0 -130px; }
  .land__scrim { background: linear-gradient(90deg, rgba(1, 11, 14, .94) 0%, rgba(1, 11, 14, .7) 34%, transparent 62%); }
  .land__sub { font-size: 20px; }
}

/* ================= module slots (shared) ================= */
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
.slot {
  display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--holo-faint); background: rgba(94, 242, 255, .04);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.slot__n { font: 700 11px/1 var(--mono); color: var(--holo-dim); }
.slot__name { font: 700 17px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.slot__v { font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.slot.is-done { border-color: rgba(125, 255, 176, .45); background: rgba(125, 255, 176, .07); }
.slot.is-done .slot__name { color: var(--ink); } .slot.is-done .slot__v { color: var(--sync); }
.slot.is-now { border-color: var(--holo); background: rgba(94, 242, 255, .12); animation: vz-now 1.6s ease-in-out infinite; }
.slot.is-now .slot__name { color: var(--holo-hi); } .slot.is-now .slot__v { color: var(--holo); }
@keyframes vz-now { 50% { background: rgba(94, 242, 255, .22); } }

/* ================= module page ================= */
.mod {
  max-width: 560px; margin: 0 auto; padding: calc(70px + var(--sat)) 18px calc(22px + var(--sab));
  display: grid; gap: 12px; justify-items: center; text-align: center;
}
.mod__head { display: grid; gap: 10px; justify-items: center; width: 100%; }
.mod__holo { width: 96px; height: 96px; margin-top: 2px; }
.mod__title { margin: 0; font: 700 44px/.9 var(--disp); text-transform: uppercase; letter-spacing: .02em; text-shadow: -2px 0 rgba(255, 79, 216, .45), 2px 0 rgba(94, 242, 255, .45); }
.mod__power { margin: 0; font: 700 18px/1.25 var(--lab); color: var(--holo); }
.mod__how { margin: 0; max-width: 34ch; font: 500 15px/1.4 var(--body); color: var(--ink-dim); }
.mod__pros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.mem { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--holo-line); background: #021a20; }
.mem img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.3) brightness(1.05); }
.mem::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, #5ef2ff, #2a7fa0 60%, #b0409a); mix-blend-mode: multiply; z-index: 1; }
.mem::after { content: ''; position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(to bottom, rgba(1, 11, 14, .35) 0 1px, transparent 1px 3px), linear-gradient(to top, rgba(1, 11, 14, .9), transparent 60%); }
.mem figcaption { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 6px; display: grid; text-align: left; }
.mem figcaption b { font: 700 18px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; }
.mem figcaption small { font: 500 10px/1.2 var(--mono); color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod__facts { margin: 0; font: 500 13px/1.4 var(--body); color: var(--ink-faint); }
.mod__facts b { color: var(--ink); }

.rate { width: 100%; display: grid; gap: 10px; margin-top: 4px; padding: 14px 12px 12px; border: 1px solid var(--holo-line); background: rgba(3, 26, 33, .72); }
.rate__q { margin: 0; font: 600 16px/1.35 var(--body); }
.rate__q b { color: var(--holo); }
.rate__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rate__n {
  min-height: 50px; border: 1px solid var(--holo-line); background: rgba(94, 242, 255, .06); color: var(--ink); cursor: pointer;
  font: 700 24px/1 var(--disp); padding-top: 4px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  animation: vz-in .4s var(--ease) both; animation-delay: calc(.12s + var(--i) * 25ms);
  transition: background .15s, color .15s, opacity .3s;
}
.rate__n:hover { background: rgba(94, 242, 255, .2); }
.rate__n.is-on { background: var(--holo); color: #01161c; }
.rate.is-locked .rate__n:not(.is-on) { opacity: .25; }
.rate__ends { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }

/* the hologram icons */
.holo { width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--holo); stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(94, 242, 255, .55)); }
.holo__ring { stroke: var(--holo-line); }
.holo__ring.r1 { stroke-dasharray: 6 8; transform-origin: 100px 100px; animation: vz-spin 16s linear infinite; }
.holo__ring.r2 { stroke-dasharray: 60 30; transform-origin: 100px 100px; animation: vz-spin 7s linear infinite reverse; }
.holo__flow { stroke-dasharray: 4 8; animation: vz-flow 1.2s linear infinite; }
.holo__flow.is-best { stroke: var(--sync); stroke-dasharray: none; stroke-width: 4; }
@keyframes vz-flow { to { stroke-dashoffset: -24; } }
.holo__node { fill: var(--void); }
.holo__node.is-best { fill: var(--sync); stroke: var(--sync); animation: vz-blink 1.2s steps(2, jump-none) infinite; }
.holo__eye { stroke-width: 3; }
.holo__iris { fill: rgba(94, 242, 255, .25); }
.holo__radar { transform-origin: 100px 100px; animation: vz-spin 3s linear infinite; }
.holo__radar path { fill: rgba(94, 242, 255, .22); stroke: none; }
.holo--press { stroke: var(--holo); }
.holo__chev { stroke: var(--miss); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; animation: vz-close 1.1s ease-in infinite; }
.holo__chev.c2 { animation-delay: .2s; }
@keyframes vz-close { 0% { transform: translateX(-10px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(40px); opacity: 0; } }
.holo__ring.r3 { stroke: var(--holo); animation: vz-beat .9s ease-in-out infinite; transform-origin: 100px 100px; }
@keyframes vz-beat { 50% { transform: scale(1.18); } }

@media (max-height: 760px) {
  .mod { padding-top: calc(62px + var(--sat)); gap: 9px; }
  .mod__holo { width: 72px; height: 72px; }
  .mod__title { font-size: 38px; }
  .mod__how { font-size: 14px; }
}
@media (min-width: 900px) {
  .mod { max-width: 980px; min-height: 100vh; align-content: center; padding-top: 70px; grid-template-columns: 1fr 1fr; column-gap: 56px; text-align: left; justify-items: start; align-items: start; }
  .mod__head { grid-column: 1 / -1; justify-items: start; }
  .mod__head .slots { max-width: 520px; }
  .mod__holo { width: 150px; height: 150px; grid-column: 1; }
  .mod__title, .mod__power, .mod__how { grid-column: 1; }
  .mod__title { font-size: 72px; }
  .mod__power { font-size: 22px; }
  .mod__how { font-size: 17px; }
  .mod__pros, .mod__facts, .rate { grid-column: 2; }
  .mod__pros { grid-row: 2 / span 2; }
  .mod__facts { grid-row: 4; }
  .rate { grid-row: 5 / span 2; }
  .rate__row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ================= between: neural sync ================= */
.btw {
  max-width: 520px; margin: 0 auto; padding: calc(70px + var(--sat)) 18px calc(22px + var(--sab));
  display: grid; gap: 14px; justify-items: center; text-align: center;
}
.btw__sync { position: relative; width: 196px; height: 196px; }
.btw__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.btw__ring circle { fill: none; stroke-width: 10; }
.btw__ring .bg { stroke: var(--holo-faint); stroke-dasharray: 1.2 1; }
.btw__ring .fg { stroke: var(--holo); stroke-linecap: butt; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 8px rgba(94, 242, 255, .7));
  animation: vz-fill 1s var(--ease) .25s forwards; }
@keyframes vz-fill { to { stroke-dashoffset: calc(100 - var(--p)); } }
.btw__num { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; }
.btw__num small { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--holo-dim); }
.btw__num b { font: 700 70px/.9 var(--disp); color: var(--ink); padding-top: 6px; }
.btw__line { margin: 0; font: 700 34px/.95 var(--disp); text-transform: uppercase; letter-spacing: .02em; }
.btw__fact { margin: 0; font: 500 15px/1.4 var(--body); color: var(--ink-dim); max-width: 34ch; }
.btw__fact b { color: var(--holo); }
.btw__next { width: 100%; display: grid; gap: 4px; padding: 14px; border: 1px dashed var(--holo-line); text-align: left; }
.btw__next strong { font: 700 26px/1 var(--disp); text-transform: uppercase; }
.btw__next p { margin: 0; font: 500 14px/1.4 var(--body); color: var(--ink-dim); }
@media (min-width: 900px) {
  .btw { padding-top: 90px; max-width: 560px; }
  .btw__sync { width: 240px; height: 240px; }
  .btw__num b { font-size: 88px; }
  .btw__line { font-size: 44px; }
}

/* ================= gate: identity check ================= */
.gate { max-width: 460px; margin: 0 auto; padding: calc(70px + var(--sat)) 18px calc(26px + var(--sab)); display: grid; gap: 12px; }
.gate__lock { position: relative; height: 120px; overflow: hidden; border: 1px solid var(--holo-line); background: rgba(3, 26, 33, .7); }
.gate__blur { position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; padding: 0 22px; filter: blur(7px); opacity: .85; transition: filter .6s, opacity .6s; }
.gate__blur b { grid-row: 1 / span 3; font: 700 64px/1 var(--disp); color: var(--holo); }
.gate__blur i { display: block; height: 10px; border-radius: 3px; background: var(--holo-dim); }
.gate__blur i:nth-of-type(2) { width: 70%; background: var(--miss); } .gate__blur i:nth-of-type(3) { width: 50%; }
.gate__seal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 14px; border: 1.5px solid var(--holo); background: rgba(1, 11, 14, .85);
  font: 700 18px/1 var(--disp); letter-spacing: .16em; text-transform: uppercase; color: var(--holo); white-space: nowrap;
}
.gate__seal::before { content: ''; display: inline-block; width: 10px; height: 12px; margin-right: 10px; border: 2px solid currentColor; border-radius: 2px; vertical-align: -1px; }
.gate__scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: var(--holo-hi); box-shadow: 0 0 14px var(--holo); animation: vz-scanY 2.2s ease-in-out infinite; }
@keyframes vz-scanY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(118px); } }
.gate__lock.is-open .gate__blur { filter: blur(0); opacity: 1; }
.gate__lock.is-open .gate__seal { color: var(--sync); border-color: var(--sync); }
.gate__title { margin: 0; font: 700 42px/.92 var(--disp); text-transform: uppercase; letter-spacing: .01em; }
.gate__sub { margin: 0; font: 500 15px/1.45 var(--body); color: var(--ink-dim); }
.gate__form { display: grid; gap: 6px; margin-top: 4px; }
.field { position: relative; display: grid; gap: 6px; padding: 10px 12px 4px; overflow: hidden; border: 1px solid var(--holo-line); background: rgba(1, 15, 19, .85); transition: border-color .2s, box-shadow .2s; }
.field span { font: 700 11px/1 var(--lab); letter-spacing: .18em; text-transform: uppercase; color: var(--holo-dim); }
.field input { width: 100%; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 20px/1.2 var(--body); padding: 0; }
.field input::placeholder { color: rgba(232, 253, 255, .3); }
.field:focus-within { border-color: var(--holo); box-shadow: 0 0 0 3px rgba(94, 242, 255, .15); }
.field__scan { position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(94, 242, 255, .22), transparent); }
.field:focus-within .field__scan { animation: vz-scanX 1.4s ease-in-out infinite; }
@keyframes vz-scanX { to { transform: translateX(350%); } }
.field.is-bad { border-color: var(--miss); box-shadow: 0 0 0 3px rgba(255, 107, 138, .15); }
.field.is-bad span { color: var(--miss); }
.field.is-ok { border-color: rgba(125, 255, 176, .6); }
.err { margin: 0 0 4px; min-height: 0; font: 600 14px/1.35 var(--body); color: var(--miss); }
.err:empty { display: none; }
.gate__form .cta { max-width: none; margin-top: 8px; }
.gate__fine { margin: 4px 0 0; text-align: center; font: 500 12px/1.4 var(--mono); color: var(--ink-faint); }
@media (min-width: 900px) { .gate { padding-top: 96px; } .gate__title { font-size: 56px; } }
