:root {
  --red: #e31b23;
  --red-dark: #b5121a;
  --red-soft: #fdecec;
  --ink: #1c1c1e;
  --text: #3a3a3f;
  --muted: #6b6b73;
  --line: #ececef;
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 20, 30, 0.08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
html[lang='ar'] {
  --font: 'Cairo', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; text-align: center; }
h3 { font-size: 1.1rem; font-weight: 700; }
html[lang='ar'] h1, html[lang='ar'] h2 { letter-spacing: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--red);
  transition: background 0.15s, transform 0.15s; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 0.92rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--line); }
.btn-light { background: #fff; color: var(--red); border-color: #fff; }
.btn-light:hover { background: #fff5f5; border-color: #fff5f5; }
.btn-outline { background: #fff; color: var(--red); }
.btn-outline:hover { background: var(--red-soft); border-color: var(--red); }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); direction: ltr; }
.logo b, .small-logo b { color: var(--red); }
.nav { display: flex; gap: 22px; margin-inline-start: 12px; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.topbar-actions .link { font-weight: 600; color: var(--ink); }
.lang {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px;
  font: inherit; font-weight: 600; cursor: pointer; color: var(--ink);
}
.lang:hover { background: var(--bg-alt); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 64px 0 56px; background: radial-gradient(1200px 500px at 85% -10%, var(--red-soft), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; color: var(--red); background: var(--red-soft); font-weight: 700;
  font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; margin: 0 0 18px;
}
.lead { font-size: 1.15rem; color: var(--text); margin: 0 0 28px; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-visual { position: relative; }
.tv {
  position: relative; border: 10px solid #18181b; border-radius: 14px; background: #000;
  box-shadow: 0 30px 60px rgba(20, 20, 30, 0.25); overflow: hidden;
}
.tv-stand { width: 26%; height: 14px; margin: 0 auto; background: #27272a; border-radius: 0 0 10px 10px; }
.live {
  position: absolute; bottom: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em;
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------------------------------------------------------------- sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { text-align: center; color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0 auto 40px; }
.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.ico {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red); border-radius: 12px; margin-bottom: 14px;
}
.ico svg { width: 22px; height: 22px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 12px; box-shadow: var(--shadow); border: 6px solid #18181b; }
.gallery figcaption { text-align: center; margin-top: 10px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { text-align: center; padding: 10px 16px; }
.steps b {
  display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border-radius: 50%; font-size: 1.2rem; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- pricing */
.pricing { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; margin-bottom: 20px; }
.plan { display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.featured { border: 2px solid var(--red); box-shadow: var(--shadow); }
.plan .badge {
  position: absolute; top: -12px; inset-inline-start: 20px; background: var(--red); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.plan h3 { margin: 0; font-size: 1.2rem; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.plan .price small { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.plan .desc { color: var(--muted); font-size: 0.93rem; min-height: 2.9em; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; flex: 1; }
.plan li { padding: 4px 0; padding-inline-start: 24px; position: relative; font-size: 0.95rem; }
.plan li::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: 0.75em; width: 12px; height: 7px;
  /* Physical sides on purpose: a tick looks the same in both directions. */
  border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg);
}
.plan .btn { width: 100%; }
.plan .trial { font-size: 0.82rem; color: var(--muted); text-align: center; min-height: 1.2em; }
.skeleton { min-height: 380px; background: linear-gradient(90deg, #fff 0%, #f3f3f5 50%, #fff 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.pricing-error { grid-column: 1 / -1; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- download */
.download { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.download h2, .download .section-lead { text-align: start; margin-inline: 0; }
.download-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 14px; }
.pill { border: 1px dashed var(--line); padding: 10px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.download-icon { flex: none; filter: drop-shadow(0 20px 30px rgba(227, 27, 35, 0.18)); }

/* ---------------------------------------------------------------- FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details p { margin: 10px 0 0; color: var(--muted); }

.cta-band { background: var(--red); color: #fff; }
.cta-band h2 { color: #fff; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); font-weight: 500; }
.small-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); direction: ltr; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .features, .gallery, .steps { grid-template-columns: 1fr; }
  .topbar-actions .link { display: none; }
  .topbar-inner { gap: 12px; }
  .download { flex-direction: column-reverse; align-items: flex-start; }
  .download-icon { width: 120px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 40px; }
}
@media (max-width: 420px) {
  .topbar-actions .btn { display: none; }
}
