/* =============================================
   APPS DETAIL PAGE — apps-detail.css
   ============================================= */

/* === APP SHOWCASE SECTION === */
.app-showcase {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.app-showcase--alt {
  background: var(--bg2);
}

/* === ANIMATED BACKGROUND === */
.app-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Invoice Fly — warm blue/indigo */
.app-bg--invoice .bg-orb1 {
  position: absolute; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  top: -200px; right: -150px;
  animation: bgPulse 8s ease-in-out infinite;
}
.app-bg--invoice .bg-orb2 {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  bottom: -100px; left: 100px;
  animation: bgPulse 10s 2s ease-in-out infinite;
}

/* Summary AI — purple/violet */
.app-bg--summary .bg-orb1 {
  position: absolute; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
  top: -150px; left: -200px;
  animation: bgPulse 9s ease-in-out infinite;
}
.app-bg--summary .bg-orb2 {
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
  bottom: -50px; right: 200px;
  animation: bgPulse 7s 3s ease-in-out infinite;
}

/* Cleaner GO — teal/emerald */
.app-bg--cleaner .bg-orb1 {
  position: absolute; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: bgPulse 10s ease-in-out infinite;
}
.app-bg--cleaner .bg-orb2 {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  bottom: -100px; left: 50px;
  animation: bgPulse 8s 1.5s ease-in-out infinite;
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

@keyframes bgPulse {
  0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
  50% { transform: scale(1.1) translateY(-20px); opacity: 0.7; }
}

/* === FLOATING ELEMENTS === */
.float-el {
  position: absolute;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}
.fe1 { top: 15%; right: 5%;  animation: floatEl 7s 0s   ease-in-out infinite; }
.fe2 { top: 35%; right: 2%;  animation: floatEl 8s 1.5s ease-in-out infinite; }
.fe3 { bottom: 30%; right: 4%; animation: floatEl 6s 3s   ease-in-out infinite; }
.fe4 { bottom: 15%; right: 8%; animation: floatEl 9s 0.8s ease-in-out infinite; }

.app-showcase--alt .fe1 { right: auto; left: 5%; }
.app-showcase--alt .fe2 { right: auto; left: 2%; }
.app-showcase--alt .fe3 { right: auto; left: 4%; }
.app-showcase--alt .fe4 { right: auto; left: 8%; }

@keyframes floatEl {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(1deg); }
  66%       { transform: translateY(6px) rotate(-1deg); }
}

/* === INNER LAYOUT === */
.app-showcase-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 0 24px;
}

/* === APP INFO COLUMN === */
.app-info { }

.app-icon-real {
  width: 100px; height: 100px;
  margin-bottom: 24px;
}
.app-icon-real img {
  width: 100%; height: 100%;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
}

.app-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Per-section accent colors */
#invoice-fly .app-label  { color: #818cf8; }
#summary-ai  .app-label  { color: #c084fc; }
#cleaner-go  .app-label  { color: #34d399; }

.app-title {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1.0;
  margin-bottom: 6px;
}
.app-tagline {
  font-size: 17px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 20px;
}
.app-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.stars-row { display: flex; gap: 2px; }
.star { color: #fbbf24; font-size: 18px; line-height: 1; }
.rating-score { font-size: 20px; font-weight: 800; }
.rating-total { font-size: 13px; color: var(--muted); }
.app-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 460px;
}

