/* ═══════════════════════════════════════════════════════
   ProPulse — Design System Global
   Import this file from every HTML page:
   <link rel="stylesheet" href="/src/styles/global.css">
═══════════════════════════════════════════════════════ */

/* ── CSS Variables ───────────────────────────────────── */
:root {
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-900: #1e3a8a;

  --radius-card: 16px;
  --radius-btn:  12px;
  --shadow-card: 0 1px 3px 0 rgba(0,0,0,0.06), 0 1px 2px -1px rgba(0,0,0,0.04);
  --shadow-glass: 0 8px 32px 0 rgba(31,38,135,0.18);
}

/* ── Shared Animations ───────────────────────────────── */
@keyframes propulse-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes propulse-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes propulse-spin {
  to { transform: rotate(360deg); }
}

@keyframes propulse-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(139,92,246,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(139,92,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); }
}

/* ── Shared utility classes ──────────────────────────── */
.pp-animated-bg {
  background: linear-gradient(135deg, #060d2e 0%, #0f2472 35%, #1a4cb8 65%, #0d7de8 100%);
  background-size: 300% 300%;
  animation: propulse-gradient 16s ease infinite;
}

.pp-spinner {
  animation: propulse-spin 0.8s linear infinite;
}

.pp-fade-up {
  animation: propulse-fade-up 0.35s ease forwards;
}

.pp-ai-pulse {
  animation: propulse-pulse-ring 2.4s cubic-bezier(0.4,0,0.6,1) infinite;
}

/* ── Shared component styles ─────────────────────────── */
.pp-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid #f3f4f6;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}

.pp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-600);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.pp-btn-primary:hover  { background: var(--brand-700); }
.pp-btn-primary:active { transform: scale(0.97); }

.pp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* ── Reveal on scroll (shared with landing page) ─────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Toast notifications ─────────────────────────────── */
@keyframes propulse-slide-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}
.pp-toast-enter { animation: propulse-slide-in 0.25s ease forwards; }

/* ── Focus ring ──────────────────────────────────────── */
.pp-focus:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}
