/* ============================================================
   AliWeb — Portfolio
   Modern dark portfolio · Neon Mint Green (#10B981) · RTL/LTR
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --brand: #10b981;
  --brand-600: #0ea472;
  --brand-700: #0b8a60;
  --brand-soft: rgba(16, 185, 129, 0.14);
  --brand-glow: rgba(16, 185, 129, 0.38);
  --gold: #d4af37;

  --bg: #0b1210;
  --bg-2: #0e1a16;
  --surface: #111d19;
  --surface-2: #16241f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #e8f0ed;
  --text-muted: #9db2ab;
  --text-dim: #6f857e;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.65);

  --radius: 16px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 74px;

  --font-ar: "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Space Grotesk", system-ui, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  --brand-soft: rgba(16, 185, 129, 0.12);
  --brand-glow: rgba(16, 185, 129, 0.28);

  --bg: #f5f8f7;
  --bg-2: #eef3f1;
  --surface: #ffffff;
  --surface-2: #f2f6f4;
  --border: rgba(11, 18, 16, 0.1);
  --border-strong: rgba(11, 18, 16, 0.16);

  --text: #0d1714;
  --text-muted: #4b5b56;
  --text-dim: #74847e;

  --shadow-md: 0 14px 34px -16px rgba(13, 30, 24, 0.22);
  --shadow-lg: 0 34px 70px -26px rgba(13, 30, 24, 0.28);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

html[lang="fr"] body { font-family: var(--font-latin); line-height: 1.65; }

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
html[lang="fr"] h1,
html[lang="fr"] h2,
html[lang="fr"] h3 { font-family: var(--font-latin); }

p { margin: 0; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--brand); color: #04120c; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  background: var(--brand);
  color: #04120c;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px;
  --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  text-align: center;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #03130d;
  box-shadow: 0 10px 24px -10px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 16px 34px -10px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.btn-sm { --pad-y: 9px; --pad-x: 16px; font-size: 0.9rem; }
.btn-lg { --pad-y: 15px; --pad-x: 28px; font-size: 1.02rem; }
.btn-xl { --pad-y: 20px; --pad-x: 40px; font-size: clamp(1rem, 2.4vw, 1.25rem); }
.btn-block { display: flex; width: 100%; margin-top: auto; }

.btn-glow { position: relative; animation: btnPulse 2.6s var(--ease) infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 10px 24px -10px var(--brand-glow), 0 0 0 0 var(--brand-glow); }
  50% { box-shadow: 0 18px 40px -12px var(--brand-glow), 0 0 0 16px rgba(16, 185, 129, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0b1210;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  flex: none;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--font-latin); font-size: 1.15rem; letter-spacing: 0.2px; }
.brand-name span { color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 2px;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-controls { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.lang-btn {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 6px;
  border-radius: 7px;
  font-family: var(--font-latin);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-btn[aria-pressed="true"] { color: var(--brand); background: var(--brand-soft); }
.lang-sep { color: var(--text-dim); font-size: 0.8rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0 11px;
}
.menu-toggle span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 8vw, 90px)); overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 78% 12%, var(--brand-glow), transparent 70%),
    radial-gradient(560px 380px at 10% 80%, rgba(16, 185, 129, 0.16), transparent 72%);
  opacity: 0.9;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  padding: 7px 14px;
  border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.hero-title {
  margin-top: 20px;
  font-size: clamp(1.9rem, 4.6vw, 3.15rem);
  line-height: 1.28;
}
html[lang="ar"] .hero-title { line-height: 1.45; }
.hero-desc {
  margin-top: 18px;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex: none;
}

/* Hero visual — phone mockup + floating WhatsApp / analytics cards.
   Capped to a compact, self-contained bounding box (not the full grid column)
   so the phone stays proportioned instead of ballooning on wide screens.
   430px (was 380px) is a modest desktop-only scale-up — phone mockup and every
   floating card/chip are sized in % of this box, so they grow with it. Mobile
   breakpoints below define their own width and are untouched. */
