/**
 * TruckBill Homepage - Modern & Classy Theme Layer
 * Maintains brand identity: Emerald Green (#2E7D32, #4CAF50, #10B981)
 * Enhanced with modern elevation, glassmorphism, responsive bento grids, and refined typography.
 */

:root {
  --tb-green-900: #022c22;
  --tb-green-800: #064e3b;
  --tb-green-700: #065f46;
  --tb-green-600: #059669;
  --tb-green-500: #10b981;
  --tb-brand: #2e7d32;
  --tb-brand-light: #4caf50;
  --tb-brand-tint: rgba(76, 175, 80, 0.1);
  --tb-slate-900: #0f172a;
  --tb-slate-800: #1e293b;
  --tb-slate-700: #334155;
  --tb-slate-600: #475569;
  --tb-slate-500: #64748b;
  --tb-slate-400: #94a3b8;
  --tb-slate-200: #e2e8f0;
  --tb-slate-100: #f1f5f9;
  --tb-slate-50: #f8fafc;
  --tb-white: #ffffff;

  --tb-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --tb-shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --tb-shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --tb-shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
  --tb-shadow-green: 0 10px 25px -4px rgba(46, 125, 50, 0.28);
}

/* Base refinement */
body {
  color: var(--tb-slate-700);
  background-color: var(--tb-white);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1, h2, h3, h4, h5, h6 {
  color: var(--tb-slate-900);
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* ==========================================================================
   1. Modern Glassmorphic Navbar
   ========================================================================== */
.navbar.fixed-top {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--tb-slate-900) !important;
  letter-spacing: -0.03em;
}

.navbar-brand img {
  border-radius: 8px;
}

.navbar-nav .nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--tb-slate-700) !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--tb-brand) !important;
  background: var(--tb-brand-tint);
}

.navbar .nav-item-cta .btn-primary {
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--tb-brand), var(--tb-brand-light));
  border: none;
  font-weight: 600;
  padding: 0.55rem 1.35rem;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
  transition: all 0.25s ease;
}

.navbar .nav-item-cta .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.35);
}

/* ==========================================================================
   2. Atmospheric Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(76, 175, 80, 0.14) 0%, rgba(240, 253, 244, 0.5) 45%, #ffffff 85%);
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.8), transparent);
}

/* Pill badge above hero title */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(76, 175, 80, 0.3);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.08);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--tb-brand);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tb-green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: tb-pulse 2s infinite;
}

.hero-badge__divider {
  width: 1px;
  height: 12px;
  background: var(--tb-slate-200);
}

.hero-badge__sub {
  color: var(--tb-slate-500);
  font-weight: 500;
}

@keyframes tb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-headline {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--tb-slate-900);
  margin-bottom: 1.25rem;
}

.hero-headline .text-accent {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 45%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--tb-brand);
}

.hero .lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--tb-slate-600);
  max-width: 540px;
  margin-bottom: 1.5rem;
}

/* Quick summary tag cloud */
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
}

.hero-highlights li {
  background: var(--tb-white);
  border: 1px solid var(--tb-slate-200);
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tb-slate-700);
  box-shadow: var(--tb-shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hero-highlights li::before {
  content: "✓";
  color: var(--tb-green-600);
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-highlights li:hover {
  border-color: rgba(76, 175, 80, 0.4);
  background: rgba(240, 253, 244, 0.6);
  transform: translateY(-1px);
}

/* CTA Buttons */
.hero-cta-inline .btn-demo-primary {
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--tb-brand), var(--tb-brand-light));
  border: none;
  box-shadow: var(--tb-shadow-green);
  color: var(--tb-white);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-inline .btn-demo-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(46, 125, 50, 0.36);
}

.hero-cta-inline .btn-outline-primary {
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border: 1.5px solid var(--tb-slate-200);
  background: var(--tb-white);
  color: var(--tb-slate-700);
  transition: all 0.25s ease;
}

.hero-cta-inline .btn-outline-primary:hover {
  border-color: var(--tb-brand);
  color: var(--tb-brand);
  background: rgba(76, 175, 80, 0.04);
  transform: translateY(-2px);
}

.hero-cta-note {
  font-size: 0.8125rem;
  color: var(--tb-slate-500);
  margin-top: 1rem;
}

