:root {
  color-scheme: light dark;
  --bg: #f5faf7;
  --surface: #ffffff;
  --surface-strong: #edf6f1;
  --text: #12231b;
  --muted: #53675d;
  --line: #cfdfd6;
  --accent: #147a50;
  --accent-strong: #0b5e3c;
  --accent-text: #ffffff;
  --shadow: 0 18px 50px rgba(11, 40, 27, .08);
  --radius: 20px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c0b;
    --surface: #111713;
    --surface-strong: #17211b;
    --text: #f2f7f4;
    --muted: #a4b5ac;
    --line: #2b3932;
    --accent: #2ecc87;
    --accent-strong: #45dd9a;
    --accent-text: #07130d;
    --shadow: 0 18px 60px rgba(0, 0, 0, .28);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; }
html[dir="rtl"] body { font-family: Tajawal, "Noto Sans Arabic", "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent-strong); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; object-fit: cover; }
.skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100; padding: 10px 14px; background: var(--text); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; inset-block-start: 0; z-index: 20; display: flex; align-items: center; gap: 24px; min-height: 72px; padding: 10px max(20px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); }
.seo-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; white-space: nowrap; }
.seo-brand img { border-radius: 11px; }
.site-header nav { display: flex; align-items: center; gap: 22px; margin-inline: auto; }
.site-header nav a, .header-actions a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 650; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-link { padding-inline: 8px; color: var(--muted); }
main { width: min(1180px, calc(100% - 40px)); min-height: 65vh; margin: 0 auto; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: var(--accent-text); font-weight: 800; text-decoration: none; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-text); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent-strong); }
.button.compact { min-height: 42px; padding: 8px 15px; }
.home-hero { min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); align-items: center; gap: clamp(40px, 8vw, 110px); padding: 80px 0; }
.eyebrow { margin: 0 0 14px; color: var(--accent-strong); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
h1, h2 { line-height: 1.12; letter-spacing: -.035em; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { letter-spacing: 0; line-height: 1.35; }
h1 { max-width: 900px; margin: 0; font-size: clamp(42px, 7vw, 78px); }
.hero-lead, .page-hero > p:not(.eyebrow) { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); }
.hero-actions, .detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { display: grid; grid-template-columns: auto auto auto auto; align-items: baseline; justify-content: start; gap: 4px 12px; margin-top: 32px; color: var(--muted); }
.proof strong { color: var(--text); font-size: 24px; font-variant-numeric: tabular-nums; }
.hero-mark { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 34%; background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 58%), var(--surface); box-shadow: var(--shadow); }
.hero-mark span, .brand-letter { color: var(--accent); font-size: clamp(140px, 23vw, 270px); font-weight: 900; line-height: 1; }
.feature-grid, .pricing-grid, .steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 20px 0 90px; }
.feature-grid article, .price-card, .steps-grid li, .prose-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); }
.feature-grid h2, .steps-grid h2 { margin: 0 0 10px; font-size: 24px; }
.feature-grid p, .steps-grid p { margin: 0; color: var(--muted); }
.content-section { padding: 50px 0 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { max-width: 720px; margin: 0; font-size: clamp(30px, 4vw, 48px); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.app-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.app-card-main { min-height: 138px; display: flex; align-items: flex-start; gap: 16px; padding: 22px; text-decoration: none; }
.app-card-main img { flex: 0 0 auto; border-radius: 16px; background: var(--surface-strong); }
.app-card h2 { margin: 0 0 7px; font-size: 21px; overflow-wrap: anywhere; }
.app-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.app-card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.app-card-meta a { color: var(--text); font-weight: 700; }
.page-hero { padding: 95px 0 54px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 70px); }
.directory-hero { padding-bottom: 34px; }
.category-chips { display: flex; gap: 9px; overflow-x: auto; padding: 0 0 24px; scrollbar-width: thin; }
.category-chips a { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; white-space: nowrap; }
.category-chips a.active { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.category-chips span { font-variant-numeric: tabular-nums; opacity: .75; }
.directory-grid { padding-bottom: 90px; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); }
.plan-name { margin: 0; font-size: 22px; font-weight: 800; }
.price { margin: 18px 0; font-size: 38px; font-weight: 900; font-variant-numeric: tabular-nums; }
.price small { color: var(--muted); font-size: 14px; font-weight: 600; }
.price-card ul { flex: 1; margin: 0 0 28px; padding-inline-start: 20px; color: var(--muted); }
.pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pack-grid article { display: flex; justify-content: space-between; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; }
.steps-grid li > span { display: block; margin-bottom: 28px; color: var(--accent-strong); font-weight: 900; }
.story-hero { position: relative; overflow: hidden; }
.story-hero .brand-letter { position: absolute; inset-inline-end: 4%; inset-block-start: 12px; margin: 0; opacity: .1; }
.prose-card { max-width: 820px; margin: 0 0 90px; font-size: 18px; }
.prose-card h2 { margin-top: 38px; font-size: 30px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 42px; color: var(--muted); }
.app-detail { padding: 48px 0 80px; }
.app-detail-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; align-items: start; }
.app-detail-head > img { border-radius: 25px; background: var(--surface); box-shadow: var(--shadow); }
.app-detail h1 { font-size: clamp(40px, 6vw, 68px); overflow-wrap: anywhere; }
.app-detail-head p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 19px; }
.creator-line { margin-top: 14px; color: var(--muted); }
.creator-line a { color: var(--text); font-weight: 800; }
.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 38px; }
.metric-row div { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.metric-row strong, .metric-row span { display: block; }
.metric-row strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.metric-row span { color: var(--muted); font-size: 13px; }
.creator-hero { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center; padding: 80px 0 48px; }
.creator-hero > img { border-radius: 50%; background: var(--surface); }
.creator-hero h1 { font-size: clamp(38px, 6vw, 64px); overflow-wrap: anywhere; }
.creator-hero p { margin: 8px 0; color: var(--muted); }
.creator-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; color: var(--muted); }
.creator-stats strong { color: var(--text); font-variant-numeric: tabular-nums; }
.empty-state { min-height: 260px; display: grid; place-items: center; color: var(--muted); }
.seo-footer { width: min(1180px, calc(100% - 40px)); display: flex; justify-content: space-between; gap: 40px; margin: 0 auto; padding: 44px 0 58px; border-top: 1px solid var(--line); color: var(--muted); }
.seo-footer p { margin: 8px 0 0; }
.seo-footer nav { display: flex; flex-wrap: wrap; align-content: start; justify-content: end; gap: 12px 20px; }
.footer-brand { color: var(--text); }
@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; gap: 8px 14px; padding: 10px 20px; }
  .site-header nav { order: 3; width: 100%; gap: 4px 18px; overflow-x: auto; }
  .header-actions { margin-inline-start: auto; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; padding: 62px 0; }
  .hero-mark { width: min(360px, 82vw); justify-self: center; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main, .seo-footer { width: min(100% - 28px, 1180px); }
  .site-header nav a { min-height: 40px; font-size: 14px; }
  .header-actions .compact { display: none; }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  .home-hero { gap: 48px; padding-top: 48px; }
  .proof { grid-template-columns: auto 1fr; }
  .app-grid, .pack-grid, .steps-grid { grid-template-columns: 1fr; }
  .section-heading, .seo-footer { align-items: flex-start; flex-direction: column; }
  .seo-footer nav { justify-content: start; }
  .app-detail-head, .creator-hero { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero { padding-top: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
