/*==============================================
   AURA MARKET RESEARCH - App Download Banner
   Advanced, Animated App Promo Section
=============================================*/

/* --- App Banner Section --- */
.app-banner-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: var(--gradient-navy);
  color: var(--white);
}

.app-banner-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(39,167,207,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: appBannerPulse 6s ease-in-out infinite;
}

.app-banner-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,185,232,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: appBannerPulse 8s ease-in-out infinite 1s;
}

@keyframes appBannerPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Grid Overlay */
.app-banner-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Floating Particles */
.app-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.app-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0;
  animation: appParticleFloat 4s ease-in-out infinite;
}

.app-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 5s; }
.app-particle:nth-child(2) { left: 25%; top: 70%; animation-delay: 0.5s; animation-duration: 4.5s; }
.app-particle:nth-child(3) { left: 45%; top: 15%; animation-delay: 1s; animation-duration: 6s; }
.app-particle:nth-child(4) { left: 60%; top: 60%; animation-delay: 1.5s; animation-duration: 5.5s; }
.app-particle:nth-child(5) { left: 75%; top: 30%; animation-delay: 0.3s; animation-duration: 4s; }
.app-particle:nth-child(6) { left: 85%; top: 75%; animation-delay: 0.8s; animation-duration: 5s; }
.app-particle:nth-child(7) { left: 35%; top: 85%; animation-delay: 1.2s; animation-duration: 6.5s; }
.app-particle:nth-child(8) { left: 92%; top: 45%; animation-delay: 2s; animation-duration: 4.2s; }

@keyframes appParticleFloat {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  20% { opacity: 0.8; transform: scale(1); }
  80% { opacity: 0.3; }
  100% { transform: translateY(-120px) scale(0); opacity: 0; }
}

/* Connection Lines */
.app-connection-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.app-connection-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(39,167,207,0.15), transparent);
  animation: appLineMove 4s ease-in-out infinite;
}

@keyframes appLineMove {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Container Layout */
.app-banner-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Left Content */
.app-banner-content {
  position: relative;
  z-index: 3;
}

.app-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(39,167,207,0.15);
  border: 1px solid rgba(39,167,207,0.3);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
  animation: appBadgeGlow 3s ease-in-out infinite;
}

.app-banner-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: appBadgeDotPulse 2s ease-in-out infinite;
}

@keyframes appBadgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,167,207,0.2); }
  50% { box-shadow: 0 0 20px 4px rgba(39,167,207,0.15); }
}

@keyframes appBadgeDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.app-banner-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.app-banner-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-banner-desc {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}

/* Feature List */
.app-banner-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.app-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.app-feature-item:hover {
  background: rgba(39,167,207,0.1);
  border-color: rgba(39,167,207,0.2);
  transform: translateX(6px);
}

.app-feature-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 10px;
  color: var(--white);
  font-size: 1rem;
}

.app-feature-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

/* Store Buttons */
.app-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.app-store-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.app-store-btn:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(39,167,207,0.3);
}

.app-store-btn:hover::before {
  opacity: 1;
}

.app-store-btn > * {
  position: relative;
  z-index: 1;
}

.app-store-btn i {
  font-size: 1.6rem;
}

.app-store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-store-btn-text small {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.7;
}

.app-store-btn-text span {
  font-weight: 700;
  font-size: 0.95rem;
}