/* Browser Mockup Window for Dashboard Screenshot */
.browser-mockup {
  position: relative;
  border-radius: 18px;
  background: var(--tb-white);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -15px rgba(46, 125, 50, 0.18), 0 0 0 1px rgba(76, 175, 80, 0.2);
}

.browser-mockup__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.browser-mockup__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-mockup__dot--red { background: #ff5f56; }
.browser-mockup__dot--yellow { background: #ffbd2e; }
.browser-mockup__dot--green { background: #27c93f; }

.browser-mockup__url {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 260px;
}

.browser-mockup__url i {
  font-size: 0.7rem;
  color: var(--tb-green-600);
}

.browser-mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom-left-radius: 17px;
  border-bottom-right-radius: 17px;
}

/* Floating Metrics Badge on Hero */
.browser-mockup__badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  transition: transform 0.25s ease;
}

.browser-mockup__badge:hover {
  transform: scale(1.03);
}

.browser-mockup__badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.12);
  color: var(--tb-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.browser-mockup__badge-text strong {
  display: block;
  font-size: 0.875rem;
  color: var(--tb-slate-900);
  line-height: 1.2;
}

.browser-mockup__badge-text span {
  font-size: 0.75rem;
  color: var(--tb-slate-500);
}

/* Modern Stats Bar */
.stats-bar-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--tb-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 24px 32px;
  box-shadow: var(--tb-shadow-md);
  margin-top: 3.5rem;
  gap: 24px;
}

.stats-bar-modern .stat-item {
  text-align: center;
  position: relative;
}

.stats-bar-modern .stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--tb-slate-200);
}

.stats-bar-modern .stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--tb-brand);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stats-bar-modern .stat-label {
  font-size: 0.875rem;
  color: var(--tb-slate-500);
  font-weight: 500;
}

/* Hero Proof Quote Banner */
.hero-proof-modern {
  margin-top: 2rem;
  padding: 16px 24px;
  background: rgba(240, 253, 244, 0.5);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-proof-modern blockquote {
  font-size: 0.925rem;
  font-style: italic;
  color: var(--tb-slate-700);
  margin: 0;
  flex: 1;
  min-width: 280px;
}

.hero-proof-modern figcaption {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tb-brand);
}

.hero-proof-chips {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--tb-slate-600);
}

.hero-proof-chips li i {
  color: var(--tb-green-600);
  margin-right: 4px;
}

/* ==========================================================================
   3. Section Typography & Section Headers
   ========================================================================== */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

.section-slate {
  background-color: var(--tb-slate-50);
  border-top: 1px solid var(--tb-slate-200);
  border-bottom: 1px solid var(--tb-slate-200);
}

.section-white {
  background-color: var(--tb-white);
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-brand);
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: 9999px;
  padding: 4px 14px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--tb-slate-900);
  line-height: 1.22;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--tb-slate-500);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   4. Bento Card System (Modules, Features, Challenges)
   ========================================================================== */
.feature-card-modern,
.challenge-card-modern,
.why-wins__card-modern {
  background: var(--tb-white);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--tb-shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card-modern::before,
.challenge-card-modern::before,
.why-wins__card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tb-brand), var(--tb-brand-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card-modern:hover,
.challenge-card-modern:hover,
.why-wins__card-modern:hover {
  transform: translateY(-5px);
  border-color: rgba(76, 175, 80, 0.4);
  box-shadow: 0 20px 35px -8px rgba(46, 125, 50, 0.12), 0 2px 4px rgba(0, 0, 0, 0.02);
}

.feature-card-modern:hover::before,
.challenge-card-modern:hover::before,
.why-wins__card-modern:hover::before {
  opacity: 1;
}

/* Modern Icon Badges */
.card-icon-modern {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(33, 150, 243, 0.06));
  border: 1px solid rgba(76, 175, 80, 0.18);
  color: var(--tb-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.35rem;
  transition: all 0.3s ease;
}

.feature-card-modern:hover .card-icon-modern,
.challenge-card-modern:hover .card-icon-modern,
.why-wins__card-modern:hover .card-icon-modern {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(46, 125, 50, 0.12));
  color: #1b5e20;
}

.feature-card-modern h3,
.challenge-card-modern h3,
.why-wins__card-modern h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tb-slate-900);
  margin-bottom: 0.85rem;
}

