/* ============================================================
   DzDevOps — "Living Infrastructure"
   Clash Display / General Sans / JetBrains Mono / Tajawal
   ============================================================ */

:root {
  /* brand accents (constant across themes) */
  --emerald: #24E39B;
  --emerald-deep: #12B77E;
  --tangerine: #FF6B4A;
  --iris: #7C93FF;

  /* dark theme ground (default) */
  --void: #080B10;
  --void-2: #0C1017;
  --surface: #10151E;
  --surface-2: #151C27;
  --line: #212A38;
  --line-soft: #1A2230;
  --ink: #ECF1F5;
  --ink-2: #A5B2C2;
  --ink-3: #6C7A8C;
  --sand: #F5F3EE;

  --accent: var(--emerald);
  --accent-ink: #04120C;
  --glow: rgba(36, 227, 155, 0.18);
  --card-grad: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  --shadow-lg: 0 30px 70px -30px rgba(0,0,0,0.75);
  --shadow-md: 0 16px 40px -22px rgba(0,0,0,0.7);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.4, 0.14, 0.16, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --f-display: "Clash Display", "Tajawal", system-ui, sans-serif;
  --f-body: "General Sans", "Tajawal", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

:root[data-theme="light"] {
  --void: #F4F5F2;
  --void-2: #FBFBF9;
  --surface: #FFFFFF;
  --surface-2: #F6F7F4;
  --line: #E2E4DE;
  --line-soft: #EBEDE7;
  --ink: #10151E;
  --ink-2: #47566A;
  --ink-3: #8A97A6;
  --accent: var(--emerald-deep);
  --accent-ink: #FFFFFF;
  --glow: rgba(18, 183, 126, 0.16);
  --card-grad: linear-gradient(180deg, rgba(16,21,30,0.02), rgba(16,21,30,0));
  --shadow-lg: 0 30px 60px -30px rgba(20,30,45,0.28);
  --shadow-md: 0 16px 36px -24px rgba(20,30,45,0.25);
}

/* language: Arabic uses Tajawal first */
:root[lang="ar"] {
  --f-display: "Tajawal", "Clash Display", system-ui, sans-serif;
  --f-body: "Tajawal", "General Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }
html[lang="ar"] .mono, html[lang="ar"] .term-body { font-family: var(--f-mono); }

body {
  font-family: var(--f-body);
  background: var(--void);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--f-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* selection + focus */
::selection { background: var(--emerald); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 3px; }

/* ---------- custom cursor (dot + trailing ring) ---------- */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; opacity: 0;
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px; background: var(--emerald); border-radius: 50%;
  box-shadow: 0 0 10px var(--glow);
  transition: opacity .3s, width .2s var(--ease), height .2s var(--ease), background .2s;
}
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid color-mix(in srgb, var(--emerald) 55%, transparent);
  border-radius: 50%;
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s, opacity .3s;
}
.cursor-ring.hot { width: 58px; height: 58px; background: var(--glow); border-color: transparent; }
.cursor-dot.hot { opacity: 0; }
.cursor-ring.down { width: 24px; height: 24px; border-color: var(--emerald); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--iris)); z-index: 9998;
}

/* ---------- buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x); border-radius: 100px; font-family: var(--f-body);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--ease-bounce), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn-sm { --pad-y: 9px; --pad-x: 18px; font-size: .9rem; }
.btn-primary { background: var(--emerald); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--glow); overflow: hidden; }
.btn-primary:hover { box-shadow: 0 18px 44px -12px var(--glow); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.42) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-block { width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 900;
  transition: background .3s var(--ease), border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--void) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.01em; }
.brand-glyph {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--emerald); color: var(--accent-ink); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 8px 22px -8px var(--glow);
}
.brand-glyph.small { width: 30px; height: 30px; font-size: .9rem; border-radius: 9px; }
.brand-text { color: var(--ink); }
.brand-text em { color: var(--tangerine); font-style: normal; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { position: relative; font-weight: 500; color: var(--ink-2); font-size: .98rem; padding: 6px 0; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 0; height: 2px; background: var(--emerald); transition: width .28s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

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

/* globe language dropdown */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 11px;
  border-radius: 100px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.lang-toggle:hover { border-color: var(--emerald); }
