:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #111827;
  --muted: #657085;
  --line: #e7ebf1;
  --orange: #ff6b00;
  --blue: #246bfe;
  --green: #08b862;
  --purple: #8b3dff;
  --shadow: 0 18px 50px rgba(26, 39, 73, .10);
}

html.dark {
  color-scheme: dark;
  --bg: #080d1a;
  --surface: #111827;
  --surface-soft: #0d1424;
  --text: #f8fafc;
  --muted: #aeb9cc;
  --line: #263248;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Cairo", "Tajawal", Arial, sans-serif; line-height: 1.7; transition: background .25s ease, color .25s ease; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.nav-wrap { width: min(1120px, calc(100% - 40px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-weight: 800; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand span { background: linear-gradient(90deg, var(--orange), var(--blue)); background-clip: text; color: transparent; }
#main-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
#main-nav a:hover, .site-footer nav a:hover { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-toggle { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: 18px; }
.menu-toggle { display: none; }
.wa-button { padding: 9px 16px; border-radius: 12px; color: #fff; background: var(--orange); font-size: 13px; font-weight: 800; box-shadow: 0 8px 20px rgba(255,107,0,.22); }

.hero { position: relative; overflow: hidden; padding: 86px 0 94px; background: linear-gradient(135deg, color-mix(in srgb, #eef4ff 82%, var(--bg)), color-mix(in srgb, #fff1e8 68%, var(--bg))); }
html.dark .hero { background: linear-gradient(135deg, #0b1325, #171020); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; }
.hero-glow-one { width: 380px; height: 380px; right: -140px; top: -170px; background: radial-gradient(circle, rgba(36,107,254,.23), transparent 68%); }
.hero-glow-two { width: 340px; height: 340px; left: -130px; bottom: -200px; background: radial-gradient(circle, rgba(255,107,0,.20), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--orange); }
.eyebrow, .section-tag { display: inline-flex; margin: 0 0 15px; padding: 6px 12px; border: 1px solid rgba(255,107,0,.18); border-radius: 999px; background: rgba(255,107,0,.08); color: var(--orange); font-size: 12px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 690px; margin-bottom: 20px; font-size: clamp(42px, 6vw, 70px); line-height: 1.08; letter-spacing: -2px; }
.hero-lead { max-width: 680px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border-radius: 13px; font-size: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(100deg, var(--orange), #ff4d00); box-shadow: 0 12px 28px rgba(255,107,0,.24); }
.button-secondary { border: 1px solid var(--line); background: var(--surface); }
.hero-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.panel-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.window-dots { color: var(--orange); letter-spacing: 4px; }
.panel-body { padding: 32px; }
.panel-badge { display: inline-block; margin-bottom: 12px; color: var(--blue); font-size: 12px; font-weight: 800; }
.panel-body h2 { max-width: 440px; font-size: 30px; line-height: 1.25; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px; }
.mini-grid div { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.mini-grid strong, .mini-grid span { display: block; }
.mini-grid strong { font-size: 13px; }
.mini-grid span { margin-top: 3px; color: var(--muted); font-size: 11px; }

.section { padding: 92px 0; }
.section-soft { background: var(--surface-soft); }
.two-column { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.section h2 { margin-bottom: 18px; font-size: clamp(29px, 4vw, 43px); line-height: 1.2; letter-spacing: -.8px; }
.prose p, .section-intro, .why-card p { color: var(--muted); }
.prose p:last-child, .why-card p:last-child { margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { position: relative; overflow: hidden; min-height: 330px; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 10px 30px rgba(28,40,70,.05); }
.feature-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 5px; background: var(--card-color); }
.feature-orange { --card-color: var(--orange); }
.feature-blue { --card-color: var(--blue); }
.feature-green { --card-color: var(--green); }
.feature-number { display: block; margin-bottom: 36px; color: var(--card-color); font-size: 28px; font-weight: 900; }
.feature-card h2 { font-size: 23px; }
.feature-card p { color: var(--muted); font-size: 14px; }
.section-heading { max-width: 690px; margin: 0 auto 46px; text-align: center; }
.section-heading > p:last-child { color: var(--muted); }
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.process-list li { padding: 22px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.process-list li > span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 17px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--orange), var(--blue)); font-weight: 800; }
.process-list strong { font-size: 15px; }
.process-list p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 15px 18px 15px 50px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 17px; color: var(--green); font-size: 19px; font-weight: 900; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.why-card { padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.benefit-list { display: grid; gap: 16px; }
.benefit-list div { padding: 18px 20px; border-left: 4px solid var(--orange); border-radius: 0 14px 14px 0; background: var(--surface-soft); }
.benefit-list strong, .benefit-list span { display: block; }
.benefit-list span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.cta-section { padding: 24px 0 92px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 46px 52px; border-radius: 26px; color: #fff; background: linear-gradient(110deg, #ff6b00, #7050aa 58%, #246bfe); box-shadow: 0 22px 55px rgba(65,76,180,.22); }
.cta-box h2 { margin-bottom: 8px; font-size: clamp(27px, 4vw, 39px); line-height: 1.2; }
.cta-box p { margin-bottom: 0; color: rgba(255,255,255,.83); }
.cta-box .eyebrow { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); }
.button-light { flex: 0 0 auto; color: var(--orange); background: #fff; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface-soft); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 42px 0; }
.site-footer nav { display: flex; gap: 24px; color: var(--muted); font-size: 13px; }
.footer-contact { display: flex; justify-content: flex-end; gap: 10px; }
.footer-contact a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.footer-bottom { padding: 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 12px; }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; place-items: center; width: 56px; height: 56px; border: 4px solid rgba(255,255,255,.82); border-radius: 50%; color: #fff; background: #08c65b; box-shadow: 0 10px 28px rgba(8,198,91,.35); font-size: 24px; font-weight: 900; }

@media (max-width: 980px) {
  .nav-wrap { flex-wrap: wrap; gap: 10px; padding: 15px 0; }
  .menu-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .nav-actions .wa-button { display: none; }
  #main-nav { order: 4; display: none; width: 100%; margin: 8px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  #main-nav.open { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-grid, .two-column, .audience-grid, .why-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero { padding-top: 58px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid .brand, .site-footer nav, .footer-contact { justify-content: center; }
}

@media (max-width: 640px) {
  .container, .nav-wrap { width: min(100% - 28px, 1120px); }
  .brand span { font-size: 14px; }
  .hero { padding: 42px 0 64px; }
  h1 { font-size: 42px; letter-spacing: -1px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-panel { transform: none; }
  .panel-body { padding: 22px; }
  .mini-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .feature-card, .why-card { padding: 26px; }
  .process-list { grid-template-columns: 1fr; }
  .cta-section { padding-bottom: 68px; }
  .cta-box { display: block; padding: 32px 25px; text-align: center; }
  .cta-box .button { width: 100%; margin-top: 24px; }
  .site-footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