.feature-card-modern p,
.challenge-card-modern p,
.why-wins__card-modern p {
  color: var(--tb-slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Feature Checkmark list */
.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.feature-checklist li {
  font-size: 0.875rem;
  color: var(--tb-slate-700);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-checklist li i {
  color: var(--tb-green-600);
  margin-top: 3px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Card Action Link with animated arrow */
.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tb-brand);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-action-link i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.card-action-link:hover {
  color: #1b5e20;
  text-decoration: none;
}

.card-action-link:hover i {
  transform: translateX(4px);
}

/* Why Wins Evidence Strip */
.evidence-strip-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--tb-white);
  border: 1px solid var(--tb-slate-200);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 2rem;
  margin-bottom: 1rem;
  box-shadow: var(--tb-shadow-sm);
  list-style: none;
}

.evidence-strip-modern li {
  text-align: center;
  position: relative;
}

.evidence-strip-modern li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--tb-slate-200);
}

.evidence-strip-modern strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tb-brand);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.evidence-strip-modern span {
  font-size: 0.8125rem;
  color: var(--tb-slate-500);
  font-weight: 500;
}

/* ==========================================================================
   5. How It Works Steps
   ========================================================================== */
.step-card-modern {
  background: var(--tb-white);
  border: 1px solid var(--tb-slate-200);
  border-radius: 18px;
  padding: 28px 24px;
  height: 100%;
  position: relative;
  box-shadow: var(--tb-shadow-sm);
  transition: all 0.3s ease;
}

.step-card-modern:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 175, 80, 0.4);
  box-shadow: var(--tb-shadow-md);
}

.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tb-brand), var(--tb-brand-light));
  color: var(--tb-white);
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.25);
}

/* ==========================================================================
   6. Testimonials Section
   ========================================================================== */
.section-testimonials {
  background: var(--tb-slate-50);
}

.testimonials-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--tb-white);
  border: 1px solid var(--tb-slate-200);
  border-radius: 18px;
  padding: 20px 24px;
  max-width: 720px;
  margin: 0 auto 3rem auto;
  box-shadow: var(--tb-shadow-sm);
  list-style: none;
}

.testimonials-stat {
  text-align: center;
  position: relative;
}

.testimonials-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--tb-slate-200);
}

.testimonials-stat-value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--tb-brand);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.testimonials-stat-label {
  font-size: 0.8125rem;
  color: var(--tb-slate-500);
  font-weight: 500;
}

.testimonial-quote-card,
.testimonial-quote-card-modern {
  background: var(--tb-white) !important;
  border: 1px solid var(--tb-slate-200) !important;
  border-radius: 20px !important;
  padding: 32px !important;
  box-shadow: var(--tb-shadow-sm) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

.testimonial-quote-card::before,
.testimonial-quote-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tb-brand), var(--tb-brand-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-quote-card:hover,
.testimonial-quote-card-modern:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(76, 175, 80, 0.4) !important;
  box-shadow: var(--tb-shadow-lg) !important;
}

.testimonial-quote-card:hover::before,
.testimonial-quote-card-modern:hover::before {
  opacity: 1;
}

.testimonial-quote-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.testimonial-badge,
.testimonial-badge-modern {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  background: rgba(76, 175, 80, 0.1) !important;
  color: var(--tb-brand) !important;
  border: 1px solid rgba(76, 175, 80, 0.2) !important;
}

.testimonial-quote,
.testimonial-quote-modern {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: var(--tb-slate-700) !important;
  margin-bottom: 1.5rem !important;
  flex-grow: 1;
}

.testimonial-mini-metrics {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 8px 12px;
  background: rgba(240, 253, 244, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(76, 175, 80, 0.2);
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--tb-slate-700);
}

.testimonial-mini-metrics li strong {
  color: var(--tb-brand);
}

.testimonial-quote-footer,
.testimonial-footer-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--tb-slate-100);
}

