/* =============================================================
   van-sales.css — AT-EASE Van Sales Management Page
   Sections:
     1.  Page tokens
     2.  Hero
     3.  Core Capabilities slider
     4.  How It Works
     5.  Pricing Plans
     6.  CTA Banner
     7.  Extra buttons
     8.  Video modal
     9.  Responsive
============================================================= */


/* ─────────────────────────────────────────────────────────────
   1. Page tokens
───────────────────────────────────────────────────────────── */
:root {
  --vsm-red:        #E31E24;
  --vsm-red-dim:    rgba(227, 30, 36, 0.10);
  --vsm-red-border: rgba(227, 30, 36, 0.25);
  --vsm-dark:       #0A0A0A;
  --vsm-text:       #F9FAFB;
  --vsm-muted:      #9CA3AF;
  --vsm-dim:        #64748B;
  --vsm-border:     rgba(255, 255, 255, 0.05);
  --vsm-border-md:  rgba(255, 255, 255, 0.10);
}

.text-red { color: var(--vsm-red); }


/* ─────────────────────────────────────────────────────────────
   2. Hero
   — Pure black background with a subtle left-side radial glow,
     matching the Figma exactly.
───────────────────────────────────────────────────────────── */
.vsm-hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--vsm-dark);
}

/* Radial glow — left side, low opacity, from Figma */
.vsm-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90.66% 148.82% at 20% 30%,
    rgba(16, 0, 1, 0.15) 0%,
    #0A0A0A 70%
  );
  z-index: 0;
}

.vsm-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 85px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 192px 32px 128px;
}

/* Left column */
.vsm-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vsm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: fit-content;
}

.vsm-hero__badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.vsm-hero__title {
  font-size: 72px;
  font-weight: 800;
  line-height: 72px;
  color: #fff;
  margin: 0;
}

.vsm-hero__desc {
  max-width: 472px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--vsm-muted);
  margin: 0;
  padding-top: 8px;
}

.vsm-hero__actions {
  display: flex;
  align-items: center;
  gap: 42px;
  padding-top: 56px;
  flex-wrap: wrap;
}

/* Ghost button */
.btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Right column — video card */
.vsm-hero__media {
  flex: 1;
  position: relative;
}

/* Red gradient blur glow behind the card — from Figma */
.vsm-hero__glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(90deg, #1e0405 0%, rgba(227, 30, 36, 0) 100%);
  border-radius: 16px;
  filter: blur(20px);
  opacity: 0.20;
  pointer-events: none;
}

.vsm-hero__video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  outline: 1px rgba(255, 255, 255, 0.10) solid;
  box-shadow:
    0 0 0 1px rgba(113, 3, 3, 0.65),
    8px 8px 40px rgba(125, 5, 5, 0.20),
    0 25px 50px rgba(0, 0, 0, 0.50);
  cursor: pointer;
  background: #0F172A;
}

.vsm-hero__video-thumb {
  display: block;
  width: 100%;
  height: 315px;
  object-fit: cover;
  opacity: 0.60;
  filter: saturate(0.4);
  transition: opacity 0.3s ease;
}

.vsm-hero__video-card:hover .vsm-hero__video-thumb {
  opacity: 0.75;
}

/* Play button — matches logistics exactly */
.vsm-hero__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(236, 19, 19, 0.90);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.40);
  padding: 0;
  overflow: hidden;
  z-index: 1;
}

