/* ============================================================
   homepage.css - Homepage-specific styles
   ============================================================
   Includes: video carousel, stats, and map sections */

/* Hide scrollbar on mobile/tablet */
@media (max-width: 1024px) {
  body,
  html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  body::-webkit-scrollbar,
  html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
}

/* ==================== OVERVIEW SECTION ==================== */
.sistemaOverview {
  padding: 80px 0;
  background: var(--bg-gradient);
}

.overviewContent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.overviewText h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 24px;
}

.overviewText p {
  font-size: 1.1rem;
  color: #c7c7c7;
  line-height: 1.8;
  margin-bottom: 16px;
}

.overviewImage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.overviewImage img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* Scroll Reveal Animations */
.sistemaOverview .scrollReveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sistemaOverview .scrollReveal.reveal {
  opacity: 1;
  transform: translateY(0);
}

.sistemaOverview h2.scrollReveal {
  transition-delay: 0.1s;
}

.sistemaOverview p.scrollReveal:nth-of-type(1) {
  transition-delay: 0.2s;
}

.sistemaOverview p.scrollReveal:nth-of-type(2) {
  transition-delay: 0.3s;
}

.sistemaOverview .overviewImage.scrollReveal {
  transition-delay: 0.4s;
}

/* ==================== APP SECTION ==================== */
.appSection {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.appContent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.appStores a {
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(1);
  flex: 1;
  min-width: 0;
}

.appStores a:hover {
  transform: translateY(-8px) scale(1.05);
  filter: brightness(1.1);
}

.appImage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.appImage::before {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.30) 40%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(20px);
}

.appImage img {
  max-width: 100%;
  height: auto;
  max-height: 700px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.appSection .scrollReveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.appSection .scrollReveal.reveal {
  opacity: 1;
  transform: translateY(0);
}

.appImage.scrollReveal {
  transition-delay: 0.1s;
}

.appHeader.scrollReveal {
  transition-delay: 0.15s;
}

.appFeature.scrollReveal:nth-child(2) {
  transition-delay: 0.2s;
}

.appFeature.scrollReveal:nth-child(3) {
  transition-delay: 0.25s;
}

.appFeature.scrollReveal:nth-child(4) {
  transition-delay: 0.3s;
}

.appStoresWrapper.scrollReveal {
  transition-delay: 0.35s;
}

.appHeader {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.appStoresWrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appFeatures {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.appFeatures h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0b0b0b;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.appPracticalitySubtitle {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 8px;
}

.appFeature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: #fafafa;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.appFeature:hover {
  background: #fff;
  border-color: #01D6F5;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(1, 214, 245, 0.12);
}

.featureIcon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #01D6F5 0%, #00F5A0 100%);
  border-radius: 12px;
  color: #fff;
  transition: transform 0.3s ease;
}

.appFeature:hover .featureIcon {
  transform: scale(1.1);
}

.featureIcon svg {
  width: 24px;
  height: 24px;
}

.featureContent h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b0b0b;
  margin-bottom: 8px;
  line-height: 1.4;
}

.featureContent p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.appStoresLabel {
  font-size: 1.5rem;
  color: #666;
  margin-top: 20px;
  font-weight: 500;
  text-align: center;
}

.appStores {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 0;
}

.appStores a {
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(1);
  flex: 1;
  min-width: 0;
}

.appStores a:hover {
  transform: translateY(-8px) scale(1.05);
  filter: brightness(1.1);
}

.appStores img {
  height: 75px;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
}

/* ==================== VIDEO CAROUSEL SECTION ==================== */
.videoShowcase {
  padding: 72px 0;
  background: var(--bg-gradient);
  color: #fff;
}

.videoShowcase .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.videoHeader {
  text-align: center;
  margin-bottom: 32px;
}

.videoHeader h2 {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.videoHeader p {
  color: #cfd8e3;
}

.videoShowcase .scrollReveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.videoShowcase .scrollReveal.reveal {
  opacity: 1;
  transform: translateY(0);
}

.videoShowcase h2.scrollReveal {
  transition-delay: 0.05s;
}

.videoShowcase p.scrollReveal {
  transition-delay: 0.1s;
}

.videoCarousel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.videoViewport {
  flex: 1;
  overflow: hidden;
  padding: 0 16px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
}

.videoTrack {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
  height: 100%;
  user-select: none;
  cursor: grab;
}

.videoTrack.dragging {
  cursor: grabbing;
}

.videoItem {
  position: absolute;
  left: 50%;
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  width: min(1000px, 88vw);
  line-height: 0;
  will-change: transform;
}

.videoItem video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #050505;
}