/* === STORE BUTTONS === */
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.store-btn {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.store-btn:hover { transform: translateY(-2px); opacity: 0.85; }
.store-btn img,
.store-btn svg {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.store-ios-only {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.store-ios-only::before { content: "📱"; }

/* === FEATURES COLUMN === */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feat-card {
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Invoice Fly — blue/indigo gradients */
#invoice-fly .feat-card:nth-child(1) { background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(79,70,229,0.06)); border-color: rgba(99,102,241,0.18); }
#invoice-fly .feat-card:nth-child(2) { background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(37,99,235,0.05)); border-color: rgba(59,130,246,0.16); }
#invoice-fly .feat-card:nth-child(3) { background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(109,40,217,0.05)); border-color: rgba(139,92,246,0.16); }
#invoice-fly .feat-card:nth-child(4) { background: linear-gradient(135deg, rgba(6,182,212,0.10), rgba(8,145,178,0.05)); border-color: rgba(6,182,212,0.16); }
#invoice-fly .feat-card:nth-child(5) { background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(59,130,246,0.06)); border-color: rgba(99,102,241,0.14); }
#invoice-fly .feat-card:nth-child(6) { background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(5,150,105,0.05)); border-color: rgba(16,185,129,0.14); }
#invoice-fly .feat-card:hover { border-color: rgba(129,140,248,0.5); }

/* Summary AI — purple/violet gradients */
#summary-ai .feat-card:nth-child(1) { background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(126,34,206,0.06)); border-color: rgba(168,85,247,0.18); }
#summary-ai .feat-card:nth-child(2) { background: linear-gradient(135deg, rgba(236,72,153,0.09), rgba(190,24,93,0.05)); border-color: rgba(236,72,153,0.15); }
#summary-ai .feat-card:nth-child(3) { background: linear-gradient(135deg, rgba(139,92,246,0.11), rgba(109,40,217,0.06)); border-color: rgba(139,92,246,0.17); }
#summary-ai .feat-card:nth-child(4) { background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(79,70,229,0.05)); border-color: rgba(99,102,241,0.16); }
#summary-ai .feat-card:nth-child(5) { background: linear-gradient(135deg, rgba(168,85,247,0.09), rgba(217,70,239,0.05)); border-color: rgba(168,85,247,0.14); }
#summary-ai .feat-card:nth-child(6) { background: linear-gradient(135deg, rgba(6,182,212,0.09), rgba(14,165,233,0.05)); border-color: rgba(6,182,212,0.14); }
#summary-ai .feat-card:hover { border-color: rgba(192,132,252,0.5); }

/* Cleaner GO — teal/emerald gradients */
#cleaner-go .feat-card:nth-child(1) { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(5,150,105,0.06)); border-color: rgba(16,185,129,0.18); }
#cleaner-go .feat-card:nth-child(2) { background: linear-gradient(135deg, rgba(6,182,212,0.11), rgba(8,145,178,0.05)); border-color: rgba(6,182,212,0.17); }
#cleaner-go .feat-card:nth-child(3) { background: linear-gradient(135deg, rgba(52,211,153,0.10), rgba(16,185,129,0.05)); border-color: rgba(52,211,153,0.16); }
#cleaner-go .feat-card:nth-child(4) { background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(22,163,74,0.05)); border-color: rgba(34,197,94,0.15); }
#cleaner-go .feat-card:nth-child(5) { background: linear-gradient(135deg, rgba(16,185,129,0.09), rgba(6,182,212,0.06)); border-color: rgba(16,185,129,0.14); }
#cleaner-go .feat-card:nth-child(6) { background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(16,185,129,0.06)); border-color: rgba(99,102,241,0.13); }
#cleaner-go .feat-card:hover { border-color: rgba(52,211,153,0.5); }

.feat-ico { font-size: 28px; display: block; margin-bottom: 10px; }
.feat-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #f0f0f0; }
.feat-card p  { font-size: 13px; color: rgba(200,200,210,0.75); line-height: 1.5; }

/* === HOME PAGE app-card tweaks === */
.app-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-primary.btn-sm { padding: 9px 18px; font-size: 13px; }
.apps-footer-link { text-align: center; margin-top: 48px; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .app-showcase-inner { grid-template-columns: 1fr; gap: 48px; }
  .app-showcase--alt .app-info { order: -1; }
  .float-el { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .app-showcase--alt .fe1,
  .app-showcase--alt .fe2,
  .app-showcase--alt .fe3,
  .app-showcase--alt .fe4 { display: none; }
}
