/*
   Landing page (logged-out root). Black and white, always dark: every colour
   here is fixed rather than a theme token, so the page looks the same in the
   light and dark themes. Motion loops only run under
   prefers-reduced-motion: no-preference; the default (still) state of every
   element is a complete, readable page.
*/
.lp {
  --lp-bg: #060608;
  --lp-card: #0b0b0f;
  --lp-art: #111116;
  --lp-raise: #131318;
  --lp-line: #1c1c22;
  --lp-line-2: #26262c;
  --lp-text: #fafafa;
  --lp-soft: #d4d4d8;
  --lp-muted: #a1a1aa;
  --lp-dim: #52525b;
  /* The one colour on the page: green means "scanned / verified / let in". */
  --lp-go: #4ade80;
  --lp-go-ink: #052e16;
  --lp-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --lp-pad: 80px;
  min-height: 100vh;
  overflow-x: clip; /* not `hidden`: that would make .lp a scroll box and break sticky sections */
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
.lp em {
  font-family: var(--lp-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.lp button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.lp-desktop {
  display: inline-flex;
}
.lp-phone {
  display: none !important;
}

/* Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s,
    border-color 0.15s;
}
.lp-btn:hover {
  transform: translateY(-1px);
}
.lp-btn:focus-visible {
  outline: 2px solid var(--lp-text);
  outline-offset: 3px;
}
.lp-btn--primary {
  border: 0;
  background: var(--lp-text);
  color: #09090b !important;
}
.lp-btn--primary:hover {
  box-shadow: 0 12px 40px -8px rgba(255, 255, 255, 0.3);
}
.lp-btn--ghost {
  border: 1px solid #2a2a31;
  background: rgba(12, 12, 16, 0.6);
  font-weight: 500;
}
.lp-btn--ghost:hover {
  background: #15151a;
  border-color: #3f3f46;
}
.lp-btn--sm {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
}
.lp-btn--lg {
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
}

/* Nav */
.lp-nav {
  position: relative;
  z-index: 3;
  height: 80px;
  padding: 0 var(--lp-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lp-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.lp-brand--sm {
  font-size: 15px;
}
.lp-brand--sm .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.lp-nav__links {
  display: flex;
  gap: 36px;
}
.lp-nav__links button {
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 14px;
  color: var(--lp-muted);
}
.lp-nav__links button:hover {
  color: var(--lp-text);
}
.lp-nav__actions {
  display: flex;
  gap: 10px;
}

/* Hero */
.lp-hero {
  position: relative;
  margin-top: -80px;
  min-height: 860px;
  overflow: hidden;
}
.lp-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lp-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
}
.lp-hero__glow {
  position: absolute;
  left: 50%;
  bottom: 150px;
  width: 1500px;
  height: 420px;
  margin-left: -750px;
  border-radius: 50%;
  background: var(--lp-go);
  opacity: 0.1;
  filter: blur(120px);
  pointer-events: none;
}
.lp-floor {
  position: absolute;
  left: -200px;
  right: -200px;
  bottom: 0;
  height: 340px;
  perspective: 520px;
  perspective-origin: 50% 0%;
  pointer-events: none;
}
.lp-floor__grid {
  position: absolute;
  inset: 0;
  transform: rotateX(62deg);
  transform-origin: 50% 0%;
  background-image:
    linear-gradient(rgba(74, 222, 128, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.28) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(#000 0%, transparent 85%);
  mask-image: linear-gradient(#000 0%, transparent 85%);
}
.lp-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 339px;
  height: 1px;
  background: var(--lp-go);
  opacity: 0.6;
  box-shadow: 0 0 24px 2px var(--lp-go);
  pointer-events: none;
}
.lp-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 860px;
  box-sizing: border-box;
  padding: 150px var(--lp-pad) 0;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.lp-hero__copy {
  max-width: 620px;
  padding-top: 40px;
}
.lp-title {
  margin: 0;
  font-size: 92px;
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--lp-text);
}
.lp-title em {
  font-size: 1.04em;
}
.lp-lede {
  margin: 28px 0 0;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--lp-muted);
}
.lp-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
}
.lp-facts {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 13px;
  color: var(--lp-muted);
}
.lp-facts span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-facts svg {
  color: var(--lp-text);
}

/* Hero scene: a 640px stage, scaled down on smaller screens */
.lp-scene {
  position: relative;
  flex-shrink: 0;
  width: 640px;
  height: 640px;
  margin-top: -30px;
}
.lp-scene__stage {
  position: absolute;
  inset: 0;
}
.lp-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid var(--lp-go);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  pointer-events: none;
}
.lp-orbit {
  position: absolute;
  left: 50px;
  top: 50px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.lp-orbit__slot {
  position: absolute;
  transform: translate(-50%, -50%);
}
.lp-orbit__slot--top {
  left: 270px;
  top: 0;
}
.lp-orbit__slot--right {
  left: 504px;
  top: 405px;
}
.lp-orbit__slot--left {
  left: 36px;
  top: 405px;
}
.lp-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--lp-line-2);
  border-radius: 14px;
  background: rgba(14, 14, 18, 0.92);
  white-space: nowrap;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8);
}
.lp-tag__ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #17171c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-tag small {
  display: block;
  font-size: 11px;
  color: var(--lp-muted);
}
.lp-tag b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.lp-passwrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 290px;
  margin: -238px 0 0 -145px;
}
.lp-pass {
  box-sizing: border-box;
  width: 290px;
  padding: 20px 22px;
  border-radius: 26px;
  background: #111115;
  border: 1px solid #2a2a31;
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: rotate(-4deg);
}
.lp-pass__head,
.lp-pass__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-pass__meta {
  align-items: flex-end;
}
.lp-pass small {
  display: block;
  font-size: 11px;
  color: var(--lp-muted);
}
.lp-pass__head small {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lp-pass b {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
}
.lp-pass__meta b {
  font-size: 16px;
}
.lp-pass__code {
  text-align: right;
}
.lp-pass__code b {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
}
.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #1c1c21;
  font-size: 11px;
  color: #e4e4e7;
}
.lp-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-go);
}
.lp-qr {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  background: #fafafa;
}
.lp-qr__grid {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  gap: 1px;
  width: 218px;
  height: 218px;
}
.lp-qr__grid span {
  border-radius: 1.5px;
}
.lp-qr__grid .on {
  background: #09090b;
}
.lp-qr__flash {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: var(--lp-go);
  opacity: 0;
}
.lp-qr__scan {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 6%;
  height: 3px;
  border-radius: 3px;
  background: var(--lp-go);
  box-shadow: 0 0 18px 4px var(--lp-go);
  opacity: 0;
}
.lp-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--lp-go);
  color: var(--lp-go-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.lp-verified {
  position: absolute;
  right: -78px;
  top: 150px;
  box-shadow: 0 16px 40px -8px rgba(74, 222, 128, 0.45);
}
.lp-kicker {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lp-soft);
}
.lp-h2 {
  margin: 14px 0 0;
  font-size: 60px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--lp-text);
}
.lp-h2 em {
  color: var(--lp-soft);
}

