:root {
  --bg: #f7fcff;
  --bg-alt: #edf8fd;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --line: rgba(12, 38, 65, 0.08);
  --line-strong: rgba(12, 38, 65, 0.12);
  --text: #0d2540;
  --muted: #5d7694;
  --green: #25d366;
  --emerald: #19b984;
  --mint: #dcfff0;
  --blue: #7bcfff;
  --sky: #e6f6ff;
  --lilac: #eee7ff;
  --shadow: 0 26px 70px rgba(45, 104, 140, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 211, 102, 0.13), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(123, 207, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #fbfeff 0%, #f4fbff 38%, #edf8fd 100%);
}

html[lang="ar"] body { font-family: "Cairo", sans-serif; }
.page-shell { width: min(calc(100% - 40px), 1240px); margin: 0 auto; padding-bottom: 100px; }
.topbar, .brand-block, .topbar-actions, .nav-links, .hero-actions, .hero-tags, .cta-actions { display: flex; align-items: center; }
.topbar { justify-content: space-between; padding: 28px 0 20px; }
.brand-block { gap: 14px; }
.topbar-actions { gap: 18px; }
.nav-links { gap: 22px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; }
.brand-dot { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--blue)); box-shadow: 0 0 28px rgba(37,211,102,.32); }
.brand-name { font-weight: 900; letter-spacing: -0.04em; }
.brand-sub, .hero-text, .section-head p, .feature-card p, .workflow-card p, .pricing-card p, figcaption { color: var(--muted); }
.lang-toggle { border: 1px solid var(--line-strong); background: var(--panel-strong); color: var(--text); padding: 12px 14px; border-radius: 999px; font-weight: 800; cursor: pointer; }
.section { padding: 84px 0; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 42px; }
.eyebrow { display: inline-flex; padding: 10px 14px; border-radius: 999px; background: rgba(37,211,102,.12); color: #107651; font-size: 13px; font-weight: 800; margin-bottom: 22px; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(3rem, 6vw, 5rem); line-height: .94; letter-spacing: -.06em; margin-bottom: 18px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.05em; margin-bottom: 16px; max-width: 14ch; }
.hero-text, .section-head p { line-height: 1.8; max-width: 62ch; }
.hero-actions, .hero-tags, .cta-actions { gap: 16px; flex-wrap: wrap; }
.hero-actions { margin: 28px 0 18px; }
.hero-tags span, .proof-strip div { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.76); border: 1px solid var(--line); color: #45627f; font-size: 13px; font-weight: 700; }
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 16px 22px; border-radius: 16px; text-decoration: none; font-weight: 800; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #1aba84 0%, #25d366 40%, #7bcfff 100%); box-shadow: var(--shadow); }
.btn-secondary { color: var(--text); background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.hero-media img, .gallery-card img { width: 100%; display: block; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.proof-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.proof-strip div { text-align: center; }
.section-head { margin-bottom: 30px; }
.section-head.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.gallery-grid, .feature-grid, .workflow-grid, .pricing-grid { display: grid; gap: 20px; }
.gallery-grid { grid-template-columns: repeat(3,1fr); }
.gallery-card, .feature-card, .workflow-card, .pricing-card, .cta-panel { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.gallery-card, .feature-card, .workflow-card, .pricing-card { border-radius: 26px; padding: 18px; }
.gallery-card.large { grid-column: span 2; }
.gallery-card.wide { grid-column: span 3; }
.gallery-card figcaption { margin-top: 14px; line-height: 1.6; }
.feature-grid, .workflow-grid, .pricing-grid { grid-template-columns: repeat(3,1fr); }
.feature-no { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #dffcf0, #dff2ff); margin-bottom: 16px; font-weight: 900; }
.workflow-card strong { display: block; margin-bottom: 10px; }
.plan-label { text-transform: uppercase; letter-spacing: .15em; font-size: 11px; color: #5d7694; margin-bottom: 16px; }
.pricing-card.featured { border-color: rgba(37,211,102,.28); transform: translateY(-8px); }
.price { font-size: 3rem; font-weight: 900; letter-spacing: -.05em; margin-bottom: 12px; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 700; }
.cta-panel { border-radius: 30px; padding: 34px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
html[dir="rtl"] body { direction: rtl; }
@media (max-width: 1100px) {
  .hero, .section-head.split, .cta-panel { grid-template-columns: 1fr; }
  .gallery-grid, .feature-grid, .workflow-grid, .pricing-grid, .proof-strip { grid-template-columns: repeat(2,1fr); }
  .gallery-card.large, .gallery-card.wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .page-shell { width: min(calc(100% - 24px), 1240px); }
  .topbar, .topbar-actions { flex-direction: column; align-items: flex-start; }
  .nav-links { flex-wrap: wrap; }
  .gallery-grid, .feature-grid, .workflow-grid, .pricing-grid, .proof-strip { grid-template-columns: 1fr; }
  .gallery-card.large, .gallery-card.wide { grid-column: auto; }
  .section { padding: 64px 0; }
}
