/* ═══════════════════════════════════════════════════════════
   RedEarthOne — Fleet-Inspired Design System
   Color Palette: Terracotta #A93226 · Charcoal #2C3E50 · Sand #F4F1EE
   Typography: Inter 300–900
   ═══════════════════════════════════════════════════════════ */

/* ────────────── Variables ────────────── */
:root {
  --re-red: #A93226;
  --re-red-hover: #C0392B;
  --re-charcoal: #2C3E50;
  --re-charcoal-deep: #1a252f;
  --re-sand: #F4F1EE;
  --re-sand-dark: #E8E3DD;
  --re-white: #FFFFFF;
  --re-black: #0F0F0F;
  --re-grey-600: #6B7280;
  --re-grey-400: #9CA3AF;
  --re-grey-200: #E5E7EB;
  --re-green: #22C55E;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1320px;
  --header-h: 72px;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ────────────── Reset ────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--re-charcoal);
  background: var(--re-sand);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ────────────── Container ────────────── */
.fleet-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ────────────── Buttons ────────────── */
.fleet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
}

.fleet-btn--primary {
  background: var(--re-red);
  color: var(--re-white);
}
.fleet-btn--primary:hover {
  background: var(--re-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(169, 50, 38, 0.3);
}

.fleet-btn--outline {
  background: transparent;
  color: var(--re-white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.fleet-btn--outline:hover {
  border-color: var(--re-white);
  background: rgba(255,255,255,0.08);
}

.fleet-btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

/* ────────────── Labels / Eyebrows ────────────── */
.fleet-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--re-grey-600);
}
.fleet-label--light { color: var(--re-grey-400); }

/* ────────────── Typography ────────────── */
.fleet-heading-lg {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--re-charcoal);
}

.fleet-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--re-grey-600);
  max-width: 640px;
  line-height: 1.65;
}

.fleet-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--re-grey-600);
}

/* ════════════════════════════════════════
   HEADER — Glassmorphism sticky nav
   ════════════════════════════════════════ */
.fleet-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), box-shadow var(--transition);
}
.fleet-header.scrolled {
  background: rgba(15, 15, 15, 0.95);
  box-shadow: 0 4px 32px rgba(0,0,0,0.15);
}

.fleet-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.fleet-header__logo-img {
  height: 42px;
  width: auto;
  filter: brightness(1.4) drop-shadow(0 1px 8px rgba(255,255,255,0.15));
}

.fleet-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.fleet-header__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}
.fleet-header__link:hover,
.fleet-header__link.active {
  color: var(--re-white);
}
.fleet-header__link--login {
  color: rgba(255,255,255,0.5);
}

.fleet-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language selector */
.fleet-lang { position: relative; }
.fleet-lang__btn {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  transition: all var(--transition);
}
.fleet-lang__btn:hover { border-color: rgba(255,255,255,0.3); color: var(--re-white); }

.fleet-lang__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--re-charcoal-deep);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  min-width: 150px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.fleet-lang__dropdown.active { display: block; }
.fleet-lang__dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.fleet-lang__dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--re-white); }

/* Hamburger */
.fleet-hamburger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 10;
}
.fleet-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--re-white);
  transition: all var(--transition);
  position: absolute;
  left: 0;
}
.fleet-hamburger span:first-child { top: 4px; }
.fleet-hamburger span:last-child { bottom: 4px; }
.fleet-hamburger.active span:first-child { top: 9px; transform: rotate(45deg); }
.fleet-hamburger.active span:last-child { bottom: 9px; transform: rotate(-45deg); }

/* ════════════════════════════════════════
   HERO — Full-bleed video with glassmorphism
   ════════════════════════════════════════ */
.fleet-hero {
  position: relative;
  min-height: 100vh;
  color: var(--re-white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Full-bleed video background */
.fleet-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fleet-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 1;
}

.fleet-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.fleet-video.active { opacity: 1; }

/* Content layer */
.fleet-hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(2rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  gap: 2rem;
}

/* Glassmorphism panel */
.fleet-hero__glass {
  background: rgba(15, 15, 15, 0.35);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fleet-hero__heading {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.fleet-hero__heading--accent {
  color: var(--re-red);
}

.fleet-hero__intro {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  line-height: 1.65;
}

.fleet-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Scene indicator — bottom of hero */
.fleet-hero__scene {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: auto;
}

.fleet-video-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Play/unmute button */
.fleet-video-play {
  position: absolute;
  bottom: clamp(2rem, 4vw, 3rem);
  right: clamp(2rem, 4vw, 3rem);
  z-index: 3;
  opacity: 0.5;
  transition: opacity var(--transition), transform var(--transition);
}
.fleet-video-play:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Video dots */
.fleet-dots {
  display: flex;
  gap: 0.5rem;
}
.fleet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.fleet-dot:hover { background: rgba(255,255,255,0.5); }
.fleet-dot.active {
  background: var(--re-red);
  width: 24px;
  border-radius: 4px;
}

/* ════════════════════════════════════════
   TRUST STRIP
   ════════════════════════════════════════ */
.fleet-trust {
  background: var(--re-charcoal);
  padding: 1.25rem 0;
}
.fleet-trust__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.fleet-trust__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.fleet-trust__icon { color: var(--re-red); flex-shrink: 0; }

/* ════════════════════════════════════════
   SECTIONS — generic
   ════════════════════════════════════════ */
.fleet-section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}
.fleet-section--sand { background: var(--re-sand); }
.fleet-section--dark {
  background: var(--re-charcoal);
  color: var(--re-white);
}
.fleet-section--dark .fleet-heading-lg { color: var(--re-white); }

.fleet-section__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.fleet-section__header--light .fleet-heading-lg { color: var(--re-white); }
.fleet-section__header .fleet-label { margin-bottom: 1rem; }
.fleet-section__header .fleet-heading-lg { margin-bottom: 1rem; }
.fleet-section__header .fleet-subtitle { margin: 0 auto; }

/* ════════════════════════════════════════
   FEATURES — 3-column outlined cards
   ════════════════════════════════════════ */
.fleet-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}

.fleet-feature {
  border: 1px solid var(--re-grey-200);
  border-radius: var(--radius);
  padding: clamp(2rem, 3vw, 2.5rem);
  background: var(--re-white);
  transition: all var(--transition);
}
.fleet-feature:hover {
  border-color: var(--re-red);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.fleet-feature__num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--re-red);
  margin-bottom: 1.25rem;
}