.videoNav {
  background: linear-gradient(180deg, rgba(1, 214, 245, 0.15), rgba(1, 214, 245, 0.08));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 200ms ease;
  flex-shrink: 0;
}

.videoNav:hover {
  background: linear-gradient(180deg, rgba(1, 214, 245, 0.25), rgba(1, 214, 245, 0.15));
  border-color: rgba(1, 214, 245, 0.6);
  transform: translateY(-2px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 6px 16px rgba(1, 214, 245, 0.25);
}

.videoNav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.videoControls {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.videoDots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
}

.videoDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.videoDot:hover {
  transform: scale(1.15);
  border-color: #01D6F5;
}

.videoDot.active {
  background: #01D6F5;
  transform: scale(1.25);
}

/* ==================== VERTICAL VIDEO CAROUSEL SECTION ==================== */
.videoShowcaseVertical {
  padding: 72px 0;
  background: var(--bg-light);
  color: #0b0b0b;
}

.videoShowcaseVertical .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ==================== VERTICAL VIDEO CAROUSEL ==================== */
.videoHeaderVertical {
  text-align: center;
  margin-top: 0;
}

.videoHeaderVertical h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0b0b0b;
  margin: 0 0 10px;
}

.videoHeaderVertical p {
  color: #5f6873;
  margin: 0;
}

.videoShowcaseVertical .scrollReveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.videoShowcaseVertical .scrollReveal.reveal {
  opacity: 1;
  transform: translateY(0);
}

.videoShowcaseVertical h3.scrollReveal {
  transition-delay: 0.05s;
}

.videoShowcaseVertical p.scrollReveal {
  transition-delay: 0.1s;
}

.videoCarouselVertical {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.videoViewportVertical {
  flex: 1;
  overflow: hidden;
  padding: 0 16px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 800px;
}

.videoTrackVertical {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
  height: 100%;
  user-select: none;
  cursor: grab;
}

.videoTrackVertical.dragging { cursor: grabbing; }

.videoItemVertical {
  position: absolute;
  left: 50%;
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  width: min(400px, 70vw);
  line-height: 0;
  will-change: transform;
}

.videoItemVertical video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  display: block;
  background: #050505;
}

.videoNavVertical {
  background: linear-gradient(180deg, rgba(1, 214, 245, 0.22), rgba(1, 214, 245, 0.12));
  color: #0b0b0b;
  border: 1px solid rgba(1, 214, 245, 0.55);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 200ms ease;
  flex-shrink: 0;
}

