/* ═══════════════════════════════════════════════════════════════════════
   WESTBRIDGE CREDIT CO. — DESIGN SYSTEM & STYLESHEET
   Crafted for elite fintech aesthetic (Clean, Institutional, High-Impact)
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --wb-navy: #0A192F;
  --wb-navy-deep: #060D1A;
  --wb-blue: #003882;
  --wb-blue-vibrant: #0052CC;
  --wb-blue-light: #EBF3FF;
  --wb-red: #D7262D;
  --wb-red-light: #FEECEE;
  --wb-slate-50: #F8FAFC;
  --wb-slate-100: #F1F5F9;
  --wb-slate-200: #E2E8F0;
  --wb-slate-400: #94A3B8;
  --wb-slate-600: #475569;
  --wb-slate-800: #1E293B;
  --wb-slate-900: #0F172A;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ── Base ───────────────────────────────────────────────────────────── */
html {
  font-family: var(--font-body);
  color: var(--wb-slate-900);
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

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

/* ── Custom Subtle Backgrounds ──────────────────────────────────────── */
.bg-mesh-light {
  background-color: #FAFCFE;
  background-image: 
    radial-gradient(at 10% 10%, rgba(0, 82, 204, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 15%, rgba(215, 38, 45, 0.04) 0px, transparent 40%),
    radial-gradient(at 50% 80%, rgba(0, 56, 130, 0.03) 0px, transparent 60%);
}

.bg-dot-pattern {
  background-image: radial-gradient(rgba(10, 25, 47, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-dot-pattern-dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-grid-subtle {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(0, 56, 130, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 56, 130, 0.03) 1px, transparent 1px);
}

/* ── Glass & Card Elevation ─────────────────────────────────────────── */
.glass-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.card-institutional {
  background: #FFFFFF;
  border: 1px solid var(--wb-slate-200);
  border-radius: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(10, 25, 47, 0.03), 0 10px 25px -5px rgba(10, 25, 47, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-institutional:hover {
  border-color: rgba(0, 82, 204, 0.3);
  box-shadow: 0 12px 30px -5px rgba(0, 56, 130, 0.1), 0 4px 10px -2px rgba(10, 25, 47, 0.04);
  transform: translateY(-2px);
}

.card-featured {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1.5px solid rgba(0, 82, 204, 0.2);
  box-shadow: 0 16px 40px -8px rgba(0, 56, 130, 0.12);
}

/* ── Slider Customization (Fintech Grade) ────────────────────────────── */
.fintech-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #E2E8F0;
  outline: none;
  transition: background 0.2s ease;
  cursor: pointer;
}

.fintech-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0052CC;
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.4), 0 0 0 1px rgba(0, 82, 204, 0.2);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fintech-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.5), 0 0 0 4px rgba(0, 82, 204, 0.15);
}

.fintech-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0052CC;
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.4);
  cursor: grab;
}

/* ── Badges & Micro Tags ────────────────────────────────────────────── */
.badge-pill-blue {
  background: #EBF3FF;
  color: #003882;
  border: 1px solid rgba(0, 82, 204, 0.15);
}

.badge-pill-red {
  background: #FEECEE;
  color: #D7262D;
  border: 1px solid rgba(215, 38, 45, 0.2);
}

.badge-pill-green {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ── Form Inputs ────────────────────────────────────────────────────── */
.input-premium {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-size: 0.9375rem;
  border: 1.5px solid var(--wb-slate-200);
  border-radius: 0.875rem;
  background-color: #FFFFFF;
  color: var(--wb-slate-900);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.input-premium:focus {
  border-color: #0052CC;
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.12);
  background-color: #FFFFFF;
}

.input-premium::placeholder {
  color: #94A3B8;
}

.select-premium {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.125rem;
  padding-right: 2.75rem;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #003882;
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px -1px rgba(0, 56, 130, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #002D62;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -2px rgba(0, 56, 130, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #D7262D;
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px -1px rgba(215, 38, 45, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-accent:hover {
  background-color: #B91C22;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -2px rgba(215, 38, 45, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #FFFFFF;
  color: var(--wb-slate-800);
  border: 1.5px solid var(--wb-slate-200);
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--wb-slate-400);
  background-color: var(--wb-slate-50);
  transform: translateY(-1px);
}

/* ── FAQ Accordion ──────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--wb-slate-200);
  transition: background-color 0.2s ease;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 1.5rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--wb-slate-900);
  cursor: pointer;
  background: none;
  border: none;
}

.faq-trigger:hover {
  color: #003882;
}

.faq-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--wb-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: #EBF3FF;
  color: #003882;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  color: var(--wb-slate-600);
  line-height: 1.7;
}

.faq-item.active .faq-content {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.5rem;
}


/* ── Pulse Indicator ────────────────────────────────────────────────── */
.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.indicator-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: pulse-ring 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
