/* ===== Tokens ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f8f8;
  --ink: #1c1c1c;
  --ink-2: #4b4b50;
  --muted: #727277;
  --border: #ececec;
  --primary: #74112f;
  --primary-600: #510b21;
  --primary-soft: #f8e8ee;
  --accent: #9e1338;
  --green: #16a34a;
  --amber: #d97706;
  --blue: #1b72ff;
  --red: #dc2626;
  --purple: #7c3aed;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 4px 14px rgba(16,24,40,.06);
  --shadow-lg: 0 20px 50px rgba(16,24,40,.16);
  --radius: 16px;
  --maxw: 1140px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; cursor: pointer; border: 1px solid transparent;
  border-radius: 11px; padding: 11px 20px; transition: .16s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(116,17,47,.32); }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 13px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.stars { color: #f5a524; letter-spacing: 2px; font-size: 15px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--ink-2); font-weight: 550; font-size: 15px; }
.main-nav a:hover { color: var(--primary); }
.main-nav a.btn { color: #fff; }
.main-nav a.btn:hover { color: #fff; }
.nav-toggle, .nav-toggle-label { display: none; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 76px 0 90px;
  background:
    radial-gradient(900px 420px at 15% -10%, #faedf1, transparent),
    radial-gradient(820px 460px at 100% 0%, #f7e9ef, transparent), var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero-copy h1 { font-size: 52px; letter-spacing: -0.03em; }
.hero-copy .lead { color: var(--ink-2); font-size: 19px; margin-top: 20px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--muted); font-size: 14.5px; }

/* Hero mockup */
.hero-visual { position: relative; }
.mock-window { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-titlebar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f4f5fa; border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.mock-url { margin-left: 10px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; }
.mock-body { display: grid; grid-template-columns: 64px 1fr; height: 300px; }
.mock-sidebar { background: #1c1c1c; padding: 16px 12px; display: flex; flex-direction: column; gap: 11px; }
.mock-brand { height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.mock-nav-item { height: 10px; border-radius: 5px; background: rgba(255,255,255,.12); }
.mock-nav-item.active { background: var(--primary); }
.mock-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.mock-stat { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.ms-num { font-weight: 750; font-size: 15px; }
.ms-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tint-green { color: var(--green); } .tint-amber { color: var(--amber); }
.mock-week { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.mock-day { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 8px; text-align: center; }
.mock-day b { font-size: 11px; } .mock-day i { display: block; height: 6px; border-radius: 3px; background: #dfe3ef; margin-top: 6px; }
.mock-day.today { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.mock-day.today i { background: var(--primary); }
.mock-rows { display: flex; flex-direction: column; gap: 8px; }
.mock-row { display: flex; align-items: center; gap: 10px; }
.mock-row .av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,#e9b8c6,#f2d9e1); flex: none; }
.mock-row .bar { height: 10px; border-radius: 5px; background: #e4e7f1; flex: 1; }
.mock-row .bar.w80 { flex: .8; } .mock-row .bar.w60 { flex: .6; }
.mock-row .pill { width: 42px; height: 14px; border-radius: 7px; flex: none; }
.pill.green { background: #cbf0d8; } .pill.amber { background: #fde9c4; }
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 10px 13px; display: flex; align-items: center; gap: 10px; font-size: 13px;
}
.float-card b { display: block; font-size: 13px; } .float-card small { color: var(--muted); font-size: 11.5px; }
.float-card .fc-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }
.fc-ico.green { background: #dcfce7; } .fc-ico.amber { background: #fef3c7; }
.float-card-1 { top: 30px; left: -30px; } .float-card-2 { bottom: 26px; right: -24px; }

/* ===== Logos ===== */
.logos { padding: 34px 0; border-bottom: 1px solid var(--border); }
.logos-label { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; color: #9aa1b4; font-weight: 750; font-size: 20px; letter-spacing: -0.01em; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: 38px; }
.section-sub { color: var(--ink-2); font-size: 18px; margin-top: 14px; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: .18s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #dfe3f2; }
.feature-ico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.tint-primary { background: var(--primary-soft); } .tint-info { background: #e0f2fe; }
.tint-green { background: #dcfce7; } .tint-purple { background: #ede9fe; }
.tint-amber { background: #fef3c7; } .tint-red { background: #fee2e2; }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 10px; }
.step { text-align: center; padding: 0 14px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 8px 20px rgba(116,17,47,.3);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step-line { height: 2px; background: linear-gradient(90deg, var(--border), var(--primary), var(--border)); margin-top: 26px; min-width: 40px; align-self: start; }

/* Showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.showcase h2 { font-size: 34px; margin-bottom: 20px; }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15.5px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: #dcfce7; color: var(--green); font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.showcase-visual .panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.panel-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
.panel-row:last-child { border-bottom: none; }
.panel-row.head { background: var(--bg-alt); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.pu { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.pu i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,#e9b8c6,#f2d9e1); flex: none; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-align: center; }
.tag.green { background: #dcfce7; color: var(--green); } .tag.amber { background: #fef3c7; color: var(--amber); } .tag.blue { background: #e0f2fe; color: var(--blue); }

/* Stats band */
.stats-band { background: #1c1c1c; color: #fff; padding: 54px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.sb-num { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(135deg,#fff,#e9b8c6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sb-label { color: #a2a8bd; font-size: 14px; margin-top: 6px; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.quote blockquote { margin: 14px 0 20px; font-size: 16px; color: var(--ink-2); }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.q-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.quote figcaption b { display: block; font-size: 14.5px; } .quote figcaption small { color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--primary); box-shadow: 0 20px 44px rgba(116,17,47,.18); transform: translateY(-6px); }
.price-card h3 { font-size: 20px; }
.price { margin: 14px 0 4px; font-size: 16px; color: var(--muted); }
.price span { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.price-note { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.price-card .check-list { margin-bottom: 24px; flex: 1; }
.price-card .check-list li { font-size: 14.5px; }
.badge-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(116,17,47,.35); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 16.5px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 400; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15px; padding: 0 0 18px; margin: 0; }

/* CTA */
.cta-section { padding: 84px 0; background: radial-gradient(700px 340px at 20% 20%, #faedf1, transparent), var(--bg-alt); }
.cta-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.cta-copy h2 { font-size: 38px; }
.cta-copy p { color: var(--ink-2); font-size: 18px; margin-top: 14px; }
.cta-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-weight: 600; }
.cta-form { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-lg); }
.cta-form h3 { font-size: 21px; margin-bottom: 18px; }
.cta-form label { display: grid; gap: 6px; font-weight: 650; font-size: 14px; margin-bottom: 16px; }
.cta-form input, .cta-form select { font: inherit; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.cta-form input:focus, .cta-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-fine { color: var(--muted); font-size: 12.5px; margin-top: 14px; text-align: center; }

/* Footer */
.site-footer { background: #1c1c1c; color: #c5cad9; padding: 56px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .logo { color: #fff; }
.footer-brand p { color: #969cb2; margin-top: 12px; font-size: 14.5px; max-width: 260px; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-cols h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-cols a { display: block; color: #969cb2; font-size: 14px; padding: 5px 0; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; color: #969cb2; font-size: 13.5px; }
.footer-legal { display: flex; gap: 20px; } .footer-legal a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-visual { max-width: 520px; }
  .feature-grid, .testimonials, .pricing { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; } .step-line { display: none; }
  .showcase, .cta-inner { grid-template-columns: 1fr; gap: 34px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .price-card.featured { transform: none; }

  .nav-toggle-label { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-toggle-label span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .main-nav {
    position: absolute; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: .22s ease;
  }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .main-nav a.btn { margin-top: 12px; border-bottom: none; justify-content: center; }
  .nav-toggle:checked ~ .main-nav { max-height: 420px; opacity: 1; pointer-events: auto; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 620px) {
  .hero-copy h1 { font-size: 34px; }
  .hero-copy .lead { font-size: 17px; }
  .section { padding: 60px 0; } .section-head h2 { font-size: 30px; }
  .feature-grid, .testimonials, .pricing, .stats-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr 1fr; }
  .float-card { display: none; }
  .hero-copy .hero-cta .btn { flex: 1; }
}
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero-copy h1 { font-size: 29px; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ===== Language + theme toggles ===== */
.lang-btn { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--primary); }
.lang-btn:hover { background: var(--primary-soft); }
.theme-btn { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; width: 40px; height: 40px; font-size: 17px; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.theme-btn:hover { background: var(--primary-soft); }
.theme-menu { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 300; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.theme-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: none; background: transparent; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); text-align: start; }
.theme-item:hover { background: var(--bg-alt); }
.theme-item.active { background: var(--primary-soft); color: var(--primary); }
.theme-item .ti-ico { font-size: 16px; width: 20px; text-align: center; }
@media (max-width: 960px) {
  .main-nav .lang-btn { width: 100%; margin-top: 10px; }
  .main-nav .theme-btn { margin-top: 10px; }
}

/* ===== Dark mode ===== */
[data-theme="dark"] {
  --bg: #141416; --bg-alt: #1b1b1e; --surface: #1e1e21;
  --ink: #f1f1f3; --ink-2: #c7c7cf; --muted: #9797a0; --border: #33333b;
  --primary-soft: #3a1522;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.6);
  color-scheme: dark;
}
[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .site-header { background: rgba(20,20,22,.86); }
[data-theme="dark"] .feature,
[data-theme="dark"] .price-card,
[data-theme="dark"] .quote,
[data-theme="dark"] .panel,
[data-theme="dark"] .cta-form,
[data-theme="dark"] .faq details { background: var(--surface); }
[data-theme="dark"] .btn-ghost { background: var(--surface); color: var(--ink); }
[data-theme="dark"] .lang-btn, [data-theme="dark"] .theme-btn { background: #26262c; }
[data-theme="dark"] .panel-row.head { background: #26262c; }

/* ===== RTL (Arabic) ===== */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, system-ui, -apple-system, Arial, sans-serif; }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }
[dir="rtl"] .cta-points, [dir="rtl"] .auth-points { text-align: right; }
[dir="rtl"] .hero-copy .lead, [dir="rtl"] .section-sub { margin-left: 0; }
[dir="rtl"] .mock-url { direction: ltr; }
