* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #8B5CF6;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --bg-white: #FFFFFF;
  --bg-gray: #F9FAFB;
  --border-color: #E5E7EB;
  --star-color: #FFD700;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header Styles */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  margin-right: 1.5rem;
}

.logo-icon {
  display: flex;
  align-items: center;
}

.logo-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: flex-start;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  gap: 0.75rem;
  width: 300px;
}

.search-icon-left {
  color: #9CA3AF;
  flex-shrink: 0;
  pointer-events: none;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: var(--text-primary);
  flex: 1;
  width: 100%;
}

.search-input::placeholder {
  color: #9CA3AF;
}

.search-input:focus {
  outline: none;
}

.search-container:focus-within {
  background: #E5E7EB;
}

/* Search Results Dropdown */
.search-container {
  position: relative;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-height: 500px;
  overflow-y: auto;
  z-index: 1000;
  display: block;
  border: 1px solid #E5E7EB;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.search-results-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .search-results-dropdown {
    transition-duration: 0.01ms;
  }
}

.search-results-content {
  padding: 0.5rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover {
  background-color: #F3F4F6;
}

.search-result-item .result-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #f3f4f6;
  flex-shrink: 0;
}

.search-result-item .result-info {
  flex: 1;
  min-width: 0;
}

.search-result-item .result-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item .result-category {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.search-results-header {
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #E5E7EB;
}

.search-results-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.search-results-recommended {
  padding: 0.5rem;
}

.search-results-recommended .search-results-header {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 0.5rem;
}

/* Mobile styles for search dropdown - moved to main responsive section */

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: white;
  color: #000000;
  border: 1px solid #E5E7EB;
  padding: 0.625rem 1.25rem;
  border-radius: 24px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.btn-secondary:hover {
  border-color: #D1D5DB;
  background: #F9FAFB;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 50%, #DDD6FE 100%);
  color: #1F2937;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(139,92,246,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 1;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tagline {
  display: inline-block;
  background: #E0EDFF;
  color: #3366CC;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}

.hero-title-part1 {
  color: #1F2937;
  white-space: nowrap;
}

.hero-title-part2 {
  color: #2563EB;
}

.hero-description {
  font-size: 1.125rem;
  color: #9CA3AF;
  max-width: 500px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}


.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.hero-avatars {
  display: flex;
  margin-left: -0.5rem;
}

.hero-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid white;
  margin-left: -0.75rem;
  object-fit: cover;
  display: block;
}

.hero-avatar:first-child {
  margin-left: 0;
}

.hero-stats-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stats-text strong {
  font-size: 0.9375rem;
  color: #1F2937;
  font-weight: 700;
}

.hero-stats-text span {
  font-size: 0.8125rem;
  color: #6B7280;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  display: flex;
  gap: 0.125rem;
}

.star {
  color: #FFD700 !important;
  font-size: 1rem;
}

.hero-rating span {
  color: #1F2937;
  font-weight: 600;
  font-size: 0.9375rem;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: transparent;
  padding: 0;
  border-radius: 16px;
}

.hero-feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-feature-productivity {
  background: #F9FAFB;
}

.hero-feature-design {
  background: #FDF2F8;
}

.hero-feature-security {
  background: #F5F3FF;
}

.hero-feature-performance {
  background: #F0FDF4;
}

.hero-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-feature-icon-blue {
  background: #3B82F6;
}

.hero-feature-icon-pink {
  background: #EC4899;
}

.hero-feature-icon-purple {
  background: #8B5CF6;
}

.hero-feature-icon-green {
  background: #10B981;
}

.hero-feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 0.5rem;
}

