:root {
  --bg: #07080c;
  --bg-2: #0e1017;
  --card: #12151e;
  --line: #222736;
  --text: #f3f4f8;
  --muted: #9aa1b5;
  --accent: #c6ff3d;
  --accent-2: #7c5cff;
  --accent-ink: #0b0d10;
  --radius: 18px;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(7, 8, 12, .85); backdrop-filter: blur(14px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.lang { text-decoration: none; font-size: 14px; font-weight: 600; border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; }
.lang:hover { border-color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 99px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -8px rgba(198, 255, 61, .55); }
.btn-ghost { border-color: rgba(255, 255, 255, .25); color: var(--text); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 15% 30%, rgba(124, 92, 255, .25), transparent 60%),
    linear-gradient(180deg, rgba(7, 8, 12, .55) 0%, rgba(7, 8, 12, .35) 40%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 80px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); background: rgba(198, 255, 61, .08);
  border: 1px solid rgba(198, 255, 61, .25); padding: 6px 12px; border-radius: 99px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.hero h1 {
  font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -.035em; margin: 22px 0 22px;
  max-width: 14ch; font-weight: 800;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.2; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), #6fffd2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2vw, 21px); color: #c9cdda; max-width: 46ch; margin: 0 0 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; color: var(--muted); font-size: 15px; padding: 0; list-style: none; }
.hero-points li::before { content: "✓"; color: var(--accent); margin-inline-end: 8px; font-weight: 700; }

/* Sections */
section { padding: 100px 0; }
.section-head { max-width: 680px; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 50px); line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 14px; }
html[lang="ar"] .section-head h2 { letter-spacing: 0; line-height: 1.3; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.work {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px solid var(--line); cursor: pointer; padding: 0; color: inherit; font: inherit; text-align: start;
}
.v-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work.v { aspect-ratio: 9 / 16; }
.work-label { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: var(--muted); margin: 18px 0 -4px; }
.work-label:first-child { margin-top: 0; }
.work.h { grid-column: span 6; aspect-ratio: 16 / 9; }
.work img, .work video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work:hover img { transform: scale(1.04); }
.work .meta {
  position: absolute; inset: auto 0 0 0; padding: 50px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85));
}
.work .tag, .work .title { display: block; }
.work .tag { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .work .tag { letter-spacing: 0; }
.work .title { font-weight: 700; font-size: 17px; margin-top: 2px; }
.play {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .3);
  display: grid; place-items: center; transition: transform .2s, background .2s;
}
.play svg { width: 22px; height: 22px; margin-left: 3px; }
.work:hover .play { transform: scale(1.1); background: var(--accent); color: var(--accent-ink); }
.work-note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(124, 92, 255, .14); color: #b3a2ff;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 44px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px #3a4157; display: block; margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.price.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 80px -30px rgba(198, 255, 61, .35); position: relative; }
.badge { position: absolute; top: -13px; inset-inline-start: 28px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .badge { letter-spacing: 0; }
.price h3 { margin: 0; font-size: 20px; }
.price .desc { color: var(--muted); font-size: 15px; margin: 6px 0 22px; }
.amount { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.amount small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; font-size: 15px; }
.price li { display: flex; gap: 10px; }
.price li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.price .btn { margin-top: auto; }
.price-note { color: var(--muted); font-size: 14px; margin-top: 22px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-side h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -.03em; margin: 14px 0 18px; }
html[lang="ar"] .contact-side h2 { letter-spacing: 0; line-height: 1.3; }
.contact-side p { color: var(--muted); font-size: 18px; }
.contact-side .btn { margin-top: 14px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: #c9cdda; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 12px;
  padding: 13px 14px; font: inherit; font-size: 16px; outline: none; transition: border-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { font-size: 15px; min-height: 1.4em; margin: 0; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff7a7a; }
.form .fine { color: var(--muted); font-size: 13px; margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 110px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer nav { display: flex; gap: 22px; }

/* WhatsApp floating */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Video modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .9); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal video { max-height: 88vh; max-width: min(1200px, 100%); border-radius: 14px; background: #000; }
.modal-close { position: absolute; top: 16px; inset-inline-end: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: 26px; cursor: pointer; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Plain pages */
.page { padding: 140px 0 80px; max-width: 760px; }
.page h1 { font-size: 42px; letter-spacing: -.03em; }
.page h2 { margin-top: 36px; }
.page p, .page li { color: #c9cdda; }

/* Responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .lang { margin-inline-start: auto; }
  .work.h { grid-column: span 12; }
  .v-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px;
  }
  .v-row::-webkit-scrollbar { display: none; }
  .v-row .work { flex: 0 0 min(62%, 300px); scroll-snap-align: start; }
  .cards, .steps, .prices { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 76px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav .btn-sm { display: none; }
  .hero-ctas .btn { width: 100%; }
  .form .row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .price { padding: 26px; }
}
