:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --shadow-sm: 0 4px 24px rgba(37, 99, 235, 0.08);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.16);
  --radius: 20px;
  --radius-lg: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Background decorations */
.bg-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(147, 197, 253, 0.25), transparent 50%),
    linear-gradient(180deg, #f0f7ff 0%, #ffffff 45%, #f8fbff 100%);
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--blue-400);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}

.sparkle::before,
.sparkle::after {
  content: '';
  position: absolute;
  background: var(--blue-400);
  border-radius: 1px;
}

.sparkle::before { width: 14px; height: 2px; top: 2px; left: -4px; opacity: 0.6; }
.sparkle::after { width: 2px; height: 14px; top: -4px; left: 2px; opacity: 0.6; }

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, black 0%, transparent 80%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.brand-versions {
  font-size: 0.72rem;
  color: var(--blue-600);
  font-weight: 600;
  margin-top: 2px;
}

.download-row {
  margin-bottom: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue-600); }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 32px 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-soft);
  cursor: pointer;
  min-width: 130px;
}

.lang-select:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

html[dir="rtl"] .site-header .container,
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .feature-row {
  direction: rtl;
}

html[dir="rtl"] .lang-select {
  background-position: left 10px center;
  padding: 8px 12px 8px 32px;
}

.lang-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 3px;
  border: 1px solid #e2e8f0;
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle button.active {
  background: var(--navy);
  color: var(--white);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-700);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 18px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--blue-600), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ios {
  background: var(--navy);
  color: var(--white);
}

.btn-apk {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
}

.btn-download svg { flex-shrink: 0; }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.version-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.version-pill strong {
  color: var(--navy);
  font-weight: 700;
}

.version-pill.unavailable {
  opacity: 0.55;
}

.btn-download.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.stat-item .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.stat-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Phone mockup */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 9 / 19.5;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #333;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #f8fafc;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.float-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-soft);
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

.float-badge .icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  flex-shrink: 0;
}

.float-badge.b1 { top: 8%; left: -8%; animation-delay: 0s; }
.float-badge.b2 { top: 38%; left: -12%; animation-delay: 0.5s; }
.float-badge.b3 { top: 12%; right: -10%; animation-delay: 1s; }
.float-badge.b4 { top: 48%; right: -14%; animation-delay: 1.5s; }

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

/* Feature sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--navy);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--navy);
}

.feature-text p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.75;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-soft);
}

.feature-list .check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.screenshot-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: linear-gradient(160deg, #e0f2fe, #f0f9ff);
  max-width: 340px;
  margin: 0 auto;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}

.feature-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Screenshot gallery */
.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-200) transparent;
}

.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--blue-200); border-radius: 999px; }

.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(260px, 70vw);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s;
  cursor: pointer;
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

.gallery-caption {
  padding: 12px 14px;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-soft);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15), transparent 50%);
  pointer-events: none;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 1.05rem;
  position: relative;
}

.cta-band .download-row {
  justify-content: center;
  position: relative;
}

.cta-band .btn-ios {
  background: var(--white);
  color: var(--blue-700);
}

.cta-band .btn-apk {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

/* Languages */
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.lang-chip {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-soft);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-name { color: var(--white); }
.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

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

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.social-links a:hover { background: rgba(255, 255, 255, 0.16); }

.disclaimer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 24px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-height: 90vh;
  max-width: min(400px, 90vw);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-visual { order: unset; }

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

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

  .float-badge { display: none; }

  .hero { padding: 48px 0 64px; }
  .hero-visual { order: -1; }

  .phone-frame { width: min(240px, 65vw); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    gap: 16px;
  }

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

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

  .cta-band { padding: 40px 24px; }

  .download-row { flex-direction: column; }
  .btn-download { justify-content: center; width: 100%; }
}
