/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --primary-hue: 239;
  --primary: hsl(var(--primary-hue), 84%, 67%);
  --primary-dark: hsl(var(--primary-hue), 84%, 55%);
  --primary-light: hsl(var(--primary-hue), 84%, 95%);

  --accent-hue: 199;
  --accent: hsl(var(--accent-hue), 89%, 48%);

  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-subtle: linear-gradient(135deg, hsl(var(--primary-hue), 84%, 97%) 0%, hsl(var(--accent-hue), 89%, 97%) 100%);

  --text-primary: hsl(220, 25%, 10%);
  --text-secondary: hsl(220, 15%, 40%);
  --text-muted: hsl(220, 10%, 60%);

  --bg-primary: hsl(0, 0%, 100%);
  --bg-secondary: hsl(220, 20%, 98%);
  --bg-elevated: hsl(0, 0%, 100%);

  --border-color: hsl(220, 20%, 92%);
  --border-radius: 12px;
  --border-radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 5rem;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.3;
}

/* ===== Utilities ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Language Navigation ===== */
.lang-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.lang-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.github-link:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-secondary);
  padding: 0.25rem;
  border-radius: 8px;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ===== Redirect Banner ===== */
.redirect-banner {
  margin-top: 60px;
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 0;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  }

  50% {
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.5);
  }
}

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

.banner-icon {
  font-size: 1.5rem;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.banner-text {
  font-weight: 500;
  font-size: 1rem;
}

.banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.banner-link:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateX(3px);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-subtle);
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.logo-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
  animation: subtle-bounce 3s ease-in-out infinite;
}

@keyframes subtle-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.logo-text {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* ===== Sections ===== */
.section {
  padding: var(--section-padding) 0;
}

.section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-text {
  text-align: center;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

/* ===== About Section ===== */
.about {
  background: var(--bg-secondary);
}

/* ===== Apps Section ===== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.app-card {
  background: var(--bg-elevated);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card.featured {
  border-color: var(--primary);
}

.app-card.featured::before {
  opacity: 1;
}

.app-card.coming-soon {
  opacity: 0.8;
}

.app-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.app-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.app-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.app-link:hover {
  color: white;
  transform: translateX(3px);
  box-shadow: var(--shadow-md);
}

.coming-badge {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== Why PWA Section ===== */
.why-pwa {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  text-align: center;
  padding: 2rem;
  background: var(--bg-elevated);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.copyright a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.copyright a:hover {
  color: white;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }

  .logo-text {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section h2 {
    font-size: 1.75rem;
  }

  .banner-content {
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .lang-nav .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}