 /* ============================================================
   NORD WEP — Premium digital agency site
   Design system + components + animations
   ============================================================ */

:root {
  /* Palette */
  --bg: #05070e;
  --bg-2: #080b16;
  --surface: #0d1424;
  --surface-2: #101a2e;
  --ink: #eaf0ff;
  --ink-soft: #c3cee6;
  --muted: #838fac;
  --muted-2: #55607a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --blue: #3f7dff;
  --blue-2: #6aa0ff;
  --blue-deep: #1c3fb0;
  --gold: #e8b15a;
  --gold-soft: #f2cd8a;

  --glow-blue: 0 0 60px rgba(63, 125, 255, 0.35);
  --glow-gold: 0 0 50px rgba(232, 177, 90, 0.25);

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1240px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--blue); color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { position: relative; padding: 120px 0; }
.section--tight { padding: 90px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-2);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(63, 125, 255, 0.06);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: var(--glow-blue);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }

.h-display {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 60ch;
}
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-grad {
  background: linear-gradient(120deg, var(--blue-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.4s, border-color 0.3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 40px -12px rgba(63, 125, 255, 0.7);
}
.btn-primary:hover { box-shadow: 0 16px 50px -10px rgba(63, 125, 255, 0.9); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--blue); }
.btn-gold {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  color: #241a06;
  box-shadow: 0 10px 40px -14px rgba(232, 177, 90, 0.8);
}
.btn-wa {
  background: linear-gradient(120deg, #2bda6e, #1eb257);
  color: #ffffff;
  box-shadow: 0 10px 40px -14px rgba(37, 211, 102, 0.85);
}
.btn-wa:hover { box-shadow: 0 16px 50px -12px rgba(37, 211, 102, 1); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 14, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--container); margin-inline: auto;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.4s;
}
.nav.scrolled .nav__inner { padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: var(--glow-blue);
  position: relative; overflow: hidden;
}
.brand__mark span { font-weight: 700; font-size: 1rem; color: #fff; z-index: 1; }
.brand__mark svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.brand__logo { height: 54px; width: auto; display: block; filter: drop-shadow(0 4px 16px rgba(63,125,255,.4)); transition: height .4s; }
.nav.scrolled .brand__logo { height: 46px; }
@media (max-width: 720px) { .brand__logo { height: 46px; } }
.brand__mark::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 60%); }
.brand b { font-weight: 600; }
.brand em { font-style: normal; color: var(--gold); }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: 0.94rem; color: var(--ink-soft); position: relative; transition: color 0.3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--blue-2); transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(5, 7, 14, 0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 40px;
  transform: translateY(-100%); transition: transform 0.6s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ---------- Background FX ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-fx .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb--blue { width: 620px; height: 620px; background: radial-gradient(circle, rgba(63,125,255,0.5), transparent 70%); top: -180px; right: -140px; }
.orb--gold { width: 460px; height: 460px; background: radial-gradient(circle, rgba(232,177,90,0.22), transparent 70%); bottom: 10%; left: -160px; }
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
}
.noise { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 120px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,7,14,0.96) 0%, rgba(5,7,14,0.7) 42%, rgba(5,7,14,0.35) 100%),
              linear-gradient(0deg, var(--bg) 2%, transparent 40%);
}
.hero__content { max-width: 780px; }
.hero h1 { margin: 26px 0 24px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero__sub { max-width: 52ch; margin-bottom: 40px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.hero__scroll .mouse { width: 22px; height: 36px; border: 1.5px solid var(--line-strong); border-radius: 12px; position: relative; }
.hero__scroll .mouse::after { content:""; position:absolute; top:7px; left:50%; transform:translateX(-50%); width:3px; height:7px; background: var(--blue-2); border-radius:2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0%{opacity:0; transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0; transform:translate(-50%,10px)} }

/* ---------- Marquee / trust logos ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: rgba(255,255,255,0.01); }
.trust__label { text-align:center; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 64px; padding-right: 64px; white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--muted); opacity: 0.7; display: inline-flex; align-items: center; gap: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 34px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); position: relative; overflow: hidden; }
.stat::before { content:""; position:absolute; top:0; left:0; width:100%; height:2px; background: linear-gradient(90deg, var(--blue), transparent); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat__num .suffix { color: var(--gold); }
.stat__label { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: center; }
.about__text h2 { margin: 22px 0 26px; }
.about__text .highlight { color: var(--ink); }
.about__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9); }
.about__media img { width: 100%; aspect-ratio: 3/2.5; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__media:hover img { transform: scale(1.05); }
.about__media .badge { position: absolute; bottom: 20px; left: 20px; padding: 12px 18px; border-radius: 14px; background: rgba(5,7,14,0.7); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); font-size: 0.85rem; }
.about__list { margin-top: 30px; display: grid; gap: 14px; }
.about__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.about__list .ic { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; background: rgba(63,125,255,0.15); color: var(--blue-2); display: grid; place-items: center; margin-top: 2px; }
.about__list .ic svg { width: 14px; height: 14px; }

/* ---------- Section head ---------- */
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 20px 0 18px; }

/* ---------- Services ---------- */
.services { display: grid; gap: 20px; }
.service {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 30px; align-items: center;
  padding: 40px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.service::after { content:""; position:absolute; inset:0; background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(63,125,255,0.08), transparent 40%); opacity:0; transition: opacity 0.4s; pointer-events:none; }
.service:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.service:hover::after { opacity: 1; }
.service__ic { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(63,125,255,0.18), rgba(63,125,255,0.04)); border: 1px solid var(--line); color: var(--blue-2); }
.service__ic svg { width: 32px; height: 32px; }
.service__body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.service__body p { color: var(--muted); max-width: 52ch; }
.service__num { font-family: var(--font-display); font-size: 1rem; color: var(--muted); }
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.service__tags span { font-size: 0.78rem; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sector { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; cursor: pointer; }
.sector img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: saturate(1.05); }
.sector::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, rgba(5,7,14,0.95) 0%, rgba(5,7,14,0.35) 45%, transparent 75%); }
.sector:hover img { transform: scale(1.08); }
.sector__body { position: absolute; inset: auto 0 0 0; padding: 24px; z-index: 1; }
.sector__body .num { font-family: var(--font-display); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.15em; }
.sector__body h3 { font-size: 1.3rem; margin: 6px 0 4px; }
.sector__body p { color: var(--ink-soft); font-size: 0.88rem; opacity: 0; max-height: 0; transition: opacity 0.4s, max-height 0.4s, margin 0.4s; }
.sector:hover .sector__body p { opacity: 1; max-height: 60px; margin-top: 6px; }
.sector__plus { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(5,7,14,0.5); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 1; transition: 0.4s; }
.sector:hover .sector__plus { background: var(--blue); border-color: var(--blue); transform: rotate(90deg); }

