/* Reveal animations */
body.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  will-change: transform, opacity;
  transition: opacity .42s cubic-bezier(0.22, 1, 0.36, 1), transform .42s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-delay, 0s) * 0.45);
}

body.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes scanline {
  0% { background-position: -60% 50%; }
  50% { background-position: 60% 50%; }
  100% { background-position: -60% 50%; }
}

@keyframes linePulse {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.35; }
}

@keyframes modalShell {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    will-change: auto;
    transition: none;
  }

  .hero-inner::after,
  .card-frame::after,
  .stat::after,
  .timeline-item::after,
  .logo-wrap::after,
  .modalHero::after,
  .hero-network,
  .hero-network .net-line,
  .stat-curtain::before {
    animation: none;
  }

  .modal[open] {
    animation: none;
  }

  .card-frame {
    transform: translateY(var(--lift, 0px));
  }
}

.seo-debug-panel {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: min(380px, calc(100vw - 28px));
  max-height: 56vh;
  overflow: auto;
  z-index: 1700;
  border-radius: 12px;
  border: 1px solid rgba(245, 247, 255, 0.22);
  background:
    linear-gradient(160deg, rgba(7, 7, 14, 0.96), rgba(20, 10, 18, 0.95));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 45, 45, 0.2);
  backdrop-filter: blur(8px);
}

.seo-debug-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(245, 247, 255, 0.14);
  background: linear-gradient(90deg, rgba(255, 45, 45, 0.14), rgba(76, 141, 255, 0.12));
}

.seo-debug-panel-head strong {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.seo-debug-panel-head span {
  color: rgba(245, 247, 255, 0.68);
  font-size: 12px;
}

.seo-debug-panel-grid {
  margin: 0;
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
}

.seo-debug-panel-row {
  border-radius: 10px;
  border: 1px solid rgba(245, 247, 255, 0.12);
  background: rgba(10, 10, 18, 0.68);
  padding: 8px 10px;
}

.seo-debug-panel-row dt {
  color: rgba(245, 247, 255, 0.7);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
}

.seo-debug-panel-row dd {
  margin: 4px 0 0;
  color: #f5f7ff;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "left" "side" "trust";
  }
  .hero-side { justify-content: flex-start; }
  .trustbar { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .seo-debug-panel {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 10px;
    max-height: 50vh;
  }

  .category-card { flex-basis: 86%; }
  .card-meta {
    opacity: 1;
    transform: translateY(0);
  }

  .apps-scroller {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .apps-scroller::-webkit-scrollbar { height: 0; }

  .stats-grid { grid-template-columns: 1fr; }
}
