/* ===========================================================================
   PointDexter Pro waitlist page
   - Background: diagonal ROWS of sprites driven by pure CSS @keyframes.
     Even rows = blink sprites scrolling LEFT.
     Odd rows  = tired sprites scrolling RIGHT.
     Adjacent rows always move in opposite directions.
   - Foreground: speech-bubble panel + mascot.
   =========================================================================== */

:root {
  --ink: #15203a;
  --ink-soft: #44506a;
  --ink-faint: #7a8395;
  --brand: #2f5bd0;
  --brand-dark: #244aac;
  --bubble: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: #eef2f8;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(130% 110% at 50% 0%, #ffffff 0%, #eef2f8 60%, #e6ebf4 100%);
  overflow: hidden;
}

/* ===========================================================================
   Background sprite field
   =========================================================================== */

#field {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  transform-origin: center center;
  z-index: 0;
  pointer-events: none;
}

.pd-row {
  height: 90px;
  overflow: visible;
  white-space: nowrap;
  line-height: 0;
}

.pd-track {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  height: 90px;
  will-change: transform;
}

.pd-cell {
  flex: 0 0 110px;
  width: 110px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pd-sprite {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0.45;
}

/* Randomly selected sprites that pop to the foreground */
.pd-pop {
  opacity: 1;
  transform: scale(1.15);
}

/* ---------- Seamless scroll keyframes ------------------------------------ */
/* The track contains TWO identical copies of the sprite sequence.
   Translating by exactly -50% scrolls through one full copy, then the
   browser wraps back to 0% - seamless.                                     */

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}



/* ===========================================================================
   Foreground layout
   =========================================================================== */

#stage {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.hero {
  position: relative;
  width: min(560px, 100%);
}

/* ---- Speech bubble panel ------------------------------------------------ */

.panel {
  position: relative;
  background: var(--bubble);
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.1);
  padding: 44px 44px 40px;
}



.panel__headline {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.panel__headline .accent {
  color: var(--brand);
}

.panel__sub {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.panel__note {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
}

.panel__form {
  margin-top: 18px;
}

/* CTA button */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(47, 91, 208, 0.35);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.cta:hover {
  background: var(--brand-dark);
  box-shadow: 0 14px 30px rgba(47, 91, 208, 0.42);
}

.cta:active {
  transform: scale(0.97);
}

.cta__arrow {
  transition: transform 0.15s ease;
}

.cta:hover .cta__arrow {
  transform: translateX(4px);
}

/* ---- Mascot ------------------------------------------------------------- */

.mascot {
  position: absolute;
  right: -55px;
  bottom: -62px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.char-wrap {
  width: 156px;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.hero-char {
  width: 156px;
  height: 156px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  display: block;
  -webkit-user-drag: none;
  will-change: transform;
}

/* ---- Persistent privacy link ------------------------------------------- */

.site-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  text-align: center;
  font-size: 13px;
}

.site-foot a {
  color: var(--ink-faint);
  font-weight: 600;
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ===========================================================================
   Responsive
   =========================================================================== */

@media (max-width: 860px) {
  body { overflow-y: auto; }
}

@media (max-width: 560px) {
  .panel { padding: 30px 26px 28px; }
  .panel__headline { font-size: 30px; }
  .panel__sub { font-size: 15px; }
  .mascot { right: -35px; bottom: -54px; }
  .char-wrap, .hero-char { width: 128px; height: 128px; }
}