/* Roles */
.lp-roles {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Footer */
.lp-footer {
  padding: 40px var(--lp-pad);
  border-top: 1px solid #16161b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-footer__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.lp-footer__links a,
.lp-footer__links button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--lp-muted);
  text-decoration: none;
}
.lp-footer__links a:hover,
.lp-footer__links button:hover {
  color: var(--lp-text);
}

/* ---- Responsive ---- */
@media (max-width: 1279px) {
  .lp {
    --lp-pad: 48px;
  }
  .lp-title {
    font-size: 76px;
  }
  .lp-scene {
    width: 520px;
    height: 520px;
  }
  .lp-scene__stage {
    width: 640px;
    height: 640px;
    transform: scale(0.8125);
    transform-origin: top left;
  }
}

@media (max-width: 1023px) {
  .lp {
    --lp-pad: 20px;
  }
  .lp-desktop,
  .lp-nav__links {
    display: none !important;
  }
  .lp-phone {
    display: inline-flex !important;
  }
  .lp-nav {
    height: 64px;
  }
  .lp-brand {
    font-size: 16px;
  }
  .lp-brand .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .lp-hero {
    margin-top: -64px;
    min-height: 0;
  }
  .lp-hero__glow {
    width: 600px;
    height: 260px;
    margin-left: -300px;
    bottom: 120px;
    filter: blur(80px);
  }
  .lp-floor {
    left: -120px;
    right: -120px;
    height: 200px;
    perspective: 320px;
  }
  .lp-floor__grid {
    background-size: 40px 40px;
  }
  .lp-horizon {
    bottom: 199px;
  }
  .lp-hero__inner {
    min-height: 0;
    flex-direction: column;
    gap: 0;
    padding-top: 104px;
  }
  .lp-hero__copy {
    padding-top: 0;
  }
  .lp-title {
    font-size: clamp(48px, 14vw, 76px);
  }
  .lp-lede {
    margin-top: 20px;
    font-size: 16px;
  }
  .lp-cta {
    margin-top: 26px;
    flex-direction: column;
  }
  .lp-cta .lp-btn--lg {
    width: 100%;
    height: 54px;
  }
  .lp-facts {
    display: none;
  }
  .lp-scene {
    width: 100%;
    height: 400px;
    margin: 10px 0 0;
  }
  .lp-scene__stage {
    left: 50%;
    width: 640px;
    height: 640px;
    margin-left: -320px;
    transform: scale(0.56);
    transform-origin: top center;
  }
  .lp-ring {
    border-width: 2px;
  }
  .lp-orbit {
    border-width: 2px;
  }
  .lp-tag {
    padding: 12px 18px 12px 12px;
  }
  .lp-tag small {
    display: none;
  }
  .lp-tag b {
    font-size: 16px;
  }
  .lp-verified {
    font-size: 20px;
    right: -60px;
  }
  .lp-kicker {
    font-size: 11px;
  }
  .lp-h2 {
    margin-top: 12px;
    font-size: 40px;
  }
  .lp-roles {
    margin-top: 32px;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .lp-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 28px var(--lp-pad) max(28px, env(safe-area-inset-bottom));
  }
}

