/* ========================================
   mAIfleet Landing Page Stylesheet
   Verizon-inspired dark mode fleet theme
   ======================================== */

/* Active nav link */
.nav-link.active {
  color: var(--green) !important;
}

/* ========================================
   1. HERO
======================================== */
.mf-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10,16,20,0.93) 0%, rgba(18,41,52,0.88) 60%, rgba(0,255,153,0.04) 100%),
    url('../images/Mileage.jpg') center/cover no-repeat;
}

.mf-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,255,153,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.mf-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--darker));
}

.mf-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.mf-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.7;
}

.mf-hero-sub strong { color: var(--green); }
.mf-hero-sub em { font-style: normal; color: rgba(255,255,255,0.95); }

/* === App Store / Play Store download badges (WP page 14793) === */
.mf-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mf-app-badges--pocket {
  justify-content: center;
  margin-top: 2rem;
}

.mf-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #000;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  min-width: 170px;
  color: var(--white);
  transition: border-color var(--transition), transform var(--transition);
}

.mf-app-badge:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.mf-app-badge-icon {
  flex-shrink: 0;
}

.mf-app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.mf-app-badge-tag {
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.mf-app-badge-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.mf-hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mf-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mf-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.mf-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.mf-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}

/* ========================================
   2. SOLUTION GRID
======================================== */
.mf-solution {
  background: var(--dark);
}

.mf-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.mf-sol-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.mf-sol-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

.mf-sol-card:nth-child(1)::before { background: var(--green); }
.mf-sol-card:nth-child(2)::before { background: var(--blue); }
.mf-sol-card:nth-child(3)::before { background: var(--orange); }

.mf-sol-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,255,153,0.2);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.mf-sol-icon {
  width: 80px;
  height: 70px;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mf-sol-icon img { width: 100%; height: 100%; object-fit: contain; }

.mf-sol-icon.green { background: rgba(0,255,153,0.08); }
.mf-sol-icon.blue  { background: rgba(39,134,233,0.08); }
.mf-sol-icon.orange { background: rgba(238,111,49,0.08); }

.mf-compliance-icon { font-size: 2.25rem; }

.mf-sol-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.75rem;
}

.green-tag  { background: rgba(0,255,153,0.12);  color: var(--green); }
.blue-tag   { background: rgba(39,134,233,0.12); color: var(--blue);  }
.orange-tag { background: rgba(238,111,49,0.12); color: var(--orange); }

.mf-sol-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--white);
}

.mf-sol-card p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ========================================
   3. HARDWARE SPOTLIGHT
======================================== */
.mf-hardware {
  background: var(--darker);
}

.mf-hardware-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.mf-hardware-img {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}

.mf-hardware-img img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.mf-hw-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--green);
  color: var(--darker);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0,255,153,0.35);
}

.mf-hw-badge span:first-child { font-size: 1rem; }
.mf-hw-badge-sub { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.75; }

.mf-hardware-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.mf-hardware-text h2 span { color: var(--green); }

.mf-hardware-text > p {
  color: rgba(255,255,255,0.72);
  font-size: 0.97rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.mf-hw-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mf-hw-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: border-color var(--transition);
}

.mf-hw-feature:hover { border-color: rgba(0,255,153,0.25); }

.mf-hw-feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.mf-hw-feature h4 {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.25rem;
}

.mf-hw-feature p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.5;
}

/* ========================================
   4. CLOUD LAYER
======================================== */
.mf-cloud {
  background: linear-gradient(135deg, var(--dark), #0d1f2d);
}

.mf-cloud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.mf-cloud-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.mf-cloud-card:hover {
  border-color: rgba(0,255,153,0.25);
  transform: translateY(-4px);
}

.mf-cloud-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.mf-cloud-card h4 {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.mf-cloud-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.6;
}

/* Ecosystem diagram */
.mf-ecosystem {
  max-width: 640px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.mf-eco-layer {
  width: 100%;
  border-radius: 14px;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color var(--transition);
}

.mf-eco-layer.top  { background: rgba(0,255,153,0.07);  border-color: rgba(0,255,153,0.2); }
.mf-eco-layer.mid  { background: rgba(39,134,233,0.07); border-color: rgba(39,134,233,0.2); width: 88%; }
.mf-eco-layer.bot  { background: rgba(238,111,49,0.07); border-color: rgba(238,111,49,0.2); width: 76%; }

.mf-eco-label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.mf-eco-layer.top  .mf-eco-label { color: var(--green); }
.mf-eco-layer.mid  .mf-eco-label { color: var(--blue); }
.mf-eco-layer.bot  .mf-eco-label { color: var(--orange); }

.mf-eco-layer p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.mf-eco-layer p em { font-style: normal; color: var(--white); }

.mf-eco-arrow {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  padding: 0.25rem 0;
}

/* ========================================
   5. ROUTE MERGING USE CASE
======================================== */
.mf-merging {
  background: var(--darker);
}

.mf-merging-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.mf-merge-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: transform var(--transition), border-color var(--transition);
}

.mf-merge-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,255,153,0.2);
}

.mf-merge-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0,255,153,0.15);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.mf-merge-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.mf-merge-card h4 {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.mf-merge-card p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ========================================
   6. COMPARISON TABLE
======================================== */
.mf-comparison {
  background: var(--dark);
}

.mf-table-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.mf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.mf-table thead tr {
  background: rgba(255,255,255,0.04);
}

.mf-table th {
  padding: 1.1rem 1.5rem;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mf-table th.highlight-col {
  color: var(--green);
  background: rgba(0,255,153,0.05);
}

.mf-table td {
  padding: 1rem 1.5rem;
  color: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}

.mf-table tbody tr:last-child td { border-bottom: none; }

.mf-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.mf-table td:first-child {
  font-weight: 600;
  color: var(--white);
}

.mf-table td.highlight-col {
  background: rgba(0,255,153,0.04);
  color: var(--white);
  font-weight: 500;
}

.mf-table .check {
  color: var(--green);
  font-weight: 700;
  margin-right: 0.4rem;
}

/* ========================================
   7. FINAL CTA
======================================== */
.mf-cta {
  background: linear-gradient(135deg, #0a161e, var(--dark));
  padding: 6rem 0;
}

.mf-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.mf-cta-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.07);
}

.mf-cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--white);
}

.mf-cta-content h2 span { color: var(--green); }

.mf-cta-content > p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.mf-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.mf-cta-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.mf-cta-note a {
  color: var(--green);
  transition: opacity var(--transition);
}

.mf-cta-note a:hover { opacity: 0.75; }

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
  .mf-solution-grid,
  .mf-cloud-grid,
  .mf-merging-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .mf-hardware-inner,
  .mf-cta-inner { grid-template-columns: 1fr; gap: 3rem; }

  .mf-hw-badge { bottom: -12px; right: -12px; }
}

@media (max-width: 767px) {
  .mf-hero-stats { gap: 1.25rem; }
  .mf-stat-num { font-size: 1.5rem; }

  .mf-solution-grid,
  .mf-cloud-grid,
  .mf-merging-grid { grid-template-columns: 1fr; }

  .mf-eco-layer.mid { width: 100%; }
  .mf-eco-layer.bot { width: 100%; }

  .mf-table th,
  .mf-table td { padding: 0.75rem 1rem; font-size: 0.82rem; }
}

@media (max-width: 425px) {
  .mf-hero-stats { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .mf-stat-divider { width: 40px; height: 1px; }

  .mf-cta-actions { flex-direction: column; }
  .mf-cta-actions .btn { text-align: center; }
}
