/* =========================================================
   10xMyBrand — Custom Atmospheric Styles
   ========================================================= */

html {
  scroll-behavior: smooth;
  background-color: #06060a;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #06060a;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Faint Cosmic Hero Grid & Dot-Matrix Starfield */
.bg-cosmic-grid {
  background-size: 64px 64px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

.bg-cosmic-stars {
  background-image:
    radial-gradient(1px 1px at 14% 20%, rgba(255, 255, 255, 0.28) 100%, transparent),
    radial-gradient(1px 1px at 31% 11%, rgba(56, 189, 248, 0.3) 100%, transparent),
    radial-gradient(1.5px 1.5px at 46% 32%, rgba(99, 102, 241, 0.35) 100%, transparent),
    radial-gradient(1px 1px at 69% 16%, rgba(255, 255, 255, 0.24) 100%, transparent),
    radial-gradient(1.5px 1.5px at 84% 28%, rgba(147, 51, 234, 0.35) 100%, transparent),
    radial-gradient(1px 1px at 23% 62%, rgba(255, 255, 255, 0.16) 100%, transparent),
    radial-gradient(1px 1px at 76% 58%, rgba(56, 189, 248, 0.22) 100%, transparent);
}

/* Top Stage Spotlight Beams */
.stage-beam {
  width: 20rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, #6366f1, transparent);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.75);
}

.stage-cone {
  width: 38rem;
  max-width: 95vw;
  height: 14rem;
  transform: translateY(-1rem);
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.08) 45%, transparent 75%);
  filter: blur(70px);
}

/* Refined Cyan-to-Indigo Card Glow */
.card-cyan-indigo-glow {
  box-shadow: 0 0 40px -10px rgba(6, 182, 212, 0.25);
}

/* Active Pipeline Card State */
.pipeline-card.is-selected {
  border-color: rgba(6, 182, 212, 0.45);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.1) 0%, #0d0e14 100%);
  box-shadow: 0 0 32px -8px rgba(6, 182, 212, 0.24);
}

/* Smooth FAQ Accordion Transition */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-chevron {
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

/* Modal Entrance Animation */
.modal-backdrop.is-visible {
  display: flex;
  animation: fadeIn 180ms ease-out forwards;
}

.modal-backdrop.is-visible .modal-panel {
  animation: scaleUp 200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .faq-panel,
  .faq-chevron,
  .modal-backdrop.is-visible,
  .modal-backdrop.is-visible .modal-panel {
    animation: none;
    transition: none;
  }
}