/* ============================================
   EXODIA — Design Tokens
   Signature: the woven X mark reused as a
   timeline playhead / scrubber throughout the page.
   Layout language: a video-editor's timeline —
   sections are separated by a ruler with real
   timecodes (00:00 / 00:15 ...), not decorative
   numbering.
   ============================================ */

:root {
  --bg: #0a0a0c;
  --bg-elevated: #141416;
  --bg-card: #17171a;
  --cream: #f4f1ea;
  --cream-dim: #b9b6ad;
  --ink-muted: #79766e;
  --accent: #ffb020;      /* timeline playhead amber */
  --accent-2: #ff3b5c;    /* urgency / rec-dot red   */
  --line: rgba(244, 241, 234, 0.10);
  --line-strong: rgba(244, 241, 234, 0.22);

  --font-display: "Space Grotesk", "Cairo", sans-serif;
  --font-body: "Inter", "Cairo", sans-serif;
  --font-ar: "Cairo", "Inter", sans-serif;

  --radius: 10px;
  --container: 1180px;
}

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

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; }
p { color: var(--cream-dim); }

/* ---------- Timeline ruler divider (structural, not decorative) ---------- */
.ruler {
  position: relative;
  height: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ruler::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0px, var(--line-strong) 1px,
    transparent 1px, transparent 60px
  );
}
.ruler span {
  position: absolute;
  top: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  border-color: var(--line);
  padding: 12px 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { width: 30px; height: 30px; }
.nav__brand span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 18px;
}
.nav__links { display: flex; gap: 28px; font-size: 14px; color: var(--cream-dim); }
.nav__links a:hover { color: var(--cream); }
@media (max-width: 860px) { .nav__links { display: none; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: #16130a; }
.btn--primary:hover { box-shadow: 0 0 0 4px rgba(255,176,32,0.18); }
.btn--ghost { border-color: var(--line-strong); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  margin: 18px 0 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead { font-size: 18px; max-width: 46ch; margin-bottom: 30px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Signature: timeline scrubber before/after ---- */
.scrubber {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  user-select: none;
}
.scrubber__layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  font-family: var(--font-display);
}
.scrubber__layer.raw {
  background: linear-gradient(135deg, #1b1b1e, #0d0d0f);
  color: var(--ink-muted);
}
.scrubber__layer.after {
  background: linear-gradient(135deg, #241a08, #0a0a0c 70%);
  color: var(--accent);
  clip-path: inset(0 0 0 50%);
}
.scrubber__layer .tag {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.scrubber__layer .big { font-size: 28px; font-weight: 700; }

.scrubber__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--cream);
  cursor: ew-resize;
  z-index: 5;
}
.scrubber__handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  background: var(--cream);
  border-radius: 50%;
  background-image: url("assets/logo-sm.png");
  background-size: 26px;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}
.scrubber__caption {
  position: absolute; bottom: 12px; left: 0; right: 0;
  text-align: center; font-size: 12px; color: var(--ink-muted);
  letter-spacing: 0.08em;
}

/* ---------- Section shell ---------- */
section { padding: 88px 0; }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 14px 0; }

/* ---------- Benefits ---------- */
.benefits__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px) { .benefits__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits__grid { grid-template-columns: 1fr; } }
.benefit {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.benefit:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.benefit .icon { font-size: 22px; color: var(--accent); margin-bottom: 14px; }
.benefit h3 { font-size: 17px; margin-bottom: 8px; }
.benefit p { font-size: 14px; margin: 0; }

/* ---------- Category showcase (real Drive categories) ---------- */
.cat__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
@media (max-width: 980px) { .cat__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cat__grid { grid-template-columns: repeat(2, 1fr); } }
.cat {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--cream-dim);
  display: flex; align-items: center; gap: 8px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cat:hover { border-color: var(--accent); color: var(--cream); }
.cat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); color: var(--accent); font-weight: 700; }
.stat .label { font-size: 13px; color: var(--ink-muted); margin-top: 6px; }

