/* =============================================================
   Dima Dispo — agents IA pour les commerces tunisiens
   Palette: Sidi Bou Saïd blue · whitewash · jasmine · harissa · sand
   Self-hosted fonts (no third-party requests).
   Layout uses logical properties so RTL (Arabic) works for free.
   ============================================================= */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("fonts/pjs-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("fonts/pjs-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("fonts/pjs-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/pjs-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("fonts/pjs-800.woff2") format("woff2"); }
@font-face { font-family: "Noto Kufi Arabic"; font-weight: 400 800; font-display: swap; src: url("fonts/noto-kufi-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Reem Kufi"; font-weight: 500 700; font-display: swap; src: url("fonts/reem-kufi.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --blue: #0a5cc2;
  --blue-d: #08479a;
  --blue-l: #e6f0fc;
  --night: #061528;
  --night-2: #0b2142;
  --white: #fbfaf7;
  --paper: #ffffff;
  --sand: #f4ede1;
  --sand-2: #ebe1cf;
  --terra: #d4502f;
  --gold: #e5a93b;
  --wa: #25d366;
  --wa-bg: #efe7dc;
  --ink: #0d1b2e;
  --muted: #586a80;
  --rule: #e4ddd0;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(13,27,46,.06), 0 12px 32px -12px rgba(13,27,46,.18);
  --shadow-lg: 0 30px 60px -20px rgba(6,21,40,.35);
  --font: "Plus Jakarta Sans", "Noto Kufi Arabic", system-ui, "Segoe UI", sans-serif;
  --font-ar: "Noto Kufi Arabic", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-display-ar: "Reem Kufi", "Noto Kufi Arabic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); font-weight: 800; max-width: 20ch; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; font-family: inherit; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(10,92,194,.7); }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand-mark { width: 38px; height: 38px; fill: var(--blue); color: #fff; }
.brand-light .brand-mark { fill: #fff; color: var(--night-2); }
.av-mark { width: 30px; height: 30px; fill: #fff; color: var(--blue); }
.brand-word { font-weight: 800; font-size: 1.55rem; letter-spacing: -.04em; color: var(--ink); display: inline-flex; align-items: baseline; gap: 8px; font-family: "Plus Jakarta Sans", sans-serif; }
.brand-ar { font-family: var(--font-display-ar); font-size: 1.5rem; line-height: 1; color: var(--blue); font-weight: 700; letter-spacing: 0; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .8; }
.nav-links a:hover { opacity: 1; color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--paper); padding: 3px; cursor: pointer; font: 700 .8rem var(--font); }
.lang span { padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.lang span[data-l="ar"] { font-family: var(--font-ar); }
html[lang="fr"] .lang [data-l="fr"], html[lang="ar"] .lang [data-l="ar"] { background: var(--ink); color: #fff; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 10px; height: 2px; background: var(--ink); transition: transform .2s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ── hero ── */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(10,92,194,.13), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(229,169,59,.12), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--rule); padding: 7px 16px 7px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--blue-d); box-shadow: var(--shadow); }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; margin: 22px 0 22px; }
html[lang="ar"] .hero h1 { font-family: var(--font-display-ar); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.hero h1 em { font-style: normal; color: var(--blue); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: -2px; bottom: .06em; height: .2em; background: var(--gold); opacity: .55; z-index: -1; border-radius: 4px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.lead strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-proof li { display: flex; flex-direction: column; max-width: 150px; }
.hero-proof b { font-size: 1.7rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.hero-proof span { font-size: .85rem; color: var(--muted); line-height: 1.35; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.arch { position: relative; width: min(400px, 100%); padding: 118px 34px 34px; background: linear-gradient(170deg, #1270e0, var(--blue) 45%, var(--blue-d)); border-radius: 200px 200px 28px 28px; box-shadow: var(--shadow-lg); }
.arch::after { content: ""; position: absolute; top: 30px; left: 50%; width: 52px; height: 62px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M11 26V10a2.75 2.75 0 0 1 5.5 0V7a3.5 3.5 0 0 1 7 0v3a2.75 2.75 0 0 1 5.5 0v16c0 0 2-3 5-3s3.5 4 1 7c-2 3-2 5-2 7 0 6-6 9-13 9S7 43 7 37c0-2 0-4-2-7-2.5-3-2-7 1-7s5 3 5 3z'/%3E%3Cpath d='M16.5 10v12M23.5 10v12' stroke-opacity='.6'/%3E%3Cpath d='M12.5 34.5q7.5-7 15 0q-7.5 7-15 0z'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.85'%3E%3Ccircle cx='20' cy='12' r='1.3'/%3E%3Ccircle cx='13.75' cy='15' r='1.1'/%3E%3Ccircle cx='26.25' cy='15' r='1.1'/%3E%3Ccircle cx='20' cy='26' r='.9'/%3E%3Ccircle cx='16' cy='27' r='.7'/%3E%3Ccircle cx='24' cy='27' r='.7'/%3E%3C/g%3E%3Ccircle cx='20' cy='34.5' r='2.4' fill='%23e5a93b'/%3E%3C/svg%3E") center/contain no-repeat; }
.arch-studs { position: absolute; inset: 14px; border-radius: inherit; border: 3px dotted rgba(255,255,255,.45); pointer-events: none; }
.arch::before { content: ""; position: absolute; inset: -14px; border-radius: 214px 214px 36px 36px; border: 2px solid var(--sand-2); z-index: -1; }
.phone { position: relative; background: var(--wa-bg); border-radius: 26px; overflow: hidden; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); border: 6px solid #0d1b2e; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #075e54; color: #fff; }
.phone-top b { display: block; font-size: .95rem; }
.phone-top small { opacity: .85; font-size: .75rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex: none; }

/* chat bubbles (shared hero + demo) */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; height: 380px; overflow: hidden; background-color: var(--wa-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23d9cdb9' stroke-width='1' opacity='.55'%3E%3Crect x='14' y='14' width='20' height='20'/%3E%3Crect x='14' y='14' width='20' height='20' transform='rotate(45 24 24)'/%3E%3C/g%3E%3C/svg%3E");
  justify-content: flex-end; direction: ltr; }
.msg { max-width: 82%; padding: 8px 12px 6px; border-radius: 12px; font-size: .9rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: pop .3s ease-out both; position: relative; word-wrap: break-word; }
.msg small { display: block; text-align: end; font-size: .68rem; opacity: .55; margin-top: 2px; }
.msg.c { align-self: flex-start; background: #fff; border-start-start-radius: 4px; }
.msg.a { align-self: flex-end; background: #d9fdd3; border-start-end-radius: 4px; }
.msg.a::before { content: "Dima Dispo"; display: block; font-size: .68rem; font-weight: 700; color: var(--blue); margin-bottom: 1px; }
.msg.sys { align-self: center; background: #fff7e6; color: #7a5a14; font-size: .78rem; font-weight: 600; border-radius: 8px; text-align: center; max-width: 92%; }
.msg[dir="rtl"] { text-align: right; }
.typing { align-self: flex-end; background: #d9fdd3; border-radius: 12px; padding: 10px 14px; display: flex; gap: 4px; animation: pop .2s both; }
.typing.c { align-self: flex-start; background: #fff; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #7a8b80; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--paper); padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .82rem; line-height: 1.3; animation: floaty 6s ease-in-out infinite; }
.float-card b { display: block; font-size: .85rem; } .float-card small { color: var(--muted); }
.fc-call { top: 46%; inset-inline-start: -10%; }
.fc-order { bottom: 9%; inset-inline-end: -8%; animation-delay: -3s; }
.fc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; }
.fc-ico svg { width: 18px; height: 18px; }
.fc-ico.call { background: var(--blue-l); color: var(--blue); }
.fc-ico.ok { background: #dcfce7; color: #15803d; }
.wave { display: flex; gap: 3px; align-items: center; height: 22px; }
.wave i, .voice-bars i { width: 3px; border-radius: 3px; background: var(--blue); animation: wave 1s ease-in-out infinite; }
.wave i { height: 8px; }
.wave i:nth-child(2), .voice-bars i:nth-child(3n+2) { animation-delay: -.2s; }
.wave i:nth-child(3), .voice-bars i:nth-child(3n) { animation-delay: -.45s; }
.wave i:nth-child(4), .voice-bars i:nth-child(4n) { animation-delay: -.7s; }
@keyframes wave { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(2.2); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.jasmine { position: absolute; width: 38px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); animation: floaty 7s ease-in-out infinite; }
.j1 { top: 2%; inset-inline-end: 12%; }
.j2 { bottom: 0; inset-inline-start: 10%; width: 28px; animation-delay: -2s; }

/* ── ticker ── */
.ticker { background: var(--night); color: #fff; overflow: hidden; padding: 16px 0; direction: ltr; }
.ticker-track { display: flex; gap: 44px; width: max-content; animation: tick 45s linear infinite; font-weight: 600; font-size: .98rem; white-space: nowrap; }
.ticker-track span { opacity: .9; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── sections ── */
.section { padding: 104px 0; position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .78rem; color: var(--terra); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; }
.eyebrow.light { color: var(--gold); }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.sub.light, .light-p { color: rgba(255,255,255,.75); }

.problem { background: var(--paper); }
.pb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.pb-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px; }
.pb-n { display: inline-block; font-weight: 800; font-size: 2.1rem; color: var(--terra); letter-spacing: -.03em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.pb-card p { color: var(--muted); margin: 0; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.b { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.b:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.b p { color: var(--muted); margin: 0; }
.b-wide { grid-column: span 2; }
.b-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 18px; }
.b-ico svg { width: 24px; height: 24px; }
.b-blue { background: linear-gradient(140deg, var(--blue), var(--blue-d)); color: #fff; border: 0; }
.b-blue p { color: rgba(255,255,255,.82); max-width: 44ch; }
.b-blue .b-ico { background: rgba(255,255,255,.15); color: #fff; }
.voice-bars { display: flex; gap: 5px; align-items: center; height: 60px; margin-top: 22px; direction: ltr; }
.voice-bars i { width: 5px; height: 14px; background: rgba(255,255,255,.75); }
.b-wa .b-ico { background: #dcfce7; color: #128c4a; }
.b-night { background: var(--night-2); color: #fff; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: center; }
.b-night > .b-ico, .b-night > h3, .b-night > p { grid-column: 1; }
.b-night p { color: rgba(255,255,255,.75); }
.b-night .b-ico { background: rgba(255,255,255,.1); }
.summary { grid-column: 2; grid-row: 1 / span 3; background: #fff; color: var(--ink); border-radius: 16px; padding: 16px 18px; font-size: .9rem; box-shadow: var(--shadow-lg); }
.sum-head { font-weight: 700; margin-bottom: 8px; font-size: .88rem; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px dashed var(--rule); }
.sum-row b { font-variant-numeric: tabular-nums; }
.sum-row.warn b { color: var(--terra); }

/* demo */
.demo { background: var(--sand); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 28px; }
.tab { border: 1.5px solid var(--sand-2); background: var(--paper); border-radius: 999px; padding: 10px 18px; font: 700 .95rem var(--font); color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: all .2s; }
.tab:hover { border-color: var(--blue); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.demo-stage { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.demo-device { background: #0d1b2e; border-radius: 28px; padding: 8px; box-shadow: var(--shadow-lg); max-width: 520px; width: 100%; }
.dd-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #fff; border-radius: 20px 20px 0 0; background: #075e54; }
.dd-head.call { background: linear-gradient(120deg, var(--night-2), var(--blue-d)); }
.dd-head b { display: block; font-size: .95rem; } .dd-head small { opacity: .8; font-size: .78rem; }
.dd-head .wave { margin-inline-start: auto; } .dd-head .wave i { background: #fff; }
.dd-head .chan { margin-inline-start: auto; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; }
.chat-lg { height: 430px; border-radius: 0 0 20px 20px; }
.demo-side h3 { font-size: 1.6rem; font-weight: 800; }
.demo-side p { color: var(--muted); }
.outcomes { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.outcomes li { background: var(--paper); border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: .95rem; border-inline-start: 4px solid var(--wa); animation: pop .4s both; }

/* method */
.method { background: var(--night); color: #fff; overflow: hidden; }
.zellige { position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='7'/%3E%3Cpath d='M0 0l14 14M80 0L66 14M0 80l14-14M80 80L66 66'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.method .wrap { position: relative; }
.steps { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px 24px; position: relative; backdrop-filter: blur(4px); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 44px; inset-inline-end: -14px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px 999px 8px 8px; background: var(--blue); font-weight: 800; margin-bottom: 18px; }
.steps p { color: rgba(255,255,255,.72); margin: 0; font-size: .97rem; }

/* local */
.local { background: var(--paper); }
.local-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.checks li { padding-inline-start: 38px; position: relative; color: var(--muted); }
.checks li b { color: var(--ink); }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.lang-cloud { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--sand); border-radius: 28px; position: relative; }
.lc-b { align-self: flex-start; background: #fff; padding: 12px 18px; border-radius: 18px 18px 18px 4px; font-weight: 600; box-shadow: var(--shadow); animation: floaty 8s ease-in-out infinite; }
.lc-b.alt { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 18px 18px 4px 18px; animation-delay: -4s; }
.lc-b[lang="ar"] { font-family: var(--font-ar); direction: rtl; }
.lc-b:nth-child(3) { animation-delay: -2s; } .lc-b:nth-child(5) { animation-delay: -6s; }

/* offers */
.offers { background: var(--white); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--rule); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.plan h3 span { color: var(--blue); }
.plan-tag { color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-inline-start: 26px; position: relative; font-size: .97rem; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 12px; height: 12px; border-radius: 6px 6px 2px 2px; background: var(--blue); }
.plan-hl { background: var(--night-2); color: #fff; border: 0; box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.plan-hl h3 span { color: var(--gold); }
.plan-hl .plan-tag { color: rgba(255,255,255,.7); }
.plan-hl li::before { background: var(--gold); }
.plan-badge { position: absolute; top: -13px; inset-inline-start: 28px; background: var(--terra); color: #fff; font-size: .75rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; }

/* faq */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq-list details { border-bottom: 1px solid var(--rule); padding: 6px 0; }
.faq-list summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue); transition: transform .2s; flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* contact */
.contact { background: linear-gradient(160deg, var(--night-2), var(--night) 60%); color: #fff; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 520px; height: 640px; inset-inline-end: -160px; top: -120px; border-radius: 999px 999px 0 0; border: 2px dotted rgba(255,255,255,.12); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; position: relative; }
.contact h2 { color: #fff; }
.contact-points { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; font-weight: 600; }
.contact a { color: var(--gold); }
.small { font-size: .95rem; }
.contact-form { background: var(--paper); color: var(--ink); border-radius: 26px; padding: 32px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .chips legend { font-weight: 700; font-size: .88rem; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }
.field.invalid input, .field.invalid select { border-color: var(--terra); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips legend { width: 100%; margin-bottom: 6px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--rule); font-weight: 600; font-size: .92rem; }
.chips input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); }
.chips input:focus-visible + span { outline: 3px solid var(--gold); }
.consent { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.hp { display: none; }
.form-note { margin: 0; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.form-note.ok { background: #dcfce7; color: #166534; }
.form-note.err { background: #fee2e2; color: #991b1b; }

/* footer */
.footer { background: var(--night); color: rgba(255,255,255,.7); padding: 44px 0; font-size: .92rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.brand-light .brand-word { color: #fff; } .brand-light .brand-ar { color: var(--gold); }
.foot-tag { margin: 10px 0 0; }
.foot-by { text-align: end; }
.foot-by p { margin: 0 0 6px; }
.footer a { color: #fff; }
.foot-copy { opacity: .6; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 1000px) {
  .hero-grid, .demo-stage, .local-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan-hl { transform: none; }
  .demo-device { margin-inline: auto; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; top: 72px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--rule); padding: 8px 16px 18px; transform: translateY(-120%); transition: transform .25s; z-index: -1; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .burger { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 32px 0 64px; }
  .pb-grid, .bento, .steps, .row2 { grid-template-columns: 1fr; }
  .b-wide { grid-column: auto; }
  .b-night { grid-template-columns: 1fr; }
  .summary { grid-column: 1; grid-row: auto; margin-top: 20px; }
  .fc-call { inset-inline-start: 0; top: 40%; }
  .fc-order { inset-inline-end: 0; bottom: 0; }
  .arch { padding: 96px 22px 24px; }
  .arch::after { top: 24px; width: 44px; height: 52px; }
  .chat { height: 340px; }
  .chat-lg { height: 400px; }
  .hero-proof { gap: 18px; }
  .contact-form { padding: 22px; }
  .foot-by { text-align: start; }
  .brand-word { font-size: 1.35rem; }
  .brand-ar { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