.hero-visual {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1 / 1.1;
  margin-inline-start: auto;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(closest-side, var(--brand-glow), transparent);
  filter: blur(44px);
  z-index: 0;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone-mock {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48%;
  aspect-ratio: 9 / 17.5;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px 16px;
  background: linear-gradient(175deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.phone-mock__notch { width: 38%; height: 16px; margin: 0 auto; background: var(--bg); border-radius: 0 0 12px 12px; }
.phone-mock__screen { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.pm-status { display: flex; gap: 5px; }
.pm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.pm-hero-block {
  flex: 0 0 36%;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), var(--surface-2));
}
.pm-hero-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--brand) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.35;
}
.pm-line { font-size: 0.74rem; font-weight: 700; color: var(--text); }
.pm-bar { height: 6px; border-radius: 4px; background: var(--surface-2); }
.pm-bar--full { width: 100%; }
.pm-bar--half { width: 58%; }
.pm-wa-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  font-weight: 800;
  font-size: 0.74rem;
  color: #03130d;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  pointer-events: none;
}
.pm-wa-btn svg { fill: currentColor; }
.pm-swatches { display: flex; gap: 6px; }
.pm-swatch { flex: 1; aspect-ratio: 1; border-radius: 6px; background: var(--surface-2); }
.pm-swatch:first-child { background: color-mix(in srgb, var(--brand) 35%, var(--surface-2)); }

.float-card {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  animation: floatY 5.5s var(--ease) infinite;
}
.float-card--stats { top: 4%; inset-inline-start: -6%; width: 48%; }
.float-card--chat {
  bottom: 8%;
  inset-inline-end: -8%;
  width: 60%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation-delay: 0.6s;
}
.float-chip {
  position: absolute;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  animation: floatY 4.8s var(--ease) infinite;
}
.float-chip--a { top: 42%; inset-inline-start: -10%; animation-delay: 0.3s; }
.float-chip--b { top: 22%; inset-inline-end: -4%; animation-delay: 1s; }

.fc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fc-live { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); }
.fc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.fc-metric { margin-top: 6px; font-weight: 800; font-size: 0.86rem; }
.fc-chart { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 8px; }
.fc-chart span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--brand), var(--brand-600)); border-radius: 3px 3px 0 0; }
.fc-caption { margin-top: 6px; font-size: 0.64rem; color: var(--text-dim); }

.fc-chat-avatar {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #03130d;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
}
.fc-chat-avatar svg { fill: currentColor; }
.fc-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.74rem; }
.fc-chat-head span { color: var(--text-dim); font-size: 0.62rem; }
.fc-chat-body p { margin-top: 3px; font-size: 0.74rem; color: var(--text-muted); }

/* ---------- Kicker (numbered section eyebrow, e.g. "03 — PROCESS") ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-latin);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--brand); flex: none; }

/* ---------- Marquee ----------
   Two halves, each with the item sequence repeated several times so a
   single half is always wider than the viewport — otherwise, on a wide
   screen, translateX(-50%) would reveal empty space past a short group
   before it loops. Track itself has no gap; each group carries its own
   trailing margin equal to the inter-item gap, so the seam between the
   two halves is spaced identically to every other item — a perfectly
   seamless loop with no jump or gap. */
.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-2);
  padding: 22px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  /* Force a fixed LTR flow for the strip itself: in dir="rtl" pages, "row" flex
     items lay out right-to-left, which reverses the item/dot order and the
     effective direction of the -50% loop relative to the mask/measurements
     below. Pinning direction here keeps the loop identical (and correct) in
     both languages; each Arabic phrase still renders correctly since the
     Unicode bidi algorithm shapes RTL text runs independently of this. */
  direction: ltr;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 42s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 14px; flex: none; margin-inline-end: 14px; }
