/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #B8962E;
  --gold-light: #FBF3DC;
  --gold-mid: #D4AF5A;
  --gold-dark: #8A6E1E;
  --gold-border: #EDD98A;
  --text: #111827;
  --text-muted: #6b7280;
  --text-hint: #9ca3af;
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border: rgba(0,0,0,0.09);
  --border-strong: rgba(0,0,0,0.16);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

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

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 500; border: none; transition: opacity 0.15s, transform 0.1s; cursor: pointer; }
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-secondary { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.btn-secondary:hover { background: var(--bg-secondary); opacity: 1; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; font-weight: 600; }
.btn-full { width: 100%; justify-content: center; }

/* ===== BADGE ===== */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; }
.badge-gold { background: var(--gold-light); color: var(--gold-dark); border: 1px solid var(--gold-border); }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 100; background: #111827; border-bottom: 1px solid rgba(255,255,255,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; color: #fff; }
.logo-mark { width: 36px; height: 36px; background: var(--gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; flex-shrink: 0; }
.logo-mark-img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { background: var(--gold); color: #fff; padding: 8px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; border: none; }
.nav-cta:hover { opacity: 0.9; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.mobile-nav { display: none; background: #111827; border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 24px; font-size: 15px; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav a:hover { color: #fff; }

/* ===== HERO ===== */
.hero { padding: 80px 0 72px; border-bottom: 1px solid var(--border); background: #111827; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge { margin-bottom: 20px; }
.hero-logo-full { height: 52px; width: auto; filter: brightness(0) invert(1); margin-bottom: 4px; }
.hero h1 { font-size: 46px; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 18px; color: #fff; }
.hero h1 span { color: var(--gold); }
.hero-sub { font-size: 17px; color: rgba(255,255,255,0.6); margin-bottom: 32px; max-width: 420px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.btn-hero-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-hero-ghost:hover { background: rgba(255,255,255,0.15); opacity: 1; }
.hero-stats { display: flex; gap: 36px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat-num { font-size: 26px; font-weight: 700; color: var(--gold); display: block; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-visual-main {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero-app-mockup { display: flex; gap: 16px; padding: 24px; }
.mockup-phone {
  width: 140px;
  height: 280px;
  background: #1f2937;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.mockup-phone-screen { width: 100%; height: 100%; background: linear-gradient(160deg, #1f2937 0%, #111827 100%); padding: 20px 14px; }
.mockup-phone-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mockup-app-icon { width: 32px; height: 32px; background: var(--gold); border-radius: 8px; }
.mockup-dots { display: flex; gap: 3px; }
.mockup-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.mockup-stat-row { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.mockup-stat-label { font-size: 8px; color: rgba(255,255,255,0.4); margin-bottom: 3px; }
.mockup-stat-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.mockup-stat-fill { height: 100%; background: var(--gold); border-radius: 2px; }
.mockup-phone.small { width: 115px; height: 240px; margin-top: 40px; opacity: 0.6; }
.hero-float-card {
  position: absolute;
  bottom: 20px; right: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  font-size: 13px;
}
.hero-float-icon { width: 32px; height: 32px; background: var(--gold-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 16px; }
.hero-float-card strong { display: block; font-size: 13px; }
.hero-float-card span { font-size: 11px; color: var(--text-muted); }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.trust-bar-inner { display: flex; justify-content: center; align-items: center; gap: 48px; padding: 14px 0; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.trust-item-icon { color: var(--gold); font-size: 15px; }

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { margin-bottom: 36px; }
.section-header.centered { text-align: center; }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 10px; display: block; }
.section-header h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 10px; }
.section-header p { font-size: 15px; color: var(--text-muted); max-width: 520px; }
.section-header.centered p { margin: 0 auto; }
.section-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-top h2 { font-size: 22px; font-weight: 700; }
.section-link { font-size: 14px; color: var(--gold); }
.section-link:hover { opacity: 0.8; }

/* ===== APPS GRID ===== */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-card { border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; background: var(--bg); transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; display: block; color: inherit; }
.app-card:hover { transform: translateY(-3px); border-color: var(--gold-border); box-shadow: 0 8px 24px rgba(184,150,46,0.12); }
.app-card-img { background: var(--bg-tertiary); height: 180px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.app-card-img img { width: 100%; height: 100%; object-fit: cover; }
.app-icon-wrap { width: 72px; height: 72px; background: var(--gold); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 4px 16px rgba(184,150,46,0.3); }
.app-cat-chip { position: absolute; top: 12px; left: 12px; background: #fff; border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.app-card-body { padding: 18px 20px 20px; }
.app-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.app-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }
.app-card-links { display: flex; gap: 8px; flex-wrap: wrap; }
.app-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid var(--gold-border); color: var(--gold-dark); background: var(--gold-light); transition: all 0.15s; }
.app-link:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.app-skeleton { border-radius: var(--radius-xl); height: 300px; background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border: 1px solid var(--border); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-text .section-header { margin-bottom: 24px; }
.about-text p { font-size: 15px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.75; }
.about-values { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 6px; flex-shrink: 0; }
.value-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.value-item p { font-size: 13px; color: var(--text-muted); margin: 0; }
.about-quote-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px; text-align: center; }
.arabic-text { font-size: 2.4rem; color: var(--gold); margin-bottom: 6px; }
.arabic-caption { font-size: 12px; color: var(--text-muted); margin-bottom: 28px; }
.quote-text { font-size: 15px; color: var(--text-muted); line-height: 1.8; font-style: italic; margin-bottom: 10px; }
.quote-ref { font-size: 12px; color: var(--gold-dark); font-weight: 600; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.svc-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; gap: 16px; align-items: flex-start; background: var(--bg); transition: border-color 0.15s; }
.svc-card:hover { border-color: var(--gold-border); }
.svc-icon { width: 44px; height: 44px; min-width: 44px; background: var(--gold-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.svc-title { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.svc-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.testi-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: var(--bg); }
.testi-stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 13px; flex-shrink: 0; }
.testi-author strong { font-size: 13px; display: block; }
.testi-author span { font-size: 12px; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color 0.15s; }
.contact-item:hover { border-color: var(--gold-border); }
.contact-item-icon { width: 40px; height: 40px; background: var(--gold-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 18px; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-item span { font-size: 12px; color: var(--text-muted); }
.contact-form-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 10px 14px; font-size: 14px; background: var(--bg); color: var(--text); outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== FOOTER ===== */
.footer { background: #111827; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.65; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ===== APP DETAIL ===== */
.app-detail { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); margin-bottom: 32px; transition: color 0.15s; }
.back-link:hover { color: var(--text); }
.app-detail-hero { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 48px; flex-wrap: wrap; }
.app-detail-icon { width: 100px; height: 100px; border-radius: 22px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.app-detail-icon-placeholder { width: 100px; height: 100px; border-radius: 22px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; flex-shrink: 0; }
.app-detail-info h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.app-detail-info .tagline { font-size: 15px; color: var(--text-muted); margin-bottom: 18px; }
.app-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 500; transition: opacity 0.15s; }
.store-btn-dark { background: var(--text); color: #fff; }
.store-btn-dark:hover { opacity: 0.85; }
.store-btn-outline { border: 1px solid var(--border-strong); color: var(--text); }
.store-btn-outline:hover { background: var(--bg-secondary); }
.app-detail-section { margin-bottom: 40px; }
.app-detail-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.app-description { font-size: 15px; color: var(--text-muted); line-height: 1.8; white-space: pre-line; }
.screenshots-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.screenshots-scroll img { height: 360px; width: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); flex-shrink: 0; cursor: pointer; transition: transform 0.15s; }
.screenshots-scroll img:hover { transform: scale(1.02); }
.privacy-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color 0.15s; }
.privacy-link:hover { border-color: var(--gold-border); }
.privacy-link strong { display: block; font-size: 14px; }
.privacy-link span { font-size: 12px; color: var(--text-muted); }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 90vw; border-radius: 10px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; }

/* ===== PRIVACY PAGE ===== */
.privacy-page { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.privacy-page h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.privacy-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.privacy-body { font-size: 15px; color: var(--text-muted); line-height: 1.85; }
.privacy-body h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 32px 0 10px; }
.privacy-body h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.privacy-body p { margin-bottom: 14px; }
.privacy-body ul, .privacy-body ol { margin: 0 0 14px 22px; }
.privacy-body li { margin-bottom: 5px; }
.privacy-body a { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .apps-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 32px; }
  .trust-bar-inner { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
}