/* ---------- Why choose us ---------- */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .why__grid { grid-template-columns: 1fr; } }
.why__card { padding: 28px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
.why__card .n { font-family: var(--font-display); color: var(--accent); font-size: 13px; letter-spacing: 0.1em; }
.why__card h3 { margin: 12px 0 10px; font-size: 19px; }

/* ---------- Testimonials ---------- */
.testi {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.testi__slide { display: none; }
.testi__slide.active { display: block; animation: fadeUp 0.5s ease; }
.testi__slide p.quote { font-size: 20px; color: var(--cream); font-style: normal; }
.testi__slide .who { margin-top: 18px; color: var(--ink-muted); font-size: 13px; }
.testi__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.testi__dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line-strong); padding: 0; }
.testi__dots button.active { background: var(--accent); }
.testi__note {
  margin-top: 20px; font-size: 12px; color: var(--ink-muted);
  border: 1px dashed var(--line-strong); border-radius: 8px; padding: 10px 14px; display: inline-block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: none; border: none; color: var(--cream);
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 4px; font-size: 16px; font-family: var(--font-ar); text-align: right;
}
.faq__q .plus { color: var(--accent); font-family: var(--font-display); font-size: 20px; transition: transform 0.25s ease; }
.faq__item.open .plus { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__a p { padding: 0 4px 20px; font-size: 14px; margin: 0; }

/* ---------- Pricing ---------- */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .pricing__grid { grid-template-columns: 1fr; } }
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  background: var(--bg-card);
  display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--accent); position: relative; background: #1c1509; }
.plan--featured .badge {
  position: absolute; top: -13px; right: 26px;
  background: var(--accent); color: #16130a; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; letter-spacing: 0.04em;
}
.plan h3 { font-size: 18px; }
.plan .price { font-family: var(--font-display); font-size: 40px; margin: 14px 0 4px; color: var(--accent); }
.plan .price small { font-size: 14px; color: var(--ink-muted); font-family: var(--font-ar); }
.plan ul { list-style: none; margin: 18px 0; padding: 0; flex: 1; }
.plan li { font-size: 14px; color: var(--cream-dim); padding: 7px 0; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: none; }
.plan .btn { justify-content: center; width: 100%; }

/* ---------- Offer / countdown ---------- */
.offer {
  border: 1px solid var(--accent);
  background: radial-gradient(circle at 20% 0%, rgba(255,176,32,0.12), transparent 60%), var(--bg-card);
  border-radius: var(--radius);
  padding: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.offer__text h3 { font-size: 20px; margin-bottom: 6px; }
.offer__text p { margin: 0; font-size: 14px; }
.countdown { display: flex; gap: 12px; }
.countdown div {
  text-align: center; background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 10px 14px; min-width: 62px;
}
.countdown .n { font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.countdown .l { font-size: 10px; color: var(--ink-muted); letter-spacing: 0.08em; }

/* ---------- Guarantee / bonus ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--bg-card); }
.panel h3 { font-size: 18px; margin-bottom: 10px; }
.panel .icon { font-size: 24px; color: var(--accent); margin-bottom: 12px; }

/* ---------- Checkout ---------- */
.checkout {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 40px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg));
  text-align: center;
}
.pay__badges { display: flex; justify-content: center; gap: 14px; margin: 22px 0; flex-wrap: wrap; }
.pay__badges span {
  font-size: 12px; color: var(--ink-muted); border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 6px 12px;
}
.checkout__note { font-size: 12px; color: var(--ink-muted); margin-top: 16px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer__grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { width: 22px; height: 22px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 200;
  width: 54px; height: 54px; border-radius: 50%;
  background: #22c55e; color: #04170b;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: pulse 2.4s ease-in-out infinite;
  font-size: 24px;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4), 0 8px 24px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(34,197,94,0), 0 8px 24px rgba(0,0,0,0.4); }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  display: none; padding: 12px 16px;
  background: rgba(10,10,12,0.92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-strong);
  align-items: center; justify-content: space-between; gap: 12px;
}
.sticky-cta.show { display: flex; }
@media (min-width: 861px) { .sticky-cta { display: none !important; } }
.sticky-cta .btn { width: 100%; justify-content: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Video explainer ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; z-index: 2; }
.video-frame__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-muted); font-size: 14px; text-align: center; padding: 20px; z-index: 1;
}
.video-frame__placeholder span { font-size: 34px; }

/* ---------- Review screenshots ---------- */
.reviews__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px;
}
@media (max-width: 760px) { .reviews__grid { grid-template-columns: 1fr; } }
.review-shot {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
}
.review-shot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.review-shot__empty { font-size: 13px; color: var(--ink-muted); text-align: center; padding: 0 16px; }

/* ---------- Single plan pricing ---------- */
.single-plan { max-width: 420px; margin: 0 auto; }
.price__old {
  font-family: var(--font-display); font-size: 20px; color: var(--ink-muted);
  text-decoration: line-through; margin-left: 10px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