.sector--other { display: grid; place-items: center; text-align: center; background: linear-gradient(160deg, var(--surface), var(--bg-2)); aspect-ratio: 4/5; padding: 24px; }
.sector--other::after { display: none; }
.sector--other .big { font-family: var(--font-display); font-size: 3rem; color: var(--blue-2); }
.sector--other p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 34px 28px 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: relative; transition: transform .4s var(--ease), border-color .4s; }
.step:hover { transform: translateY(-6px); border-color: var(--blue); }
.step__num { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; background: linear-gradient(120deg, var(--blue-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; }
.step h3 { font-size: 1.25rem; margin: 18px 0 10px; }
.step p { color: var(--muted); font-size: 0.92rem; }
.step__line { position: absolute; top: 52px; right: -12px; width: 24px; height: 1px; background: var(--line-strong); z-index: 2; }
.step:last-child .step__line { display: none; }

/* ---------- Work / showcase ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.work__img { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work:hover .work__img img { transform: scale(1.05); }
/* browser frame */
.browser { position: absolute; left: 24px; right: 24px; bottom: -1px; top: 40px; border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid var(--line-strong); border-bottom: 0; box-shadow: 0 30px 60px -30px #000; background: #0a1120; transition: transform 0.8s var(--ease); }
.work:hover .browser { transform: translateY(-8px); }
.browser__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #0e1626; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a344a; }
.browser__bar .url { margin-left: 12px; font-size: 0.72rem; color: var(--muted); background: #0a1120; padding: 4px 12px; border-radius: 100px; }
.browser__shot { height: calc(100% - 34px); object-fit: cover; width: 100%; }
.work__meta { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; }
.work__meta h3 { font-size: 1.2rem; }
.work__meta .tags { display: flex; gap: 8px; margin-top: 6px; }
.work__meta .tags span { font-size: 0.74rem; color: var(--muted); }
.work__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: 0.4s; }
.work:hover .work__arrow { background: var(--gold); color: #241a06; border-color: var(--gold); }

/* ---------- Why / features ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); transition: 0.4s; }
.feature:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.03); }
.feature__ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(232,177,90,0.12); color: var(--gold); margin-bottom: 20px; }
.feature__ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 22px; }
.quote__stars { color: var(--gold); letter-spacing: 3px; }
.quote p { color: var(--ink-soft); font-size: 1.02rem; flex: 1; }
.quote__by { display: flex; align-items: center; gap: 13px; }
.quote__by .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--gold)); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #fff; }
.quote__by b { display: block; font-weight: 600; font-size: 0.95rem; }
.quote__by span { color: var(--muted); font-size: 0.84rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 80px 60px; border: 1px solid var(--line-strong); }
.cta-band__media { position: absolute; inset: 0; z-index: -1; }
.cta-band__media video, .cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(5,7,14,0.92), rgba(5,7,14,0.55)); }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 16ch; margin-bottom: 24px; }
.cta-band p { max-width: 46ch; color: var(--ink-soft); margin-bottom: 34px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 40px; position: relative; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 70px; }
.footer__brand p { color: var(--muted); max-width: 34ch; margin: 20px 0; font-size: 0.95rem; }
.footer__col h4 { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.footer__col a { display: block; padding: 7px 0; color: var(--ink-soft); font-size: 0.95rem; transition: color 0.3s, padding 0.3s; }
.footer__col a:hover { color: var(--blue-2); padding-left: 6px; }
.footer__word { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 15vw, 12rem); line-height: 0.85; letter-spacing: -0.04em; text-align: center; background: linear-gradient(180deg, rgba(234,240,255,0.14), rgba(234,240,255,0.02)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 20px 0 40px; user-select: none; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: 0.3s; }
.footer__social a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; bottom: 26px; right: 26px; z-index: 90; display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px 14px 16px; background: #25d366; color: #04310f; border-radius: 100px; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(37,211,102,0.6); transition: transform 0.4s var(--ease), box-shadow 0.4s; font-family: var(--font-display); }
.wa-float:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 22px 50px -12px rgba(37,211,102,0.8); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float .wa-label { font-size: 0.9rem; }
.wa-float::before { content:""; position:absolute; inset:0; border-radius:100px; border:2px solid #25d366; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0%{opacity:.6; transform:scale(1)} 100%{opacity:0; transform:scale(1.35)} }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrap { padding-top: 140px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }

.contact-info h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 22px 0 22px; }
.contact-info .lead { margin-bottom: 40px; }
.reassure { display: grid; gap: 16px; margin-bottom: 40px; }
.reassure li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.02); transition: 0.3s; }
.reassure li:hover { border-color: var(--line-strong); }
.reassure .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; background: rgba(63,125,255,0.14); color: var(--blue-2); display: grid; place-items: center; }
.reassure .ic svg { width: 20px; height: 20px; }
.reassure b { display: block; font-weight: 600; margin-bottom: 2px; }
.reassure span { color: var(--muted); font-size: 0.9rem; }

.contact-methods { display: grid; gap: 12px; }
.method { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); transition: 0.3s; }
.method:hover { border-color: var(--blue); transform: translateX(4px); }
.method .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.method.wa .ic { background: rgba(37,211,102,0.15); color: #25d366; }
.method.call .ic { background: rgba(63,125,255,0.15); color: var(--blue-2); }
.method .ic svg { width: 22px; height: 22px; }
.method b { display:block; font-size: 1rem; }
.method span { color: var(--muted); font-size: 0.85rem; }

/* Form card */
.form-card { position: relative; padding: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(16,26,46,0.85), rgba(8,11,22,0.85)); backdrop-filter: blur(14px); box-shadow: 0 50px 120px -50px rgba(0,0,0,0.9); overflow: hidden; }
.form-card::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.form-card__head { margin-bottom: 30px; }
.form-card__head h2 { font-size: 1.7rem; margin-bottom: 8px; }
.form-card__head p { color: var(--muted); font-size: 0.94rem; }

.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.86rem; font-weight: 500; margin-bottom: 10px; color: var(--ink-soft); }
.field label .req { color: var(--gold); }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 13px; border: 1px solid var(--line-strong);
  background: rgba(5,7,14,0.6); color: var(--ink); font-size: 0.98rem; transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23838fac' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(63,125,255,0.14); background: rgba(5,7,14,0.85); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2, #55607a); }
.field.error input, .field.error select { border-color: #ff5c6a; box-shadow: 0 0 0 4px rgba(255,92,106,0.12); }
.field .err-msg { color: #ff8791; font-size: 0.8rem; margin-top: 7px; display: none; }
.field.error .err-msg { display: block; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.input-icon input { padding-left: 44px !important; }

/* interest multi-select chips */
.chips { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 480px) { .chips { grid-template-columns: 1fr 1fr; } }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip__box { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 13px; border: 1px solid var(--line-strong); background: rgba(5,7,14,0.4); transition: 0.3s; height: 100%; }
.chip__box .tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: 0.3s; }
.chip__box .tick svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.5); transition: 0.3s; color: #fff; }
.chip__box span.t { font-size: 0.92rem; font-weight: 500; }
.chip__box small { display:block; color: var(--muted); font-size: 0.76rem; font-weight: 400; }
.chip input:checked + .chip__box { border-color: var(--blue); background: rgba(63,125,255,0.1); }
.chip input:checked + .chip__box .tick { background: var(--blue); border-color: var(--blue); }
.chip input:checked + .chip__box .tick svg { opacity: 1; transform: scale(1); }
.chip:hover .chip__box { border-color: var(--line-strong); }
.chip input:focus-visible + .chip__box { box-shadow: 0 0 0 4px rgba(63,125,255,0.16); }

.form-actions { margin-top: 28px; display: grid; gap: 14px; }
.form-actions .btn { justify-content: center; width: 100%; }
.form-divider { text-align: center; color: var(--muted); font-size: 0.82rem; position: relative; }
.form-divider::before, .form-divider::after { content:""; position:absolute; top:50%; width: 38%; height:1px; background: var(--line); }
.form-divider::before { left: 0; } .form-divider::after { right: 0; }
.form-note { margin-top: 18px; text-align: center; font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; }
.form-note svg { width: 14px; height: 14px; color: var(--blue-2); }
.form-error { display: none; margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255,92,106,0.1); border: 1px solid rgba(255,92,106,0.35); color: #ff8791; font-size: 0.85rem; text-align: center; }
.form-error.show { display: block; animation: fadeUp 0.3s var(--ease); }

.other-field { display: none; }
.other-field.show { display: block; animation: fadeUp 0.4s var(--ease); }

/* success state */
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: fadeUp 0.5s var(--ease); }
.form-success .ok { width: 76px; height: 76px; border-radius: 50%; background: rgba(37,211,102,0.15); color: #25d366; display: grid; place-items: center; margin: 0 auto 24px; }
.form-success .ok svg { width: 38px; height: 38px; }
.form-success h2 { font-size: 1.8rem; margin-bottom: 12px; }
.form-success p { color: var(--ink-soft); max-width: 40ch; margin: 0 auto 26px; }

/* trust strip on contact */
.contact-trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.contact-trust .t-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; }
.contact-trust .t-item b { color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; }

/* ---------- Reveal animations ---------- */
[data-animate] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-animate].in { opacity: 1; transform: none; }
[data-animate-delay="1"] { transition-delay: 0.08s; }
[data-animate-delay="2"] { transition-delay: 0.16s; }
[data-animate-delay="3"] { transition-delay: 0.24s; }
[data-animate-delay="4"] { transition-delay: 0.32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* custom cursor */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
.cursor-dot { width: 7px; height: 7px; background: #fff; transform: translate(-50%, -50%); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid rgba(255,255,255,0.6); transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background 0.3s; }
.cursor-ring.hover { width: 54px; height: 54px; background: rgba(255,255,255,0.08); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sectors, .process { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .testimonials { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  /* Contact mobile : titre -> formulaire -> texte & réassurance */
  .contact-grid { display: flex; flex-direction: column; gap: 36px; }
  .contact-info { display: contents; }
  .contact-head { order: 1; }
  .form-card { order: 2; }
  .contact-body { order: 3; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 84px 0; }
  .nav__links { display: none; }
  .burger { display: flex; }
  .nav__cta .btn:not(.burger) { display: none; }
  .service { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .service__num { display: none; }
  .sectors { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .step__line { display: none; }
  .testimonials { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 54px 28px; }
  .form-card, .contact-wrap { padding-left: 0; padding-right: 0; }
  .form-card { padding: 28px 22px; }
  .wa-float .wa-label { display: none; }
  .wa-float { padding: 14px; }
  .hero { padding-top: 120px; }
}
@media (max-width: 460px) {
  .sectors { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   LANGUE (FR / AR) + RTL
   ============================================================ */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 100px; overflow: hidden; background: rgba(255,255,255,0.03); }
.lang-switch button { background: none; border: 0; padding: 8px 13px; font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: color 0.3s, background 0.3s; line-height: 1; }
.lang-switch button.ar { font-family: "Cairo", sans-serif; }
.lang-switch button.active { background: var(--blue); color: #fff; }
.lang-switch button:hover:not(.active) { color: var(--ink); }

.muted-hint { color: var(--muted); font-weight: 400; }

/* Arabic typography */
[dir="rtl"] body { font-family: "Cairo", "Inter", sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .eyebrow, [dir="rtl"] .btn, [dir="rtl"] .lead,
[dir="rtl"] .form-card__head h2, [dir="rtl"] .field label { font-family: "Cairo", sans-serif; }
[dir="rtl"] .brand { font-family: var(--font-display); } /* le nom de marque reste latin */
[dir="rtl"] .h-display, [dir="rtl"] h1 { letter-spacing: 0; line-height: 1.25; }

/* RTL — champs avec icône */
[dir="rtl"] .input-icon svg { left: auto; right: 15px; }
[dir="rtl"] .input-icon input { padding-left: 16px !important; padding-right: 44px !important; }
[dir="rtl"] .field select { background-position: left 16px center; padding-right: 16px; padding-left: 44px; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-animate] { opacity: 1; transform: none; }
}