.lang-toggle .ico-globe { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lang-cur { font-size: .8rem; font-weight: 500; letter-spacing: .02em; }
.lang-toggle .ico-caret { width: 13px; height: 13px; fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.lang.open .ico-caret { transform: rotate(180deg); }

.lang-list {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 184px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 60;
}
html[dir="rtl"] .lang-list { transform-origin: top left; }
.lang.open .lang-list { opacity: 1; transform: none; pointer-events: auto; }
.lang-list li { margin: 0; }
.lang-list button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 12px; border: 0; background: transparent; color: var(--ink-2); border-radius: 9px;
  cursor: pointer; font-family: var(--f-body); font-size: .95rem; text-align: start;
  transition: background .18s, color .18s;
}
.lang-list button:hover { background: var(--surface-2); color: var(--ink); }
.lang-list button .mono { font-size: .72rem; color: var(--ink-3); }
.lang-list button.active { color: var(--emerald); font-weight: 600; }
.lang-list button.active .mono { color: var(--emerald); }

/* inline icons that replaced emoji */
.tico { width: 1.05em; height: 1.05em; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flag-dz { width: 21px; height: 14px; border-radius: 2.5px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); flex: 0 0 auto; }
.loc-line { display: inline-flex; align-items: center; gap: 8px; }
.footer-built { display: inline-flex; align-items: center; gap: 7px; }
.note-ico { width: 15px; height: 15px; vertical-align: -.2em; margin-inline-end: 6px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, transform .3s var(--ease-bounce);
}
.theme-toggle:hover { border-color: var(--emerald); transform: rotate(18deg); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: block; }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: var(--hero-mh, 100svh); display: flex; align-items: center; padding: 120px 0 60px; overflow: hidden; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow {
  position: absolute; z-index: 0; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  inset-inline-end: -10%; top: -12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--glow), transparent 62%); filter: blur(20px);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }

.eyebrow { font-family: var(--f-mono); font-size: .82rem; letter-spacing: .04em; color: var(--emerald); margin-bottom: 20px; }

.status-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 100px;
  background: color-mix(in srgb, var(--emerald) 12%, transparent); border: 1px solid color-mix(in srgb, var(--emerald) 30%, transparent);
  font-size: .82rem; color: var(--ink); margin-bottom: 26px;
}
.status-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 var(--emerald); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald) 70%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-title { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 26px; }
.hero-title .rotator { display: inline-flex; overflow: hidden; vertical-align: bottom; height: 1.15em; position: relative; color: var(--tangerine); }
.rotator-word { display: inline-block; white-space: nowrap; }
.hero-title-tail { display: inline; }

