:root {
  --primary-orange: #f97316;
  --orange-warm: #ea580c;
  --orange-light: #fdba74;
  --orange-dark: #c2410c;
  --bg-gradient: linear-gradient(
    135deg,
    #fbbf24 0%,
    #f97316 35%,
    #ea580c 70%,
    #c2410c 100%
  );
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  color: #333;
}

.header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  padding: 1.2rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.main {
  padding: 1.5rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.desktop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.2rem;
  padding: 1rem 0;
}

.icon {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(15px);
  border-radius: 18px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.icon:hover::before {
  left: 100%;
}

.icon:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.25);
  background: white;
  border-color: var(--primary-orange);
}

.icon img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.icon:hover img {
  transform: scale(1.08);
}

.icon p {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 600;
  color: #444;
  line-height: 1.2;
  margin: 0;
}

.apps-container {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-top: 1rem;
}

.apps-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.app-card {
  background: white;
  border-radius: 16px;
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  min-width: 160px;
  flex: 1;
  max-width: 220px;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.2);
  border-color: var(--primary-orange);
}

.app-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.8rem;
  background: var(--bg-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}
.app-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.app-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.4rem;
}

.app-desc {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.download-btn {
  background: var(--bg-gradient);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  text-decoration: none;
  display: inline-block;
}

.download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.5);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .main {
    padding: 1rem 0.5rem;
  }

  .desktop-grid {
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 1rem;
  }

  .icon {
    height: 115px;
    padding: 1rem 0.6rem;
  }

  .icon img {
    width: 48px;
    height: 48px;
  }

  .apps-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .app-card {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1rem 1rem;
  }

  .desktop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .apps-container {
    padding: 1rem;
  }
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  grid-column: 1 / -1;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--primary-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