.vsm-hero__play-btn:hover {
  background: var(--vsm-red);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Triangle icon */
.vsm-hero__play-icon {
  color: #fff;
  font-size: 28px;
  margin-left: 4px; /* optical centre for the triangle */
}

/* "Watch Demo Video" pill label */
.vsm-hero__video-label {
  position: absolute;
  bottom: 16px;
  left: 20px;
  padding: 5px 14px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────
   3. Core Capabilities Slider
───────────────────────────────────────────────────────────── */
.vsm-capabilities {
  background: linear-gradient(180deg, #0A0A0A 26%, #2F0505 55%);
  padding: 96px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vsm-capabilities .section-header {
  margin-bottom: 56px;
}

/* Override section-header divider color for this page */
.vsm-capabilities .section-header__divider {
  background: #110102;
}

.cap-slider {
  position: relative;
  overflow: hidden;
}

/* Edge fade masks */
.cap-slider::before,
.cap-slider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.cap-slider::before {
  left: 0;
  background: linear-gradient(to right, #150606 20%, transparent);
}

.cap-slider::after {
  right: 0;
  background: linear-gradient(to left, #150606 20%, transparent);
}

/* Track — NO CSS transition; RAF drives position */
.cap-slider__track {
  display: flex;
  gap: 24px;
  padding: 8px 4px 16px;
  will-change: transform;
}

.cap-card {
  flex-shrink: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--vsm-border);
  border-radius: 16px;
  padding: 33px 28px;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cap-card:hover {
  border-color: var(--vsm-red-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.40);
}

.cap-card__icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--vsm-red-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cap-card__icon-wrap .material-icons {
  font-size: 22px;
  color: var(--vsm-red);
}

.cap-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

.cap-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--vsm-muted);
  margin: 0;
  flex: 1;
}

/* Arrow buttons */
.cap-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cap-slider__arrow:hover {
  background: rgba(227, 30, 36, 0.30);
  border-color: var(--vsm-red-border);
}

.cap-slider__arrow--prev { left: 8px; }
.cap-slider__arrow--next { right: 8px; }

.cap-slider__arrow:disabled {
  opacity: 0.30;
  cursor: not-allowed;
}

/* Dots */
.cap-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.cap-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.20);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.cap-slider__dot--active {
  width: 32px;
  background: var(--vsm-red);
}


/* ─────────────────────────────────────────────────────────────
   4. How It Works
───────────────────────────────────────────────────────────── */
.vsm-how {
  background: linear-gradient(360deg, #160202 17%, #310606 63%);
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.vsm-how .section-header {
  margin-bottom: 80px;
}

.vsm-how__steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  gap: 0;
}

.vsm-how__track {
  position: absolute;
  top: 32px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 3px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.vsm-how__track-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--vsm-red);
  border-radius: 9999px;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(227, 30, 36, 0.60);
}

/* ── Icon size controlled here — change width/height to resize ── */
.vsm-how__truck {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 20px;   /* ← change this to resize */
  height: 20px;  
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(13%) sepia(95%) saturate(7494%) hue-rotate(3deg) brightness(98%) contrast(112%);
  transition: left 0.05s linear;
  z-index: 2;
  animation: vsmBounce 0.4s ease-in-out infinite;
  animation-play-state: paused;
}

@keyframes vsmBounce {
  0%, 100% { margin-top: 0; }
  50%       { margin-top: -3px; }
}

.how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.how-step__circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #221010;
  border: 3px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.how-step__circle--active {
  border-color: var(--vsm-red);
  background: rgba(227, 30, 36, 0.15);
  box-shadow: 0 0 16px rgba(227, 30, 36, 0.40);
}

.how-step__circle--done {
  border-color: var(--vsm-red);
  background: rgba(227, 30, 36, 0.08);
}

.how-step__number {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.how-step__connector { display: none; }

.how-step__title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 20px 0 14px;
  transition: color 0.3s ease;
}

.how-step__title--active { color: var(--vsm-red); }

.how-step__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--vsm-muted);
  max-width: 220px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .vsm-how__steps { flex-direction: column; align-items: center; gap: 40px; }
  .vsm-how__track  { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   5. Pricing Plans
───────────────────────────────────────────────────────────── */
.vsm-pricing {
  background: linear-gradient(180deg, #140202 12%, #2b0404 57%, #140303 87%);
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Central radial glow */
.vsm-pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: rgba(227, 30, 36, 0.10);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.vsm-pricing .section-header {
  margin-bottom: 64px;
  position: relative;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.pricing-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--vsm-border-md);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.pricing-card--featured {
  border-color: var(--vsm-red);
  box-shadow: 0 0 30px rgba(227, 30, 36, 0.12);
}

.pricing-card--featured:hover {
  box-shadow: 0 0 50px rgba(227, 30, 36, 0.20);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--vsm-red);
  border-radius: 9999px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.pricing-card__tier {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--vsm-text);
  text-align: center;
  margin: 0;
}

.pricing-card__tagline {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--vsm-muted);
  text-align: center;
  margin: 0;
  flex: 1;
}

.pricing-card__plan {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--vsm-text);
  text-align: center;
  letter-spacing: 0.05em;
}

.pricing-card__users {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--vsm-red);
  text-align: center;
}


/* ─────────────────────────────────────────────────────────────
   6. CTA Banner
───────────────────────────────────────────────────────────── */
.vsm-cta {
  padding: 80px 32px;
  background: #0A0A0A;
}

.vsm-cta__inner {
  background: linear-gradient(105deg,
    /* #1A0408 0%, */
    /* #2E0812 20%, */
    #4A0D1A 40%,
    #5C1020 55%,
    #4A0D1A 70%,
    /* #2E0812 85%, */
    #1A0408 100%
  );
  border-radius: 24px;
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(180, 30, 60, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(200, 50, 80, 0.15),
    0 30px 60px -12px rgba(0, 0, 0, 0.30);
}

/* Soft light bloom — centre */
.vsm-cta__deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(129, 9, 9, 0.766) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(30px);
}

.vsm-cta__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.vsm-cta__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.0;
  color: #fff;
  margin: 0;
  max-width: 560px;
}