/* ---- Motion ---- */
@keyframes lp-twinkle {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.9;
  }
}
@keyframes lp-floor {
  to {
    background-position: 0 56px;
  }
}
@keyframes lp-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes lp-counter {
  to {
    transform: rotate(-360deg);
  }
}
@keyframes lp-float {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-14px) rotate(-2deg);
  }
}
@keyframes lp-scan {
  0% {
    top: 6%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  45% {
    top: 92%;
    opacity: 1;
  }
  50%,
  100% {
    top: 92%;
    opacity: 0;
  }
}
@keyframes lp-flash {
  0%,
  47% {
    opacity: 0;
  }
  51% {
    opacity: 0.35;
  }
  70%,
  100% {
    opacity: 0;
  }
}
@keyframes lp-chip {
  0%,
  48% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  54% {
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
  58%,
  88% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes lp-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.55;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}
@keyframes lp-dim {
  0%,
  45%,
  100% {
    opacity: 1;
  }
  52%,
  95% {
    opacity: 0.35;
  }
}
@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-star {
    animation: lp-twinkle 3.2s ease-in-out infinite;
  }
  .lp-floor__grid {
    animation: lp-floor 2.4s linear infinite;
  }
  .lp-orbit {
    animation: lp-orbit 48s linear infinite;
  }
  .lp-tag {
    animation: lp-counter 48s linear infinite;
  }
  .lp-pass {
    animation: lp-float 7s ease-in-out infinite;
  }
  .lp-qr__scan {
    animation: lp-scan 4s cubic-bezier(0.45, 0, 0.3, 1) infinite;
  }
  .lp-qr__flash {
    animation: lp-flash 4s ease-out infinite;
  }
  .lp-verified {
    animation: lp-chip 4s ease-out infinite;
  }
  .lp-ring {
    animation: lp-ring 4s ease-out infinite;
  }
  .lp-ring:nth-of-type(2) {
    animation-delay: 1.33s;
  }
  .lp-ring:nth-of-type(3) {
    animation-delay: 2.66s;
  }

  /* Hero entrance */
  .lp-hero__copy > *,
  .lp-scene {
    animation: lp-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .lp-hero__copy > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .lp-hero__copy > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .lp-hero__copy > :nth-child(4) {
    animation-delay: 0.24s;
  }
  .lp-scene {
    animation-delay: 0.16s;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Still page: faint static rings, no scan line, no beam. */
  .lp-ring {
    opacity: 0.12;
    transform: translate(-50%, -50%);
  }
}
