/* Smahal marketing site — hand-written, dependency-free CSS.
   Kept outside the Mix/webpack pipeline on purpose: this page is served
   from the bare central domain and must stay fast/crawlable (see
   layouts/marketing.blade.php + MarketingController). */

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;

  --brand: #d32f2f;
  --brand-dark: #b71c1c;
  --brand-light: #fde8e8;

  --bg: #ffffff;
  --bg-alt: #f8f7f7;
  --surface: #ffffff;
  --border: #ececec;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  --bg: #121213;
  --bg-alt: #19191b;
  --surface: #1c1c1f;
  --border: #2c2c30;
  --text: #f2f2f2;
  --text-muted: #a3a3a3;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --brand-light: rgba(211, 47, 47, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; font-weight: 800; }
p { margin: 0 0 12px; color: var(--text-muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(211,47,47,.28); }
.btn--primary:hover { background: var(--brand-dark); }

.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }

.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; color: var(--text); }
.nav__brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 14px; transition: color .15s; }
.nav__links a:hover { color: var(--brand); }
.nav__actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.lang-switch {
  display: flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 999px; padding: 3px;
}
.lang-switch__item {
  text-decoration: none; font-size: 12px; font-weight: 700; color: var(--text-muted);
  padding: 5px 12px; border-radius: 999px; transition: background-color .15s ease, color .15s ease;
}
.lang-switch__item.is-active { background: var(--brand); color: #fff; }
.lang-switch__item:not(.is-active):hover { color: var(--brand); }

.nav__burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 44px; letter-spacing: -.02em; }
.hero__lead { font-size: 17px; max-width: 520px; }
.hero__cta { display: flex; gap: 14px; margin: 28px 0 36px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 32px; }
.hero__trust-item { display: flex; flex-direction: column; }
.hero__trust-item strong { font-size: 22px; font-weight: 800; }
.hero__trust-item span { font-size: 12px; color: var(--text-muted); }
.hero__disclaimer { font-size: 11px; color: var(--text-muted); opacity: .7; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: 32px; letter-spacing: -.01em; }

.grid { display: grid; gap: 24px; }
.grid--features { grid-template-columns: repeat(4, 1fr); }
.grid--why { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid--pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

/* Feature cards */
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; margin: 0; }

/* Why us */
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item__check {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.why-item h3 { font-size: 16px; margin-bottom: 4px; }
.why-item p { font-size: 14px; margin: 0; }

/* Pricing */
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
}
.price-card--featured { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card__amount { font-size: 34px; font-weight: 800; margin: 14px 0; }
.price-card__amount small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 28px; flex-grow: 1; }
.price-card li { padding: 7px 0; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); }
.price-card li:last-child { border-bottom: none; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; padding: 20px 4px; font-size: 15px; font-weight: 700;
  color: var(--text); cursor: pointer; text-align: left; font-family: var(--font);
}
.faq-item__question svg { transition: transform .2s ease; flex-shrink: 0; margin-left: 12px; }
.faq-item.is-open .faq-item__question svg { transform: rotate(180deg); }
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.is-open .faq-item__answer { max-height: 240px; }
.faq-item__answer p { padding: 0 4px 18px; font-size: 14px; margin: 0; }

/* Contact */
.contact-box { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 56px 40px; }
.contact-box h2 { font-size: 28px; }
.contact-box__links { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; font-weight: 600; }
.contact-box__links a { text-decoration: none; color: var(--brand); }
.contact-box__links span { color: var(--text-muted); }

/* ---------- Product mockup ---------- */
.mockup {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mockup__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mockup__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup__url {
  margin-left: 12px; font-size: 11px; color: var(--text-muted); background: var(--bg-alt);
  padding: 4px 10px; border-radius: 6px; flex-grow: 1; max-width: 220px;
}
.mockup__body { display: flex; min-height: 260px; }
.mockup--large .mockup__body { min-height: 420px; }
.mockup__sidebar { width: 64px; background: var(--bg-alt); padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; border-right: 1px solid var(--border); }
.mockup__logo { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); margin-bottom: 10px; }
.mockup__nav-item { width: 26px; height: 8px; border-radius: 4px; background: var(--border); }
.mockup__nav-item--active { background: var(--brand); width: 34px; }
.mockup__main { flex-grow: 1; padding: 20px; }
.mockup__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mockup__card { background: var(--bg-alt); border-radius: 10px; padding: 14px; }
.mockup__card-label { width: 60%; height: 7px; border-radius: 4px; background: var(--border); margin-bottom: 10px; }
.mockup__card-value { width: 40%; height: 14px; border-radius: 4px; background: var(--brand); opacity: .8; }
.mockup__chart {
  background: var(--bg-alt); border-radius: 10px; padding: 18px 16px 12px; margin-bottom: 18px;
}
.mockup__bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.mockup__bars span { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; opacity: .85; }
.mockup__table { display: flex; flex-direction: column; gap: 8px; }
.mockup__row { height: 12px; border-radius: 4px; background: var(--bg-alt); }
.mockup__row:nth-child(2) { width: 90%; }
.mockup__row:nth-child(3) { width: 75%; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); animation: fadeIn .2s ease; }
.modal__panel {
  position: relative; z-index: 1; max-width: 560px; margin: 4vh auto; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease; padding: 36px;
}
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 20px; line-height: 1;
  cursor: pointer;
}
.modal__subtitle { margin-bottom: 24px; }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-row input, .form-row select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px;
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--brand); }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row--checkbox label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; color: var(--text-muted); }
.form-row--checkbox input { width: auto; margin-top: 2px; }
.form-row--checkbox a { color: var(--brand); }

.form-feedback { font-size: 13px; margin-bottom: 14px; display: none; padding: 10px 14px; border-radius: 8px; }
.form-feedback.is-error { display: block; background: #fee2e2; color: #991b1b; }
.form-feedback.is-success { display: block; background: #dcfce7; color: #166534; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.footer__brand img { border-radius: 6px; }
.footer__copy { font-size: 13px; margin: 0; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="rtl"] .skip-link { left: auto; right: -9999px; border-radius: 0 0 0 8px; }
html[dir="rtl"] .skip-link:focus { right: 0; }
html[dir="rtl"] .faq-item__question { text-align: right; }
html[dir="rtl"] .faq-item__question svg { margin-left: 0; margin-right: 12px; }
html[dir="rtl"] .modal__close { right: auto; left: 16px; }
/* The product mockup is a decorative illustration of a generic app UI, not real
   readable content -- keep it left-to-right so the fake toolbar/sidebar layout
   (and its physical margin-left/border-right rules) doesn't look broken when mirrored. */
html[dir="rtl"] .mockup { direction: ltr; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .grid--why { grid-template-columns: repeat(2, 1fr); }
  .grid--pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card--featured { transform: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  body.nav-open .nav__links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; background: var(--surface);
    flex-direction: column; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 56px 0; }
  .section__head h2 { font-size: 26px; }
  .grid--features { grid-template-columns: 1fr; }
  .grid--why { grid-template-columns: 1fr; }
  .form-row--split { grid-template-columns: 1fr; }
  .modal__panel { margin: 0; max-height: 100vh; border-radius: 0; }
  .hero__trust { flex-wrap: wrap; gap: 20px; }
}
