/* ═══════════════════════════════════════════════════════════════
   UTILITIES.CSS — Background patterns, glows, text helpers
═══════════════════════════════════════════════════════════════ */

/* ── Background patterns ───────────────────────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
}

.bg-dots {
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ── Gradient glows ────────────────────────────────────────────── */
.bg-radial-fade {
  background: radial-gradient(ellipse 80% 50% at 50% -5%, var(--primary-glow-strong) 0%, transparent 70%);
}

.bg-hero-glow {
  background:
    radial-gradient(ellipse 60% 40% at 30% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 70% 40%, rgba(14, 165, 233, 0.05) 0%, transparent 60%);
}

/* ── Surface colors ────────────────────────────────────────────── */
.bg-base    { background-color: var(--bg-base); }
.bg-surface { background-color: var(--bg-surface); }
.bg-card    { background-color: var(--bg-card); }

/* ── Text utilities ────────────────────────────────────────────── */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--accent); }
.text-primary-color { color: var(--primary); }
.text-success   { color: var(--success); }
.text-error     { color: var(--error); }

.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* ── Spacing helpers ───────────────────────────────────────────── */
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-auto { margin-top: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Flex helpers ──────────────────────────────────────────────── */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* ── Width / max-width ─────────────────────────────────────────── */
.w-full   { width: 100%; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

/* ── Position helpers ──────────────────────────────────────────── */
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }

/* ── Scrollbar hide ────────────────────────────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Scroll reveal stagger delays ──────────────────────────────── */
.delay-1 { transition-delay: 80ms !important; }
.delay-2 { transition-delay: 160ms !important; }
.delay-3 { transition-delay: 240ms !important; }
.delay-4 { transition-delay: 320ms !important; }
.delay-5 { transition-delay: 400ms !important; }
.delay-6 { transition-delay: 480ms !important; }

/* ── Inline flex CTAs ──────────────────────────────────────────── */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.cta-group-center {
  justify-content: center;
}

/* ── Misc helpers ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.pointer-none { pointer-events: none; }
.opacity-0    { opacity: 0; }

/* Horizontal scroll strip for capability strip */
.scroll-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.scroll-strip::-webkit-scrollbar { display: none; }
.scroll-strip { -ms-overflow-style: none; scrollbar-width: none; }

@media (min-width: 768px) {
  .scroll-strip {
    flex-wrap: wrap;
    overflow: visible;
    justify-content: center;
  }
}
