/* =====================================================
   skeleton-loader.css — Succeed HQ
   Drop this in your /css/ folder
   ===================================================== */

/* ── Overlay ───────────────────────────────────────── */
#skl-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #080d17;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#skl-overlay.skl-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Shimmer base block ─────────────────────────────── */
.skl {
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    #111827 0%,
    #111827 25%,
    #1e2d45 50%,
    #111827 75%,
    #111827 100%
  );
  background-size: 300% 100%;
  animation: skl-shimmer 1.8s ease-in-out infinite;
}

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

/* ── Nav skeleton ───────────────────────────────────── */
#skl-nav {
  height: 64px;
  width: 100%;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  flex-shrink: 0;
  background: #080d17;
}

.skl-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skl-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.skl-logo-text {
  width: 110px;
  height: 18px;
  border-radius: 6px;
}

.skl-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.skl-nav-link {
  height: 12px;
  border-radius: 6px;
}

.skl-nav-btn {
  width: 110px;
  height: 38px;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    #0f2a6e 0%,
    #0f2a6e 25%,
    #1a3d9e 50%,
    #0f2a6e 75%,
    #0f2a6e 100%
  ) !important;
  background-size: 300% 100% !important;
  animation: skl-shimmer 1.8s ease-in-out infinite;
}

/* ── Page body ──────────────────────────────────────── */
#skl-body {
  flex: 1;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* hero pill badge */
.skl-badge {
  width: 140px;
  height: 28px;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

/* headings */
.skl-h1-a { width: 80%; height: 44px; border-radius: 10px; }
.skl-h1-b { width: 55%; height: 44px; border-radius: 10px; margin-top: -0.5rem; }

/* sub-heading */
.skl-sub  { width: 65%; height: 20px; border-radius: 6px; }

/* text lines */
.skl-line-full  { width: 100%; height: 14px; border-radius: 6px; }
.skl-line-90    { width: 90%;  height: 14px; border-radius: 6px; }
.skl-line-75    { width: 75%;  height: 14px; border-radius: 6px; }
.skl-line-60    { width: 60%;  height: 14px; border-radius: 6px; }
.skl-line-45    { width: 45%;  height: 14px; border-radius: 6px; }

/* CTA buttons row */
.skl-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.skl-btn-primary {
  width: 160px;
  height: 48px;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    #0f2a6e 0%,
    #0f2a6e 25%,
    #1a3d9e 50%,
    #0f2a6e 75%,
    #0f2a6e 100%
  ) !important;
  background-size: 300% 100% !important;
  animation: skl-shimmer 1.8s ease-in-out infinite;
}

.skl-btn-ghost {
  width: 130px;
  height: 48px;
  border-radius: 9999px;
  border: 1px solid #1e293b;
  background: transparent !important;
  animation: none !important;
}

/* section divider */
.skl-divider {
  width: 100%;
  height: 1px;
  background: #1e293b;
  margin: 0.5rem 0;
}

/* content card blocks */
.skl-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.skl-card {
  height: 100px;
  border-radius: 12px;
  border: 1px solid #1e293b;
}

/* ── Staggered animation delays ─────────────────────── */
.skl:nth-child(1)  { animation-delay: 0s; }
.skl:nth-child(2)  { animation-delay: 0.1s; }
.skl:nth-child(3)  { animation-delay: 0.15s; }
.skl:nth-child(4)  { animation-delay: 0.2s; }
.skl:nth-child(5)  { animation-delay: 0.25s; }
.skl:nth-child(6)  { animation-delay: 0.3s; }
.skl:nth-child(7)  { animation-delay: 0.35s; }
.skl:nth-child(8)  { animation-delay: 0.4s; }
.skl:nth-child(9)  { animation-delay: 0.45s; }
.skl:nth-child(10) { animation-delay: 0.5s; }

/* ── Respect reduce-motion users ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .skl, .skl-btn-primary, .skl-nav-btn {
    animation: none;
    background: #1e293b !important;
  }
}

/* ── Mobile tweaks ──────────────────────────────────── */
@media (max-width: 768px) {
  .skl-nav-links { display: none; }
  .skl-h1-a { width: 95%; height: 34px; }
  .skl-h1-b { width: 75%; height: 34px; }
  .skl-sub  { width: 85%; }
}