.fleet-feature__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--re-charcoal);
}

.fleet-feature__desc {
  font-size: 0.9375rem;
  color: var(--re-grey-600);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.fleet-feature__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fleet-feature__list li {
  font-size: 0.875rem;
  color: var(--re-grey-600);
  padding-left: 1.25rem;
  position: relative;
}
.fleet-feature__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--re-red);
}

/* ════════════════════════════════════════
   19 MODULES — outlined card grid
   ════════════════════════════════════════ */
.fleet-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.fleet-module {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: all var(--transition);
}
.fleet-module:hover {
  border-color: var(--re-red);
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
}

.fleet-module__num {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--re-red);
  margin-bottom: 0.75rem;
}

.fleet-module__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--re-white);
  margin-bottom: 0.375rem;
}

.fleet-module p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ════════════════════════════════════════
   COMPLIANCE — split layout
   ════════════════════════════════════════ */
.fleet-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.fleet-split__copy { display: flex; flex-direction: column; gap: 1.5rem; }

.fleet-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.fleet-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.fleet-stat__value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--re-red);
  line-height: 1;
}
.fleet-stat__label {
  font-size: 0.8125rem;
  color: var(--re-grey-600);
}

.fleet-compliance-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fleet-c-card {
  background: var(--re-white);
  border: 1px solid var(--re-grey-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
}
.fleet-c-card:hover {
  border-color: var(--re-red);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateX(4px);
}
.fleet-c-card svg { flex-shrink: 0; color: var(--re-red); }
.fleet-c-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  flex: 1;
  color: var(--re-charcoal);
}

.fleet-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.fleet-badge--green {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

/* ════════════════════════════════════════
   BENEFITS — 2×2 grid
   ════════════════════════════════════════ */
.fleet-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.fleet-benefit {
  background: var(--re-white);
  border: 1px solid var(--re-grey-200);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  transition: all var(--transition);
}
.fleet-benefit:hover {
  border-color: var(--re-red);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.fleet-benefit__num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--re-red);
  margin-bottom: 1rem;
}
.fleet-benefit h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--re-charcoal);
}
.fleet-benefit p {
  font-size: 0.9375rem;
  color: var(--re-grey-600);
  line-height: 1.65;
}

/* ════════════════════════════════════════
   CTA
   ════════════════════════════════════════ */
.fleet-cta {
  background: var(--re-charcoal);
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.fleet-cta__inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.fleet-cta__inner .fleet-heading-lg { color: var(--re-white); margin-bottom: 1.5rem; }

.fleet-cta__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.fleet-cta__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.fleet-cta__note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.fleet-footer {
  background: var(--re-black);
  color: rgba(255,255,255,0.6);
  padding: clamp(3rem, 6vw, 4rem) 0 1.5rem;
}

.fleet-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

.fleet-footer__logo {
  height: 48px;
  width: auto;
  filter: brightness(1.3);
  margin-bottom: 1rem;
}

.fleet-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}

.fleet-footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.fleet-footer__links { display: flex; flex-direction: column; gap: 0.625rem; }
.fleet-footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.fleet-footer__links a:hover { color: var(--re-white); }

.fleet-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

/* ════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .fleet-hero__heading { font-size: clamp(2.25rem, 8vw, 3.5rem); }
  .fleet-split { grid-template-columns: 1fr; }
  .fleet-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .fleet-header__nav { display: none; }
  .fleet-hamburger { display: block; }
  .fleet-header__link--login { display: none; }
  .fleet-header__nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 999;
  }
  .fleet-header__nav.active .fleet-header__link {
    font-size: 1.25rem;
    color: var(--re-white);
  }

  .fleet-hero__glass { max-width: 100%; }
  .fleet-hero__actions { flex-direction: column; }
  .fleet-hero__actions .fleet-btn { width: 100%; text-align: center; }
  .fleet-hero__scene { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .fleet-modules { grid-template-columns: 1fr 1fr; }
  .fleet-footer__grid { grid-template-columns: 1fr; }
  .fleet-trust__row { justify-content: flex-start; }
  .fleet-cta__buttons { flex-direction: column; align-items: center; }
  .fleet-cta__buttons .fleet-btn { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  .fleet-modules { grid-template-columns: 1fr; }
  .fleet-hero__heading { font-size: 2rem; }
}

/* ════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