.testimonial-avatar,
.testimonial-avatar-modern {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: var(--tb-white);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-avatar--alt {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.testimonial-avatar--broker {
  background: linear-gradient(135deg, #4338ca, #6366f1);
}

.testimonial-avatar--fleet,
.testimonial-avatar-modern--accent {
  background: linear-gradient(135deg, var(--tb-brand), #1b5e20);
}

.testimonial-avatar--accounts {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.testimonial-name {
  display: block;
  font-size: 0.95rem;
  color: var(--tb-slate-900);
  font-weight: 700;
  font-style: normal;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--tb-slate-500);
  margin-bottom: 0;
}

/* Slick arrows & dots modern styling */
.testimonials-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tb-white);
  border: 1px solid var(--tb-slate-200);
  color: var(--tb-slate-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--tb-shadow-sm);
  transition: all 0.2s ease;
}

.testimonials-arrow:hover {
  background: var(--tb-brand);
  color: var(--tb-white);
  border-color: var(--tb-brand);
  box-shadow: var(--tb-shadow-green);
}

.testimonials-track .slick-dots li button {
  border-radius: 50%;
  background: var(--tb-slate-300);
  transition: all 0.2s ease;
}

.testimonials-track .slick-dots li.slick-active button {
  background: var(--tb-brand);
  transform: scale(1.25);
}

/* ==========================================================================
   7. High-Impact Luxury Emerald CTA Section (#book-demo-cta)
   ========================================================================== */
.demo-cta-section-modern {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 45%, #065f46 100%);
  color: var(--tb-white);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.demo-cta-section-modern::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.demo-cta-section-modern::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.demo-cta-box-modern {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.demo-cta-box-modern h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--tb-white);
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.demo-cta-box-modern .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.demo-cta-box-modern .btn-demo-white {
  background: var(--tb-white);
  color: #064e3b;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 40px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  text-decoration: none;
}

.demo-cta-box-modern .btn-demo-white:hover {
  background: #f0fdf4;
  color: #022c22;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.demo-cta-box-modern .pricing-clarity {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.demo-cta-trust-modern {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

.demo-cta-trust-modern span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 7px 18px;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.95);
}

.demo-cta-trust-modern a {
  color: var(--tb-white);
  text-decoration: none;
}

/* ==========================================================================
   8. Contact Section Modern Cards & Forms
   ========================================================================== */
#contact .contact-form,
#contact .contact-info {
  background: var(--tb-white);
  border: 1px solid var(--tb-slate-200);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--tb-shadow-md);
}

#contact .contact-info {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--tb-white);
  border: none;
}

#contact .form-control {
  border-radius: 10px;
  border: 1.5px solid var(--tb-slate-200);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

#contact .form-control:focus {
  border-color: var(--tb-brand);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

#contact .input-group-text {
  border-radius: 10px 0 0 10px;
  border: 1.5px solid var(--tb-slate-200);
  border-right: none;
  background: #f8fafc;
  color: var(--tb-slate-500);
}

#contact .input-group .form-control {
  border-radius: 0 10px 10px 0;
}

#contact .btn-primary {
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--tb-brand), var(--tb-brand-light));
  border: none;
  box-shadow: var(--tb-shadow-green);
}

#contact .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(46, 125, 50, 0.32);
}

/* ==========================================================================
   9. Trial, Free Website, Features & Roadmap Cards
   ========================================================================== */
.trial-card {
  background: var(--tb-white) !important;
  border: 1px solid var(--tb-slate-200) !important;
  border-radius: 20px !important;
  padding: 40px 32px !important;
  box-shadow: var(--tb-shadow-sm) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

.trial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tb-brand), var(--tb-brand-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trial-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(76, 175, 80, 0.4) !important;
  box-shadow: var(--tb-shadow-lg) !important;
}

.trial-card:hover::before {
  opacity: 1;
}

.trial-card .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(76, 175, 80, 0.12);
  color: var(--tb-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

/* Free Website Offer Modernisation */
.free-website-section {
  background: linear-gradient(165deg, #f8fafc 0%, rgba(240, 253, 244, 0.4) 60%, #ffffff 100%) !important;
  border-top: 1px solid var(--tb-slate-200) !important;
  border-bottom: 1px solid var(--tb-slate-200) !important;
}

.free-website-badge {
  background: rgba(76, 175, 80, 0.12) !important;
  color: var(--tb-brand) !important;
  border: 1px solid rgba(76, 175, 80, 0.25) !important;
  border-radius: 9999px !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  padding: 5px 14px !important;
}

.free-website-card {
  background: var(--tb-white) !important;
  border: 1px solid var(--tb-slate-200) !important;
  border-radius: 18px !important;
  padding: 24px !important;
  box-shadow: var(--tb-shadow-sm) !important;
  transition: all 0.3s ease !important;
}

.free-website-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(76, 175, 80, 0.4) !important;
  box-shadow: var(--tb-shadow-md) !important;
}

.free-website-card-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: rgba(76, 175, 80, 0.12) !important;
  color: var(--tb-brand) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  margin-bottom: 1rem !important;
}

