/* ==========================================================================
   DISPATCHERPRO - FREIGHT BROKERS PAGE STYLESHEET
   ========================================================================== */

:root {
  --fb-primary: #2563eb;
  --fb-primary-dark: #1e40af;
  --fb-primary-light: #eff6ff;
  --fb-accent-cyan: #06b6d4;
  --fb-accent-emerald: #10b981;
  --fb-accent-purple: #8b5cf6;
  --fb-accent-amber: #f59e0b;
  --fb-accent-rose: #f43f5e;
  --fb-dark-bg: #0b132b;
  --fb-card-dark: #1c2541;
  --fb-heading: #0f172a;
  --fb-muted: #475569;
  --fb-light-bg: #f8fafc;
  --fb-border: #e2e8f0;
  --fb-radius-xl: 24px;
  --fb-radius-lg: 16px;
  --fb-radius-md: 12px;
  --fb-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --fb-shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
  --fb-shadow-lg: 0 20px 35px -8px rgba(37, 99, 235, 0.18);
  --fb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Wrapper */
main.fb-main-wrapper {
  background-color: #ffffff;
  color: var(--fb-heading);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  position: relative;
}

.fb-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Common Section Header */
.fb-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.fb-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fb-primary);
  background: var(--fb-primary-light);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.fb-section-title {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--fb-heading);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.fb-section-title span.fb-gradient-text,
span.fb-gradient-text {
  background: linear-gradient(135deg, var(--fb-primary) 0%, var(--fb-accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fb-section-desc {
  font-size: 1.125rem;
  color: var(--fb-muted);
  line-height: 1.65;
}

/* Buttons */
.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--fb-transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.fb-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.fb-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.55);
  color: #ffffff;
}

.fb-btn-outline {
  background: rgba(255, 255, 255, 0.8);
  color: var(--fb-heading);
  border-color: var(--fb-border);
  backdrop-filter: blur(8px);
}

.fb-btn-outline:hover {
  background: #ffffff;
  border-color: var(--fb-primary);
  color: var(--fb-primary);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.fb-hero-section {
  position: relative;
  padding: 5rem 0 6rem;
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
              linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}

.fb-hero-bg-glow {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

.fb-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.fb-hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--fb-heading);
  margin-bottom: 1.25rem;
}

.fb-hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--fb-muted);
  margin-bottom: 2.2rem;
}

.fb-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.fb-hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fb-border);
}

.fb-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fb-muted);
}

.fb-trust-item i {
  color: var(--fb-accent-emerald);
}

/* Hero Visual Glass Card */
.fb-hero-visual {
  position: relative;
}

.fb-card-glass {
  background: rgba(11, 19, 43, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--fb-radius-xl);
  padding: 2rem;
  color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(11, 19, 43, 0.35);
  transition: var(--fb-transition);
}

.fb-card-glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -12px rgba(37, 99, 235, 0.3);
}

.fb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.fb-tag-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.fb-dot {
  width: 7px;
  height: 7px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  animation: fbGlowPulse 1.8s infinite;
}

@keyframes fbGlowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.fb-load-id {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-left: 8px;
}

.fb-status-badge {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.fb-route-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.25rem;
  border-radius: var(--fb-radius-lg);
  margin-bottom: 1.5rem;
}

.fb-point {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-point i {
  color: var(--fb-accent-cyan);
  font-size: 1.2rem;
}

.fb-point strong {
  display: block;
  font-size: 1rem;
}

.fb-point span {
  font-size: 0.78rem;
  color: #94a3b8;
}

.fb-route-line {
  position: relative;
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, var(--fb-accent-cyan), var(--fb-primary));
}

.fb-truck-icon {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #0b132b;
  color: var(--fb-accent-cyan);
  font-size: 0.9rem;
  padding: 0 4px;
}

.fb-metrics-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.fb-mini-metric {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: var(--fb-radius-md);
  text-align: center;
}

.fb-mini-metric .fb-lbl {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.fb-mini-metric .fb-val {
  font-size: 0.95rem;
  font-weight: 700;
}

.text-green { color: #34d399; }
.text-blue { color: #60a5fa; }
.text-purple { color: #c084fc; }

.fb-carrier-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 12px 16px;
  border-radius: var(--fb-radius-md);
}

.fb-carrier-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.fb-carrier-meta {
  flex: 1;
}

.fb-carrier-meta strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
}

.fb-carrier-meta span {
  font-size: 0.78rem;
  color: #34d399;
}

.fb-check-icon {
  color: #34d399;
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   2. STATS BAR SECTION
   -------------------------------------------------------------------------- */
.fb-stats-section {
  padding: 3.5rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--fb-border);
}

.fb-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.fb-stat-card {
  background: var(--fb-light-bg);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--fb-transition);
}

.fb-stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--fb-primary);
  box-shadow: var(--fb-shadow-md);
}

