/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Custom color variables */
:root {
  --primary-1: #6C5CE7;
  --primary-2: #A78BFA;
  --primary-3: #8B5CF6;
  --bg-1: #0B0D17;
  --bg-2: #111427;
  --bg-3: #1A1D35;
  --text-1: #FFFFFF;
  --text-2: #A0A3BD;
  --text-3: #6B7280;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-1);
  color: var(--text-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 13, 23, 0.6);
  border-bottom: 1px solid rgba(108, 92, 231, 0);
}

.navbar.scrolled {
  background: rgba(11, 13, 23, 0.92);
  border-bottom: 1px solid rgba(108, 92, 231, 0.15);
  padding: 0.75rem 2rem;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-1);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.navbar-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-3));
  color: var(--text-1);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(108, 92, 231, 0.5);
}

.btn-download svg {
  width: 18px;
  height: 18px;
}

/* Navbar right group */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.lang-btn:hover {
  background: rgba(108, 92, 231, 0.2);
  color: var(--text-1);
}

.lang-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 120px;
  background: var(--bg-3);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 12px;
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: all 0.2s ease;
}

.lang-option:hover {
  background: rgba(108, 92, 231, 0.15);
  color: var(--text-1);
}

.lang-option.active {
  color: var(--primary-2);
  font-weight: 500;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

/* Ambient glow effects */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, rgba(139, 92, 246, 0.08) 30%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  color: var(--primary-2);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.25s;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary-2), var(--primary-1), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.4s;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.55s;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  border-radius: 14px;
  background: var(--text-1);
  color: var(--bg-1);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-appstore:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

.btn-appstore svg {
  width: 24px;
  height: 24px;
}

.btn-appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-appstore-label {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.7;
}

.btn-appstore-store {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Floating particles / decorative dots */
.hero-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.2);
  animation: float 6s ease-in-out infinite;
}

.floating-dot:nth-child(1) {
  width: 6px; height: 6px;
  top: 20%; left: 15%;
  animation-delay: 0s;
}

.floating-dot:nth-child(2) {
  width: 4px; height: 4px;
  top: 35%; right: 20%;
  animation-delay: 1s;
  background: rgba(167, 139, 250, 0.25);
}

.floating-dot:nth-child(3) {
  width: 8px; height: 8px;
  bottom: 30%; left: 10%;
  animation-delay: 2s;
  background: rgba(139, 92, 246, 0.15);
}

.floating-dot:nth-child(4) {
  width: 5px; height: 5px;
  top: 60%; right: 12%;
  animation-delay: 3s;
}

.floating-dot:nth-child(5) {
  width: 3px; height: 3px;
  top: 15%; right: 30%;
  animation-delay: 4s;
  background: rgba(167, 139, 250, 0.3);
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: 6rem 2rem 8rem;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.2), transparent);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 300;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 20px;
  background: rgba(26, 29, 53, 0.6);
  border: 1px solid rgba(108, 92, 231, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  /* Animation initial state */
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(108, 92, 231, 0.1);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-1);
  position: relative;
  z-index: 1;
}

.feature-icon-transcribe {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(139, 92, 246, 0.15));
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.15);
}

.feature-icon-translate {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(108, 92, 231, 0.15));
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.15);
}

.feature-icon-sync {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.feature-icon-files {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.1));
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 3rem 2rem;
  background: rgba(11, 13, 23, 0.95);
  border-top: 1px solid rgba(108, 92, 231, 0.08);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-2);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1.25rem;
  }

  .navbar.scrolled {
    padding: 0.6rem 1.25rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
    min-height: auto;
    min-height: 90vh;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .features {
    padding: 4rem 1.25rem 5rem;
  }

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

  .feature-card {
    padding: 1.5rem;
  }

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

  .section-header {
    margin-bottom: 2.5rem;
  }

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

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

  .btn-appstore {
    padding: 0.75rem 1.5rem;
  }
}
