/* =============================================================
   orders.css — AT-EASE Customer Order 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 {
  --ord-red:        #EC1313;
  --ord-red-dim:    rgba(236, 19, 19, 0.12);
  --ord-red-border: rgba(236, 19, 19, 0.25);
  --ord-dark:       #0A0505;
  --ord-surface:    #150505;
  --ord-card:       #1A0808;
  --ord-text:       #F1F5F9;
  --ord-muted:      #94A3B8;
  --ord-dim:        #64748B;
  --ord-border:     rgba(255, 255, 255, 0.08);
  --ord-border-md:  rgba(255, 255, 255, 0.12);
}

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


/* ─────────────────────────────────────────────────────────────
   2. Hero
───────────────────────────────────────────────────────────── */
.ord-hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  margin-top: 80px;
  overflow: hidden;
  background: #0A0505;
}

/* Layered gradient background — no image needed */
.ord-hero__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ord-hero__bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0A0505 0%, #150808 100%);
}

/* Radial glow top-right — mirrors the Figma design */
.ord-hero__bg-radial {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(
    ellipse 114% 208% at 100% 0%,
    #3A1111 0%,
    rgba(58, 17, 17, 0) 100%
  );
}

/* Inner layout */
.ord-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px;
}

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

.ord-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;
}

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

.ord-hero__title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.0;
  color: #fff;
  margin: 0;
}

.ord-hero__desc {
  max-width: 528px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ord-muted);
  margin: 0;
}

.ord-hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Ghost button for "Try Demo" in hero */
.btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  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;
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

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

/* Right column — video card */
.ord-hero__media {
  flex-shrink: 0;
  width: 536px;
}

.ord-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;
}

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

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

/* Play button — matches logistics */
.ord-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;
}

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

/* Triangle icon */
.ord-hero__play-icon {
  color: #fff;
  font-size: 28px;
  margin-left: 4px;
}

/* "Watch Demo Video" label */
.ord-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
───────────────────────────────────────────────────────────── */
.ord-capabilities {
  background: linear-gradient(180deg, #0C0606 0%, #270505 100%);
  padding: 96px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Slider outer */
.cap-slider {
  position: relative;
  overflow: hidden;
}

/* Fade edges */
.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, #160404 20%, transparent);
}

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

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

/* Capability card */
.cap-card {
  flex-shrink: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ord-border);
  border-radius: 16px;
  padding: 28px 24px;
  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(--ord-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(--ord-red-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.cap-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ord-text);
  line-height: 1.3;
  margin: 0;
}

.cap-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ord-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;
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1;
}

.cap-slider__arrow:hover {
  background: rgba(236, 19, 19, 0.30);
  border-color: var(--ord-red-border);
}

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

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

/* Dot indicators */
.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(--ord-red);
}


/* ─────────────────────────────────────────────────────────────
   4. How It Works
───────────────────────────────────────────────────────────── */
.ord-how {
  background: linear-gradient(360deg, #240404 3%, #0A0505 100%);
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

/* Track line — sits below the circles (z-index 0) */
.ord-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;
}

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

.ord-how__truck {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  object-fit: contain;
  /* Red colour filter */
  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: truckBounce 0.4s ease-in-out infinite;
  animation-play-state: paused;
}

@keyframes truckBounce {
  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;
}

/* Circle sits above the track line */
.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(--ord-red);
  background: rgba(236, 19, 19, 0.15);
  box-shadow: 0 0 16px rgba(236, 19, 19, 0.40);
}

.how-step__circle--done {
  border-color: var(--ord-red);
  background: rgba(236, 19, 19, 0.08);
}

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

/* Remove old connector line — track replaces it */
.how-step__connector { display: none; }

.how-step__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ord-text);
  margin: 20px 0 12px;
  transition: color 0.3s ease;
}

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

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

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

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

/* Subtle radial glow centred behind pricing cards */
.ord-pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: rgba(236, 19, 19, 0.10);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.ord-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 rgba(255, 255, 255, 0.10);
  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(--ord-red);
  box-shadow: 0 0 30px rgba(236, 19, 19, 0.12);
}

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

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--ord-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(--ord-text);
  text-align: center;
  margin: 0;
}

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

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

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


/* ─────────────────────────────────────────────────────────────
   6. CTA Banner
───────────────────────────────────────────────────────────── */
.ord-cta {
  padding: 48px 80px;
}

.ord-cta__inner {
  background: #610606;
  border-radius: 24px;
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(236, 19, 19, 0.20);
}

/* Decorative blurred circle left */
.ord-cta__inner::before {
  content: '';
  position: absolute;
  left: -96px;
  bottom: 140px;
  width: 256px;
  height: 256px;
  background: rgba(0, 0, 0, 0.10);
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
}

/* Decorative blurred circle right */
.ord-cta__inner::after {
  content: '';
  position: absolute;
  right: -64px;
  top: -64px;
  width: 256px;
  height: 256px;
  background: rgba(255, 0, 0, 0.10);
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
}

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

.ord-cta__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.0;
  color: #fff;
  margin: 0;
}

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


/* ─────────────────────────────────────────────────────────────
   7. Extra buttons used on this page only
───────────────────────────────────────────────────────────── */

/* Outline white — non-featured pricing cards */
.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 */
.btn--cta-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 68px;
  border-radius: 16px;
  background: #fff;
  color: var(--ord-red);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 10px -6px rgba(0, 0, 0, 0.10), 0 20px 25px -5px rgba(0, 0, 0, 0.10);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.btn--cta-white:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  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(--ord-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) {
  .ord-hero__inner  { padding: 64px 40px; gap: 40px; }
  .ord-hero__title  { font-size: 56px; }
  .ord-hero__media  { width: 440px; }
  .pricing__grid    { grid-template-columns: repeat(2, 1fr); }
  .ord-cta          { padding: 48px 40px; }
  .ord-cta__inner   { padding: 60px 48px; }
  .ord-cta__title   { font-size: 36px; }
}

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

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

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

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