:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  min-height: 100vh;
  position: relative;
}

.site-grid-bg {
  animation: gridDrift 9s linear infinite;
  background:
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 34%, rgba(59, 130, 246, 0.1) 35%, transparent 42% 100%),
    radial-gradient(circle at 20% 15%, rgba(37, 99, 235, 0.28), transparent 28rem),
    radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.16), transparent 24rem),
    #060a13;
  background-size:
    44px 44px,
    44px 44px,
    180% 180%,
    100% 100%,
    100% 100%,
    100% 100%;
  inset: 0;
  opacity: 0.95;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

.site-grid-bg::before {
  animation: fieldShift 14s ease-in-out infinite alternate;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 70px,
      rgba(59, 130, 246, 0.05) 71px,
      transparent 72px 140px
    ),
    linear-gradient(135deg, transparent, rgba(96, 165, 250, 0.12), transparent);
  content: "";
  inset: -18%;
  position: absolute;
  transform: rotate(-8deg);
}

.site-grid-bg::after {
  animation: scan 5.5s ease-in-out infinite;
  background: linear-gradient(180deg, transparent, rgba(96, 165, 250, 0.14), transparent);
  content: "";
  inset: 0;
  position: absolute;
}

@keyframes gridDrift {
  from {
    background-position:
      0 0,
      0 0,
      -40% 20%,
      0 0,
      0 0,
      0 0;
  }
  to {
    background-position:
      44px 44px,
      44px 44px,
      60% 80%,
      0 0,
      0 0,
      0 0;
  }
}

@keyframes fieldShift {
  from {
    opacity: 0.25;
    transform: translate3d(-4%, -2%, 0) rotate(-8deg) scale(1);
  }
  to {
    opacity: 0.65;
    transform: translate3d(4%, 3%, 0) rotate(-8deg) scale(1.08);
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-35%);
  }
  50% {
    transform: translateY(35%);
  }
}

.text-slate-650 {
  color: #94a3b8;
}

.nav-pill {
  align-items: center;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 5px;
  color: #dbeafe;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 850;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.nav-pill:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(147, 197, 253, 0.65);
  transform: translateY(-1px);
}

.nav-pill svg {
  height: 1rem;
  width: 1rem;
}

.step-card {
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  overflow: clip;
  position: relative;
}

.step-card::before {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.55), transparent);
  content: "";
  height: 1px;
  inset: 0 0 auto;
  position: absolute;
}

.step-top {
  align-items: start;
  border-bottom: 1px solid rgba(96, 165, 250, 0.18);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  padding: 1.25rem;
}

.step-number {
  align-items: center;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(147, 197, 253, 0.5);
  border-radius: 5px;
  color: #bfdbfe;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 950;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.step-check {
  align-items: center;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 5px;
  color: #cbd5e1;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
}

.step-check[data-complete="true"] {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(96, 165, 250, 0.75);
  color: #bfdbfe;
}

.step-body {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
}

.callout {
  border-left: 3px solid #60a5fa;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.7;
  padding-left: 1rem;
}

.gallery-shell {
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.68);
  overflow: hidden;
}

.gallery-header {
  align-items: center;
  border-bottom: 1px solid rgba(96, 165, 250, 0.18);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.gallery-counter {
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-controls {
  display: inline-flex;
  gap: 0.5rem;
}

.gallery-control {
  align-items: center;
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 5px;
  color: #dbeafe;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.gallery-control:hover {
  background: rgba(30, 64, 175, 0.35);
}

.gallery-control:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.gallery-frame {
  background:
    linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px),
    rgba(2, 6, 23, 0.95);
  background-size: 24px 24px;
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 1rem;
}

.gallery-image-button {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  max-width: 360px;
  width: min(100%, 360px);
}

.gallery-image-button img {
  aspect-ratio: 9 / 16;
  background: #020617;
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 5px;
  display: block;
  object-fit: contain;
  object-position: top center;
  width: 100%;
}

.gallery-caption {
  align-items: center;
  border-top: 1px solid rgba(96, 165, 250, 0.18);
  color: #cbd5e1;
  display: flex;
  font-size: 0.85rem;
  font-weight: 800;
  gap: 0.5rem;
  justify-content: space-between;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
}

.no-screenshot {
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(96, 165, 250, 0.35);
  border-radius: 5px;
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 850;
  padding: 1rem;
}

.index-link {
  align-items: center;
  border-radius: 5px;
  color: #b6c3d4;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1.55rem 1fr;
  line-height: 1.3;
  padding: 0.55rem;
}

.index-link:hover {
  background: rgba(30, 41, 59, 0.78);
  color: #ffffff;
}

.index-link span:first-child {
  align-items: center;
  background: rgba(30, 64, 175, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 4px;
  color: #bfdbfe;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 950;
  height: 1.55rem;
  justify-content: center;
  width: 1.55rem;
}

.info-panel {
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 6px;
  padding: 1.1rem;
}

.info-panel svg {
  color: #60a5fa;
  height: 1.35rem;
  width: 1.35rem;
}

.info-panel h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  margin-top: 0.8rem;
}

.info-panel p {
  color: #aab8ca;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 0.45rem;
}

.lightbox-arrow {
  align-items: center;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  height: 3.25rem;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
}

.lightbox-arrow:hover {
  background: rgba(30, 64, 175, 0.55);
}

.lightbox-arrow svg {
  height: 2rem;
  width: 2rem;
}

@media (max-width: 720px) {
  .step-top {
    grid-template-columns: auto 1fr;
  }

  .step-check {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .gallery-header {
    align-items: start;
    flex-direction: column;
  }

  .gallery-controls {
    width: 100%;
  }

  .gallery-control {
    flex: 1;
    width: auto;
  }

  .gallery-frame {
    min-height: 420px;
  }

  .lightbox-arrow {
    bottom: 1rem;
    top: auto;
    transform: none;
  }
}