/* QR Code / Extra Info */
.app-banner-extra {
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-qr-box {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.app-qr-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.app-qr-text strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

/* Right - Phone Mockup */
.app-banner-visual {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-phone-wrapper {
  position: relative;
  width: 300px;
  height: 600px;
  perspective: 1000px;
}

.app-phone {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 40px;
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 30px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(39,167,207,0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
  animation: appPhoneFloat 4s ease-in-out infinite;
}

@keyframes appPhoneFloat {
  0%, 100% { transform: translateY(0) rotateY(-5deg); }
  50% { transform: translateY(-15px) rotateY(-5deg); }
}

/* Phone Notch */
.app-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 5;
}

.app-phone-notch::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 18px;
  width: 8px;
  height: 8px;
  background: #1a1a2e;
  border-radius: 50%;
  border: 1.5px solid #333;
}

/* Phone Screen */
.app-phone-screen {
  position: absolute;
  top: 30px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: linear-gradient(180deg, #0a1628 0%, #0f2240 50%, #0a1628 100%);
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  padding: 24px 16px;
}

/* App Logo on Screen */
.app-screen-logo {
  text-align: center;
  margin-bottom: 20px;
}

.app-screen-logo-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(39,167,207,0.4);
}

.app-screen-logo-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.app-screen-logo-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
}

/* Screen Cards */
.app-screen-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  animation: appScreenCardFade 0.6s ease forwards;
  opacity: 0;
}

.app-screen-card:nth-child(2) { animation-delay: 0.2s; }
.app-screen-card:nth-child(3) { animation-delay: 0.4s; }
.app-screen-card:nth-child(4) { animation-delay: 0.6s; }

@keyframes appScreenCardFade {
  to { opacity: 1; transform: translateY(0); }
}

.app-screen-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.app-screen-card-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--white);
}

.app-screen-card-icon.blue { background: linear-gradient(135deg, #27A7CF, #00B9E8); }
.app-screen-card-icon.green { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.app-screen-card-icon.purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.app-screen-card-icon.orange { background: linear-gradient(135deg, #f39c12, #e67e22); }

.app-screen-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
}

.app-screen-card-sub {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
}

.app-screen-card-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.app-screen-card-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-primary);
  transition: width 1s ease;
}

/* Phone Glow Ring */
.app-phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,167,207,0.2) 0%, transparent 70%);
  animation: appPhoneGlow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes appPhoneGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* Floating Stat Cards around Phone */
.app-float-card {
  position: absolute;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: appFloatCard 5s ease-in-out infinite;
  z-index: 4;
}

.app-float-card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--white);
}

.app-float-card-icon.fc-blue { background: rgba(39,167,207,0.3); }
.app-float-card-icon.fc-green { background: rgba(46,204,113,0.3); }
.app-float-card-icon.fc-orange { background: rgba(243,156,18,0.3); }

.app-float-card-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.app-float-card-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
}

.app-float-card-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.app-float-card-2 {
  bottom: 25%;
  left: -15%;
  animation-delay: 1.5s;
}

.app-float-card-3 {
  top: 55%;
  right: -18%;
  animation-delay: 3s;
}

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

/* App Stats Bar */
.app-banner-stats {
  display: flex;
  gap: 40px;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.app-stat {
  text-align: center;
}

.app-stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1.2;
}

.app-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .app-banner-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .app-banner-content {
    order: 1;
  }

  .app-banner-visual {
    order: 0;
  }

  .app-banner-title {
    font-size: 2.4rem;
  }

  .app-banner-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .app-banner-features {
    align-items: center;
  }

  .app-feature-item {
    max-width: 420px;
    width: 100%;
  }

  .app-banner-buttons {
    justify-content: center;
  }

  .app-banner-extra {
    justify-content: center;
  }

  .app-banner-stats {
    justify-content: center;
  }

  .app-phone-wrapper {
    width: 240px;
    height: 480px;
  }

  .app-float-card-1 {
    right: -5%;
  }

  .app-float-card-2 {
    left: -5%;
  }

  .app-float-card-3 {
    right: -10%;
  }
}

@media (max-width: 640px) {
  .app-banner-section {
    padding: 60px 0;
  }

  .app-banner-title {
    font-size: 1.8rem;
  }

  .app-banner-desc {
    font-size: 0.95rem;
  }

  .app-banner-buttons {
    flex-direction: column;
    align-items: center;
  }

  .app-store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .app-banner-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .app-phone-wrapper {
    width: 200px;
    height: 400px;
  }

  .app-phone-notch {
    width: 90px;
    height: 22px;
  }

  .app-phone-screen {
    padding: 18px 10px;
  }

  .app-float-card {
    display: none;
  }
}