.marquee-group span {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee-group .dot { width: 8px; height: 8px; background: var(--brand); flex: none; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Services ("What I do") ---------- */
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Preview image at the top of each service card — real screenshots, fitted to 16:9 */
.service-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-visual img { transform: scale(1.04); }

/* Divider between the description and the feature list */
.card-divider { border-top: 1px solid var(--border); margin: 2px 0; }

/* Small square bullets (matches the .kicker mark) for the services feature lists.
   Selector carries the base class too so it reliably outranks .feature-list li::before
   regardless of source order (same-specificity ties resolve to source order otherwise). */
.feature-list.feature-list--square li { padding-inline-start: 22px; }
.feature-list.feature-list--square li::before {
  border-radius: 2px;
  width: 7px;
  height: 7px;
  top: 6px;
  background: var(--brand);
  background-image: none;
}

/* "From 200 MAD →" teaser link at the bottom of the Website card */
.price-link { font-size: 0.98rem; }
.price-link-label { color: var(--text-dim); font-weight: 600; font-size: 0.82rem; }
.price-link strong { font-family: var(--font-latin); color: var(--text); }

.service-combo {
  margin-top: clamp(18px, 2.6vw, 28px);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 32px);
}
.service-combo-copy { display: flex; flex-direction: column; gap: 10px; }
.service-combo .btn { flex: none; }

/* ---------- Process (How it works) ---------- */
.section-head-left { max-width: 560px; margin-bottom: clamp(38px, 6vw, 60px); }
.section-head-left .kicker { margin-bottom: 16px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step { padding-top: 20px; border-top: 1px solid var(--border); }
.process-num { display: block; font-family: var(--font-latin); font-weight: 700; font-size: 0.85rem; color: var(--brand); margin-bottom: 14px; }
.process-title { font-size: 1.05rem; margin-bottom: 10px; }
.process-text { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.about-media {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 11%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius-lg) - 10px);
}
.about-text { color: var(--text-muted); margin-top: 16px; max-width: 62ch; }
.about-content .section-title { margin-top: 14px; }
.about-stats {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 30px;
}
.stat-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 6px; }
.stat-value { display: block; font-weight: 800; font-size: 1.02rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.faq-head .kicker { margin-bottom: 16px; }
.faq-head .section-title { max-width: 12ch; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  padding: 22px 2px;
  text-align: start;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}
.faq-icon { position: relative; width: 20px; height: 20px; flex: none; }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 2px 22px; color: var(--text-muted); font-size: 0.95rem; max-width: 68ch; }

/* ---------- Contact card ("Let's talk") ---------- */
.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 6vw, 60px);
  box-shadow: var(--shadow-lg);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(460px 280px at 12% 0%, var(--brand-glow), transparent 70%);
}
.contact-card > * { position: relative; }
.contact-title { font-size: clamp(1.7rem, 4.2vw, 2.6rem); max-width: 16ch; margin-top: 14px; }
.contact-sub { margin-top: 14px; color: var(--text-muted); max-width: 52ch; }
.contact-card .btn { margin-top: 26px; }
.contact-divider { margin-top: 32px; border-top: 1px solid var(--border); }
.contact-info { display: flex; flex-wrap: wrap; gap: 26px 50px; margin-top: 24px; }
.info-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 6px; }
.info-value { display: block; font-weight: 800; font-family: var(--font-latin); font-size: 1.05rem; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(38px, 6vw, 60px); }
.section-head .eyebrow,
.section-head .kicker { margin-bottom: 16px; justify-content: center; }
.section-title { font-size: clamp(1.7rem, 3.8vw, 2.5rem); }
.section-sub { margin-top: 14px; color: var(--text-muted); font-size: 1.02rem; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.6vw, 28px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex: 1; }
.card-title { font-size: 1.16rem; }
.card-text { color: var(--text-muted); font-size: 0.96rem; }

/* Demo cards */
.demo-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.demo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.demo-card:hover .demo-media img { transform: scale(1.05); }
.demo-live {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #eafff6;
  background: rgba(3, 15, 11, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand-glow);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--brand-glow); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px;
  font-weight: 700;
  color: var(--brand);
}
.link-arrow svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }
html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
html[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translate(2px, -2px); }

/* Pricing cards */
.price-card { position: relative; }
.price-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.price-media img { width: 100%; height: 100%; object-fit: cover; }

.price-card.featured {
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  box-shadow: 0 30px 60px -22px var(--brand-glow);
}
.price-card.featured .card-body { background: linear-gradient(180deg, var(--brand-soft), transparent 40%); }

.ribbon {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: -2px;
  z-index: 4;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  color: #03130d;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: 999px 4px 4px 999px;
  box-shadow: var(--shadow-md);
}
html[dir="ltr"] .ribbon { inset-inline-end: auto; inset-inline-start: -2px; border-radius: 4px 999px 999px 4px; }

