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

@keyframes gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-bg {
  background: linear-gradient(-45deg, #0ea5e9, #8b5cf6, #06b6d4, #3b82f6);
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
}

.text-gradient {
  background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.5);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.stat-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.screenshot-shadow {
  box-shadow: 0 25px 80px -20px rgba(0, 0, 0, 0.4);
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

html {
  scroll-behavior: smooth;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5) !important;
  width: 12px !important;
  height: 12px !important;
}

.swiper-pagination-bullet-active {
  background: #0ea5e9 !important;
}

.module-card {
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.module-card:hover::before {
  left: 100%;
}

.feature-image {
  transition: transform 0.5s ease;
}

.feature-image:hover {
  transform: scale(1.02);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0ea5e9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Responsive improvements */
@media (max-width: 640px) {
  .swiper-slide {
    padding: 0 0.5rem;
  }
  
  .feature-image {
    max-height: 300px;
    object-fit: cover;
  }
  
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .module-card {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .screenshot-shadow {
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.3);
  }
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Better touch targets for mobile */
@media (max-width: 640px) {
  a, button {
    min-height: 44px;
  }
}

/* ==========================================
   MacBook Pro Mockup - CSS Pure
   ========================================== */
.device-macbook {
  position: relative;
  width: 100%;
}

.macbook-lid {
  background: linear-gradient(180deg, #2c2c2e 0%, #1c1c1e 100%);
  border-radius: 18px 18px 0 0;
  padding: 12px 12px 0 12px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); /* Sombra aqui em vez de filter */
}

.macbook-camera {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #1a3a1a 0%, #0a0a0a 70%);
  border-radius: 50%;
  border: 1px solid #3a3a3c;
  z-index: 5;
}

.macbook-screen-wrapper {
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.macbook-screen-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0f172a;
}

.macbook-bottom {
  background: linear-gradient(180deg, #c8c8ca 0%, #a8a8aa 30%, #989898 100%);
  height: 14px;
  border-radius: 0 0 4px 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.macbook-notch-bottom {
  width: 22%;
  height: 5px;
  background: linear-gradient(180deg, #888 0%, #666 100%);
  border-radius: 0 0 4px 4px;
  margin-top: -2px;
}

.macbook-base-shadow {
  height: 8px;
  margin: 0 15%;
  background: linear-gradient(180deg, #888 0%, transparent 100%);
  border-radius: 0 0 50% 50%;
  opacity: 0.3;
}

/* ==========================================
   iPhone 15 Pro Mockup - CSS Pure
   ========================================== */
.device-iphone {
  position: relative;
}

.iphone-frame-outer {
  background: linear-gradient(145deg, #4a4a4c 0%, #2a2a2c 50%, #1a1a1c 100%);
  border-radius: 22px;
  padding: 6px;
  position: relative;
  border: 2px solid #5c5c5e;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); /* Sombra aqui em vez de filter */
}

.iphone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: 14px;
  background: #000;
  border-radius: 10px;
  z-index: 10;
}

.iphone-dynamic-island::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, #1a1a1a 30%, #0d2d0d 70%);
  border-radius: 50%;
}

.iphone-screen-wrapper {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
}

.iphone-screen-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.iphone-home-bar {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  z-index: 10;
}

/* iPhone Side Buttons */
.iphone-btn-silent {
  position: absolute;
  left: -3px;
  top: 18%;
  width: 3px;
  height: 8%;
  background: linear-gradient(90deg, #3a3a3c, #5a5a5c);
  border-radius: 2px 0 0 2px;
}

.iphone-btn-volume-up {
  position: absolute;
  left: -3px;
  top: 28%;
  width: 3px;
  height: 12%;
  background: linear-gradient(90deg, #3a3a3c, #5a5a5c);
  border-radius: 2px 0 0 2px;
}

.iphone-btn-volume-down {
  position: absolute;
  left: -3px;
  top: 42%;
  width: 3px;
  height: 12%;
  background: linear-gradient(90deg, #3a3a3c, #5a5a5c);
  border-radius: 2px 0 0 2px;
}

.iphone-btn-power {
  position: absolute;
  right: -3px;
  top: 30%;
  width: 3px;
  height: 15%;
  background: linear-gradient(270deg, #3a3a3c, #5a5a5c);
  border-radius: 0 2px 2px 0;
}

/* ==========================================
   Responsive Mockups
   ========================================== */
@media (max-width: 768px) {
  .macbook-lid {
    border-radius: 12px 12px 0 0;
    padding: 8px 8px 0 8px;
  }
  
  .macbook-camera {
    width: 6px;
    height: 6px;
    top: 4px;
  }
  
  .macbook-screen-wrapper {
    border-radius: 4px;
  }
  
  .macbook-bottom {
    height: 10px;
  }
  
  .macbook-notch-bottom {
    height: 4px;
  }
  
  .macbook-base-shadow {
    height: 5px;
  }
  
  .iphone-frame-outer {
    border-radius: 18px;
    padding: 4px;
  }
  
  .iphone-screen-wrapper {
    border-radius: 14px;
  }
  
  .iphone-dynamic-island {
    height: 10px;
    top: 8px;
  }
  
  .iphone-btn-silent,
  .iphone-btn-volume-up,
  .iphone-btn-volume-down,
  .iphone-btn-power {
    display: none;
  }
}

@media (max-width: 480px) {
  .macbook-lid {
    border-radius: 8px 8px 0 0;
    padding: 6px 6px 0 6px;
  }
  
  .macbook-camera {
    width: 4px;
    height: 4px;
    top: 3px;
  }
  
  .macbook-bottom {
    height: 8px;
  }
  
  .macbook-base-shadow {
    height: 4px;
  }
}