.hero-sub { font-size: 1.14rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-facts { list-style: none; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-family: var(--f-display); font-size: 1.9rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-facts .ar-glyph { color: var(--emerald); }
.hero-facts span { font-size: .82rem; color: var(--ink-3); }

/* terminal card */
.hero-terminal {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--emerald) 8%), var(--surface));
  border: 1px solid color-mix(in srgb, var(--emerald) 22%, var(--line));
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--emerald) 8%, transparent);
  overflow: hidden; direction: ltr;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.term-bar span:nth-child(1) { background: #FF5F57; } .term-bar span:nth-child(2) { background: #FEBC2E; } .term-bar span:nth-child(3) { background: #28C840; }
.term-bar em { margin-inline-start: auto; font-style: normal; font-size: .74rem; color: var(--ink-3); }
.term-body { padding: 20px 22px; font-size: .86rem; line-height: 1.85; color: var(--ink-2); overflow-x: auto; }
.term-body .tl { display: block; opacity: 0; transform: translateY(4px); }
.term-body.play .tl { animation: termLine .4s var(--ease) forwards; }
.term-body.play .tl:nth-child(1){animation-delay:.1s}.term-body.play .tl:nth-child(2){animation-delay:.5s}.term-body.play .tl:nth-child(3){animation-delay:.9s}.term-body.play .tl:nth-child(4){animation-delay:1.3s}.term-body.play .tl:nth-child(5){animation-delay:1.7s}.term-body.play .tl:nth-child(6){animation-delay:2.1s}.term-body.play .tl:nth-child(7){animation-delay:2.5s}.term-body.play .tl:nth-child(8){animation-delay:2.9s}
@keyframes termLine { to { opacity: 1; transform: translateY(0); } }
.c-p { color: var(--emerald); } .c-c { color: var(--iris); } .c-g { color: var(--emerald); } .c-o { color: var(--tangerine); } .c-m { color: var(--ink-3); } .c-d { color: var(--ink-3); }
.blink { animation: blink 1s steps(2) infinite; color: var(--emerald); }
@keyframes blink { 50% { opacity: 0; } }

.scroll-hint { position: absolute; bottom: 26px; inset-inline-start: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 100px; z-index: 3; display: grid; place-items: start center; padding-top: 7px; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--emerald); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- MARQUEE ---------- */
/* marquee flows LTR in every language (decorative tech names) to avoid RTL overflow */
.marquee { border-block: 1px solid var(--line-soft); background: var(--void-2); padding: 18px 0; overflow: clip; white-space: nowrap; direction: ltr; max-width: 100%; }
.marquee-track { display: inline-flex; gap: 26px; align-items: center; animation: marquee 32s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--f-mono); font-size: .96rem; color: var(--ink-2); }
.marquee-track i { color: var(--emerald); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.kicker { font-size: .8rem; letter-spacing: .06em; color: var(--emerald); margin-bottom: 16px; text-transform: uppercase; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.02em; margin-bottom: 16px; }
.section-lead { font-size: 1.1rem; color: var(--ink-2); }

/* ---------- SERVICE CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--surface); background-image: var(--card-grad);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px 28px 26px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,0%), color-mix(in srgb, var(--c) 14%, transparent), transparent 40%);
  pointer-events: none;
}
.card[data-accent="emerald"] { --c: var(--emerald); }
.card[data-accent="tangerine"] { --c: var(--tangerine); }
.card[data-accent="iris"] { --c: var(--iris); }
.card:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card-ico { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); margin-bottom: 20px; }
.card-ico svg { width: 25px; height: 25px; fill: none; stroke: var(--c); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.28rem; margin-bottom: 9px; }
.card p { color: var(--ink-2); font-size: .98rem; margin-bottom: 18px; }
.card-tags { font-size: .78rem; color: var(--ink-3); }

/* ---------- WORK ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.work-card:hover { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.work-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.work-card:hover .work-shot img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; inset-inline-end: 12px; font-family: var(--f-mono); font-size: .68rem; padding: 4px 10px; border-radius: 100px; letter-spacing: .04em; }
.badge.live { background: var(--emerald); color: var(--accent-ink); }
.work-meta { padding: 20px 22px 22px; }
.work-meta h3 { font-size: 1.15rem; margin-bottom: 8px; }
.work-meta h3 em { color: var(--ink-3); font-style: normal; font-weight: 400; font-size: .82rem; display: block; margin-top: 3px; }
.work-meta p { color: var(--ink-2); font-size: .93rem; margin-bottom: 14px; }
.work-stack { font-size: .76rem; color: var(--emerald); }

/* ---------- PROCESS PIPELINE ---------- */
.pipeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.pipeline::before { content: ""; position: absolute; top: 15px; inset-inline: 6%; height: 2px; background: var(--line); z-index: 0; }
.pipeline::after { content: ""; position: absolute; top: 15px; inset-inline-start: 6%; height: 2px; width: 0; background: linear-gradient(90deg, var(--emerald), var(--iris)); z-index: 1; transition: width 1.6s var(--ease); }
.pipeline.run::after { width: 88%; }
html[dir="rtl"] .pipeline::after { background: linear-gradient(270deg, var(--emerald), var(--iris)); }
.stage { position: relative; padding-top: 40px; z-index: 2; }
.stage-node { position: absolute; top: 8px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); transition: border-color .3s, background .3s, box-shadow .3s; }
.pipeline.run .stage-node { border-color: var(--emerald); background: var(--emerald); box-shadow: 0 0 0 5px var(--glow); }
.stage:nth-child(1) .stage-node { transition-delay: .2s; } .stage:nth-child(2) .stage-node { transition-delay: .5s; } .stage:nth-child(3) .stage-node { transition-delay: .8s; } .stage:nth-child(4) .stage-node { transition-delay: 1.1s; } .stage:nth-child(5) .stage-node { transition-delay: 1.4s; }
.stage-num { font-size: .78rem; color: var(--tangerine); }
.stage h3 { font-size: 1.22rem; margin: 6px 0 8px; }
.stage p { color: var(--ink-2); font-size: .92rem; }