/* Platform Features Grid */
#platform-features .d-flex {
  background: var(--tb-white);
  border: 1px solid var(--tb-slate-200);
  border-radius: 16px;
  padding: 20px 22px;
  height: 100%;
  box-shadow: var(--tb-shadow-sm);
  transition: all 0.25s ease;
}

#platform-features .d-flex:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 175, 80, 0.35);
  box-shadow: var(--tb-shadow-md);
}

#platform-features .d-flex .me-3 i {
  font-size: 1.35rem;
  color: var(--tb-brand) !important;
  background: rgba(76, 175, 80, 0.1);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#platform-features .d-flex:hover .me-3 i {
  background: rgba(76, 175, 80, 0.18);
  transform: scale(1.05);
}

#platform-features h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--tb-slate-900);
}

#platform-features p {
  font-size: 0.875rem;
  color: var(--tb-slate-600);
  margin-bottom: 0;
  line-height: 1.55;
}

/* Feature Images */
.feature-image-wrapper img {
  border-radius: 18px;
  border: 1px solid var(--tb-slate-200);
  box-shadow: var(--tb-shadow-lg);
  max-width: 100%;
  height: auto;
}

/* FAQ & Coming Soon Modern Cards */
#faq .feature-card,
#about-truckbill,
#india-teams .feature-card,
#fleet-highlights .feature-card,
#ptl-highlights .feature-card,
#broker-highlights .feature-card {
  background: var(--tb-white);
  border: 1px solid var(--tb-slate-200);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--tb-shadow-sm);
  transition: all 0.3s ease;
}

#faq .feature-card:hover,
#india-teams .feature-card:hover,
#fleet-highlights .feature-card:hover,
#ptl-highlights .feature-card:hover,
#broker-highlights .feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 175, 80, 0.35);
  box-shadow: var(--tb-shadow-md);
}

.coming-soon-card {
  background: var(--tb-white) !important;
  border: 1px solid var(--tb-slate-200) !important;
  border-radius: 18px !important;
  padding: 28px 24px !important;
  box-shadow: var(--tb-shadow-sm) !important;
  transition: all 0.3s ease !important;
}

.coming-soon-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(46, 125, 50, 0.4) !important;
  box-shadow: var(--tb-shadow-md), 0 10px 25px -5px rgba(46, 125, 50, 0.08) !important;
}

.coming-soon-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.coming-soon-badge {
  background: var(--tb-green-soft) !important;
  color: #1b5e20 !important;
  border: 1px solid var(--tb-green-border) !important;
  border-radius: 9999px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  letter-spacing: 0.02em;
}

.coming-soon-card .challenge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tb-green-soft) !important;
  color: #2e7d32 !important;
  border: 1px solid var(--tb-green-border) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.25s ease;
}