.videoNavVertical:hover {
  background: linear-gradient(180deg, rgba(1, 214, 245, 0.35), rgba(1, 214, 245, 0.22));
  border-color: #01D6F5;
  transform: translateY(-2px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 6px 16px rgba(1, 214, 245, 0.3);
}

.videoNavVertical:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.videoControlsVertical {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.videoDotsVertical {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
}

.videoDotVertical {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(11, 11, 11, 0.22);
  border: 1px solid rgba(11, 11, 11, 0.12);
  padding: 0;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.videoDotVertical:hover {
  transform: scale(1.15);
  background: rgba(1, 214, 245, 0.35);
  border-color: #01D6F5;
}

.videoDotVertical.active {
  background: #01D6F5;
  border-color: #01D6F5;
  transform: scale(1.25);
}

/* ==================== STATS SECTION ==================== */
.statsSection {
  padding: 100px 0;
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.statsSection h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.statsSection h2.reveal {
  opacity: 1;
  transform: translateY(0);
}

.statsContent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.statsMap {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  position: relative;
  isolation: isolate;
}

.statsMap.reveal {
  opacity: 1;
  animation: mapSlideIn 1s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

@keyframes mapSlideIn {
  from {
    opacity: 0;
    transform: translateX(-60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.brazilMap {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(1, 214, 245, 0.3));
  display: block;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.brazilMap:hover {
  transform: scale(1.15) rotate(2deg) translateZ(0);
  filter: drop-shadow(0 15px 45px rgba(1, 214, 245, 0.5));
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.statCard:nth-child(7) {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: calc(50% - 12px);
}

.statCard {
  background: rgba(11, 11, 11, 0.03);
  border: 2px solid rgba(1, 214, 245, 0.1);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(40px) scale(0.95) rotate(-2deg);
  position: relative;
  overflow: hidden;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  contain: layout style;
}

.statCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(1, 214, 245, 0.1), transparent);
  transition: left 0.6s ease;
}

.statCard:hover::before {
  left: 100%;
}

.statCard.reveal {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
  animation: cardBounce 0.6s ease;
}

@keyframes cardBounce {
  0% {
    transform: translateY(40px) scale(0.95) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) scale(1.02) rotate(1deg);
  }
  75% {
    transform: translateY(4px) scale(0.98) rotate(-0.5deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.statCard:hover {
  border-color: rgba(1, 214, 245, 0.6);
  background: rgba(1, 214, 245, 0.08);
  transform: translateY(-8px) scale(1.05) rotate(1deg);
  box-shadow: 0 12px 32px rgba(1, 214, 245, 0.25);
}

.statNumber {
  font-size: 2.8rem;
  font-weight: 900;
  color: #01D6F5;
  line-height: 1.2;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
  min-width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: contents;
  contain: layout style paint;
}

.statCard:hover .statNumber {
  transform: scale(1.15);
  text-shadow: 0 0 20px rgba(1, 214, 245, 0.5);
}

.statNumber::before {
  content: '+';
  font-size: 2rem;
  vertical-align: super;
  margin-right: 4px;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.statLabel {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  line-height: 1.3;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.statCard:hover .statLabel {
  color: #01D6F5;
}

.statCard:nth-child(1) { transition-delay: 0.1s; }
.statCard:nth-child(2) { transition-delay: 0.15s; }
.statCard:nth-child(3) { transition-delay: 0.2s; }
.statCard:nth-child(4) { transition-delay: 0.25s; }
.statCard:nth-child(5) { transition-delay: 0.3s; }
.statCard:nth-child(6) { transition-delay: 0.35s; }
.statCard:nth-child(7) { transition-delay: 0.4s; }

/* ==================== MAP SECTION ==================== */
.mapSection {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.mapSection h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: #0b0b0b;
  margin-bottom: 12px;
}

.mapSubtitle {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 60px;
}

.mapSection .scrollReveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mapSection .scrollReveal.reveal {
  opacity: 1;
  transform: translateY(0);
}

.mapSection h2.scrollReveal {
  transition-delay: 0.05s;
}

.mapSection .mapSubtitle.scrollReveal {
  transition-delay: 0.1s;
}

.mapContainer {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(1, 214, 245, 0.3);
  height: 600px;
}

#map {
  width: 100%;
  height: 100%;
}

.mapContainer .gm-fullscreen-control {
  margin: 12px !important;
  padding: 4px !important;
  border-radius: 12px !important;
  background: rgba(8, 10, 12, 0.85) !important;
  border: 2px solid rgba(1, 214, 245, 0.5) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45) !important;
}

.mapContainer .gm-fullscreen-control button {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mapContainer .gm-fullscreen-control button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(1, 214, 245, 0.2) !important;
}

.mapContainer .gm-fullscreen-control img {
  filter: none;
}

.mapContainer .gm-fullscreen-control svg {
  fill: #FFFFFF !important;
}

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

/* ---- Notebook screens (1025px – 1440px) ---- */
@media (min-width: 1025px) and (max-width: 1440px) {
  /* Overview */
  .overviewContent {
    gap: 40px;
  }

  /* Praticidade section */
  .appContent {
    gap: 40px;
  }

  .appImage img {
    max-height: 580px;
  }

  .appFeatures {
    gap: 16px;
  }

  .appFeatures h2 {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .appPracticalitySubtitle {
    font-size: 0.9rem;
  }

  .appFeature {
    padding: 16px 18px;
    gap: 14px;
  }

  .featureIcon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .featureIcon svg {
    width: 20px;
    height: 20px;
  }

  .featureContent h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .featureContent p {
    font-size: 0.82rem;
  }

  .appStoresLabel {
    font-size: 1.2rem;
    margin-top: 12px;
  }

  .appStores {
    gap: 8px;
  }

  /* Horizontal carousel — smaller card so adjacent items peek in */
  .videoItem {
    width: min(780px, 80vw);
  }

  .videoViewport {
    min-height: 490px;
  }

  /* Vertical carousel */
  .videoShowcaseVertical {
    padding: 60px 0 40px;
  }

  .videoItemVertical {
    width: min(350px, 66vw);
  }

  .videoViewportVertical {
    min-height: 730px;
  }

  /* Stats numbers — reduce card and number sizes */
  .statsSection {
    min-height: 480px;
  }

  .statsContent {
    gap: 40px;
    max-width: 960px;
  }

  .statCard {
    height: 130px;
    padding: 18px 16px;
  }

  .statNumber {
    font-size: 2.2rem;
    min-width: 160px;
    height: 48px;
    margin-bottom: 8px;
  }

  .statLabel {
    font-size: 0.82rem;
  }
}

@media (max-width: 1024px) {
  .overviewContent {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .appContent {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .appImage {
    order: -1;
  }

  .appFeatures h2 {
    text-align: center;
  }

  .appPracticalitySubtitle {
    text-align: center;
  }

  .appFeature {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    height: 130px;
    display: flex;
    align-items: center;
  }

  .featureContent {
    flex: 1;
  }

  .appStores {
    justify-content: center;
    gap: 50px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
  }

  .appStores img {
    height: 100px;
  }

  .appStoresLabel {
    text-align: center;
  }

  .statsContent {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .statsMap {
    display: none;
  }

  .statsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .statNumber {
    font-size: 2.4rem;
  }

  .videoViewport {
    padding: 0 12px;
    min-height: 520px;
  }

  .videoControls {
    margin-top: 10px;
    gap: 8px;
  }

  .videoDots {
    gap: 8px;
  }

  .videoTrack {
    grid-auto-columns: min(900px, 90vw);
    padding: 8px calc((100vw - 12px * 2 - min(900px, 90vw)) / 2) 14px calc((100vw - 12px * 2 - min(900px, 90vw)) / 2);
  }
}

@media (max-width: 768px) {
  .sistemaOverview {
    padding: 60px 0;
  }

  .overviewText h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .overviewText p {
    font-size: 1rem;
  }

  /* App Section */
  .appSection {
    padding: 40px 0;
  }

  .appText h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .appText p {
    font-size: 0.95rem;
    text-align: center;
  }

  .appFeatures h2 {
    text-align: center;
  }

  .appPracticalitySubtitle {
    text-align: center;
  }

  .appFeature {
    width: auto;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    padding: 16px;
    height: auto;
    min-height: 110px;
  }

  .appStores {
    gap: 8px;
  }

  .appStores img {
    height: 65px;
  }

  .appStoresLabel {
    text-align: center;
  }

  .appImage img {
    max-height: 300px;
  }

  /* Steps */
  .stepCard { padding: 18px; }
  .stepNumber { font-size: 2.4rem; }

  /* Video Carousel */
  .videoShowcase {
    padding: 40px 0;
  }

  .videoShowcaseVertical {
    padding: 40px 0;
  }

  .videoHeader h2 {
    font-size: 1.5rem;
  }

  .videoHeader p {
    font-size: 0.9rem;
  }

  .videoViewport {
    padding: 0 6px;
    min-height: 430px;
  }

  .videoTrack {
    gap: 10px;
    grid-auto-columns: min(360px, 92vw);
    padding: 2px calc((100vw - 6px * 2 - min(360px, 92vw)) / 2) 8px calc((100vw - 6px * 2 - min(360px, 92vw)) / 2);
  }

  .videoNav {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .videoControls {
    margin-top: 8px;
    gap: 6px;
  }

  .videoDots {
    gap: 7px;
  }

  /* Vertical Video Carousel */
  .videoHeaderVertical {
    margin-top: 0;
    margin-bottom: 36px;
  }

  .videoHeaderVertical h3 {
    font-size: 1.5rem;
  }

  .videoHeaderVertical p {
    font-size: 0.9rem;
  }

  .videoViewportVertical {
    padding: 0 6px;
    min-height: 700px;
  }

  .videoItemVertical {
    width: min(360px, 82vw);
  }

  .videoControlsVertical {
    margin-top: 16px;
  }

  .videoTrackVertical {
    gap: 10px;
    grid-auto-columns: min(280px, 75vw);
    padding: 2px calc((100vw - 6px * 2 - min(280px, 75vw)) / 2) 8px calc((100vw - 6px * 2 - min(280px, 75vw)) / 2);
  }

  .videoNavVertical {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  /* Stats */
  .statNumber {
    font-size: 2rem;
  }

  .statLabel {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .sistemaOverview {
    padding: 60px 0;
  }

  .overviewText h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .overviewText p {
    font-size: 1rem;
  }

  /* App Section */
  .appSection {
    padding: 40px 0;
  }

  .appText h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .appText p {
    font-size: 0.95rem;
    text-align: center;
  }

  .appFeatures h2 {
    text-align: center;
  }

  .appPracticalitySubtitle {
    text-align: center;
  }

  .appStores {
    gap: 8px;
  }

  .appStores img {
    height: 65px;
  }

  .appStoresLabel {
    text-align: center;
  }

  .appImage img {
    max-height: 300px;
  }

  /* Steps */
  .stepCard { padding: 18px; }
  .stepNumber { font-size: 2.4rem; }

  /* Video Carousel */
  .videoShowcase {
    padding: 60px 0;
  }

  .videoShowcaseVertical {
    padding: 60px 0;
  }

  .videoHeader {
    margin-bottom: 6px;
  }

  .videoHeader h2 {
    font-size: 1.5rem;
  }

  .videoHeader p {
    font-size: 0.9rem;
  }

  .videoViewport {
    padding: 0 6px;
    min-height: 320px;
  }

  .videoTrack {
    gap: 10px;
    grid-auto-columns: min(360px, 92vw);
    padding: 2px calc((100vw - 6px * 2 - min(360px, 92vw)) / 2) 2px calc((100vw - 6px * 2 - min(360px, 92vw)) / 2);
  }

  .videoShowcase .videoNav {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .videoShowcase .videoControls {
    margin-top: 0;
    gap: 6px;
  }

  .videoShowcase .videoDots {
    gap: 7px;
  }

  .videoShowcase .videoNav.prev {
    margin-right: 0;
  }

  .videoShowcase .videoNav.next {
    margin-left: 0;
  }

  /* Vertical Video Carousel */
  .videoHeaderVertical {
    margin-top: 0;
    margin-bottom: 18px;
  }

  .videoHeaderVertical p {
    font-size: 0.9rem;
  }

  .videoViewportVertical {
    min-height: 650px;
  }

  .videoItemVertical {
    width: min(340px, 84vw);
  }

  /* Stats */
  .statNumber {
    font-size: 2rem;
  }

  .statLabel {
    font-size: 0.8rem;
  }
}

/* ==================== EXTRA SMALL DEVICES (320px) ==================== */
@media (max-width: 320px) {
  .overviewText h2 {
    font-size: 1.6rem;
  }

  .overviewText p {
    font-size: 0.95rem;
  }

  /* Video Carousel */
  .videoShowcase {
    padding: 32px 12px;
  }

  .videoShowcaseVertical {
    padding: 32px 12px;
  }

  .videoHeader {
    margin-bottom: 4px;
  }

  .videoHeader h2 {
    font-size: 1.3rem;
  }

  .videoHeader p {
    font-size: 0.85rem;
  }

  .videoViewport {
    padding: 0 4px;
    min-height: 300px;
  }

  .videoTrack {
    gap: 8px;
    grid-auto-columns: min(300px, 95vw);
    padding: 2px calc((100vw - 4px * 2 - min(300px, 95vw)) / 2) 2px calc((100vw - 4px * 2 - min(300px, 95vw)) / 2);
  }

  .videoShowcase .videoNav {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .videoShowcase .videoControls {
    margin-top: 0;
    gap: 5px;
  }

  .videoShowcase .videoDots {
    gap: 6px;
  }

  .videoShowcase .videoNav.prev {
    margin-right: 0;
  }

  .videoShowcase .videoNav.next {
    margin-left: 0;
  }

  /* Vertical Video Carousel */
  .videoHeaderVertical {
    margin-top: 0;
    margin-bottom: 14px;
  }

  .videoHeaderVertical h3 {
    font-size: 1.3rem;
  }

  .videoHeaderVertical p {
    font-size: 0.85rem;
  }

  .videoViewportVertical {
    padding: 0 4px;
    min-height: 580px;
  }

  .videoItemVertical {
    width: min(320px, 85vw);
  }

  .videoControlsVertical {
    margin-top: 12px;
  }

  .videoTrackVertical {
    gap: 8px;
    grid-auto-columns: min(240px, 80vw);
    padding: 2px calc((100vw - 4px * 2 - min(240px, 80vw)) / 2) 8px calc((100vw - 4px * 2 - min(240px, 80vw)) / 2);
  }

  .videoNavVertical {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .videoDotVertical {
    width: 8px;
    height: 8px;
  }

  .videoDot {
    width: 8px;
    height: 8px;
  }

  /* Stats */
  .statsSection {
    padding: 40px 12px;
  }

  .statsSection h2 {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }

  .statsGrid {
    gap: 12px;
  }

  .statCard {
    padding: 20px 16px;
    height: 140px;
  }

  .statNumber {
    font-size: 1.8rem;
    min-width: 160px;
    height: 50px;
  }

  .statLabel {
    font-size: 0.75rem;
  }

  /* Map */
  .mapSection {
    padding: 40px 12px;
  }

  .mapSection h2 {
    font-size: 1.6rem;
  }

  .mapSubtitle {
    font-size: 0.9rem;
    margin-bottom: 32px;
  }

  .mapContainer {
    border-radius: 10px;
    height: 300px;
  }
}