/* ---------- STATS BANNER ---------- */
.stats-banner { background: var(--void-2); border-block: 1px solid var(--line-soft); padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-big { display: flex; flex-direction: column; gap: 6px; }
.stat-big strong { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; color: var(--emerald); font-variant-numeric: tabular-nums; line-height: 1; }
.stat-big span { color: var(--ink-2); font-size: .95rem; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-channels { list-style: none; margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.contact-channels li { display: flex; align-items: center; gap: 15px; }
.cc-ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.cc-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--emerald); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-ico.wa { background: var(--emerald); border-color: var(--emerald); }
.cc-ico.wa svg { stroke: var(--void); }
.cc-ico div, .contact-channels div { display: flex; flex-direction: column; }
.contact-channels em { font-style: normal; font-size: .74rem; color: var(--ink-3); letter-spacing: .04em; }
.cc-link { color: var(--ink); font-weight: 500; }
a.cc-link:hover { color: var(--emerald); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .84rem; color: var(--ink-2); font-weight: 500; }
.field input, .field textarea {
  width: 100%; background: var(--void-2); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; color: var(--ink); font-family: var(--f-body); font-size: .98rem; resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--glow); background: var(--surface); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

#cfSubmit { margin-top: 6px; }
.btn-spinner { display: none; width: 17px; height: 17px; border: 2px solid color-mix(in srgb, var(--accent-ink) 40%, transparent); border-top-color: var(--accent-ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#cfSubmit.loading .btn-label { opacity: .6; }
#cfSubmit.loading .btn-spinner { display: inline-block; }
.form-note { margin-top: 14px; font-size: .85rem; min-height: 1.2em; text-align: center; }
.form-note.ok { color: var(--emerald); }
.form-note.err { color: var(--tangerine); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 34px; background: var(--void-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid var(--line-soft); }
.footer-brand { max-width: 360px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--ink-2); font-size: .94rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: start; }
.footer-links a { color: var(--ink-2); font-size: .95rem; transition: color .2s; }
.footer-links a:hover { color: var(--emerald); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; }
.footer-bottom span { font-size: .8rem; color: var(--ink-3); }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 950;
  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,.55);
  transition: transform .3s var(--ease-bounce);
}
.wa-float:hover { transform: scale(1.08); }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: wapulse 2.4s ease-out infinite; }
@keyframes wapulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; } .reveal[data-delay="5"] { transition-delay: .4s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RTL tweaks ---------- */
html[dir="rtl"] body { letter-spacing: 0; }
html[dir="rtl"] .hero-title-tail { display: inline; }
html[dir="rtl"] .term-body { direction: ltr; text-align: left; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-terminal { max-width: 460px; }
  .cards, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .pipeline::before, .pipeline::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; inset-inline: 14px; top: 82px; flex-direction: column; gap: 4px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-lg);
  }
  .nav.open .nav-links a { padding: 11px 12px; border-radius: 8px; }
  .nav.open .nav-links a:hover { background: var(--surface-2); }
  .cards, .work-grid, .pipeline, .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero { padding-top: 100px; }
  .hero-facts { gap: 22px; }
  .contact-form { padding: 24px; }
  .wa-float { width: 54px; height: 54px; inset-block-end: 18px; inset-inline-end: 18px; }
}

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