.coming-soon-card:hover .challenge-icon {
  background: linear-gradient(135deg, #2e7d32, #4caf50) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: scale(1.05);
}

.coming-soon-impact {
  font-size: 0.8125rem;
  color: var(--tb-slate-500);
  background: var(--tb-slate-50);
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid var(--tb-slate-200);
}

.coming-soon-impact strong {
  color: #1b5e20;
}

/* ==========================================================================
   10. Comprehensive Mobile Responsiveness
   ========================================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Tablet & Mobile (< 992px) */
@media (max-width: 991.98px) {
  .navbar.fixed-top {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--tb-slate-200);
    border-radius: 16px;
    padding: 16px 20px;
    margin-top: 10px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  }

  .navbar-nav .nav-link {
    padding: 10px 14px !important;
    font-size: 1rem;
    border-radius: 8px;
  }

  .navbar .nav-item-cta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--tb-slate-100);
  }

  .navbar .nav-item-cta .btn-primary {
    width: 100%;
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .hero {
    padding-top: 1.75rem;
    padding-bottom: 3.5rem;
  }

  .hero-headline {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
  }

  .browser-mockup {
    margin-top: 2rem;
  }

  .browser-mockup__badge {
    position: static;
    margin: 12px;
    border-radius: 12px;
    justify-content: center;
  }

  .stats-bar-modern {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 24px;
    margin-top: 2.5rem;
  }

  .stats-bar-modern .stat-item:not(:last-child)::after {
    display: none;
  }

  .stats-bar-modern .stat-item:not(:last-child) {
    border-bottom: 1px solid var(--tb-slate-100);
    padding-bottom: 16px;
  }

  .hero-proof-modern {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
  }

  .hero-proof-chips {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .evidence-strip-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 16px;
  }

  .evidence-strip-modern li:not(:last-child)::after {
    display: none;
  }

  .testimonials-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 2rem;
  }

  .testimonials-stat:not(:last-child)::after {
    display: none;
  }

  .testimonials-stat:not(:last-child) {
    border-bottom: 1px solid var(--tb-slate-100);
    padding-bottom: 14px;
  }
}

/* Medium Mobile & Small Tablet (< 768px) */
@media (max-width: 767.98px) {
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 5.5vw, 2.15rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .testimonials-carousel-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .testimonials-carousel-wrap .testimonials-arrow {
    display: none !important;
  }

  .demo-cta-section-modern {
    padding: 4rem 0;
  }

  .demo-cta-box-modern h2 {
    font-size: clamp(1.75rem, 5.5vw, 2.25rem);
  }
}

/* Standard Mobile (< 576px) */
@media (max-width: 575.98px) {
  .hero-headline {
    font-size: clamp(1.65rem, 6.5vw, 2rem);
    line-height: 1.2;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
  }

  .hero-badge__divider {
    display: none;
  }

  .hero .lead {
    font-size: 0.975rem;
    line-height: 1.6;
  }

  .hero-highlights {
    gap: 6px;
    margin-bottom: 1.25rem;
  }

  .hero-highlights li {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .hero-cta-inline .d-flex {
    flex-direction: column;
    width: 100%;
    gap: 10px !important;
  }

  .hero-cta-inline .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .feature-card-modern,
  .challenge-card-modern,
  .why-wins__card-modern,
  .step-card-modern,
  .trial-card,
  .coming-soon-card {
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }

  .card-icon-modern {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .stats-bar-modern {
    padding: 16px;
    border-radius: 16px;
  }

  .stats-bar-modern .stat-number {
    font-size: 1.85rem;
  }

  .evidence-strip-modern {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .evidence-strip-modern li:not(:last-child) {
    border-bottom: 1px solid var(--tb-slate-100);
    padding-bottom: 12px;
  }

  .evidence-strip-modern strong {
    font-size: 1.5rem;
  }

  .testimonial-quote-card,
  .testimonial-quote-card-modern {
    padding: 22px 18px !important;
    border-radius: 16px !important;
  }

  .testimonial-quote,
  .testimonial-quote-modern {
    font-size: 0.9rem !important;
  }

  .testimonial-mini-metrics {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
  }

  .demo-cta-box-modern .lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .demo-cta-box-modern .btn-demo-white {
    width: 100%;
    max-width: 320px;
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .demo-cta-trust-modern {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .demo-cta-trust-modern span {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  #contact .contact-form,
  #contact .contact-info {
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }

  /* Prevent iOS auto-zoom on form focus */
  #contact .form-control {
    font-size: 16px !important;
  }

  .floating-btn {
    height: 42px;
    padding: 0 14px;
    font-size: 0.8rem;
    bottom: 74px;
    right: 12px;
    border-radius: 9999px;
  }

  .floating-whatsapp {
    width: 46px;
    height: 46px;
    bottom: 14px;
    right: 12px;
    border-radius: 50%;
  }

  .floating-whatsapp i {
    font-size: 1.35rem;
  }
}

/* Very Small Mobile (< 375px) */
@media (max-width: 374.98px) {
  .hero-headline {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .feature-card-modern,
  .challenge-card-modern,
  .why-wins__card-modern,
  .step-card-modern {
    padding: 18px 14px !important;
  }

  .hero-proof-modern blockquote {
    font-size: 0.85rem;
  }
}