.hero-feature-description {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section Styles */
.section {
  padding: 4rem 2rem;
}

/* Explore by Category Section - 缩小高度 */
.section-category {
  padding: 3rem 3rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Category Buttons */
.category-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.category-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  background: #F3F4F6;
  border-radius: 24px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  color: #6B7280;
}

.category-btn:hover {
  background: #E5E7EB;
}

.category-btn:active {
  transform: scale(0.98);
}

.category-btn.active {
  background: #1F2937;
  color: white;
  box-shadow: 0 2px 10px rgba(31, 41, 55, 0.18);
}

/* App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .stat-number {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.app-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.app-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #FFD700;
  color: #000000;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  z-index: 10;
}

.app-screenshot {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  overflow: hidden;
  position: relative;
}

.app-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.app-info {
  padding: 1rem;
  background: white;
  border-radius: 0 0 16px 16px;
}

.app-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.app-icon {
  width: 40px;
  height: 40px;
  background: #3B82F6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.app-header-text {
  flex: 1;
}

.app-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
  color: #000000;
  line-height: 1.3;
}

.app-category {
  color: #9CA3AF;
  font-size: 0.75rem;
  margin: 0;
}

.app-description {
  font-size: 0.75rem;
  color: #1F2937;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid #F3F4F6;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rating-stars {
  font-size: 0.75rem;
}

.rating-value {
  font-size: 0.75rem;
}

.app-downloads {
  font-size: 0.75rem;
  color: #9CA3AF;
}

.rating-stars {
  color: var(--star-color);
  font-size: 0.875rem;
}

.rating-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-item {
  text-align: left;
  padding: 2rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.feature-item-tech {
  background: linear-gradient(135deg, #DBEAFE 0%, #E9D5FF 100%);
}

.feature-item-design {
  background: linear-gradient(135deg, #D1FAE5 0%, #F0FDF4 100%);
}

.feature-item-privacy {
  background: linear-gradient(135deg, #FCE7F3 0%, #F3E8FF 100%);
}

.feature-item-support {
  background: linear-gradient(135deg, #FED7AA 0%, #FFEDD5 100%);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.feature-icon-purple {
  background: #8B5CF6;
}

.feature-icon-green {
  background: #10B981;
}

.feature-icon-magenta {
  background: #EC4899;
}

.feature-icon-orange {
  background: #F97316;
}

.feature-item-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1F2937;
}

.feature-item-description {
  color: #4B5563;
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Stats Section */
.stats-section {
  background: #0F172A;
  padding: 4rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.stat-number-blue {
  color: #3B82F6;
}

.stat-number-green {
  color: #10B981;
}

.stat-number-purple {
  color: #A78BFA;
}

.stat-number-orange {
  color: #F97316;
}

.stat-label {
  font-size: 1rem;
  color: #9CA3AF;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 1;
  pointer-events: none;
}

.cta-section .section-container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white;
}

.cta-description {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.cta-buttons .btn-primary {
  background: white;
  color: #3B82F6;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Footer Styles */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-section .logo-text {
  color: white;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-contact {
  margin-top: 1rem;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
  padding: 0.5rem 0;
}

.footer-email:hover {
  color: white;
}

.footer-email svg {
  flex-shrink: 0;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-start {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  min-width: 0;
}

.footer-badges-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-badge-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-badge-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.footer-badge-link img {
  display: block;
  width: auto;
  max-height: 32px;
  max-width: min(200px, 42vw);
  height: auto;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
  flex-shrink: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Header Mobile */
  .header-container {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .logo-section {
    flex: 1;
    max-width: calc(100% - 60px);
  }
  
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
    order: 2;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
  }
  
  .nav-menu {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    display: none;
    background: white;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 0.5rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    text-align: left;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .header-actions {
    order: 2;
    gap: 0.5rem;
  }
  
  .search-container {
    display: none;
  }
  
  .btn-get-started {
    display: none;
  }
  
  /* Hero Mobile */
  .hero {
    padding: 2rem 1rem;
    min-height: auto;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content {
    gap: 1.25rem;
  }
  
  .hero-tagline {
    font-size: 0.75rem;
    padding: 0.375rem 0.875rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .hero-title-part1,
  .hero-title-part2 {
    display: block;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-actions {
    display: flex;
    gap: 0.75rem;
  }
  
  .btn-hero-primary {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
  
  .hero-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-feature-card {
    padding: 1.25rem;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .hero-avatars {
    margin-left: 0;
  }
  
  .hero-avatar {
    margin-left: -0.5rem;
  }
  
  .hero-avatar:first-child {
    margin-left: 0;
  }
  
  /* Section Mobile */
  .section {
    padding: 2.5rem 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  /* Category Filters Mobile */
  .category-filters {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  
  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  /* App Grid Mobile */
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .app-screenshot {
    height: 150px;
  }
  
  .app-info {
    padding: 0.875rem;
  }
  
  .app-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .app-name {
    font-size: 0.9375rem;
  }
  
  .app-category {
    font-size: 0.6875rem;
  }
  
  .app-description {
    font-size: 0.6875rem;
    margin-bottom: 0.5rem;
  }
  
  /* Features Grid Mobile */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
  
  .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }
  
  .feature-item-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
  
  .feature-item-description {
    font-size: 0.875rem;
  }
  
  /* Testimonials Mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  /* Stats Mobile */
  .stats-section {
    padding: 3rem 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 0.9375rem;
  }
  
  /* CTA Mobile */
  .cta-section {
    padding: 3rem 1rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  /* Footer Mobile */
  .footer {
    padding: 2rem 1rem 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom-start {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.875rem;
  }

  .footer-badges-list {
    justify-content: center;
  }

  .footer-badge-link img {
    max-height: 28px;
    max-width: min(180px, 80vw);
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stats-section {
    padding: 2.5rem 1rem;
  }
  
  .logo-text {
    font-size: 1.125rem;
  }
  
  .app-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-hero-primary {
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
    min-height: 44px; /* Minimum touch target size */
  }
  
  .category-btn {
    min-height: 44px;
    padding: 0.625rem 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  
  .hero-feature-card {
    padding: 1rem;
  }
  
  .app-info {
    padding: 1.25rem;
  }
  
  .testimonial-card {
    padding: 1.25rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn-primary,
  .btn-secondary,
  .btn-hero-primary,
  .category-btn {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
  
  .nav-link {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
}

/* Index homepage: hero entrance + featured grid scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  body.page-index .hero-container .hero-content > *,
  body.page-index .hero-features .hero-feature-card {
    opacity: 0;
    animation: index-hero-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  body.page-index .hero-container .hero-content > *:nth-child(1) { animation-delay: 0ms; }
  body.page-index .hero-container .hero-content > *:nth-child(2) { animation-delay: 70ms; }
  body.page-index .hero-container .hero-content > *:nth-child(3) { animation-delay: 140ms; }
  body.page-index .hero-container .hero-content > *:nth-child(4) { animation-delay: 210ms; }
  body.page-index .hero-container .hero-content > *:nth-child(5) { animation-delay: 280ms; }

  body.page-index .hero-features .hero-feature-card:nth-child(1) { animation-delay: 350ms; }
  body.page-index .hero-features .hero-feature-card:nth-child(2) { animation-delay: 420ms; }
  body.page-index .hero-features .hero-feature-card:nth-child(3) { animation-delay: 490ms; }
  body.page-index .hero-features .hero-feature-card:nth-child(4) { animation-delay: 560ms; }
}

@keyframes index-hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-index #app-grid .app-card.app-card-await-reveal {
  opacity: 0;
  transition: none;
}

body.page-index #app-grid .app-card.app-card-revealed {
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--card-d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  body.page-index .hero-container .hero-content > *,
  body.page-index .hero-features .hero-feature-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.page-index #app-grid .app-card.app-card-await-reveal {
    opacity: 1;
  }

  body.page-index #app-grid .app-card.app-card-revealed {
    transition: none;
  }

  body.page-motion .motion-hero-stagger > *,
  body.page-motion .motion-hero-aside,
  body.page-motion .motion-banner-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.page-motion .motion-await-reveal {
    opacity: 1;
  }

  body.page-motion .motion-revealed {
    transition: none;
  }

  .category-btn:active {
    transform: none;
  }
}

/* Subpages (about, legal, features, showcase, all-apps): hero stagger + scroll fade */
@media (prefers-reduced-motion: no-preference) {
  body.page-motion .motion-hero-stagger > * {
    opacity: 0;
    animation: index-hero-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  body.page-motion .motion-hero-stagger > *:nth-child(1) { animation-delay: 0ms; }
  body.page-motion .motion-hero-stagger > *:nth-child(2) { animation-delay: 70ms; }
  body.page-motion .motion-hero-stagger > *:nth-child(3) { animation-delay: 140ms; }
  body.page-motion .motion-hero-stagger > *:nth-child(4) { animation-delay: 210ms; }
  body.page-motion .motion-hero-stagger > *:nth-child(5) { animation-delay: 280ms; }
  body.page-motion .motion-hero-stagger > *:nth-child(6) { animation-delay: 350ms; }
  body.page-motion .motion-hero-stagger > *:nth-child(7) { animation-delay: 420ms; }
  body.page-motion .motion-hero-stagger > *:nth-child(8) { animation-delay: 490ms; }
  body.page-motion .motion-hero-stagger > *:nth-child(9) { animation-delay: 560ms; }
  body.page-motion .motion-hero-stagger > *:nth-child(10) { animation-delay: 630ms; }
  body.page-motion .motion-hero-stagger > *:nth-child(11) { animation-delay: 700ms; }
  body.page-motion .motion-hero-stagger > *:nth-child(12) { animation-delay: 770ms; }

  body.page-motion .motion-hero-aside {
    opacity: 0;
    animation: index-hero-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 280ms;
  }

  body.page-motion .motion-banner-in {
    opacity: 0;
    animation: index-hero-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}

body.page-motion .motion-await-reveal {
  opacity: 0;
  transition: none;
}

body.page-motion .motion-revealed {
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--motion-d, 0ms);
}

