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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, 'SF Pro Rounded', system-ui, 'Segoe UI', Roboto,
    sans-serif;
  color: #1c1c1e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Language Selector */
.lang-selector {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

[dir="rtl"] .lang-selector {
  right: auto;
  left: 1rem;
}

#lang-picker {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1c1c1e;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%231c1c1e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

[dir="rtl"] #lang-picker {
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  background-position: left 0.75rem center;
}

#lang-picker:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

#lang-picker:focus {
  outline: 2px solid #ff7ba9;
  outline-offset: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #7bd7f5 0%, #a8e6cf 40%, #ffefa1 100%);
  padding: 2rem;
  text-align: center;
}

.hero-content {
  max-width: 600px;
}

.hero-icon-img {
  margin-bottom: 1.5rem;
  border-radius: 26px;
  box-shadow: 0 8px 30px rgba(255, 123, 169, 0.3);
  animation: float 3s ease-in-out infinite;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ff7ba9, #ff5a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.35rem;
  color: #3a3a3c;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: #ff7ba9;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(255, 123, 169, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 123, 169, 0.4);
}

.cta-button:active {
  transform: translateY(0);
}

/* Section Titles */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #1c1c1e;
}

/* Features Section */
.features {
  padding: 5rem 2rem;
  background: #fafafa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 15%, white);
}

.feature-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.95rem;
  color: #5c6b73;
  line-height: 1.5;
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 2rem;
  background: linear-gradient(160deg, #fff8e1 0%, #fff 100%);
}

.steps {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 220px;
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ff7ba9;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 0.95rem;
  color: #5c6b73;
}

/* Download CTA Section */
.download-cta {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(160deg, #7bd7f5 0%, #a8e6cf 50%, #ffefa1 100%);
}

.cta-subtitle {
  font-size: 1.15rem;
  color: #3a3a3c;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  background: #1c1c1e;
  color: #b0b0b0;
  font-size: 0.9rem;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

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

  .section-title {
    font-size: 1.8rem;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .step {
    max-width: 300px;
  }
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .feature-card {
  text-align: right;
}

[dir="rtl"] .feature-emoji {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .step {
  text-align: center;
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .cta-button {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }

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