/* Unified Z5 page layout + AI-era motion (all public pages) */

.z5-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.z5-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.45;
  animation: z5-orb-float 18s ease-in-out infinite alternate;
}

.z5-orb--cyan {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(120, 200, 255, 0.35) 0%, transparent 70%);
}

.z5-orb--green {
  width: min(360px, 60vw);
  height: min(360px, 60vw);
  bottom: -10%;
  right: -6%;
  background: radial-gradient(circle, rgba(130, 220, 160, 0.28) 0%, transparent 70%);
  animation-delay: -6s;
}

.z5-orb--violet {
  width: min(280px, 50vw);
  height: min(280px, 50vw);
  top: 40%;
  right: 20%;
  background: radial-gradient(circle, rgba(140, 120, 255, 0.18) 0%, transparent 70%);
  animation-delay: -12s;
}

@keyframes z5-orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24px, -18px) scale(1.08); }
}

.shell {
  position: relative;
  z-index: 1;
}

.z5-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.z5-page > * {
  animation: z5-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.z5-page > *:nth-child(1) { animation-delay: 0.04s; }
.z5-page > *:nth-child(2) { animation-delay: 0.08s; }
.z5-page > *:nth-child(3) { animation-delay: 0.12s; }
.z5-page > *:nth-child(4) { animation-delay: 0.16s; }
.z5-page > *:nth-child(5) { animation-delay: 0.2s; }
.z5-page > *:nth-child(n+6) { animation-delay: 0.24s; }

@keyframes z5-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.z5-card,
.page .card-panel,
.z5-page .card-panel {
  position: relative;
  border: 1px solid rgba(120, 200, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 26, 34, 0.92), rgba(14, 16, 20, 0.88));
  backdrop-filter: blur(8px);
  padding: 14px 16px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 12px 40px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.z5-card:hover,
.page .card-panel:hover {
  border-color: rgba(120, 200, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(120, 200, 255, 0.08) inset,
    0 16px 48px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(120, 200, 255, 0.06);
}

.z5-section__head {
  margin-bottom: 10px;
}

.z5-section__head h2,
.z5-section__head h3,
.page .purchase-section__head h3,
.page .guide-section__head h3,
.page .download-section__head h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--z5-txt);
}

.z5-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.z5-grid--2 {
  grid-template-columns: 1fr;
}

.z5-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .z5-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .z5-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.z5-hero {
  margin-bottom: 8px;
}

.z5-hero__eyebrow {
  font-size: 11px;
  color: var(--z5-mut);
  margin: 0 0 8px;
}

.z5-hero__title {
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  font-weight: 700;
  color: var(--z5-txt);
  margin: 0 0 12px;
  line-height: 1.35;
}

.z5-hero__lede {
  font-size: 13px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 0 18px;
}

.z5-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.z5-cta .btn,
.z5-cta .solid,
.z5-cta .ghost {
  width: 100%;
  justify-content: center;
}

@media (min-width: 520px) {
  .z5-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .z5-cta .btn,
  .z5-cta .solid,
  .z5-cta .ghost {
    width: auto;
    flex: 1 1 140px;
  }
}

.z5-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--z5-cyan);
  margin-bottom: 8px;
}

.z5-tag--green {
  color: var(--z5-green);
}

.z5-console {
  background: rgba(8, 10, 14, 0.85);
  border: 1px solid var(--z5-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  overflow-x: auto;
}

.z5-shimmer {
  background: linear-gradient(
    90deg,
    rgba(120, 200, 255, 0) 0%,
    rgba(120, 200, 255, 0.12) 50%,
    rgba(120, 200, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: z5-shimmer 3s ease-in-out infinite;
}

@keyframes z5-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.z5-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.z5-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .z5-orb,
  .z5-page > *,
  .z5-shimmer,
  .z5-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
