/* ===================================================================
   3DS.ma — Feuille de style (v2)
   =================================================================== */

:root {
  --navy: #0a1230;
  --navy-2: #0f1b45;
  --navy-3: #16224f;
  --ink: #131a2e;
  --slate: #55608a;
  --muted: #8891ae;
  --line: #e7eaf3;
  --bg: #ffffff;
  --bg-soft: #f4f6fc;
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --brand-lt: #60a5fa;
  --cyan: #22d3ee;
  --teal: #5eead4;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 26px 60px -24px rgba(16, 30, 78, .3);
  --shadow-sm: 0 12px 30px -16px rgba(16, 30, 78, .28);
  --grad: linear-gradient(120deg, var(--brand), var(--brand-2));
  --grad-text: linear-gradient(120deg, #60a5fa, #22d3ee);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1200px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(37,99,235,.2); }

/* ===== Scroll progress ===== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--grad-text); transition: width .1s linear; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: .98rem; padding: 14px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s; white-space: nowrap; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -12px rgba(37, 99, 235, .65); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -14px rgba(37, 99, 235, .75); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--full { width: 100%; }

/* ===== Topbar ===== */
.topbar { background: #060b21; color: #b9c2e0; font-size: .86rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar__inner { display: flex; align-items: center; gap: 22px; height: 40px; }
.topbar__item a:hover { color: #fff; }
.topbar__item--muted { color: #7a83a3; }
.topbar__spacer { flex: 1; }
.topbar__item--hl { color: var(--teal); font-weight: 500; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 100; padding: 16px 0; background: rgba(10,18,48,.0); transition: background .3s, box-shadow .3s, padding .3s; }
.header.scrolled { background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(16,30,78,.4); padding: 10px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: #fff; transition: color .3s; }
.header.scrolled .logo { color: var(--navy); }
.logo__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(37,99,235,.7); }
.logo__dot { color: var(--brand-lt); }
.header.scrolled .logo__dot { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.82); padding: 9px 15px; border-radius: 999px; transition: color .2s, background .2s; }
.nav__link:hover { color: #fff; background: rgba(255,255,255,.1); }
.header.scrolled .nav__link { color: var(--slate); }
.header.scrolled .nav__link:hover { color: var(--navy); background: var(--bg-soft); }
.nav__cta { background: var(--grad); color: #fff !important; margin-left: 10px; box-shadow: 0 10px 24px -12px rgba(37,99,235,.7); }
.nav__cta:hover { transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.header.scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; margin-top: -74px; padding: 180px 0 110px; overflow: hidden; background: radial-gradient(120% 120% at 80% 0%, #12205a 0%, var(--navy) 45%, #070d24 100%); color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__grid { position: absolute; inset: -2px; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(ellipse 80% 60% at 55% 25%, #000 30%, transparent 75%); }
.hero__glow { position: absolute; width: 720px; height: 720px; top: -300px; right: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.5), rgba(6,182,212,.12) 45%, transparent 70%); filter: blur(24px); }
.hero__glow--2 { width: 480px; height: 480px; top: auto; bottom: -260px; left: -160px; right: auto; background: radial-gradient(circle, rgba(6,182,212,.35), transparent 68%); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; }

.pill { display: inline-block; font-size: .84rem; font-weight: 500; padding: 8px 17px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); margin-bottom: 24px; backdrop-filter: blur(4px); }
.hero__title { font-family: var(--display); font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin: 24px 0 32px; font-size: 1.14rem; color: #c3cbe4; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.hero__actions .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.07); }
.hero__badges { list-style: none; display: flex; gap: 34px; margin-top: 48px; flex-wrap: wrap; }
.hero__badges li { display: flex; flex-direction: column; }
.hero__badges strong { font-family: var(--display); font-size: 1.65rem; color: #fff; }
.hero__badges span { font-size: .85rem; color: #9aa5c9; }

/* Hero visual */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.cube-scene { position: relative; width: 240px; height: 280px; perspective: 950px; }
.cube { position: absolute; top: 46px; left: 50%; width: 150px; height: 150px; transform-style: preserve-3d; margin-left: -75px; animation: spin 16s linear infinite; }
.cube__face { position: absolute; width: 150px; height: 150px; background: rgba(37,99,235,.16); border: 1.5px solid rgba(96,165,250,.55); }
.cube__face--front  { transform: translateZ(75px); }
.cube__face--back   { transform: rotateY(180deg) translateZ(75px); }
.cube__face--right  { transform: rotateY(90deg) translateZ(75px); background: rgba(6,182,212,.16); }
.cube__face--left   { transform: rotateY(-90deg) translateZ(75px); background: rgba(6,182,212,.16); }
.cube__face--top    { transform: rotateX(90deg) translateZ(75px); background: rgba(96,165,250,.28); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(75px); }
.cube-scene__platform { position: absolute; bottom: 6px; left: 50%; width: 250px; height: 54px; margin-left: -125px; border-radius: 50%; background: radial-gradient(ellipse, rgba(6,182,212,.4), transparent 70%); filter: blur(7px); }
@keyframes spin { from { transform: rotateX(-16deg) rotateY(0); } to { transform: rotateX(-16deg) rotateY(360deg); } }

.float-card { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); color: #eaf0ff; font-size: .86rem; padding: 10px 15px; border-radius: 12px; box-shadow: 0 14px 30px -18px rgba(0,0,0,.6); white-space: nowrap; }
.float-card span { color: var(--teal); }
.float-card strong { color: #fff; }
.float-card--1 { top: 30px; left: -6px; animation: floaty 5s ease-in-out infinite; }
.float-card--2 { top: 120px; right: -10px; animation: floaty 6s ease-in-out infinite .6s; }
.float-card--3 { bottom: 34px; left: 18px; animation: floaty 5.5s ease-in-out infinite 1.1s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrolly 1.6s infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ===== Trust ===== */
.trust { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 36px 0; }
.trust__inner { text-align: center; }
.trust__label { font-size: .93rem; color: var(--muted); margin-bottom: 20px; }
.trust__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 46px; }
.trust__logos span { font-family: var(--display); font-weight: 600; letter-spacing: .13em; font-size: .92rem; color: #b3bbd4; transition: color .2s; }
.trust__logos span:hover { color: var(--brand); }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: radial-gradient(120% 120% at 15% 0%, #12205a 0%, var(--navy) 50%, #070d24 100%); color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow--light { color: var(--teal); }
.section__title { font-family: var(--display); font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.14; font-weight: 700; letter-spacing: -.02em; }
.section__lead { margin-top: 16px; color: var(--slate); font-size: 1.09rem; }
.section__lead--light { color: #b9c2e0; }

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.12)); color: var(--brand); margin-bottom: 22px; transition: transform .3s var(--ease); }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__icon svg { width: 28px; height: 28px; fill: currentColor; }
.card h3 { font-family: var(--display); font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .98rem; }
.card__list { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.card__list li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--slate); }
.card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }
.card--feature { background: linear-gradient(160deg, var(--navy-3), var(--navy)); color: #fff; border-color: transparent; box-shadow: 0 26px 60px -26px rgba(37,99,235,.5); }
.card--feature::before { transform: scaleX(1); }
.card--feature p { color: #c3cbe4; }
.card--feature .card__icon { background: rgba(255,255,255,.1); color: #67e8f9; }
.card--feature .card__list li { color: #c3cbe4; }
.card--feature .card__list li::before { color: var(--teal); }
.card__tag { display: inline-block; font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--teal); padding: 5px 13px; border-radius: 999px; margin-bottom: 16px; }

/* ===== Technologies ===== */
.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 40px; }
.tech__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .3s var(--ease), box-shadow .3s; }
.tech__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.tech__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tech__abbr { font-family: var(--display); font-weight: 700; font-size: 1rem; color: #fff; background: var(--grad); padding: 8px 12px; border-radius: 10px; letter-spacing: .04em; }
.tech__head h3 { font-family: var(--display); font-size: 1.15rem; }
.tech__item p { color: var(--slate); font-size: .97rem; }
.materials { text-align: center; }
.materials__label { display: block; font-family: var(--display); font-weight: 600; color: var(--navy); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { font-size: .9rem; font-weight: 500; color: var(--slate); background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; transition: .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ===== Expertise ===== */
.expertise { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.expertise__media { display: grid; place-items: center; }
.mold { position: relative; width: 280px; height: 280px; display: grid; place-items: center; }
.mold__half { position: absolute; width: 210px; height: 82px; border-radius: 16px; background: linear-gradient(180deg, #26377a, #182451); border: 1.5px solid rgba(96,165,250,.4); }
.mold__half--top { top: 34px; box-shadow: inset 0 -10px 20px -12px #000; }
.mold__half--bottom { bottom: 34px; box-shadow: inset 0 10px 20px -12px #000; }
.mold__cavity { position: absolute; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #67e8f9, #2563eb 70%); box-shadow: 0 0 46px -6px rgba(6,182,212,.7); animation: pulse 3.4s ease-in-out infinite; z-index: 2; }
.mold__drop { position: absolute; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 14px #22d3ee; animation: drop 2.6s ease-in infinite; z-index: 3; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.09); opacity: 1; } }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 60%,100% { transform: translateY(100px); opacity: 0; } }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 32px 0 36px; }
.feature__num { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--teal); }
.feature h4 { font-family: var(--display); font-size: 1.1rem; margin: 6px 0; color: #fff; }
.feature p { color: #b9c2e0; font-size: .93rem; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.step { position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.step__num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin-bottom: 20px; box-shadow: 0 10px 24px -10px rgba(37,99,235,.6); }
.step h3 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: .95rem; }

/* ===== Stats ===== */
.stats { background: radial-gradient(120% 120% at 50% 0%, #12205a, var(--navy) 60%); color: #fff; padding: 70px 0; }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat__wrap { display: inline-flex; align-items: baseline; }
.stat__num { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 700; line-height: 1; }
.stat__plus { font-family: var(--display); font-size: 1.9rem; font-weight: 700; }
.stat__num, .stat__plus { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: #9aa5c9; margin-top: 10px; font-size: .96rem; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot { position: relative; height: 250px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.shot::before { content: ""; position: absolute; inset: 0; opacity: .95; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,12,36,.82)); }
.shot--a::before { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.shot--b::before { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.shot--c::before { background: linear-gradient(135deg, #4338ca, #6366f1); }
.shot--d::before { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.shot--e::before { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.shot--f::before { background: linear-gradient(135deg, #155e75, #0891b2); }
.shot figcaption { position: relative; z-index: 1; padding: 24px; color: #fff; }
.shot figcaption span { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: rgba(255,255,255,.92); padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }
.shot figcaption strong { display: block; font-family: var(--display); font-size: 1.12rem; }
.shot { transition: transform .35s var(--ease); }
.shot:hover { transform: translateY(-6px) scale(1.01); }
.gallery__note { text-align: center; margin-top: 26px; color: var(--muted); font-size: .92rem; font-style: italic; }

/* ===== Why ===== */
.why__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.why__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: transparent; }
.why__ic { font-size: 2rem; display: block; margin-bottom: 14px; }
.why__item h4 { font-family: var(--display); font-size: 1.18rem; margin-bottom: 8px; }
.why__item p { color: var(--slate); font-size: .96rem; }

/* ===== Testimonials ===== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px; backdrop-filter: blur(4px); }
.quote__stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 14px; }
.quote p { color: #dbe2f6; font-size: 1rem; }
.quote footer { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.quote__avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 700; }
.quote footer strong { display: block; color: #fff; font-family: var(--display); }
.quote footer small { color: #9aa5c9; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.accordion { display: grid; gap: 14px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.acc[open] { box-shadow: var(--shadow-sm); border-color: transparent; }
.acc summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--display); font-weight: 600; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; transition: transform .3s; line-height: 1; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 24px 22px; color: var(--slate); font-size: .98rem; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact__list { list-style: none; margin-top: 32px; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #fff; border: 1px solid var(--line); font-size: 1.2rem; flex-shrink: 0; }
.contact__list strong { font-family: var(--display); display: block; }
.contact__list p { color: var(--slate); }
.contact__list a:hover { color: var(--brand); }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font); font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.field textarea { resize: vertical; }
.form__status { margin-top: 14px; font-size: .95rem; text-align: center; }
.form__status.ok { color: #059669; }
.form__status.err { color: #dc2626; }

/* ===== Footer ===== */
.footer { background: #070d24; color: #c3cbe4; padding: 70px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer__brand p { color: #9aa5c9; max-width: 290px; }
.footer__col h4 { font-family: var(--display); color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer__col a, .footer__col p { display: block; color: #9aa5c9; margin-bottom: 10px; font-size: .95rem; transition: color .2s; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bottom p { color: #7a83a3; font-size: .88rem; }

/* ===== WhatsApp float ===== */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(37,211,102,.6); transition: transform .25s var(--ease); animation: waPulse 2.6s infinite; }
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ===== Reveal animation (CSS fallback if GSAP absent) ===== */
[data-anim] { opacity: 0; transform: translateY(28px); }
.no-gsap [data-anim] { animation: reveal .7s var(--ease) forwards; }
.reveal-in { opacity: 1 !important; transform: none !important; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .cards, .sectors, .tech, .why__grid, .quotes, .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .expertise { grid-template-columns: 1fr; gap: 44px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .topbar__item--muted, .topbar__item--hl { display: none; }
}

@media (max-width: 660px) {
  .topbar { display: none; }
  .hero { margin-top: 0; }
  .header { background: rgba(9,14,36,.92); backdrop-filter: blur(10px); padding: 12px 0; }
  .header.scrolled { background: rgba(255,255,255,.95); }
  .nav { position: fixed; inset: 70px 16px auto 16px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); gap: 4px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease); }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { color: var(--slate); padding: 12px 14px; }
  .nav__cta { margin-left: 0; text-align: center; color: #fff !important; }
  .nav .lang-btn { margin: 4px 0 0; align-self: flex-start; color: var(--navy); background: var(--bg-soft); border-color: var(--line); }
  .nav-toggle { display: flex; }
  .hero { padding: 90px 0 70px; }
  .section { padding: 70px 0; }
  .cards, .tech, .why__grid, .quotes, .gallery, .steps, .feature-grid, .field-row, .footer__inner { grid-template-columns: 1fr; }
  .contact__form { padding: 24px; }
  .float-card { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Language button ===== */
.lang-btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 600; font-size: .85rem; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; margin-left: 8px; }
.lang-btn:hover { border-color: #fff; }
.header.scrolled .lang-btn { color: var(--navy); background: var(--bg-soft); border-color: var(--line); }
.header.scrolled .lang-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ===== RTL (Arabic) ===== */
html[dir="rtl"] { --font: 'Tajawal', system-ui, sans-serif; --display: 'Cairo', sans-serif; }
html[dir="rtl"] body { font-family: var(--font); }
html[dir="rtl"] .hero__title,
html[dir="rtl"] .section__title,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .pill,
html[dir="rtl"] .trust__logos span,
html[dir="rtl"] .tech__abbr,
html[dir="rtl"] .card__tag { letter-spacing: 0; }
html[dir="rtl"] .card__list li { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .card__list li::before { left: auto; right: 0; }
html[dir="rtl"] .wa-float { right: auto; left: 24px; }
html[dir="rtl"] .lang-btn { margin-left: 0; margin-right: 8px; }
