/* =========================================================================
   HALMONT — STYLES
   1. Design tokens (colors, fonts, sizes)   — change the brand here
   2. Base
   3. Layout helpers
   4. Components (buttons, chips, cards…)
   5. Sections, in page order
   6. Animations & accessibility
   Layout uses "logical" properties (inline-start / inline-end) so that
   Arabic (right-to-left) mirrors automatically.
   ========================================================================= */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  --bg: #F4F4F2;          /* off-white page background   */
  --surface: #E9E9E6;     /* light grey panels           */
  --card: #FFFFFF;        /* white cards                 */
  --ink: #0B0B0C;         /* deep black sections         */
  --ink-2: #161618;       /* raised black surfaces       */
  --text: #141414;        /* main text                   */
  --grey: #858585;        /* grey part of two-tone titles*/
  --muted: #5A5A5A;       /* secondary text              */
  --line: rgba(20, 20, 20, .10);
  --accent: #1C3AA9;      /* dark blue accent            */
  --accent-hover: #15308F;
  --accent-light: #6A88FF;/* blue accent on black        */
  --wa: #1DA851;          /* WhatsApp green (icon only)  */
  --danger: #B3261E;

  --font-head: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;

  --radius-xl: clamp(24px, 3vw, 36px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --space-section: clamp(12px, 1.6vw, 20px);
  --panel-pad: clamp(28px, 6vw, 88px);
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[lang="ar"] {
  --font-head: "Alexandria", "Inter Tight", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", Tahoma, sans-serif;
}

/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
html.i18n-pending body { visibility: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.panel--dark :focus-visible { outline-color: var(--accent-light); }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

/* 3. LAYOUT -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--space-section); }
.section--last { padding-block-end: clamp(48px, 8vw, 96px); }
#why, #services, #about, #faq, #guarantee { padding-block: clamp(64px, 10vw, 128px); }

.grid { display: grid; gap: 12px; }
@media (min-width: 720px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.panel {
  position: relative;
  border-radius: var(--radius-xl);
  padding: var(--panel-pad) clamp(20px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
}
.panel--grey { background: var(--surface); }
.panel--dark { background: var(--ink); color: #F4F4F2; }

.section-head { display: grid; gap: 18px; margin-block-end: clamp(36px, 5vw, 64px); max-width: 860px; }
.section-head--center { text-align: center; margin-inline: auto; justify-items: center; }

/* 4. TYPOGRAPHY & COMPONENTS -------------------------------------------- */
.display, .h2, .h3, .h4, .plan__name, .logo {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
}
.display {
  font-size: clamp(2.55rem, 7.4vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.h2 {
  font-size: clamp(2rem, 4.8vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
.h4 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 500; }
.tone-a, .tone-b { display: inline; }
.tone-b { color: var(--grey); }
.panel--dark .display, .panel--dark .h2, .panel--dark .h3 { color: #F4F4F2; }
.panel--dark .tone-b { color: #8C8C8C; }

html[lang="ar"] .display { line-height: 1.22; letter-spacing: 0; }
html[lang="ar"] .h2 { line-height: 1.3; letter-spacing: 0; }
html[lang="ar"] .h3, html[lang="ar"] .h4 { letter-spacing: 0; line-height: 1.45; }
html[lang="ar"] body { line-height: 1.8; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 640px; line-height: 1.6; }
.panel--dark .lead { color: #A9A9A9; }
.body-lg { font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--muted); }
.muted { color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(20, 20, 20, .06);
  color: var(--muted);
  font-size: .8125rem; font-weight: 500; letter-spacing: .01em;
  width: fit-content;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--accent); }
.panel--grey .chip { background: rgba(255, 255, 255, .7); }
.chip--dark { background: rgba(255, 255, 255, .08); color: #BDBDBD; }
.chip--dark::before { background: var(--accent-light); }
.section-head--center .chip { justify-self: center; }

.pill {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8125rem; color: var(--muted);
  width: fit-content;
}
.pill--dark { border-color: rgba(255, 255, 255, .2); color: #C8C8C8; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .9375rem; font-weight: 500; line-height: 1.2;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon--flip { transform: scaleX(-1) translateX(3px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); }
.btn--ghost { border-color: rgba(20, 20, 20, .2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(20, 20, 20, .03); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 32px);
}
.icon-box {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink); color: #fff;
}
.icon-box .icon { width: 22px; height: 22px; }

.check-badge {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; flex-shrink: 0;
}
.check-badge .icon { width: 18px; height: 18px; }
.check-badge--lg { width: 56px; height: 56px; }
.check-badge--lg .icon { width: 28px; height: 28px; }

.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.5; }
.checklist .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.checklist__time { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 500; }

/* Light streaks (dark blue light trails) */
.streaks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.streaks span {
  position: absolute; inset-inline-start: -30%;
  width: 160%; height: 22%;
  top: 46%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(106, 136, 255, .55), rgba(28, 58, 169, .25) 55%, transparent);
  filter: blur(28px);
  transform: rotate(-7deg);
  animation: drift 14s ease-in-out infinite alternate;
}
.streaks span:nth-child(2) { top: 52%; height: 5%; background: radial-gradient(closest-side, rgba(220, 228, 255, .9), rgba(106, 136, 255, .5) 50%, transparent); filter: blur(6px); animation-duration: 11s; }
.streaks span:nth-child(3) { top: 58%; height: 12%; background: radial-gradient(closest-side, rgba(28, 58, 169, .7), transparent); filter: blur(18px); animation-duration: 17s; animation-delay: -4s; }
.streaks span:nth-child(4) { top: 40%; height: 2%; background: linear-gradient(90deg, transparent, rgba(190, 205, 255, .85) 40%, rgba(255, 255, 255, .95) 60%, transparent); filter: blur(2px); animation-duration: 9s; }
.streaks--soft span { opacity: .45; top: 6%; }
.streaks--soft span:nth-child(2) { top: 12%; }
.streaks--soft span:nth-child(3) { top: 16%; }
[dir="rtl"] .streaks span { transform: rotate(7deg); }
@keyframes drift {
  from { translate: -4% 0; }
  to { translate: 4% 0; }
}

/* 5. SECTIONS ------------------------------------------------------------ */

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
/* Blur lives on a separate layer so it doesn't trap the fixed mobile menu */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(244, 244, 242, .82);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
body.menu-open .site-header::before { background: var(--bg); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { direction: ltr; display: inline-flex; align-items: flex-end; gap: 3px; font-size: 1.25rem; letter-spacing: .16em; font-weight: 600; font-family: "Inter Tight", var(--font-head); }
.logo__dot { width: 6px; height: 6px; border-radius: 1.5px; background: var(--accent); margin-bottom: .32em; }
.logo--lg { font-size: 1.6rem; }

.nav { margin-inline: auto; display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  display: inline-flex; padding: 8px 14px; border-radius: 999px;
  font-size: .9375rem; color: var(--muted);
  transition: color .25s, background-color .25s;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--text); background: rgba(20, 20, 20, .05); }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(20, 20, 20, .06); }
.lang-switch button {
  min-width: 36px; height: 32px; padding: 0 8px;
  border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--muted);
  font-family: "Inter", sans-serif;
  transition: background-color .25s, color .25s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.lang-switch--lg { display: flex; }
.lang-switch--lg button { flex: 1; height: 44px; font-size: .875rem; }

.site-header__cta { display: none; }
.menu-toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff;
}
.menu-toggle .icon { width: 20px; height: 20px; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--bg);
  padding: 24px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__list a {
  display: block; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: 1.75rem; font-weight: 500; letter-spacing: -.02em;
}
.mobile-menu__foot { display: grid; gap: 16px; padding-top: 32px; }
body.menu-open { overflow: hidden; }

@media (max-width: 639px) {
  .site-header__inner { gap: 12px; }
  .site-header__actions { gap: 8px; }
}
@media (max-width: 380px) {
  .logo { font-size: 1.1rem; letter-spacing: .12em; }
  .lang-switch button { min-width: 32px; padding: 0 6px; }
}
@media (min-width: 640px) {
  .site-header__cta { display: inline-flex; }
}
@media (min-width: 1080px) {
  /* 3 columns: logo | menu (truly centered on the page) | buttons */
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .logo { justify-self: start; }
  .nav { display: block; margin: 0; }
  .site-header__actions { justify-self: end; margin: 0; }
  .menu-toggle { display: none; }
}

/* --- Hero --- */
.hero { padding-block: clamp(40px, 8vw, 104px) var(--space-section); }
.hero__intro { display: grid; justify-items: center; text-align: center; gap: clamp(20px, 2.4vw, 28px); }
.hero__intro .chip { justify-self: center; }
.hero .display { max-width: 15ch; }
html[lang="ar"] .hero .display { max-width: 18ch; }
.hero .lead { max-width: 620px; }
.hero .btn-row { justify-content: center; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: .875rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 16px; height: 16px; color: var(--accent); }

.stage {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 90% at 50% 110%, #101a3d 0%, var(--ink) 60%);
  padding: clamp(40px, 7vw, 96px) clamp(16px, 5vw, 64px) 0;
}
.devices { position: relative; width: min(100%, 980px); margin-inline: auto; }
.laptop { width: 84%; margin-inline: auto; }
.laptop__lid {
  background: #1c1c1f; border: 1px solid #2a2a2e; border-bottom: 0;
  border-radius: 14px 14px 0 0; padding: 1.4%;
}
.laptop__screen { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--bg); }
.laptop__screen img, .phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop__base {
  height: clamp(8px, 1.6vw, 16px); width: 112%; margin-inline-start: -6%;
  background: linear-gradient(#3a3a3f, #1b1b1e);
  border-radius: 0 0 14px 14px;
}
.phone {
  position: absolute; inset-inline-end: 0; bottom: -2%;
  width: 21%; padding: 1%;
  background: #111113; border: 1px solid #2a2a2e;
  border-radius: clamp(14px, 3vw, 32px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
}
.phone__screen { aspect-ratio: 9 / 19.5; border-radius: clamp(10px, 2.4vw, 26px); overflow: hidden; background: var(--bg); }

/* Placeholder mini-site inside the devices */
.mock-site { height: 100%; display: flex; flex-direction: column; gap: 6%; padding: 4% 5%; background: var(--bg); }
.mock-site__nav { display: flex; align-items: center; gap: 4%; }
.mock-site__nav i { width: 12%; height: 6px; background: var(--ink); border-radius: 2px; }
.mock-site__nav b { width: 7%; height: 4px; background: #c9c9c6; border-radius: 2px; }
.mock-site__nav b:first-of-type { margin-inline-start: auto; }
.mock-site__nav em { width: 10%; height: 10px; background: var(--ink); border-radius: 999px; margin-inline-start: 4%; }
.mock-site__hero { display: grid; gap: 4px; justify-items: start; }
.mock-site__hero b { height: clamp(8px, 2.2vw, 20px); background: var(--ink); border-radius: 3px; }
.mock-site__hero b.grey { background: #bdbdb9; }
.mock-site__hero i { height: 4px; background: #cfcfcb; border-radius: 2px; margin-top: 4px; }
.mock-site__hero em { width: 18%; height: clamp(8px, 1.6vw, 16px); background: var(--accent); border-radius: 999px; margin-top: 6px; }
.mock-site__visual {
  flex: 1; border-radius: 8px;
  background:
    radial-gradient(60% 18% at 40% 60%, rgba(220, 228, 255, .9), transparent),
    radial-gradient(90% 30% at 50% 62%, rgba(106, 136, 255, .6), transparent),
    var(--ink);
}
.w40 { width: 40%; } .w50 { width: 50%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.mock-site--phone { padding: 10% 8%; gap: 8%; }
.mock-site--phone .mock-site__nav i { width: 30%; height: 4px; }
.mock-site--phone .mock-site__nav em { width: 18%; height: 8px; margin-inline-start: auto; }
.mock-site--phone .mock-site__hero b { height: clamp(5px, 1vw, 10px); }
.mock-site--phone .mock-site__hero em { width: 45%; height: clamp(5px, 1vw, 10px); }

/* --- Problem --- */
.pain { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 56px); }
.pain__num { font-family: "Inter Tight", sans-serif; font-size: .875rem; font-weight: 600; color: var(--accent); letter-spacing: .04em; }
.pain p { font-family: var(--font-head); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.35; font-weight: 500; letter-spacing: -.015em; }
html[lang="ar"] .pain p { letter-spacing: 0; line-height: 1.6; }

/* --- Why --- */
.feature { display: flex; flex-direction: column; gap: 12px; min-height: 260px; border: 1px solid transparent; transition: border-color .3s, transform .4s var(--ease); }
.feature .icon-box { margin-bottom: auto; }
.feature h3 { margin-top: 32px; }
.feature p { color: var(--muted); font-size: .9375rem; }
.feature:hover { border-color: var(--line); transform: translateY(-4px); }

/* --- Work --- */
.work-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
  padding-bottom: clamp(24px, 3vw, 36px); margin-bottom: clamp(28px, 3.5vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.work-head .h2 { margin-top: 16px; }
.work-head__intro { max-width: 340px; color: #9A9A9A; font-size: .9375rem; }

/* Staggered showcase: each screenshot is shown whole (16:10, never cropped),
   alternating left / right like an editorial layout. */
.work-grid { display: grid; gap: clamp(56px, 8vw, 112px); }
.project { display: grid; gap: 24px; align-items: center; }
.project__media {
  display: block; overflow: hidden;
  border-radius: 16px;
  background: #1A1A1C;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  transition: transform .6s var(--ease), border-color .3s;
}
.project__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.project__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.project__shot { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.project__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.project:hover .project__media { transform: translateY(-6px); border-color: rgba(255, 255, 255, .16); }
.project:hover .project__shot img { transform: scale(1.025); }
.project__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #8a8a8a; font-size: .875rem; }

.project__info { display: grid; justify-items: start; gap: 14px; max-width: 420px; }
.project__meta { display: inline-flex; align-items: center; gap: 12px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #8C8C8C; }
html[lang="ar"] .project__meta { letter-spacing: 0; font-size: .8125rem; }
.project__num { font-family: "Inter Tight", sans-serif; font-weight: 600; color: var(--accent-light); letter-spacing: .04em; }
.project__name { font-family: var(--font-head); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; font-weight: 600; letter-spacing: -.035em; color: #F4F4F2; }
html[lang="ar"] .project__name { letter-spacing: -.02em; }
.project__desc { color: #A9A9A9; font-size: 1rem; }
.project__link {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 8px;
  font-size: .9375rem; font-weight: 500; color: #F4F4F2;
}
.project__arrow {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.project__arrow .icon { width: 16px; height: 16px; }
.project:hover .project__arrow, .project__link:hover .project__arrow { background: #F4F4F2; border-color: #F4F4F2; color: var(--ink); transform: rotate(45deg); }
[dir="rtl"] .project:hover .project__arrow, [dir="rtl"] .project__link:hover .project__arrow { transform: rotate(-45deg); }

@media (min-width: 900px) {
  .project { grid-template-columns: repeat(12, 1fr); column-gap: clamp(24px, 3vw, 48px); }
  .project__media { grid-column: 1 / span 8; grid-row: 1; }
  .project__info { grid-column: 9 / -1; grid-row: 1; }
  /* every 2nd project: text first, screenshot pushed to the other side */
  .project:nth-child(even) .project__media { grid-column: 5 / -1; }
  .project:nth-child(even) .project__info { grid-column: 1 / span 4; justify-self: end; }
}

/* --- Services --- */
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 1000px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.plan {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  background: var(--card); border-radius: 28px;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  /* "translate" (not "transform") so the hover lift adds to the Pro card's raised position */
  transition: translate .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, opacity .9s var(--ease), transform .9s var(--ease);
}
.plan:hover { translate: 0 -6px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .25); }
/* Launch & Store: thin near-black outline */
.plan:not(.plan--featured) { border: 1.5px solid #1F1F21; }
/* "Get a quote" turns brand blue on hover, like the Pro button */
.plan .btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.plan__head { display: grid; gap: 12px; }
.plan__name { font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.035em; font-family: "Inter Tight", sans-serif; }
.plan__for { color: var(--muted); font-size: .9375rem; }
.plan__includes { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); font-weight: 600; padding-top: 18px; border-top: 1px solid var(--line); }
html[lang="ar"] .plan__includes { letter-spacing: 0; font-size: .875rem; }
.plan .checklist { flex: 1; }
.plan .btn { margin-top: 8px; }

.plan--featured {
  background: #EEF2FC; border: 1.5px solid var(--accent);
  box-shadow: 0 30px 60px -34px rgba(28, 58, 169, .28);
}
.plan--featured:hover { border-color: var(--accent); box-shadow: 0 36px 64px -30px rgba(28, 58, 169, .34); }
.plan--featured .plan__includes, .plan--featured .checklist__time { border-color: rgba(28, 58, 169, .16); }
.plan--featured .pill { border-color: rgba(28, 58, 169, .25); }
.plan__badge {
  position: absolute; top: clamp(26px, 3vw, 40px); inset-inline-end: clamp(26px, 3vw, 40px);
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}
.care-line {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  margin-top: clamp(32px, 4vw, 48px); color: var(--muted); font-size: .9375rem;
}
.care-line__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }

/* --- Process --- */
.timeline { display: grid; gap: 0; position: relative; }
.step { position: relative; display: grid; gap: 8px; padding-inline-start: 72px; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step::before { /* vertical line on mobile */
  content: ""; position: absolute; inset-inline-start: 23px; top: 48px; bottom: 0;
  width: 1px; background: rgba(20, 20, 20, .15);
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute; inset-inline-start: 0; top: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: .875rem;
}
.step h3 { padding-top: 10px; }
.step p { color: var(--muted); font-size: .9375rem; max-width: 34ch; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step { padding-inline-start: 0; padding-bottom: 0; padding-top: 80px; }
  .step::before { inset-inline-start: 60px; inset-inline-end: -24px; top: 24px; bottom: auto; width: auto; height: 1px; }
  .step:last-child::before { display: none; }
  .step h3 { padding-top: 0; }
}

/* --- About --- */
.about__grid { display: grid; gap: clamp(48px, 7vw, 96px); align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.05fr 1fr; } }
.about__media { max-width: 560px; width: 100%; margin-inline: auto; }
.about__photo { overflow: hidden; aspect-ratio: 1 / 1; border-radius: 28px; background: var(--surface); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__media:hover .about__photo img { transform: scale(1.02); }
.about__text { display: grid; gap: 22px; justify-items: start; }
.signature { display: grid; gap: 2px; padding-inline-start: 16px; border-inline-start: 2px solid var(--accent); }
.signature__name { font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; }
.signature__role { font-size: .875rem; color: var(--muted); }

/* --- Proof --- */
.proof { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .proof { grid-template-columns: 1fr 1fr; } }
.proof__text { display: grid; gap: 22px; }
.proof .h2, .contact .h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.proof__text .chip { justify-self: start; }
.proof__phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2.4vw, 28px); align-items: start; max-width: 560px; width: 100%; margin-inline: auto; }
.proof__item--offset { margin-top: clamp(32px, 6vw, 64px); }
.phone-frame {
  padding: 7px; border-radius: clamp(26px, 4vw, 40px);
  background: linear-gradient(160deg, #2a2a2e, #141416);
  border: 1px solid #2f2f33;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.phone-frame__screen { position: relative; aspect-ratio: 480 / 848; border-radius: clamp(20px, 3.4vw, 33px); overflow: hidden; background: #000; }
.video__el { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 50%);
}
.video__play-icon {
  display: grid; place-items: center;
  width: clamp(56px, 8vw, 72px); height: clamp(56px, 8vw, 72px); border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .15);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.video__play-icon .icon { width: 26px; height: 26px; margin-inline-start: 3px; }
[dir="rtl"] .video__play-icon .icon { margin-inline-start: 0; margin-inline-end: 3px; transform: none; }
.video__play:hover .video__play-icon { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(255, 255, 255, .18); }
.video.is-playing .video__play { display: none; }

.message { background: #111214; }
.message__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 26% 9% 10%; }
.message__bubble { height: 34px; width: 78%; border-radius: 14px; background: #26272b; }
.message__bubble.short { width: 52%; }
.message__bubble--out { align-self: flex-end; background: var(--accent); width: 62%; }
.message__placeholder p { margin-top: auto; color: #8a8a8a; font-size: .75rem; text-align: center; line-height: 1.4; }
.message img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.proof__caption { display: grid; gap: 2px; margin-top: 16px; font-size: .8125rem; color: #9b9b9b; line-height: 1.45; }
.proof__caption strong { color: #F4F4F2; font-weight: 500; font-size: .9375rem; }
.proof__kind { color: var(--accent-light); font-weight: 500; }

.offer {
  display: grid; gap: 14px; justify-items: start;
  margin-top: 12px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(28, 58, 169, .5), rgba(28, 58, 169, .12) 70%);
  border: 1px solid rgba(106, 136, 255, .35);
}
.offer p { color: #C9CFE6; }
.offer__badge { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff !important; padding: 5px 10px; border-radius: 999px; background: rgba(106, 136, 255, .25); }
html[lang="ar"] .offer__badge { letter-spacing: 0; }

/* --- Guarantee --- */
.guarantee { background: var(--card); border-radius: var(--radius-xl); padding: var(--panel-pad) clamp(20px, 5vw, 72px); }
.guarantee__item { display: flex; flex-direction: column; gap: 32px; background: var(--bg); }
.guarantee__item p { font-family: var(--font-head); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
html[lang="ar"] .guarantee__item p { letter-spacing: 0; line-height: 1.6; }

/* --- FAQ --- */
.faq { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .faq { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item h3 { font: inherit; }
.accordion__btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; text-align: start;
  font-family: var(--font-head); font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 500; letter-spacing: -.01em;
  transition: color .25s;
}
.accordion__btn:hover { color: var(--accent); }
.accordion__btn .icon {
  width: 36px; height: 36px; padding: 9px; border-radius: 50%;
  background: rgba(20, 20, 20, .06);
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.accordion__btn[aria-expanded="true"] .icon { transform: rotate(45deg); background: var(--ink); color: #fff; }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding-bottom: 24px; color: var(--muted); max-width: 60ch; padding-inline-end: 48px; }

/* --- Contact --- */
.contact { display: grid; gap: clamp(40px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__intro { display: grid; gap: 22px; }
.contact__intro .chip { justify-self: start; }
.wa-card {
  display: flex; align-items: center; gap: 16px;
  margin-top: 12px; padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.wa-card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); transform: translateY(-2px); }
.wa-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--wa); color: #fff; flex-shrink: 0; }
.wa-card__icon .icon { width: 28px; height: 28px; }
.wa-card__text { display: grid; gap: 2px; flex: 1; font-size: .875rem; color: #A9A9A9; }
.wa-card__text strong { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: #fff; }
.wa-card__eyebrow { color: var(--accent-light); font-weight: 500; }
.wa-card__arrow { width: 22px; height: 22px; color: #fff; }

.form-card { background: var(--card); color: var(--text); border-radius: 28px; padding: clamp(22px, 3.2vw, 40px); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .875rem; font-weight: 500; }
.field__opt { color: var(--grey); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px;
  padding: 14px 16px;
  font-size: 1rem; /* 16px avoids zoom on iPhone */
  background: var(--bg); color: var(--text);
  border: 1px solid transparent; border-radius: 14px;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #8f8f8f; }
html[dir="rtl"] .field input[type="tel"] { text-align: right; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(28, 58, 169, .14);
}
.field [aria-invalid="true"] { border-color: var(--danger); background: #fff; }
.field__error { color: var(--danger); font-size: .8125rem; min-height: 0; }
.field__error:empty { display: none; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; inset-inline-end: 18px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-inline-end: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}
[dir="rtl"] .select::after { transform: rotate(-45deg); }
.select select { padding-inline-end: 44px; cursor: pointer; }
.form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form__submit { margin-top: 6px; }
.form__submit[disabled] { opacity: .65; cursor: progress; }
.form__status { font-size: .875rem; color: var(--danger); text-align: center; }
.form__status:empty { display: none; }
.form-success { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 48px 8px; }
.form-success p { color: var(--muted); }
.form-success:focus { outline: none; }

/* --- Footer --- */
.site-footer { padding-block: clamp(48px, 7vw, 80px) 28px; font-size: .9375rem; }
.site-footer__grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer__brand { display: grid; gap: 12px; justify-items: start; max-width: 360px; }
.site-footer__title { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); font-weight: 600; margin-bottom: 14px; }
html[lang="ar"] .site-footer__title { letter-spacing: 0; font-size: .875rem; }
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); transition: color .25s; }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__col .icon { width: 18px; height: 18px; }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--grey); font-size: .8125rem; }

/* --- Floating WhatsApp --- */
.wa-float {
  position: fixed; z-index: 90;
  bottom: max(18px, env(safe-area-inset-bottom)); inset-inline-end: 18px;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: #fff;
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease), background-color .3s;
}
.wa-float::after { /* small green status dot */
  content: ""; position: absolute; top: 4px; inset-inline-end: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #25D366; border: 2px solid var(--ink);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: #1a1a1d; }

/* 6. ANIMATIONS & ACCESSIBILITY ----------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hero plays immediately on load (pure CSS, no waiting for JavaScript) */
.hero-in { animation: hero-in 1s var(--ease) both; animation-delay: var(--d, 0ms); }
.display.hero-in { animation-name: hero-title; } /* no fade on the headline: it shows instantly */
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes hero-title { from { transform: translateY(18px); } }
.js .plan.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease), translate .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms, 0ms; }
.js .plan--featured.reveal.is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
