:root {
  --primary: #E8590C;
  --primary-dark: #C64A08;
  --primary-tint: #FDEEE4;
  --secondary: #1C8FA8;
  --ink: #152238;
  --ink-soft: #5B6B84;
  --line: #DDE4ED;
  --paper: #FAFAF6;
  --white: #FFFFFF;
  --success: #2F9E5B;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 34, 56, 0.08);
  --font-head: "Cairo", "Tajawal", sans-serif;
  --font-body: "Tajawal", "Cairo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.3;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code {
  background: var(--primary-tint);
  color: var(--primary-dark);
  padding: .1em .45em;
  border-radius: 6px;
  font-size: .9em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 89, 12, .28);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--secondary); color: var(--secondary); }

.btn-whatsapp {
  background: var(--success);
  color: #fff;
}
.btn-whatsapp:hover { background: #268049; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 246, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; }
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: .95rem;
}
.main-nav a:hover { color: var(--primary); }

a.nav-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color .25s ease, color .25s ease;
}
a.nav-admin-link:hover { border-color: var(--secondary); color: var(--secondary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  display: block;
}

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
}
.hero .lead { font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 26px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
}
.hero-points svg { flex: none; }

/* Hero screenshot (real capture from the Future system, framed like a browser window) */
.hero-visual { position: relative; }
.mockup-window {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: #F1F3F6;
  border-bottom: 1px solid var(--line);
}
.mockup-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #E8590C; }
.dot-y { background: #E8B800; }
.dot-g { background: #2F9E5B; }
.mockup-screenshot { display: block; width: 100%; height: auto; }
.mockup-caption {
  text-align: center;
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* Problem / Solution */
.problem-solution { padding: 20px 0 70px; }
.ps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.ps-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.ps-card ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 12px; }
.ps-card li { color: var(--ink-soft); font-weight: 500; }
.ps-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.ps-before .ps-tag { background: #F1E7E2; color: #8A5A3E; }
.ps-before { opacity: .92; }
.ps-after {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.ps-after .ps-tag { background: var(--primary-tint); color: var(--primary-dark); }
.ps-after li::marker { color: var(--success); }
.ps-arrow { display: flex; align-items: center; justify-content: center; }

/* Section head */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Features */
.features { padding: 70px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { font-size: .92rem; margin: 0; }

/* Screenshots */
.screenshots { padding: 70px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.shots-tabs {
  position: relative;
  display: flex;
  width: fit-content;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin: 0 auto 36px;
}
.shots-tab {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink-soft);
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .3s ease;
}
.shots-tab.active { color: #fff; }
.shots-tab-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: 5px;
  width: calc(50% - 5px);
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(232, 89, 12, .3);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  z-index: 0;
}
.shots-tabs[data-active="1"] .shots-tab-indicator {
  transform: translateX(-100%);
}

.shots-panels { position: relative; }
.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.shots-panel[hidden] { display: none; }
.shots-panel {
  animation: shots-fade-in .45s cubic-bezier(.22,.61,.36,1);
}
@keyframes shots-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: box-shadow .3s ease, transform .3s cubic-bezier(.22,.61,.36,1);
}
.shot:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.shot img {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  object-position: top;
  cursor: zoom-in;
  display: block;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.shot:hover img { transform: scale(1.035); }
.shot figcaption {
  padding: 12px 14px;
  font-weight: 600;
  font-size: .9rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.shot.missing img { display: none; }
.shot.missing {
  position: relative;
}
.shot.missing::before {
  content: "📷";
  font-size: 2rem;
  aspect-ratio: 16/10;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #F1F3F6, #F1F3F6 10px, #EAEDF1 10px, #EAEDF1 20px);
}
.shot.missing::after {
  content: "ضع الصورة هنا باسم:\A" attr(data-file);
  white-space: pre-wrap;
  position: absolute;
  inset: 0 0 44px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 0 12px 10px;
  font-size: .74rem;
  color: var(--ink-soft);
  pointer-events: none;
}

/* Videos */
.videos { padding: 70px 0; }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ink);
  cursor: pointer;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play span {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(232,89,12,.92);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.video-card iframe { width: 100%; height: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.video-card video { width: 100%; height: 100%; aspect-ratio: 16/9; display: block; background: #000; cursor: default; }
.video-title { padding: 14px 16px; font-weight: 700; font-family: var(--font-head); font-size: .96rem; }
.videos-empty { text-align: center; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 70px 0;
}
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C6CEDC; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Footer */
.site-footer { padding: 30px 0; background: var(--ink); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
}
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: #C6CEDC; font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { color: #8C9AB2; font-size: .82rem; margin: 0; width: 100%; text-align: center; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 22, .92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Back to top */
.back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s cubic-bezier(.22,.61,.36,1), transform .35s cubic-bezier(.22,.61,.36,1), visibility .35s, background .25s ease, color .25s ease, border-color .25s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .ps-grid { grid-template-columns: 1fr; }
  .ps-arrow { transform: rotate(90deg); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 20px;
    gap: 16px;
  }
  .features-grid { grid-template-columns: 1fr; }
  .shots-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .back-to-top { left: 16px; bottom: 16px; }
}
