/* ============================================================
   PalPal Home Page — Specific Styles
   Requires: newpal-theme.css
   ============================================================ */

/* ── Hero ── */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  max-width: 540px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--brand-glass);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--brand-glow); }
  70% { box-shadow: 0 0 0 10px rgba(84,19,66,0); }
  100% { box-shadow: 0 0 0 0 rgba(84,19,66,0); }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}
.text-highlight {
  color: var(--brand);
}
.hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Hero Visual (Glass Mockup) */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.glass-mockup {
  width: 80%;
  height: 80%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform var(--transition);
}
.glass-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.mockup-header {
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 6px;
}
.mockup-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mockup-line {
  height: 12px;
  background: var(--brand-glass-hover);
  border-radius: 6px;
}
.w-70 { width: 70%; }
.w-40 { width: 40%; }
.mockup-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: auto;
}
.mockup-card {
  height: 80px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ── Stats ── */
.stats-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}
.stats-grid {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brand-glass);
}
.stat-card {
  text-align: center;
  position: relative;
}
.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--brand-glass);
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Ecosystem (Apps) ── */
.ecosystem-section {
  background: rgba(255,255,255,0.4);
}

.filter-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--brand-glass);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.filter-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.filter-btn.active {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 4px 12px var(--brand-glow);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  align-items: start;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--brand-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-glass-hover);
}
.app-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-glass);
  color: var(--brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--transition);
}
.app-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--brand);
  color: var(--surface);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.card-tag.live {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}
.card-tag.soon {
  background: rgba(234, 179, 8, 0.1);
  color: #92400e;
}
.card-tag.dev {
  background: var(--brand-glass);
  color: var(--brand);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}
.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.card-actions.horizontal {
  flex-direction: row;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  flex: 1;
  border: none;
}
.btn-fill {
  background: var(--brand);
  color: var(--surface) !important;
}
.btn-fill:hover {
  background: var(--brand-dark);
}
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand-glass-hover);
}
.btn-outline:hover {
  border-color: var(--brand);
  background: var(--brand-glass);
}
.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Community ── */
.community-glass {
  background: var(--brand);
  border-radius: var(--radius-lg);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  color: var(--surface);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.community-glass::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 50%;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
  pointer-events: none;
}
.community-content .eyebrow {
  background: rgba(255,255,255,0.2);
  color: var(--surface);
}
.community-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.community-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
}
.benefit-list {
  list-style: none;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.benefit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.benefit-list svg {
  width: 20px;
  height: 20px;
  color: #27c93f;
}
.community-content .btn-primary {
  background: var(--surface);
  color: var(--brand) !important;
  border-color: var(--surface);
}
.community-content .btn-primary:hover {
  background: transparent;
  color: var(--surface) !important;
}

.image-wrapper {
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius-md);
  transform: rotate(2deg);
  transition: transform var(--transition);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.image-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}
.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

/* ── Support ── */
.support-content {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--brand-glass);
  border-radius: var(--radius-lg);
  padding: 5rem 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}
.support-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-glass);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}
.support-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}
.tier-card {
  border: 1px solid var(--brand-glass);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition);
}
.tier-card:hover {
  border-color: var(--brand);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.featured-tier {
  background: var(--brand-glass);
  border-color: var(--brand-glass-hover);
  transform: scale(1.05);
}
.featured-tier:hover {
  transform: scale(1.05) translateY(-5px);
}
.tier-card .emoji,
.tier-card .emoji-svg {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}
.tier-card .emoji-svg svg {
  width: 32px;
  height: 32px;
  stroke: var(--brand);
}
.tier-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.tier-card .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .glass-mockup {
    width: 100%;
    transform: none;
  }
  .glass-mockup:hover {
    transform: translateY(-10px);
  }
  .community-glass {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .stat-card:nth-child(2)::after { display: none; }
  
  .support-tiers {
    grid-template-columns: 1fr;
  }
  .featured-tier {
    transform: none;
  }
  .featured-tier:hover {
    transform: translateY(-5px);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card::after { display: none !important; }
  
  .hero-actions {
    flex-direction: column;
  }
}
