@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --primary-glow: rgba(16, 185, 129, 0.15);
  --accent: #8b5cf6;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1121;
    --surface: #1a2332;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --glass: rgba(26, 35, 50, 0.7);
    --glass-border: rgba(51, 65, 85, 0.5);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --primary-glow: rgba(16, 185, 129, 0.08);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Arabic', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Navbar ─── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-icon, .brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.navbar .nav {
  display: flex;
  gap: 32px;
}

.navbar .nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.navbar .nav a:hover { color: var(--primary); }

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

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-glow);
}

.btn-download-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
  font-family: inherit;
}

.btn-download-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* ─── Hero ─── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, var(--primary-glow) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-flex;
  padding: 8px 18px;
  background: var(--primary-glow);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 24px 0 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--text);
  color: var(--surface);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.hero-stats span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-mockup {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  width: 240px;
  height: 240px;
  border-radius: 48px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255,255,255,0.05);
  object-fit: cover;
  animation: float 6s ease-in-out infinite;
}

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

/* ─── Section Headings ─── */

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.badge {
  display: inline-flex;
  padding: 6px 16px;
  background: var(--primary-glow);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-heading p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Features ─── */

.features {
  padding: 120px 0;
  position: relative;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}

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

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

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Screenshots ─── */

.screenshots {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.screenshots-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot-card {
  flex: 0 0 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.screenshot-card:hover {
  transform: translateY(-6px);
}

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

/* ─── Download ─── */

.download {
  padding: 120px 0;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 32px;
  padding: 64px 72px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255,255,255,0.1) 0%, transparent);
  pointer-events: none;
}

.download-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.download-content .badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.download-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 16px 0;
  letter-spacing: -0.5px;
  color: #fff;
}

.download-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 440px;
}

.btn-google-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-google-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.btn-google-play svg { flex-shrink: 0; }

.btn-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: start;
}

.btn-store {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.download-mockup {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.download-mockup img {
  width: 180px;
  height: 180px;
  border-radius: 36px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ─── Footer ─── */

.footer-landing {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

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

.footer-brand {}

.footer-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 12px;
}

.footer-brand h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   Legacy: Legal Pages (privacy, terms, data-deletion)
   ══════════════════════════════════════ */

.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page .topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--glass);
  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 20px;
  z-index: 100;
}

.page .brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page .brand::before {
  content: '';
  width: 12px;
  height: 12px;
  background-color: var(--primary);
  border-radius: 3px;
  display: inline-block;
}

.page .nav {
  display: flex;
  gap: 24px;
}

.page .nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.page .nav a:hover { color: var(--primary); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow);
  flex: 1;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.card p {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-muted);
}

.meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.card ul {
  list-style: none;
  margin-bottom: 24px;
}

.card li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.card li::before {
  content: '→';
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: bold;
}

.notice {
  background: rgba(5, 150, 105, 0.05);
  border-right: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 12px;
  margin: 32px 0;
}

.notice p {
  margin-bottom: 0;
  color: var(--primary);
  font-weight: 500;
}

.legal-footer {
  text-align: center;
  margin-top: 60px;
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.links-list {
  margin-top: 24px;
}

.links-list li {
  font-size: 18px;
  font-weight: 600;
}

/* ─── Responsive ─── */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-content { flex-direction: column-reverse; text-align: center; gap: 40px; }
  .hero-text h1 { font-size: 40px; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-mockup { margin-top: 20px; }
  .hero-icon { width: 160px; height: 160px; border-radius: 32px; }
  .navbar .nav { display: none; }
  .btn-download-nav { padding: 8px 16px; font-size: 13px; }
  .section-heading h2 { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .features { padding: 80px 0; }
  .screenshots { padding: 80px 0; }
  .screenshot-card { flex: 0 0 240px; }
  .download-card {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }
  .download-content p { max-width: 100%; }
  .download-mockup img { width: 120px; height: 120px; border-radius: 24px; }
  .download { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .page { padding: 100px 16px 20px; }
  .page .topbar { flex-direction: column; gap: 16px; padding: 20px; top: 10px; }
  .page .nav { gap: 12px; justify-content: center; width: 100%; }
  .card { padding: 32px 24px; border-radius: 20px; }
  .card h1 { font-size: 32px; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 32px; }
  .hero-icon { width: 120px; height: 120px; border-radius: 24px; }
  .hero-stats { gap: 20px; }
  .hero-stats strong { font-size: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .download-card { padding: 32px 20px; border-radius: 24px; }
  .download-content h2 { font-size: 28px; }
}
