/* ===== Design System ===== */
:root {
  --bg: #000000;
  --card: #111111;
  --card2: #1A1A1A;
  --accent: #FF4D3D;
  --accent2: #FF6B5B;
  --accent3: #FF8A65;
  --text: #FFFFFF;
  --text2: #9CA3AF;
  --text3: #4B5563;
  --border: #1F1F1F;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Animations ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,77,61,0.35);
}
.btn-primary:hover {
  background: var(--accent2);
  box-shadow: 0 8px 30px rgba(255,77,61,0.45);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accent { color: var(--accent); }

/* ===== Section Styling ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,77,61,0.1);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 18px;
  color: var(--text2);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,77,61,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cta { display: inline-flex; }
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease;
  line-height: 1;
}
.lang-btn .flag { font-size: 22px; line-height: 1; transition: transform 0.2s; }
.lang-btn:hover .flag { transform: scale(1.15); }
.lang-btn .lang-label, .lang-btn .chevron { display: none; }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #161616;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 6px;
  min-width: 160px;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: langDropIn 0.15s ease;
}
@keyframes langDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lang-dropdown.open { display: flex; flex-direction: column; gap: 2px; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.15s;
}
.lang-option .flag { font-size: 20px; line-height: 1; }
.lang-option:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.lang-option.active { background: rgba(255,77,61,0.1); color: var(--accent); font-weight: 600; }

/* ===== RTL Support ===== */
html[dir="rtl"] { direction: rtl; }
html[dir="rtl"] .nav-content { flex-direction: row-reverse; }
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .hero-content { direction: rtl; }
html[dir="rtl"] .hero-btns { flex-direction: row-reverse; }
html[dir="rtl"] .feature-card { text-align: right; }
html[dir="rtl"] .step { text-align: center; }
html[dir="rtl"] .footer-links { flex-direction: row-reverse; }
html[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
html[dir="rtl"] .lang-option { text-align: right; flex-direction: row-reverse; }
html[dir="rtl"] .phone-save-item { flex-direction: row-reverse; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(255,77,61,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Phone Mockup ===== */
.hero-phone {
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--card);
  border-radius: 40px;
  border: 3px solid #222;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 100px rgba(255,77,61,0.08);
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #0a0a0f;
  border-radius: 30px;
  padding: 16px;
  overflow: hidden;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 20px;
  padding: 0 4px;
}
.status-icons { font-size: 8px; letter-spacing: 2px; }
.phone-header {
  margin-bottom: 20px;
}
.phone-greeting {
  font-size: 12px;
  color: var(--text3);
  display: block;
  margin-bottom: 4px;
}
.phone-header h3 {
  font-size: 22px;
  font-weight: 800;
}
.phone-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.phone-card {
  background: var(--card2);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.phone-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-gradient);
}
.phone-card-icon { font-size: 20px; margin-bottom: 4px; }
.phone-card span { font-size: 11px; font-weight: 600; color: var(--text2); }
.phone-save-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card2);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}
.phone-save-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.phone-save-text { flex: 1; }
.phone-save-title {
  width: 80%;
  height: 8px;
  background: #2a2a2a;
  border-radius: 4px;
  margin-bottom: 6px;
}
.phone-save-sub {
  width: 60%;
  height: 6px;
  background: #1f1f1f;
  border-radius: 3px;
}
.phone-save-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,77,61,0.12);
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== Features ===== */
.features {
  padding: 120px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,77,61,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,77,61,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.icon-sparkle { color: var(--accent); }
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 120px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step {
  text-align: center;
  flex: 1;
  max-width: 300px;
  padding: 0 20px;
}
.step-number {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin: 0 auto 20px;
}
.step-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,77,61,0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 18px;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
  color: var(--text2);
}
.step-connector {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin-top: 80px;
  flex-shrink: 0;
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--border);
  border-top: 2px solid var(--border);
  transform: rotate(45deg);
}

/* ===== Categories ===== */
.categories {
  padding: 120px 0;
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pill {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  background: var(--pill-bg);
  color: #fff;
  opacity: 0.85;
  transition: all 0.3s ease;
}
.pill:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ===== Download CTA ===== */
.download {
  padding: 120px 0;
}
.download-card {
  text-align: center;
  padding: 80px 40px;
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
}
.download-card h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.download-card p {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: 36px;
}
.download-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-tagline {
  color: var(--text3);
  font-size: 14px;
  margin-top: 8px;
}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text2);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom p {
  font-size: 13px;
  color: var(--text3);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 44px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header h2 { font-size: 34px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-right { gap: 8px; }
  .nav-right .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .hero { padding: 100px 0 60px; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-text h1 { font-size: 36px; letter-spacing: -1px; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-btns { justify-content: center; }

  .phone-frame { width: 240px; height: 480px; }

  .features { padding: 80px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }

  .how-it-works { padding: 80px 0; }
  .steps { flex-direction: column; align-items: center; gap: 24px; }
  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }
  .step-connector::after { display: none; }

  .categories { padding: 80px 0; }

  .download { padding: 80px 0; }
  .download-card { padding: 48px 24px; }
  .download-card h2 { font-size: 30px; }

  .section-header h2 { font-size: 28px; }
  .section-header p { font-size: 16px; }

  .footer-links { flex-direction: column; align-items: center; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 30px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .download-btns { flex-direction: column; align-items: center; }
}