.fb-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--fb-primary-light);
  color: var(--fb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 1.2rem;
}

.fb-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--fb-heading);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.fb-stat-label {
  font-size: 0.92rem;
  color: var(--fb-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. CORE FEATURES GRID SECTION
   -------------------------------------------------------------------------- */
.fb-features-section {
  padding: 6rem 0;
  background: #ffffff;
}

.fb-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.fb-feature-card {
  background: #ffffff;
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-xl);
  padding: 2.5rem 2rem;
  transition: var(--fb-transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.fb-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--fb-shadow-lg);
}

.fb-feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.color-blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.color-cyan { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.color-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.color-emerald { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.color-amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.color-rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }

.fb-feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fb-heading);
  margin-bottom: 0.8rem;
}

.fb-feature-card p {
  font-size: 0.98rem;
  color: var(--fb-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.fb-feature-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fb-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fb-heading);
}

.fb-feature-list li i {
  color: var(--fb-accent-emerald);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   4. WORKFLOW PIPELINE SECTION
   -------------------------------------------------------------------------- */
.fb-workflow-section {
  padding: 6rem 0;
  background: var(--fb-light-bg);
  border-top: 1px solid var(--fb-border);
  border-bottom: 1px solid var(--fb-border);
}

.fb-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.fb-step-card {
  background: #ffffff;
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-lg);
  padding: 2.2rem 1.5rem;
  position: relative;
  transition: var(--fb-transition);
}

.fb-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--fb-primary);
  box-shadow: var(--fb-shadow-md);
}

.fb-step-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(37, 99, 235, 0.12);
  position: absolute;
  top: 15px;
  right: 20px;
  line-height: 1;
}

.fb-step-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--fb-primary-light);
  color: var(--fb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.fb-step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fb-heading);
  margin-bottom: 0.6rem;
}

.fb-step-card p {
  font-size: 0.92rem;
  color: var(--fb-muted);
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. INTEGRATIONS SECTION
   -------------------------------------------------------------------------- */
.fb-integrations-section {
  padding: 5rem 0;
  background: #ffffff;
}

.fb-integrations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.fb-integration-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--fb-light-bg);
  border: 1px solid var(--fb-border);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fb-heading);
  transition: var(--fb-transition);
}

.fb-integration-chip:hover {
  background: #ffffff;
  border-color: var(--fb-primary);
  color: var(--fb-primary);
  transform: translateY(-3px);
  box-shadow: var(--fb-shadow-sm);
}

.fb-integration-chip i {
  color: var(--fb-primary);
}

/* --------------------------------------------------------------------------
   6. FAQ ACCORDION SECTION
   -------------------------------------------------------------------------- */
.fb-faq-section {
  padding: 6rem 0;
  background: var(--fb-light-bg);
  border-top: 1px solid var(--fb-border);
}

.fb-faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fb-faq-item {
  background: #ffffff;
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-lg);
  overflow: hidden;
  transition: var(--fb-transition);
}

.fb-faq-item.active {
  border-color: var(--fb-primary);
  box-shadow: var(--fb-shadow-sm);
}

.fb-faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.fb-faq-question h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fb-heading);
  margin: 0;
}

.fb-faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fb-light-bg);
  color: var(--fb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.fb-faq-answer {
  padding: 0 1.5rem 1.5rem;
  display: none;
}

.fb-faq-answer p {
  font-size: 0.98rem;
  color: var(--fb-muted);
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .fb-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .fb-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fb-stats-grid,
  .fb-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .fb-hero-section {
    padding: 3.5rem 0 4.5rem;
  }

  .fb-features-grid,
  .fb-stats-grid,
  .fb-steps-grid {
    grid-template-columns: 1fr;
  }

  .fb-hero-ctas {
    flex-direction: column;
  }

  .fb-btn {
    width: 100%;
  }

  .fb-metrics-mini-grid {
    grid-template-columns: 1fr;
  }
}