.vsm-cta__desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.80);
  max-width: 520px;
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   7. Extra buttons
───────────────────────────────────────────────────────────── */
.btn--outline-white {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: transparent;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.40);
}

/* White CTA button — inside red banner */
.btn--cta-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  border-radius: 12px;
  background: #fff;
  color: var(--vsm-red);
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn--cta-white:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.30);
  transform: translateY(-2px);
}


/* ─────────────────────────────────────────────────────────────
   8. Video modal
───────────────────────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal[hidden] { display: none; }

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.video-modal__content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 900px;
  background: #0A0A0A;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.70);
}

.video-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-modal__close:hover { background: var(--vsm-red); }

.video-modal__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-modal__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ─────────────────────────────────────────────────────────────
   9. Responsive
───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .vsm-hero__inner  { padding: 120px 32px 80px; gap: 48px; }
  .vsm-hero__title  { font-size: 56px; line-height: 1.1; }
  .pricing__grid    { grid-template-columns: repeat(2, 1fr); }
  .vsm-cta          { padding: 48px 32px; }
  .vsm-cta__inner   { padding: 60px 48px; }
  .vsm-cta__title   { font-size: 36px; }
}

@media (max-width: 860px) {
  .vsm-hero__inner {
    flex-direction: column;
    padding: 100px 24px 60px;
    text-align: center;
    align-items: center;
  }
  .vsm-hero__title    { font-size: 44px; }
  .vsm-hero__desc     { max-width: 100%; }
  .vsm-hero__actions  { justify-content: center; padding-top: 32px; }
  .vsm-hero__media    { width: 100%; max-width: 520px; }

  .vsm-how__steps { flex-direction: column; align-items: center; gap: 40px; }
  .how-step__connector { display: none; }

  .vsm-cta__inner { flex-direction: column; text-align: center; padding: 48px 32px; }
  .vsm-cta__title { font-size: 30px; }
  .btn--cta-white { padding: 18px 40px; }
}

@media (max-width: 600px) {
  .vsm-hero__title  { font-size: 34px; }
  .pricing__grid    { grid-template-columns: 1fr; }
  .vsm-cta          { padding: 32px 16px; }
}
