/*==================================================
OUR PLATFORM PAGE
Four verticals, each with a small looping animated
"clip" panel standing in for a real product video.
==================================================*/

.platform-hero {
  padding: 170px 0 60px 0;
  background: linear-gradient(180deg, #003820 0%, #00512e 100%);
  text-align: center;
}

.platform-hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.platform-hero-content h1 {
  color: #fff;
  font-size: 2.6rem;
  margin: 16px 0;
}

.platform-hero-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Vertical sections ---------- */

.platform-vertical {
  padding: 90px 0;
  background: #fff;
}

.platform-vertical.alt {
  background: var(--section, #f8fafc);
}

.vertical-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.vertical-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 900px) {
  .vertical-grid,
  .vertical-grid.reverse {
    grid-template-columns: 1fr;
  }

  .vertical-visual {
    order: -1;
  }
}

.vertical-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.tag-food { background: #ffe3cc; color: #dc5e07; }
.tag-grocery { background: #d9f2df; color: #1f9d55; }
.tag-pharmacy { background: #d4f2ef; color: #0f9b8e; }
.tag-rider { background: #e7e0fb; color: #6c4fd1; }

.vertical-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--text, #222);
}

.vertical-text p {
  color: var(--text-light, #666);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.vertical-note {
  font-size: 0.92rem !important;
  color: #888 !important;
  font-style: italic;
  border-left: 3px solid var(--border, #e5e7eb);
  padding-left: 14px;
}

.vertical-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.vertical-partner-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text, #222);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.vertical-partner-link:hover {
  color: var(--primary, #dc5e07);
  border-color: var(--primary, #dc5e07);
}

/* ---------- Clip panels (animated "video" stand-ins) ---------- */

.clip-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.clip-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: clipFloat 3.2s ease-in-out infinite;
}

.clip-icon svg {
  width: 46px;
  height: 46px;
}

@keyframes clipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Food */

.clip-food {
  background: linear-gradient(135deg, #ffd8ae 0%, #ffb066 100%);
}

.clip-food .clip-icon {
  color: #dc5e07;
}

.clip-steam {
  position: absolute;
  bottom: 55%;
  width: 6px;
  height: 34px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  opacity: 0;
  animation: steamRise 2.4s ease-in infinite;
}

.clip-steam.s1 { left: 42%; animation-delay: 0s; }
.clip-steam.s2 { left: 50%; animation-delay: 0.6s; }
.clip-steam.s3 { left: 58%; animation-delay: 1.2s; }

@keyframes steamRise {
  0% { transform: translateY(0) scaleY(0.6); opacity: 0; }
  30% { opacity: 0.8; }
  100% { transform: translateY(-60px) scaleY(1.2); opacity: 0; }
}

/* Groceries */

.clip-grocery {
  background: linear-gradient(135deg, #c9f2d3 0%, #8fdba3 100%);
}

.clip-grocery .clip-icon {
  color: #1f9d55;
}

.clip-drop {
  position: absolute;
  top: 20%;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.75);
  animation: dropFall 2.6s ease-in infinite;
  opacity: 0;
}

.clip-drop.d1 { left: 35%; animation-delay: 0s; }
.clip-drop.d2 { left: 50%; animation-delay: 0.8s; }
.clip-drop.d3 { left: 63%; animation-delay: 1.6s; }

@keyframes dropFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  20% { opacity: 0.9; }
  100% { transform: translateY(90px) rotate(180deg); opacity: 0; }
}

/* Pharmacy */

.clip-pharmacy {
  background: linear-gradient(135deg, #bdf0e7 0%, #7fdccb 100%);
}

.clip-pharmacy .clip-icon {
  color: #0f9b8e;
}

.clip-pulse-ring {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  animation: pulseRing 2.4s ease-out infinite;
}

.clip-pulse-ring.ring2 {
  animation-delay: 1.2s;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* Rider / standalone delivery */

.clip-rider {
  background: linear-gradient(135deg, #dcd2fb 0%, #b8a4f2 100%);
}

.clip-rider .clip-icon {
  color: #6c4fd1;
}

.clip-road {
  position: absolute;
  bottom: 28%;
  left: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8) 0px,
    rgba(255, 255, 255, 0.8) 14px,
    transparent 14px,
    transparent 26px
  );
  animation: roadMove 1s linear infinite;
}

@keyframes roadMove {
  0% { background-position-x: 0; }
  100% { background-position-x: -40px; }
}

.rider-move {
  animation: riderDrive 3.4s ease-in-out infinite;
}

@keyframes riderDrive {
  0% { transform: translateX(-70px); }
  50% { transform: translateX(70px); }
  100% { transform: translateX(-70px); }
}

/* ---------- Download CTA ---------- */

.platform-download {
  padding: 90px 0;
  background: linear-gradient(135deg, #003820 0%, #00512e 100%);
  text-align: center;
}

.platform-download-content {
  max-width: 640px;
  margin: 0 auto;
}

.platform-download h2 {
  color: #fff;
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.platform-download p {
  color: #cbd5e1;
  margin-bottom: 30px;
}

.platform-download-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.platform-download-buttons .btn i {
  margin-right: 8px;
}

@media (max-width: 480px) {

  .platform-hero-content h1 {
    font-size: 1.9rem;
  }

  .clip-panel {
    max-width: 280px;
  }

}
