/* Landing page styles — beansroute.ai/index.php only */

/* ============================================================
   Homepage landing (index.php)
   ============================================================ */

/* ============================================================
   BEANS ROUTE — Standalone CSS
   ============================================================ */

/* ---- Reset & Base ---- */
/* Scoped to homepage sections (matches index.php — no wrapper div) */
.hero-section,
.trusted-section,
.ratings-section,
.routing-cost-section,
.features-section,
.results-section,
.core-features-section,
.location-section,
.case-studies-section,
.recognized-section,
#popupForm {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
}

/* Beat site-wide Poppins on headings from css/style-primary-1.0.1.css (i-header-top.php) */
:is(.hero-section, .trusted-section, .ratings-section, .routing-cost-section, .features-section, .results-section, .core-features-section, .location-section, .case-studies-section, .recognized-section, #popupForm)
  :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
  font-family: var(--font);
}

:root {
  --blue: #0A4BFF;
  --blue-dark: #0036CD;
  --teal: #2ED4B6;
  --green: #187665;
  --purple: #6507C6;
  --navy: #002791;
  --text-main: #111;
  --text-muted: #656565;
  --text-light: #555;
  --bg-light: #f8faff;
  --bg-mint: #D1F5EA;
  --rating-teal: #187665;
  --bg-blue-tint: #0A4BFF08;
  --border: #E2E8F0;
  --stat-purple: #425BFF;
  --alert-bg: #FFF9E6;
  --alert-border: #F0D060;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --gradient: linear-gradient(90deg, #0A4BFF 0%, #2ED4B6 100%);
  --grad: linear-gradient(180deg, #0A4BFF 0%, #2ED4B6 100%);
  --white: #fff;
  --font: 'Inter', 'Roboto', sans-serif;
  --header-h: 72px;
  --promo-h: 44px;
}

html { scroll-behavior: smooth; }

.hero-section a,
.trusted-section a,
.ratings-section a,
.routing-cost-section a,
.features-section a,
.results-section a,
.core-features-section a,
.location-section a,
.case-studies-section a,
.recognized-section a { color: inherit; text-decoration: none; }

.hero-section img,
.trusted-section img,
.ratings-section img,
.features-section img,
.results-section img,
.core-features-section img,
.location-section img,
.case-studies-section img { max-width: 100%; height: auto; display: block; }

.hero-section ul,
.trusted-section ul,
.features-section ul,
.results-section ul,
.core-features-section ul,
.location-section ul,
.case-studies-section ul,
.recognized-section ul { list-style: none; margin: 0; padding: 0; }

.hero-section button,
.trusted-section button,
.features-section button,
.results-section button,
.core-features-section button,
.location-section button,
.case-studies-section button,
.recognized-section button,
#popupForm button { cursor: pointer; font-family: inherit; }

/* ---- Utility ---- */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

/* Prevent horizontal scroll from carousels / wide children */
.hero-section,
.trusted-section,
.ratings-section,
.routing-cost-section,
.features-section,
.results-section,
.core-features-section,
.case-studies-section,
.recognized-section {
  overflow-x: clip;
  max-width: 100%;
  box-sizing: border-box;
}

.label-tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-title-lg {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 40px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 900px;
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero-section {
  background: #fff;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 32px) clamp(28px, 4vw, 42px);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-content {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: 12px;
}

.hero-image {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-image img {
  width: 100%;
  max-width: 635px;
  border-radius: var(--radius);
}

/* Pill buttons */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: #f3f4f6;
  color: var(--text-main);
  white-space: nowrap;
}
.pill.green { background: #e6f4f1; color: var(--green); }
.pill.blue  { background: #e8eeff; color: var(--navy); }
.pill.red   { background: #f3e8ff; color: var(--purple); }

/* Hero title — overrides global h1 { font-size: 36px !important } in style-primary */
h1.hero-title {
  font-size: clamp(1.8125rem, 3.125vw, 3.125rem) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 560px;
}

.hero-alert {
  font-size: 14px;
  line-height: 1.55;
  color: #3d3d3d;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--alert-bg);
  border: 1px solid var(--alert-border);
  border-radius: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.hero-alert b { color: var(--text-main); font-weight: 700; }

/* Hero CTA buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px 2px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 240px;
  height: 48px;
  padding: 0 24px;
  background: #2E00C1;
  color: #fff !important;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn-demo:hover {
  background: #1f00a8;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(46, 0, 193, 0.35);
  transform: translateY(-2px);
}

.gradient-wrap {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  max-width: 240px;
  height: 48px;
  padding: 2px;
  border-radius: 10px;
  background: var(--gradient);
  box-sizing: border-box;
  box-shadow: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gradient-wrap:hover {
  box-shadow: 0 6px 18px rgba(10, 75, 255, 0.28);
  transform: translateY(-2px);
}

.btn-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 44px;
  padding: 0 24px;
  background: #fff;
  color: var(--text-main) !important;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-account:hover,
.gradient-wrap:hover .btn-account {
  background: #e8eeff !important;
  color: var(--blue) !important;
}

/* Homepage hero — override global #book-demo-btn / tile-custom */
#overview.hero-section .hero-buttons #book-demo-btn.btn-demo,
#overview.hero-section .hero-buttons .btn-demo {
  border-radius: 10px !important;
  border: none !important;
  background: #2E00C1 !important;
  color: #fff !important;
  height: 48px;
  line-height: 48px;
  box-shadow: none !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

#overview.hero-section .hero-buttons #book-demo-btn.btn-demo:hover,
#overview.hero-section .hero-buttons .btn-demo:hover {
  background: #1f00a8 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(46, 0, 193, 0.35) !important;
  transform: translateY(-2px) !important;
}

#overview.hero-section .hero-buttons .gradient-wrap {
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

#overview.hero-section .hero-buttons .gradient-wrap:hover {
  box-shadow: 0 6px 18px rgba(10, 75, 255, 0.28) !important;
  transform: translateY(-2px) !important;
}

#overview.hero-section .hero-buttons .btn-account:hover,
#overview.hero-section .hero-buttons .gradient-wrap:hover .btn-account {
  background: #e8eeff !important;
  color: var(--blue) !important;
}

/* Stats */
.custom-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  gap: 12px 24px;
  box-sizing: border-box;
}
.custom-stat-item { text-align: center; min-width: 0; }
.custom-stat-heading {
  font-weight: 800;
  font-size: 36px;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #8494FF;
}
.custom-stat-subheading {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 4px;
}

/* Trust list */
.trust-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(11px, 2.6vw, 14px);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.trust-list li + li::before {
  content: '|';
  margin: 0 clamp(8px, 2vw, 14px);
  color: #c5c5c5;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================================
   TRUSTED LOGOS SECTION
============================================================ */
.trusted-section {
  background: #fff;
  padding: clamp(48px, 6vw, 72px) clamp(16px, 4vw, 32px) clamp(40px, 5vw, 56px);
  text-align: center;
}

.trusted-section .label-tag {
  margin-bottom: 10px;
}

.trusted-section .section-title-lg {
  font-size: clamp(1rem, 3.6vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 auto 10px;
  padding: 0;
  max-width: none;
  white-space: nowrap;
}

.trusted-tagline {
  font-size: clamp(11px, 2.5vw, 17px);
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0 auto 28px;
  padding: 0;
  max-width: none;
  white-space: nowrap;
}

.logo-carousel-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/*
 * Trusted company logos carousel (index.php — .trusted-section)
 *
 * Uniform frames (.logo-marquee-frame) — same pattern as .trust-co-img on other pages:
 *   Each logo sits in a fixed-size box so wide/tall assets align on the same top/bottom edges.
 *   Desktop: frame 200×98px, logo max 90% width × 60px height (object-fit: contain).
 *   Mobile (≤960px): frame 168×84px, logo max 90% × 48px height.
 *   Track gap: 20px desktop, 16px mobile.
 *
 * Source assets (img/trust-co/): PNG with transparent background preferred.
 */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: logo-marquee-scroll 45s linear infinite;
  will-change: transform;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    gap: 32px;
  }
}

.logo-marquee-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fixed frame — logos scale inside (matches .trust-co-img on route pages) */
.logo-marquee-frame {
  box-sizing: border-box;
  width: 200px;
  height: 98px;
  padding: 18px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 5px;
  box-shadow: none;
}

.logo-marquee-frame img {
  width: auto !important;
  max-width: 90%;
  max-height: 60px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ============================================================
   REVIEW RATINGS SECTION
============================================================ */
.ratings-section {
  background-color: rgba(185, 241, 231, 0.5);
  padding: clamp(40px, 5vw, 48px) 0;
  text-align: center;
}

.ratings-title {
  font-size: clamp(1.9rem, 2.9vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0 0 12px;
  line-height: 1.2;
}

.ratings-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: 920px;
}

.ratings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.rating-card {
  padding: 2px;
  border-radius: 8px;
  background: var(--gradient);
  box-sizing: border-box;
  min-height: 340px;
}

.rating-card-inner {
  background: #fff;
  border-radius: 6px;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-height: 348px;
  justify-content: center;
  box-sizing: border-box;
}

.rating-platform {
  margin: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rating-platform img {
  max-height: 56px;
  margin-bottom: 18px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.rating-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  line-height: 1;
  flex-shrink: 0;
}

.rating-stars span {
  display: inline-block;
  font-size: 28px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.rating-score {
  margin: 0;
  font-size: 2.4rem;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--rating-teal);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rating-award {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 240px;
}

/* ============================================================
   INEFFICIENT ROUTING COST
============================================================ */
.routing-cost-section {
  position: relative;
  background: #fff;
  padding: clamp(48px, 6vw, 72px) clamp(16px, 4vw, 32px);
}

.routing-cost-section .section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.routing-cost-badge-wrap {
  text-align: center;
  margin-bottom: 1.25rem;
}

.routing-cost-section .btn-powered {
  display: inline-block;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  background: #eef1ff;
  text-decoration: none;
}

.routing-cost-section .btn-powered:hover {
  color: var(--blue-dark);
  background: #e4e9ff;
}

.routing-cost-section .section-main-title {
  font-size: clamp(1.95rem, 2.95vw, 2.65rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 16px;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.routing-cost-section .section-subtitle {
  font-size: 17px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  line-height: 1.6;
}

.routing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.routing-feature-card {
  background: #fff;
  border: 1px solid #c5cad0;
  border-radius: 12px;
  padding: 40px 28px 32px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
}

.routing-feature-card .icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.routing-feature-card .feature-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
}

.routing-feature-card .feature-icon i {
  font-size: inherit;
  line-height: 1;
  color: inherit;
}

.routing-feature-card .feature-icon-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1) contrast(1.25) drop-shadow(0 0 0 #fff) drop-shadow(0 0 0.5px #fff);
}

.routing-feature-card h3 {
  font-size: 1.55rem;
  font-weight: 750;
  margin: 0 0 16px;
  color: var(--text-main);
  line-height: 1.3;
}

.routing-feature-card .card-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.55;
}

.routing-feature-card .box-para {
  margin: 0 0 28px;
  width: 100%;
}

.routing-feature-card .box-para p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.routing-learn-more-wrap {
  display: flex;
  width: 100%;
  padding: 2px;
  border-radius: 8px;
  background: var(--gradient);
  box-sizing: border-box;
  margin-top: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.routing-learn-more-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10, 75, 255, 0.18);
}

.routing-learn-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 6px;
  background: #fff;
  color: var(--text-main) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease;
}

.routing-learn-more-wrap:hover .routing-learn-more {
  background: #f0f5ff;
  color: var(--blue) !important;
}

.routing-learn-more i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.routing-learn-more-wrap:hover .routing-learn-more i {
  transform: translateX(4px);
}

.routing-cost-cta-wrap {
  text-align: center;
}

.routing-cost-section .btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #0A4BFF 0%, #2ED4B6 100%);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 2.5rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.routing-cost-section .btn-explore:hover {
  background: #EE4266 !important;
  color: #fff !important;
  opacity: 1;
  box-shadow: 0 6px 18px rgba(238, 66, 102, 0.35);
  transform: translateY(-2px);
}

/* ============================================================
   FEATURES INTERACTIVE GRID
============================================================ */
.features-section {
  padding: clamp(48px, 6vw, 64px) clamp(16px, 4vw, 32px);
  background: var(--bg-light);
}

.features-section .section-main-title,
.case-studies-section .section-main-title {
  font-size: clamp(1.95rem, 2.95vw, 2.65rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 16px;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.case-study-cta-heading {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  text-align: center;
  max-width: 720px;
  margin: 56px auto 24px;
  color: var(--text-main);
  line-height: 1.35;
}

.case-studies-section .case-study-bottom-cta-wrap {
  display: inline-flex;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: 320px;
  height: 48px;
  margin-top: 0;
}

.case-studies-section .case-study-bottom-cta-wrap .btn-account {
  gap: 10px;
  padding: 0 28px;
}

.case-studies-section .case-study-bottom-cta-wrap .btn-account i {
  font-size: 16px;
}

.case-studies-section .case-study-bottom-cta-wrap:hover {
  box-shadow: 0 6px 18px rgba(10, 75, 255, 0.28);
  transform: translateX(-50%) translateY(-2px);
}

.case-studies-section .case-study-bottom-cta-wrap .btn-account:hover,
.case-studies-section .case-study-bottom-cta-wrap:hover .btn-account {
  background: #e8eeff !important;
  color: var(--blue) !important;
}

.features-section .section-subtitle,
.case-studies-section .section-subtitle {
  font-size: 17px;
  font-weight: 400;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  line-height: 1.6;
}

.projects-grid {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
}

/* Left list */
.project-list {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-item {
  padding: 14px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.project-item:last-child { border-bottom: none; }

.project-item:hover:not(.active) { background: #eef2ff; }

.project-item.active {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  border-bottom-color: transparent;
}
.project-item.active::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: var(--blue);
}

.project-title {
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-badge {
  display: inline-block;
  background: var(--teal);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #000;
  padding: 2px 5px;
  line-height: 1;
  flex-shrink: 0;
}
.project-item.active .ai-badge { background: #fff; border: 1px solid #fff; }
.project-item:hover:not(.active) .ai-badge { background: #fff; border: 1px solid var(--teal); }

/* Right image — fill frame like Driver App; anchor top, crop bottom only if needed */
.project-image {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.project-image img {
  width: 100%;
  height: 480px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.2s ease;
}

/* Wide screenshots (~2.2:1) — show full width; no left/right crop */
.project-image img.is-wide {
  object-fit: contain;
  object-position: top center;
}
.features-section .project-image p,
.features-section #projectDisplayText {
  margin: 20px auto 10px;
  max-width: 840px;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  line-height: 1.65;
  text-align: center;
}

/* ============================================================
   RESULTS SECTION
============================================================ */
.results-section {
  padding: clamp(48px, 6vw, 72px) clamp(16px, 4vw, 32px) clamp(56px, 7vw, 80px);
  background: #fff;
  text-align: center;
}
.results-section .section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.results-heading {
  font-size: clamp(1.95rem, 2.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0 0 16px;
  line-height: 1.2;
}

.results-intro {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto 48px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}

.result-card {
  background: #f5f5f5;
  border: none;
  border-radius: 0;
  padding: 36px 24px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.result-icon {
  margin: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-icon img {
  max-height: 72px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.result-stat {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--rating-teal);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.result-label {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   LOCATION SECTION
============================================================ */
.location-section {
  padding: 80px 32px;
  background: var(--bg-light);
}
.location-section .section-inner { max-width: 1280px; margin: 0 auto; padding: 0; }

.location-inner {
  display: flex;
  gap: 64px;
  align-items: center;
}

.location-content { flex: 1 1 45%; }
.location-image { flex: 1 1 55%; }
.location-image img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }

.location-content h2 { margin-bottom: 16px; }
.location-content > p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }

.feature-list {
  margin-bottom: 28px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.feature-list .fas.fa-circle {
  color: var(--blue);
  font-size: 6px;
  flex-shrink: 0;
}

.btn-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-value:hover { background: var(--blue-dark); }

/* ============================================================
   CASE STUDIES SECTION
============================================================ */
.case-studies-section {
  padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 32px);
  background: #fff;
}

.case-studies-carousel { margin-top: 40px; overflow: hidden; }
.case-studies-carousel .flickity-button { display: none; }

.case-study-card {
  background: var(--bg-blue-tint);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
}

.btn.case-study-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  margin-top: 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  cursor: pointer;
  background: transparent;
  overflow: hidden;
  transition: color 0.2s;
  align-self: flex-start;
}
.btn.case-study-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: var(--gradient);
  border-radius: 10px;
  z-index: -1;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.btn.case-study-btn span { margin-left: 6px; transition: transform 0.2s; }
.btn.case-study-btn:hover span { transform: translateX(4px); }

.case-studies-carousel .flickity-page-dots { margin-top: 24px; position: relative; bottom: auto; }

/* Case study bottom CTA */
.case-study-cta {
  margin-top: 56px;
  text-align: center;
  padding: 56px 24px;
  background: #f5f8ff;
  border-radius: 16px;
}
.case-study-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.3;
}

/* ============================================================
   CORE FEATURES SECTION
============================================================ */
.core-features-section {
  padding: clamp(48px, 6vw, 72px) clamp(16px, 4vw, 32px) clamp(56px, 7vw, 80px);
  background: var(--bg-mint);
}

.core-features-header {
  max-width: 1020px;
  margin: 0 auto 48px;
  text-align: center;
}

.label-pill {
  display: inline-block;
  background: var(--rating-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 0;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.core-features-title {
  font-size: clamp(1.9rem, 2.9vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0 0 16px;
  line-height: 1.2;
}

.core-features-intro {
  font-size: 18px;
  font-weight: 450;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.core-features-intro a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.core-features-intro a:hover {
  color: var(--blue-dark);
}

.core-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.core-feature-card {
  background: #fff;
  border: 5px;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border-radius: 8px;
}

.core-feature-body {
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-weight: 400;
  flex: 1;
}

.core-feature-card .core-feature-icon,
.core-card .core-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--white);
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.core-feature-card .core-feature-icon i,
.core-card .core-icon i {
  font-size: inherit;
  line-height: 1;
  color: inherit;
}

.core-feature-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px;
}

.core-feature-body > p {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.55;
  margin: 0 0 16px;
  max-width: 300px;
}

.core-feature-body .feature-list {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 260px;
  text-align: left;
  align-self: center;
}

.core-feature-body .feature-list li {
  font-size: 14px;
  margin-bottom: 8px;
}

.core-feature-footer {
  margin: 15px;
  width: 92%;
  padding: 14px 16px;
  background: #c8ebe3;
  color: var(--rating-teal);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  border-radius: 6px  ;
}

/* Card image overlay */
.card-image {
  position: relative;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  padding: 24px 16px 16px;
}

.overlay-text h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* ============================================================
   CORE FEATURES SECTION
============================================================ */
.recognized-section {
  padding: 48px 0 56px;
  background-color: rgba(185, 241, 231, 0.5);
  text-align: center;
  overflow: hidden;
}

.recognized-section .recognition-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

.recognition-title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.recognition-subtitle {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 auto 48px;
  max-width: 820px;
}

.recognition-carousel-wrap {
  width: 100%;
  margin: 0;
  padding: 0 clamp(16px, 3vw, 28px);
  overflow: hidden;
  box-sizing: border-box;
}

/* Continuous marquee (Swiper-like motion, no extra library) */
.recognition-marquee {
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

.recognition-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 62px;
  width: max-content;
  animation: recognition-marquee-scroll 50s linear infinite;
  will-change: transform;
}

.recognition-marquee:hover .recognition-marquee-track {
  animation-play-state: paused;
}

@keyframes recognition-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .recognition-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    gap: 24px;
  }
}

.recognition-marquee .recognition-card {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 2px 4px;
  aspect-ratio: 2 / 1;
  width: 240px;
  min-height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .recognition-marquee .recognition-card {
    width: 280px;
    min-height: 150px;
  }
}

@media (min-width: 1024px) {
  .recognition-marquee .recognition-card {
    width: 300px;
    min-height: 175px;
    padding: 2px 3px;
  }
}

.recognition-marquee figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
}

.recognized-section .recognition-marquee img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
}

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img { margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand > p { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }

.footer-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { font-size: 14px; }
.footer-col ul li a { color: #94a3b8; transition: color 0.15s; }
.footer-col ul li a:hover { color: #fff; }

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 16px;
  transition: background 0.15s;
}
.social-icons a:hover { background: var(--blue); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal li a { color: #94a3b8; transition: color 0.15s; }
.footer-legal li a:hover { color: #fff; }

/* ============================================================
   POPUP FORM
============================================================ */
#popupForm {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#popupForm.open { display: flex; }

.popup-inner {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
}
.popup-inner h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.popup-inner > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

#closeFormBtn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  line-height: 1;
}
#closeFormBtn:hover { color: var(--text-main); }

.popup-email-form { display: flex; flex-direction: column; gap: 12px; }
.popup-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.popup-input:focus { border-color: var(--blue); }

.popup-submit {
  padding: 12px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s;
}
.popup-submit:hover { background: var(--blue-dark); }
.popup-success p { color: var(--green); font-weight: 600; text-align: center; }

/* ============================================================
   CASE STUDIES SWIPER PAGINATION
============================================================ */
.case-studies-section .flickity-page-dots .dot { background: #cbd5e1; opacity: 1; }
.case-studies-section .flickity-page-dots .dot.is-selected { background: var(--blue); }

/* ============================================================
   RESPONSIVE — Homepage landing
============================================================ */

/* Large tablet / small desktop */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }

  .hero-content {
    flex: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-image {
    display: flex;
    justify-content: center;
    flex: none;
    width: 100%;
  }

  .hero-image img {
    max-width: min(100%, 520px);
    margin: 0 auto;
  }

  .ratings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 720px;
  }

  .rating-card:last-child {
    grid-column: 1 / -1;
    max-width: 360px;
    justify-self: center;
    width: 100%;
  }

  .routing-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .routing-feature-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .projects-grid {
    flex-direction: column;
    gap: 24px;
  }

  .project-list {
    flex: none;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .project-item {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    border-bottom: none;
    border: 1px solid var(--border);
  }

  .project-item.active::after {
    display: none;
  }

  .project-image img {
    height: 360px;
    object-fit: cover;
    object-position: top center;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .results-grid .result-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    justify-self: center;
    width: 100%;
  }

  .core-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .core-features-grid .core-feature-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .case-study-card {
    min-height: auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .hero-buttons .btn-demo,
  .hero-buttons .gradient-wrap {
    flex: 1 1 calc(50% - 6px);
    max-width: none;
    min-width: 140px;
  }

  .ratings-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .rating-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .routing-features-grid {
    grid-template-columns: 1fr;
  }

  .routing-feature-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .results-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .results-grid .result-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .core-features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .core-features-grid .core-feature-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .recognition-subtitle {
    font-size: 17px;
    margin-bottom: 32px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  h1.hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.125rem) !important;
  }

  .hero-desc {
    font-size: 15px;
    max-width: none;
  }

  .hero-content {
    padding-left: 0;
    padding-right: 0;
  }

  .trust-list {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .trust-list::-webkit-scrollbar {
    display: none;
  }

  .button-group {
    gap: 6px;
  }

  .pill {
    font-size: 12px;
    padding: 5px 10px;
    white-space: normal;
    text-align: left;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn-demo,
  .hero-buttons .gradient-wrap {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .gradient-wrap {
    display: flex;
  }

  .custom-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 10px;
  }

  .custom-stat-heading {
    font-size: clamp(1.25rem, 5vw, 22px);
  }

  .custom-stat-subheading {
    font-size: 11px;
    line-height: 1.35;
  }

  .ratings-title,
  .routing-cost-section .section-main-title,
  .features-section .section-main-title,
  .case-studies-section .section-main-title,
  .results-heading,
  .core-features-title,
  .recognition-title {
    font-size: clamp(1.35rem, 5vw, 1.5rem);
  }

  .ratings-subtitle,
  .routing-cost-section .section-subtitle,
  .features-section .section-subtitle,
  .case-studies-section .section-subtitle,
  .results-intro,
  .core-features-intro {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .trusted-section .section-title-lg {
    font-size: clamp(0.9rem, 3.1vw, 1.35rem);
    margin: 0 auto 8px;
    padding: 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .trusted-section .section-title-lg::-webkit-scrollbar {
    display: none;
  }

  .trusted-tagline {
    font-size: clamp(10px, 2.35vw, 13px);
    margin: 0 auto 20px;
    padding: 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .trusted-tagline::-webkit-scrollbar {
    display: none;
  }

  /* Align card width with other sections; compact height proportionally */
  .ratings-grid {
    max-width: min(100%, 304px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 14px;
  }

  .rating-card {
    min-height: 0;
    width: 100%;
  }

  .rating-card-inner {
    min-height: 0;
    padding: 24px 18px 22px;
    gap: 10px;
  }

  .rating-platform {
    min-height: 48px;
  }

  .rating-platform img {
    max-height: 48px;
    margin-bottom: 10px;
  }

  .rating-stars span {
    font-size: 20px;
  }

  .rating-stars {
    gap: 5px;
    margin-bottom: 14px;
  }

  .rating-score {
    font-size: 1.65rem;
    margin-bottom: 10px;
  }

  .rating-award {
    font-size: 14px;
    max-width: 220px;
  }

  .routing-feature-card {
    padding: 28px 20px 24px;
  }

  .routing-cost-section .btn-explore {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

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

  .section-title-lg {
    font-size: clamp(1.2rem, 4.5vw, 1.35rem);
    margin-bottom: 24px;
  }

  .projects-grid {
    gap: 20px;
  }

  /* Feature tabs: 2-column grid on phones (matches design reference); desktop unchanged */
  .project-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .project-item {
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
  }

  .project-item:last-child {
    border-bottom: 1px solid var(--border);
  }

  .project-title {
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  /* Full-width frame: scale by width so no side gaps (max-height + contain letterboxed 1440×1024 shots) */
  .project-image {
    padding: 0;
    overflow: hidden;
    box-shadow: none;
    background: transparent;
    border-radius: 12px;
  }

  .project-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: unset;
    object-position: top center;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: block;
  }

  /* Wide UI screenshots — same width-first scaling on mobile */
  .project-image img.is-wide {
    object-fit: unset;
    object-position: top center;
  }

  /* Spacing on description text only — not on the image */
  .features-section .project-image p,
  .features-section #projectDisplayText {
    margin: 20px 0 10px;
    padding: 0 clamp(16px, 4vw, 24px);
    max-width: none;
    box-sizing: border-box;
  }

  .result-stat {
    font-size: 2rem;
  }

  .core-feature-body h3 {
    font-size: 1.25rem;
  }

  .core-feature-body {
    padding: 24px 20px 20px;
  }

  .case-studies-section .section-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .case-study-card {
    min-height: auto;
  }

  .card-content {
    padding: 20px;
  }

  .card-content p {
    font-size: 14px;
  }

  .case-study-cta {
    margin-top: 40px;
    padding: 32px 16px;
  }

  .case-study-cta-heading {
    margin-top: 40px;
    font-size: 1.25rem;
  }

  .case-studies-section .case-study-bottom-cta-wrap {
    display: flex;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .case-studies-section .case-study-bottom-cta-wrap .btn-account {
    width: 100%;
    justify-content: center;
  }

  .recognized-section {
    padding: 40px 0;
  }

  .recognition-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 20px 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }

  .popup-inner {
    padding: 28px 20px;
    max-width: 100%;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-image img {
    max-width: 100%;
  }

  .custom-stats {
    gap: 6px 8px;
  }

  .logo-marquee-frame {
    width: 168px;
    height: 84px;
    padding: 14px 6px;
  }

  .logo-marquee-frame img {
    max-height: 48px;
  }

  .logo-marquee-track {
    gap: 16px;
  }

  .recognition-marquee .recognition-card {
    width: 200px;
    min-height: 115px;
  }

  .recognition-marquee-track {
    gap: 40px;
  }
}

/* Large screens */
@media (min-width: 1440px) {
  .hero-inner,
  .section-inner {
    max-width: 1400px;
  }

  .results-section .section-inner {
    max-width: 1200px;
  }
}


/* ============================================================
   Homepage landing — site integration (index.php)
============================================================ */
.body-inner > .hero-section,
.body-inner > section {
  width: 100%;
  max-width: 100%;
}

#overview.hero-section {
  background-image: none !important;
  background: #fff;
  min-height: auto;
}

#features,
#core-features,
#overview {
  scroll-margin-top: 96px;
}

@media (max-width: 991px) {
  #features,
  #core-features,
  #overview {
    scroll-margin-top: 80px;
  }
}

#header .header-inner,
#header #header-wrap {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 80px !important;
  display: block !important;
  flex: none !important;
  align-items: unset !important;
  justify-content: unset !important;
  gap: unset !important;
}

#header #mainMenu nav > ul > li.dropdown {
  display: list-item !important;
  float: left !important;
}