.tag {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.tag-brand, .tag-accent { color: var(--brand); background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.tag-gold { color: var(--gold); background: rgba(212, 175, 55, 0.12); border-color: rgba(212, 175, 55, 0.35); }

.price { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 4px; }
.price-num { font-family: var(--font-latin); font-size: 2rem; font-weight: 700; color: var(--text); }
.price-cur { font-size: 0.92rem; color: var(--text-muted); font-weight: 600; }

.feature-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; }
.feature-list li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 44px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--brand); }
.footer-copy { width: 100%; color: var(--text-dim); font-size: 0.85rem; text-align: center; border-top: 1px solid var(--border); padding-top: 22px; }

/* ---------- Floating WhatsApp ---------- */
.wa-fab {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  color: #03130d;
  box-shadow: 0 14px 30px -8px var(--brand-glow);
  animation: btnPulse 3s var(--ease) infinite;
  transition: transform 0.2s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { fill: currentColor; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.grid .reveal.in-view:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal.in-view:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal.in-view:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .hero-inner { grid-template-columns: 1fr; }
  /* mobile: text (headline, description, buttons) first, mockups AFTER */
  .hero-copy { order: 1; }
  .hero-visual {
    order: 2;
    width: min(100%, 320px);
    margin: 20px auto 0;
    margin-inline-start: auto;
    aspect-ratio: 1 / 1.1;
  }
  .hero-desc { max-width: none; }

  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-media { max-width: 200px; margin-inline: auto; }
  .about-text { margin-inline: auto; }
  .about-stats { grid-template-columns: 1fr 1fr; text-align: start; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-head .section-title { max-width: none; }

  .process-grid { grid-template-columns: repeat(2, 1fr); }

  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 10px 20px 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0.25s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-link { display: block; padding: 14px 4px; font-size: 1.02rem; }
  .nav-controls { flex-wrap: wrap; gap: 12px; padding-top: 18px; }
  .nav-cta { margin-inline-start: auto; }
}

@media (max-width: 700px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-badges { gap: 8px 16px; }
  .footer-inner { flex-direction: column; text-align: center; }

  /* phone mockup — pull floating cards in so nothing clips */
  .phone-mock { width: 52%; }
  .float-card--stats { inset-inline-start: 0; width: 54%; }
  .float-card--chat { inset-inline-end: 0; width: 64%; }
  .float-chip--a { inset-inline-start: -2%; }
  .float-chip--b { inset-inline-end: 2%; }

  /* mobile-only: shrink the floating notification/analytics cards & badges so
     they read as compact accents instead of competing with the phone itself
     (desktop sizing above is untouched) */
  .float-card { padding: 8px 10px; border-radius: 11px; }
  .fc-row { font-size: 0.56rem; gap: 6px; }
  .fc-live { gap: 3px; }
  .fc-dot { width: 5px; height: 5px; box-shadow: 0 0 0 2px var(--brand-soft); }
  .fc-metric { margin-top: 4px; font-size: 0.72rem; }
  .fc-chart { height: 22px; gap: 3px; margin-top: 6px; }
  .fc-caption { margin-top: 4px; font-size: 0.56rem; }

  .fc-chat-avatar { width: 22px; height: 22px; }
  .fc-chat-avatar svg { width: 12px; height: 12px; }
  .fc-chat-head { font-size: 0.64rem; gap: 6px; }
  .fc-chat-head span { font-size: 0.54rem; }
  .fc-chat-body p { font-size: 0.64rem; margin-top: 2px; }

  .float-chip { padding: 4px 9px; font-size: 0.58rem; }

  .phone-mock { padding: 10px 9px 12px; border-radius: 22px; gap: 7px; }
  .phone-mock__notch { height: 12px; }
  .phone-mock__screen { gap: 7px; }
  .pm-line { font-size: 0.64rem; }
  .pm-bar { height: 5px; }
  .pm-wa-btn { padding: 7px; font-size: 0.62rem; gap: 4px; border-radius: 8px; }
  .pm-wa-btn svg { width: 11px; height: 11px; }

  .service-combo { flex-direction: column; align-items: stretch; text-align: center; }
  .service-combo-copy { align-items: center; }
  .service-combo .btn { align-self: center; }

  .process-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .contact-info { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .nav-controls { gap: 8px; }
  .nav-cta { font-size: 0.82rem; }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
