/* ═══════════════════════════════════════════════════════════════
   AMR AI — CINEMATIC DESIGN SYSTEM v1.0
   Quiet Luxury × Digital Brutalism · RTL Arabic · Award-grade
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #04060f;
  --bg-2: #070b18;
  --bg-3: #0b1122;
  --ink: #eef3ff;
  --ink-dim: rgba(238, 243, 255, .62);
  --ink-faint: rgba(238, 243, 255, .34);
  --cyan: #35d0ff;
  --violet: #7b6cff;
  --mint: #8ef0c9;
  --gold: #ffd166;
  --pink: #ff9de2;
  --line: rgba(238, 243, 255, .09);
  --line-strong: rgba(238, 243, 255, .16);
  --glass: rgba(238, 243, 255, .045);
  --font-head: 'Cairo', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', sans-serif;
  --font-latin: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-cine: cubic-bezier(.76, 0, .24, 1);
  --nav-h: 84px;
  --radius: 22px;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
body[data-loading] { overflow: hidden; }

::selection { background: var(--cyan); color: #04060f; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
input, textarea, select { font: inherit; color: inherit; cursor: none; }

.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.dim { color: var(--ink-dim); }
.container { width: min(1240px, 92vw); margin-inline: auto; }

/* ═══════════ FX LAYERS ═══════════ */
.grain {
  position: fixed; inset: -100px; z-index: 200; pointer-events: none;
  opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.2s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); } 25% { transform: translate(-40px, 30px); }
  50% { transform: translate(30px, -45px); } 75% { transform: translate(-25px, -30px); } 100% { transform: translate(0, 0); }
}
.scanlines {
  position: fixed; inset: 0; z-index: 199; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(4, 6, 15, .16) 3px 4px);
}

#scroll-progress {
  position: fixed; top: 0; right: 0; left: 0; height: 2px; z-index: 300;
  background: transparent; pointer-events: none;
}
#scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transform-origin: right; transform: scaleX(0);
}

/* ═══════════ CURSOR ═══════════ */
#cursor { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.cursor-dot {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); top: 0; left: 0; translate: -50% -50%;
  box-shadow: 0 0 12px var(--cyan);
}
.cursor-ring {
  position: absolute; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(53, 208, 255, .55); top: 0; left: 0;
  translate: -50% -50%; display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
    background .35s, border-color .35s;
}
.cursor-ring .cursor-label {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: #04060f; opacity: 0; transition: opacity .25s; white-space: nowrap;
}
#cursor.is-hover .cursor-ring {
  width: 76px; height: 76px;
  background: var(--cyan); border-color: var(--cyan);
}
#cursor.is-hover .cursor-ring .cursor-label { opacity: 1; }
#cursor.is-hover .cursor-dot { opacity: 0; }
@media (hover: none), (max-width: 860px) {
  #cursor { display: none; }
  body, button, input, textarea, select { cursor: auto; }
}

/* ═══════════ PRELOADER ═══════════ */
#preloader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
}
.preloader-curtain { position: absolute; inset: 0; background: var(--bg); }
.preloader-core {
  position: relative; z-index: 2; display: flex; flex-direction: column;
  align-items: center; gap: 22px;
}
.preloader-logo { position: relative; width: 120px; height: 120px; }
.preloader-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 26px rgba(53, 208, 255, .45)); }
#preloader-logo-canvas { width: 100%; height: 100%; display: block; }
.preloader-ring {
  position: absolute; inset: -18px; border-radius: 50%;
  border: 1px dashed rgba(53, 208, 255, .5);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.preloader-word {
  font-family: var(--font-latin); font-weight: 700; font-size: 15px;
  letter-spacing: .55em; color: var(--ink-dim); padding-inline-start: .55em;
}
.preloader-bar {
  width: 240px; height: 2px; background: var(--line);
  border-radius: 99px; overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}
.preloader-count { font-family: var(--font-mono); font-size: 42px; font-weight: 600; }
.preloader-count em { font-style: normal; font-size: 18px; color: var(--cyan); margin-inline-start: 4px; }
.preloader-status { font-size: 13px; color: var(--ink-faint); }

/* ═══════════ NAV ═══════════ */
#nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 150;
  transition: transform .5s var(--ease-cine), background .4s, backdrop-filter .4s;
}
#nav.is-hidden { transform: translateY(-110%); }
#nav.is-scrolled {
  background: rgba(4, 6, 15, .72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1360px, 94vw); margin-inline: auto;
  height: var(--nav-h); display: flex; align-items: center; gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { filter: drop-shadow(0 0 10px rgba(53, 208, 255, .4)); }
.nav-logo-holder { position: relative; width: 40px; height: 40px; display: inline-block; }
.nav-logo-holder .nav-logo-fallback { width: 100%; height: 100%; object-fit: contain; transition: opacity .5s; }
#nav-logo-canvas {
  position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px);
  display: block; pointer-events: none; opacity: 0; transition: opacity .8s;
}
.nav-logo-holder.is-live #nav-logo-canvas { opacity: 1; }
.nav-logo-holder.is-live .nav-logo-fallback { opacity: 0; }
.nav-brand-text { font-family: var(--font-latin); font-size: 21px; font-weight: 500; }
.nav-brand-text b { color: var(--cyan); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  position: relative; padding: 10px 16px; font-size: 15px; font-weight: 500;
  color: var(--ink-dim); border-radius: 99px; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; right: 16px; left: 16px;
  height: 1px; background: var(--cyan); transform: scaleX(0);
  transform-origin: left; transition: transform .4s var(--ease-cine);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 99px; font-weight: 700; font-size: 15px;
  color: #04060f; background: var(--cyan); overflow: hidden;
  transition: box-shadow .35s, transform .35s;
}
.nav-cta:hover { box-shadow: 0 0 34px rgba(53, 208, 255, .5); }
.nav-cta-pulse {
  position: absolute; inset-inline-start: 10px; top: 50%; translate: 0 -50%;
  width: 8px; height: 8px; border-radius: 50%; background: #04060f;
  animation: pulse 1.6s ease infinite;
}
.nav-cta { padding-inline-start: 30px; }
@keyframes pulse { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .3; scale: .7; } }
#nav-burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
#nav-burger span { width: 24px; height: 2px; background: var(--ink); transition: .35s var(--ease-cine); }
#nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-burger.is-open span:nth-child(2) { opacity: 0; }
#nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  position: fixed; inset: 0; z-index: 140; background: rgba(4, 6, 15, .96);
  backdrop-filter: blur(24px); display: grid; place-content: center;
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease-cine);
}
#mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-links { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.mobile-links a {
  font-family: var(--font-head); font-size: clamp(28px, 7vw, 42px); font-weight: 800;
  padding: 6px 20px; color: var(--ink-dim); transition: color .3s, transform .3s;
}
.mobile-links a:hover { color: var(--cyan); transform: translateX(-6px); }
.mobile-menu-foot { position: absolute; bottom: 34px; right: 0; left: 0; text-align: center; color: var(--ink-faint); font-size: 12px; }

/* ═══════════ HERO ═══════════ */
#hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-items: center;
  padding-top: calc(var(--nav-h) + 20px); padding-bottom: 60px;
}
#neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 62% at 50% 42%, transparent 40%, rgba(4, 6, 15, .82) 100%),
    linear-gradient(180deg, rgba(4, 6, 15, .55), transparent 26%, transparent 72%, var(--bg));
}
.hero-inner {
  position: relative; z-index: 3; width: min(1180px, 92vw);
  margin-inline: auto; text-align: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px; border-radius: 99px; font-size: 14.5px;
  border: 1px solid var(--line-strong); background: var(--glass);
  backdrop-filter: blur(10px); margin-bottom: 34px; color: var(--ink-dim);
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 2s infinite; }
.kicker-badge { font-size: 11px; color: var(--cyan); border-inline-start: 1px solid var(--line-strong); padding-inline-start: 12px; }

.hero-title {
  font-family: var(--font-head); font-weight: 1000;
  font-size: clamp(46px, 9.4vw, 128px);
  line-height: 1.08; letter-spacing: -.01em; margin-bottom: 30px;
}
.hero-line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-word { display: inline-block; will-change: transform; }
.hero-word-grad {
  background: linear-gradient(120deg, var(--cyan) 10%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-line-mega { margin-top: .04em; }
.hero-word-glow {
  color: var(--cyan);
  text-shadow: 0 0 60px rgba(53, 208, 255, .55), 0 0 140px rgba(123, 108, 255, .4);
}
.hero-sub {
  max-width: 640px; margin: 0 auto 40px; font-size: clamp(16px, 2vw, 19px);
  line-height: 2; color: var(--ink-dim);
}
.hero-sub b { color: var(--ink); font-weight: 600; }

.hero-ctas { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 58px; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 36px; border-radius: 99px; font-family: var(--font-head);
  font-weight: 800; font-size: 17px; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s;
  isolation: isolate;
}
.btn:active { transform: scale(.97); }
.btn-fill {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  transform: translateY(101%); transition: transform .5s var(--ease-cine);
}
.btn:hover .btn-fill { transform: translateY(0); }
.btn-primary { color: #04060f; background: var(--cyan); box-shadow: 0 0 0 rgba(53, 208, 255, 0); }
.btn-primary:hover { box-shadow: 0 10px 44px rgba(53, 208, 255, .35); color: var(--ink); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: #04060f; border-color: var(--cyan); }
.btn-orb { position: absolute; top: 50%; inset-inline-end: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); translate: 0 -50%; opacity: .8; }
.btn-block { width: 100%; justify-content: center; }
.btn-mega {
  padding: 24px 52px; font-size: clamp(18px, 2.4vw, 23px);
  color: #04060f; background: var(--cyan);
}

.hero-meta {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(18px, 4vw, 44px); flex-wrap: wrap;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-item b { font-size: clamp(24px, 3.4vw, 36px); font-weight: 600; color: var(--ink); }
.hero-meta-item span { font-size: 13px; color: var(--ink-faint); }
.hero-meta-sep { width: 1px; height: 42px; background: var(--line-strong); }

.hero-scroll-hint {
  position: absolute; bottom: 30px; inset-inline-start: 50%; translate: 50% 0;
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-faint); font-size: 11px; letter-spacing: .3em;
}
.scroll-line { width: 1px; height: 52px; background: var(--line-strong); overflow: hidden; }
.scroll-line span { display: block; width: 100%; height: 40%; background: var(--cyan); animation: scrollDrip 1.8s var(--ease-cine) infinite; }
@keyframes scrollDrip { 0% { transform: translateY(-110%); } 100% { transform: translateY(280%); } }

.hero-code {
  position: absolute; bottom: 34px; inset-inline-end: 4vw; z-index: 3;
  font-size: 12px; color: var(--ink-faint);
}
.hero-code .code-tag { color: var(--cyan); }

/* ═══════════ MARQUEE ═══════════ */
.marquee-band { position: relative; padding: 46px 0; overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-a { border-block: 1px solid var(--line); padding: 18px 0; }
.marquee-track { display: inline-flex; animation: marquee 30s linear infinite; will-change: transform; }
.marquee-b .marquee-track { animation-duration: 44s; animation-direction: reverse; }
.marquee-a span {
  font-family: var(--font-head); font-size: clamp(20px, 3vw, 30px);
  font-weight: 800; color: var(--ink);
}
.marquee-a span i { font-style: normal; color: var(--cyan); margin-inline: 18px; }
.marquee-b { padding: 14px 0; }
.marquee-b span { font-size: 14px; color: var(--ink-faint); }
@keyframes marquee { to { transform: translateX(50%); } }

/* ═══════════ SECTION SHARED ═══════════ */
section { position: relative; }
.section-head {
  display: flex; align-items: baseline; gap: 20px; margin-bottom: 26px;
}
.section-index { font-size: 13px; color: var(--cyan); }
.section-label {
  font-size: 14px; font-weight: 600; color: var(--ink-dim);
  border: 1px solid var(--line-strong); border-radius: 99px; padding: 7px 18px;
  background: var(--glass);
}
.section-title {
  font-family: var(--font-head); font-weight: 1000;
  font-size: clamp(38px, 6.4vw, 84px); line-height: 1.14; letter-spacing: -.01em;
  margin-bottom: 22px;
}
.grad-text {
  background: linear-gradient(110deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { max-width: 560px; font-size: 17px; line-height: 1.9; color: var(--ink-dim); margin-bottom: 60px; }

/* ═══════════ MANIFESTO ═══════════ */
#manifesto { padding: clamp(110px, 15vw, 190px) 0; overflow: hidden; }
.manifesto-text {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(24px, 4vw, 46px); line-height: 1.75;
  max-width: 1020px;
}
.manifesto-text .w { opacity: .13; transition: opacity .2s linear; display: inline-block; }
.manifesto-text .w.is-lit { opacity: 1; }
.manifesto-text em { font-style: normal; color: var(--cyan); }
.manifesto-text strong { color: var(--violet); font-weight: 800; }
.manifesto-foot {
  margin-top: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.manifesto-sig { display: flex; align-items: center; gap: 16px; }
.manifesto-sig img { border-radius: 14px; }
.manifesto-sig b { display: block; font-family: var(--font-head); font-size: 17px; }
.manifesto-sig span { font-size: 13px; color: var(--ink-faint); }
.manifesto-tags { display: flex; gap: 12px; font-size: 12px; color: var(--ink-faint); }
.manifesto-tags span { border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; }
.manifesto-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.orb-1 { width: 420px; height: 420px; background: rgba(123, 108, 255, .13); top: -120px; inset-inline-start: -140px; }
.orb-2 { width: 360px; height: 360px; background: rgba(53, 208, 255, .1); bottom: -120px; inset-inline-end: -100px; }

/* ═══════════ SERVICES ═══════════ */
#services { padding: clamp(90px, 12vw, 160px) 0 60px; }
.services-stack { width: min(1080px, 92vw); margin-inline: auto; }
.service-card {
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 48px);
  align-items: center; padding: clamp(28px, 4vw, 52px);
  margin-bottom: 26px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent); box-shadow: 0 0 24px var(--accent);
}
.service-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at 85% 20%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%);
}
.service-num {
  font-size: clamp(38px, 5vw, 62px); font-weight: 600;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 65%, transparent);
  align-self: start;
}
.service-head-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.service-head-row h3 { font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.service-latin { font-size: 12px; color: var(--accent); }
.service-body p { color: var(--ink-dim); line-height: 1.9; font-size: 16px; margin-bottom: 18px; max-width: 560px; }
.service-features { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 20px; margin-bottom: 20px; }
.service-features li { position: relative; padding-inline-start: 20px; font-size: 14.5px; color: var(--ink-dim); }
.service-features li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.service-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tech span {
  font-size: 11.5px; padding: 6px 13px; border-radius: 99px;
  border: 1px solid var(--line-strong); color: var(--ink-dim);
}
.service-icon { width: clamp(64px, 8vw, 108px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 26px; border: 1px solid var(--line); background: var(--glass); color: var(--accent); }
.service-icon svg { width: 52%; height: 52%; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 55%, transparent)); }

/* ═══════════ WORK ═══════════ */
#work { background: var(--bg-2); border-block: 1px solid var(--line); }
.work-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.work-head { margin-bottom: clamp(24px, 4vh, 48px); position: relative; }
.work-progress {
  position: absolute; top: 8px; inset-inline-end: 0;
  font-size: 15px; color: var(--ink-faint);
}
.work-progress #work-current { color: var(--cyan); font-size: 22px; }
.work-track {
  display: flex; gap: clamp(20px, 3vw, 40px);
  padding-inline: max(4vw, calc((100vw - 1240px) / 2));
  will-change: transform; width: max-content;
}
.case-card {
  width: min(600px, 82vw); flex-shrink: 0; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-3), var(--bg));
  border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
}
.case-visual {
  position: relative; height: clamp(220px, 34vh, 320px); overflow: hidden;
  display: grid; place-items: center; color: var(--accent);
}
.case-visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 55%),
    radial-gradient(circle at 75% 85%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 50%);
}
.case-grid-lines {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 78%);
}
.case-field {
  position: absolute; top: 18px; inset-inline-start: 20px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 99px;
  padding: 7px 16px; background: rgba(4, 6, 15, .55); backdrop-filter: blur(8px);
}
.case-glyph { width: 96px; height: 96px; position: relative; filter: drop-shadow(0 0 26px color-mix(in srgb, var(--accent) 60%, transparent)); }
.case-info { padding: clamp(22px, 3vw, 34px); }
.case-info h3 { font-family: var(--font-head); font-size: clamp(21px, 2.6vw, 27px); font-weight: 900; margin-bottom: 10px; }
.case-info p { color: var(--ink-dim); line-height: 1.85; font-size: 15.5px; margin-bottom: 22px; }
.case-metrics { display: flex; gap: clamp(16px, 3vw, 34px); border-top: 1px solid var(--line); padding-top: 18px; flex-wrap: wrap; }
.case-metrics div { display: flex; flex-direction: column; gap: 3px; }
.case-metrics b { font-size: clamp(19px, 2.4vw, 25px); color: var(--accent); }
.case-metrics span { font-size: 12.5px; color: var(--ink-faint); }

/* ═══════════ PROCESS ═══════════ */
#process { padding: clamp(110px, 14vw, 180px) 0; }
.process-timeline { position: relative; margin-top: 70px; display: grid; gap: 34px; }
.process-line {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 27px;
  width: 2px; background: var(--line);
}
#process-line-fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  transform-origin: top; transform: scaleY(0);
}
.process-step { display: grid; grid-template-columns: 56px 1fr; gap: clamp(18px, 3vw, 36px); align-items: start; position: relative; }
.process-node {
  position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 600;
  background: var(--bg-3); border: 1px solid var(--line-strong); color: var(--cyan);
  box-shadow: 0 0 0 8px var(--bg);
}
.process-card {
  padding: clamp(24px, 3.4vw, 38px); border-radius: var(--radius);
  background: linear-gradient(150deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); transition: border-color .4s, transform .4s var(--ease-out);
}
.process-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.process-card h3 { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 27px); font-weight: 900; margin-bottom: 10px; }
.process-card p { color: var(--ink-dim); line-height: 1.9; max-width: 620px; margin-bottom: 14px; }
.process-tag { font-size: 11.5px; color: var(--cyan); border: 1px solid rgba(53, 208, 255, .3); padding: 6px 14px; border-radius: 99px; }

/* ═══════════ TOOLS ═══════════ */
#tools { padding: clamp(110px, 14vw, 180px) 0; background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.tools-orb { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(123, 108, 255, .09); filter: blur(110px); top: -180px; inset-inline-end: -160px; pointer-events: none; }
.tools-tabs { position: relative; display: inline-flex; gap: 6px; padding: 6px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 44px; }
.tools-tab {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 99px; font-family: var(--font-head);
  font-weight: 700; font-size: 15.5px; color: var(--ink-dim); transition: color .35s;
}
.tools-tab.active { color: #04060f; }
.tools-tab-ink {
  position: absolute; top: 6px; bottom: 6px; border-radius: 99px;
  background: var(--cyan); z-index: 1;
  transition: inset-inline-start .5s var(--ease-cine), width .5s var(--ease-cine);
}
.tools-panel { display: none; animation: panelIn .6s var(--ease-out); }
.tools-panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.calc-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(24px, 3.5vw, 44px); align-items: start; }
.calc-group { margin-bottom: 30px; }
.calc-label { display: block; font-family: var(--font-head); font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.calc-options { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-chip {
  padding: 12px 22px; border-radius: 99px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--ink-dim);
  transition: all .3s var(--ease-out); background: var(--glass);
}
.calc-chip:hover { border-color: var(--cyan); color: var(--ink); }
.calc-chip.is-on { background: var(--cyan); border-color: var(--cyan); color: #04060f; box-shadow: 0 6px 26px rgba(53, 208, 255, .3); }
.calc-extras { display: grid; gap: 10px; }
.calc-extra {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--glass);
  transition: border-color .3s;
}
.calc-extra:hover { border-color: var(--line-strong); }
.calc-extra input { position: absolute; opacity: 0; }
.calc-extra .box {
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; flex-shrink: 0; transition: all .25s;
}
.calc-extra .box::after { content: ''; width: 11px; height: 6px; border: 2px solid #04060f; border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translateY(-1px) scale(0); transition: transform .25s var(--ease-out); }
.calc-extra input:checked ~ .box { background: var(--cyan); border-color: var(--cyan); }
.calc-extra input:checked ~ .box::after { transform: rotate(-45deg) translateY(-1px) scale(1); }
.calc-extra .lbl { flex: 1; font-size: 15px; }
.calc-extra .prc { color: var(--cyan); font-size: 14px; }
.calc-rush { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px dashed rgba(255, 209, 102, .4); background: rgba(255, 209, 102, .05); font-weight: 600; }
.calc-rush em { font-style: normal; color: var(--gold); margin-inline-start: 8px; }
.calc-rush input { position: absolute; opacity: 0; }
.calc-rush-box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--gold); display: grid; place-items: center; transition: background .25s; }
.calc-rush-box::after { content: '⚡'; font-size: 12px; opacity: 0; transition: opacity .2s; }
.calc-rush input:checked ~ .calc-rush-box { background: var(--gold); }
.calc-rush input:checked ~ .calc-rush-box::after { opacity: 1; }

.calc-result {
  position: sticky; top: calc(var(--nav-h) + 24px);
  padding: clamp(26px, 3vw, 38px); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-3), var(--bg));
  border: 1px solid var(--line-strong);
  display: flex; flex-direction: column; gap: 12px; text-align: center;
}
.calc-result-label { font-size: 14px; color: var(--ink-dim); }
.calc-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.calc-price b { font-size: clamp(48px, 6vw, 68px); font-weight: 600; background: linear-gradient(110deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-currency { font-size: 26px; color: var(--cyan); }
.calc-duration { font-size: 14.5px; color: var(--ink-dim); }
.calc-duration b { color: var(--ink); }
.calc-breakdown { display: grid; gap: 6px; margin-block: 8px; text-align: start; }
.calc-breakdown .row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-faint); border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.calc-breakdown .row b { color: var(--ink-dim); font-weight: 500; }
.calc-note { font-size: 12px; color: var(--ink-faint); line-height: 1.7; }

/* QUIZ */
.quiz, .quiz-result {
  max-width: 720px; margin-inline: auto; padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius); background: linear-gradient(160deg, var(--bg-3), var(--bg));
  border: 1px solid var(--line-strong);
}
.quiz-progress { height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 26px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--cyan)); transition: width .5s var(--ease-cine); }
.quiz-step-label { font-size: 12px; color: var(--ink-faint); margin-bottom: 14px; }
.quiz-q { font-family: var(--font-head); font-size: clamp(21px, 3vw, 29px); font-weight: 900; line-height: 1.6; margin-bottom: 26px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-opt {
  text-align: start; padding: 18px 22px; border-radius: 16px; font-size: 16px;
  border: 1px solid var(--line-strong); background: var(--glass); color: var(--ink-dim);
  transition: all .3s var(--ease-out); display: flex; align-items: center; gap: 14px;
}
.quiz-opt:hover { border-color: var(--cyan); color: var(--ink); transform: translateX(-6px); background: rgba(53, 208, 255, .06); }
.quiz-opt .q-letter { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; border: 1px solid var(--line-strong); flex-shrink: 0; color: var(--cyan); }
.quiz-result { text-align: center; }
.quiz-score-ring { position: relative; display: inline-grid; place-items: center; margin-bottom: 20px; }
.quiz-score-num { position: absolute; display: flex; align-items: baseline; gap: 4px; }
.quiz-score-num b { font-size: 44px; color: var(--cyan); }
.quiz-score-num span { color: var(--ink-faint); }
.quiz-result h3 { font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin-bottom: 14px; }
.quiz-result p { color: var(--ink-dim); line-height: 2; max-width: 540px; margin: 0 auto 26px; }
.quiz-result-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ═══════════ PRICING ═══════════ */
#pricing { padding: clamp(110px, 14vw, 180px) 0; }
.pricing-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.pricing-row {
  display: grid; grid-template-columns: 1.2fr 1.4fr .8fr .6fr;
  gap: 18px; align-items: center; padding: 22px clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line); font-size: 15.5px;
  transition: background .3s;
}
.pricing-row:last-child { border-bottom: 0; }
.pricing-row:not(.pricing-head):hover { background: rgba(53, 208, 255, .045); }
.pricing-head { font-family: var(--font-head); font-weight: 800; color: var(--ink-faint); font-size: 13.5px; background: var(--bg-3); }
.pricing-row .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-inline-end: 10px; box-shadow: 0 0 10px var(--accent); }
.pricing-row .price { font-size: 19px; color: var(--cyan); font-weight: 600; }
.pricing-note { margin-top: 24px; color: var(--ink-dim); font-size: 15px; }
.pricing-note b { color: var(--mint); }

/* ═══════════ CTA BANNER ═══════════ */
#cta-banner {
  position: relative; padding: clamp(120px, 16vw, 210px) 0; overflow: hidden;
  background: linear-gradient(160deg, #0a0f22, #04060f);
  border-block: 1px solid var(--line);
}
#cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.cta-inner { position: relative; z-index: 2; text-align: center; }
.cta-title { font-family: var(--font-head); font-weight: 1000; font-size: clamp(42px, 7.5vw, 96px); line-height: 1.2; margin-bottom: 46px; }
.cta-line { display: block; }
.cta-line-grad { background: linear-gradient(110deg, var(--cyan), var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ═══════════ CONTACT ═══════════ */
#contact { padding: clamp(110px, 14vw, 180px) 0; }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 5vw, 70px); align-items: start; }
.terminal { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); margin: 34px 0 26px; background: #050810; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar i:nth-child(1) { background: #ff5f57; } .terminal-bar i:nth-child(2) { background: #febc2e; } .terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-inline-start: 10px; font-size: 12px; color: var(--ink-faint); }
.terminal-body { padding: 20px; font-size: 13.5px; line-height: 2.1; direction: ltr; text-align: left; }
.t-prompt { color: var(--cyan); margin-right: 8px; }
.t-ok { color: var(--mint); }
.t-dim { color: var(--ink-faint); }
.t-cursor { display: inline-block; width: 8px; height: 16px; background: var(--cyan); vertical-align: middle; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.contact-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.channel {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--glass);
  transition: border-color .3s, transform .3s var(--ease-out), background .3s;
}
.channel:hover { border-color: var(--cyan); transform: translateY(-3px); background: rgba(53, 208, 255, .05); }
.channel svg { color: var(--cyan); flex-shrink: 0; }
.channel b { display: block; font-family: var(--font-head); font-size: 15px; }
.channel span { font-size: 12.5px; color: var(--ink-faint); }

.contact-form {
  padding: clamp(26px, 3.4vw, 42px); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-3), var(--bg));
  border: 1px solid var(--line-strong); display: grid; gap: 20px;
}
.form-title { font-family: var(--font-head); font-weight: 900; font-size: 22px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 18px 18px 14px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line-strong);
  outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(53, 208, 255, .12);
}
.field label {
  position: absolute; top: 16px; inset-inline-start: 18px; font-size: 15px;
  color: var(--ink-faint); pointer-events: none; transition: all .25s var(--ease-out);
}
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label {
  top: -9px; inset-inline-start: 14px; font-size: 12px; color: var(--cyan);
  background: var(--bg-2); padding: 0 8px; border-radius: 6px;
}
.field-select select { appearance: none; color: var(--ink); }
.field-select select:invalid { color: var(--ink-faint); }
.field-select::after {
  content: ''; position: absolute; top: 24px; inset-inline-end: 20px;
  width: 9px; height: 9px; border: 2px solid var(--ink-faint);
  border-top: 0; border-inline-start: 0; transform: rotate(45deg); pointer-events: none;
}
.select-label {
  position: absolute; top: -9px; inset-inline-start: 14px; font-size: 12px;
  color: var(--cyan); background: var(--bg-2); padding: 0 8px; border-radius: 6px;
}
.field select option { background: var(--bg-3); color: var(--ink); }
.form-note { font-size: 12.5px; color: var(--ink-faint); text-align: center; }

/* ═══════════ FOOTER ═══════════ */
#footer { border-top: 1px solid var(--line); padding: 70px 0 34px; overflow: hidden; background: var(--bg-2); }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 34px; flex-wrap: wrap; margin-bottom: 50px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.9; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--ink-dim); font-size: 15px; transition: color .3s, transform .3s; }
.footer-nav a:hover { color: var(--cyan); transform: translateX(-5px); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink-dim); transition: all .3s;
}
.footer-social a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }
.footer-mega {
  font-family: var(--font-latin); font-weight: 700; text-align: center;
  font-size: clamp(72px, 17vw, 250px); line-height: .95; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px rgba(238, 243, 255, .1);
  user-select: none; margin-bottom: 40px; direction: ltr;
  background: linear-gradient(180deg, rgba(53, 208, 255, .14), transparent 70%);
  -webkit-background-clip: text; background-clip: text;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-faint);
}
.footer-tag { font-size: 11px; }

/* ═══════════ LIVING IDENTITY — اللوجو الحي ═══════════ */
#identity { position: relative; padding: clamp(90px, 12vw, 160px) 0 0; overflow: hidden; }
#identity::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 58%, rgba(41, 171, 226, .07), transparent 70%);
}
.identity-stage {
  position: relative; width: 100%; height: clamp(380px, 62vh, 640px);
  margin-top: 20px; cursor: crosshair;
}
#identity-logo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.identity-fx {
  position: absolute; bottom: 18px; inset-inline: 0;
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; z-index: 3;
}
.identity-fx-btn {
  padding: 9px 20px; border-radius: 99px; font-size: 12.5px; letter-spacing: .04em;
  background: rgba(7, 12, 26, .62); border: 1px solid var(--line-strong);
  color: var(--ink-dim); cursor: pointer; backdrop-filter: blur(8px);
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
}
.identity-fx-btn:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.identity-fx-btn.active {
  border-color: var(--cyan); color: #04121a;
  background: linear-gradient(120deg, var(--cyan), #29abe2);
  box-shadow: 0 6px 26px rgba(53, 208, 255, .35);
}
@media (max-width: 860px) { .identity-stage { height: 56vh; cursor: default; } }

/* ═══════════ LAB — LIVE WEBGL STAGES ═══════════ */
.demo-gl-stage {
  position: relative; width: 100%; height: 100%; min-height: 420px;
  background: radial-gradient(70% 70% at 50% 40%, rgba(123, 108, 255, .06), transparent 75%);
}
.demo-gl-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.demo-gl-overlay {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; flex-wrap: wrap;
  background: linear-gradient(0deg, rgba(4, 6, 15, .82), transparent);
  pointer-events: none;
}
.demo-gl-overlay > * { pointer-events: auto; }
.demo-gl-hint { font-size: 12px; color: var(--ink-faint); }
.demo-gl-stats { display: flex; gap: 18px; }
.demo-gl-stats .st { display: flex; flex-direction: column; align-items: center; }
.demo-gl-stats .st b { font-family: var(--font-mono); font-size: 17px; color: var(--cyan); }
.demo-gl-stats .st span { font-size: 10.5px; color: var(--ink-faint); }
.demo-web-wrap { display: grid; grid-template-rows: 1fr auto; height: 100%; min-height: 420px; }
.demo-web-term {
  font-family: var(--font-mono); font-size: 12.5px; direction: ltr; text-align: left;
  padding: 12px 18px; border-top: 1px solid var(--line);
  background: #03050c; color: var(--mint); white-space: nowrap; overflow: hidden;
}
.demo-web-term::after { content: '▌'; animation: blink 1.2s steps(2) infinite; color: var(--cyan); }
.demo-web-gl { display: grid; grid-template-rows: 1fr; height: 100%; min-height: 420px; }
.demo-web-gl .demo-gl-stage { min-height: 420px; }
.demo-ai-gl { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; height: 100%; }
.demo-ai-brain { position: relative; border-inline-start: none; border-inline-end: 1px solid var(--line); min-height: 420px; }
.demo-ai-brain .demo-gl-stage { min-height: 420px; }
.demo-web-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
}
.demo-web-fallback b {
  font-family: var(--font-mono); font-size: 54px; font-weight: 700;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.demo-web-fallback span { font-size: 13px; color: var(--ink-dim); }
@media (max-width: 860px) {
  .demo-gl-stage { min-height: 340px; }
  .demo-ai-gl { grid-template-columns: 1fr; }
  .demo-ai-brain { border-inline-end: none; border-bottom: 1px solid var(--line); min-height: 340px; }
}

/* ═══════════ WHATSAPP FAB ═══════════ */
#wa-fab {
  position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: 130;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 34px rgba(37, 211, 102, .4);
  transition: transform .3s var(--ease-out);
}
#wa-fab:hover { transform: scale(1.08); }
.wa-fab-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: fabRing 2s ease-out infinite;
}
@keyframes fabRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.65); opacity: 0; } }

/* ═══════════ CASE SHADER SCENES (GLSL live) ═══════════ */
.case-visual-shader { position: relative; height: clamp(220px, 34vh, 320px); overflow: hidden; background: #060a18; }
.case-visual-shader canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform .9s var(--ease-out), filter .9s var(--ease-out); }
.case-card:hover .case-visual-shader canvas { transform: scale(1.06); filter: saturate(1.25) brightness(1.1); }
.case-visual-shader::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 6, 15, .55));
}
.case-visual-shader .case-field { z-index: 2; }
.case-visual-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,6,15,.1), transparent 40%, rgba(4,6,15,.45)); pointer-events: none; }

/* ═══════════ SERVICE DEMO BUTTON ═══════════ */
.service-demo-btn {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 99px; font-family: var(--font-head);
  font-weight: 800; font-size: 15px; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  transition: all .35s var(--ease-out); position: relative; z-index: 2;
}
.service-demo-btn svg { transition: transform .35s var(--ease-out); }
.service-demo-btn:hover {
  background: var(--accent); color: #04060f;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 40%, transparent);
}
.service-demo-btn:hover svg { transform: scale(1.2); }

/* ═══════════ SERVICE LAB ═══════════ */
#lab {
  position: fixed; inset: 0; z-index: 450; background: #03040b;
  visibility: hidden; clip-path: inset(100% 0 0 0);
  display: flex; flex-direction: column;
}
.lab-stage { display: flex; flex-direction: column; height: 100%; width: min(1180px, 94vw); margin-inline: auto; padding: 18px 0 26px; }
.lab-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-block: 6px 14px; }
.lab-badge { font-size: 11px; color: var(--cyan); border: 1px solid rgba(53,208,255,.35); border-radius: 99px; padding: 5px 13px; display: inline-block; margin-bottom: 10px; }
#lab-title { font-family: var(--font-head); font-weight: 900; font-size: clamp(20px, 3.4vw, 32px); }
.lab-sub { color: var(--ink-dim); font-size: 14.5px; margin-top: 6px; }
.lab-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lab-ctrl-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 11px 20px;
  border-radius: 99px; font-size: 14px; font-weight: 700;
  border: 1px solid var(--line-strong); color: var(--ink-dim); transition: all .3s;
}
.lab-ctrl-btn:hover { color: var(--ink); border-color: var(--cyan); }
#lab-close {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink); transition: all .3s;
}
#lab-close:hover { background: #ff3b5c22; border-color: #ff3b5c; color: #ff6b85; }
.lab-progress { height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
#lab-progress-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.lab-progress-label { display: flex; justify-content: space-between; padding-block: 10px 14px; font-size: 12.5px; color: var(--ink-faint); }
#lab-phase { color: var(--cyan); }

.lab-body { position: relative; flex: 1; min-height: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); background: #05070f; }
.lab-editor { position: absolute; inset: 0; display: flex; flex-direction: column; }
.lab-editor-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: var(--bg-3); border-bottom: 1px solid var(--line); direction: ltr; }
.lab-editor-bar i { width: 11px; height: 11px; border-radius: 50%; }
.lab-editor-bar i:nth-child(1) { background: #ff5f57; } .lab-editor-bar i:nth-child(2) { background: #febc2e; } .lab-editor-bar i:nth-child(3) { background: #28c840; }
.lab-editor-bar .mono { margin-left: 12px; font-size: 12px; color: var(--ink-faint); }
.lab-live-dot { margin-left: auto; color: #ff3b5c; font-size: 10.5px; animation: blink 1.4s steps(2) infinite; }
.lab-code {
  flex: 1; overflow: auto; padding: 20px 24px; font-size: 13.5px; line-height: 1.75;
  color: #c6d3f5; tab-size: 2; white-space: pre-wrap; word-break: break-word;
}
.lab-code .tok-tag { color: #ff9de2; } .lab-code .tok-attr { color: #ffd166; }
.lab-code .tok-str { color: #8ef0c9; } .lab-code .tok-kw { color: #35d0ff; }
.lab-code .tok-fn { color: #7b6cff; } .lab-code .tok-cm { color: #5b6785; font-style: italic; }
.lab-code .tok-num { color: #ffb86b; }
.lab-code .caret { display: inline-block; width: 8px; height: 16px; background: var(--cyan); vertical-align: -2px; animation: blink .9s steps(2) infinite; }

.lab-live { position: absolute; inset: 0; overflow: hidden auto; }
.demo-root { min-height: 100%; display: flex; flex-direction: column; font-family: var(--font-body); }

/* ── Demo: WEB (mini site) ── */
.demo-web { background: #f7f8fc; color: #131722; }
.demo-web-nav { display: flex; align-items: center; gap: 20px; padding: 16px 26px; background: #fff; box-shadow: 0 2px 20px rgba(10,15,40,.06); position: sticky; top: 0; z-index: 5; }
.demo-web-logo { font-family: var(--font-head); font-weight: 900; font-size: 19px; color: #0d4fd8; }
.demo-web-nav span { font-size: 13.5px; color: #5a6378; }
.demo-web-cta { margin-inline-start: auto; background: #0d4fd8; color: #fff; border-radius: 99px; padding: 9px 20px; font-size: 13px; font-weight: 700; }
.demo-web-hero { padding: 54px 30px 44px; text-align: center; background: linear-gradient(160deg, #eef3ff, #f7f8fc); }
.demo-web-hero h1 { font-family: var(--font-head); font-size: clamp(24px, 4vw, 40px); font-weight: 900; margin-bottom: 12px; }
.demo-web-hero p { color: #5a6378; max-width: 460px; margin: 0 auto 22px; line-height: 1.8; font-size: 14.5px; }
.demo-web-btn { display: inline-block; background: #0d4fd8; color: #fff; padding: 14px 34px; border-radius: 99px; font-weight: 800; font-size: 15px; box-shadow: 0 10px 30px rgba(13,79,216,.3); }
.demo-web-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 34px 26px 44px; }
.demo-web-card { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 4px 24px rgba(10,15,40,.07); }
.demo-web-card b { display: block; font-family: var(--font-head); font-size: 16px; margin-bottom: 8px; }
.demo-web-card p { font-size: 13px; color: #5a6378; line-height: 1.7; }
.demo-web-card .demo-web-ic { width: 44px; height: 44px; border-radius: 13px; background: #eef3ff; display: grid; place-items: center; color: #0d4fd8; margin-bottom: 14px; }

/* ── Demo: AI (chat + training) ── */
.demo-ai { background: #070a14; padding: 22px; display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.demo-ai-train { border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; height: fit-content; }
.demo-ai-train h4 { font-family: var(--font-head); font-size: 15px; }
.demo-ai-canvas { width: 100%; aspect-ratio: 1.4; border-radius: 12px; background: #04060f; border: 1px solid var(--line); }
.demo-ai-loss { font-size: 12px; color: var(--ink-faint); display: flex; justify-content: space-between; }
.demo-ai-loss b { color: var(--mint); }
.demo-ai-chat { border: 1px solid var(--line-strong); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; min-height: 380px; }
.demo-ai-chat-head { padding: 14px 18px; background: var(--bg-3); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.demo-ai-avatar { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--violet), var(--cyan)); display: grid; place-items: center; font-size: 16px; }
.demo-ai-status { margin-inline-start: auto; font-size: 11px; color: var(--mint); display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); }
.demo-ai-msgs { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.demo-msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.75; }
.demo-msg.bot { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-start-start-radius: 4px; }
.demo-msg.user { align-self: flex-end; background: linear-gradient(135deg, #2b3f8f, #1c5d8f); border-start-end-radius: 4px; }
.demo-msg.typing { display: inline-flex; gap: 5px; padding: 14px 18px; }
.demo-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: typing 1s infinite; }
.demo-msg.typing i:nth-child(2) { animation-delay: .18s; } .demo-msg.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-5px); opacity: 1; } }
.demo-ai-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.demo-ai-input input { flex: 1; background: var(--bg-3); border: 1px solid var(--line-strong); border-radius: 99px; padding: 12px 20px; outline: none; font-size: 14px; }
.demo-ai-input input:focus { border-color: var(--cyan); }
.demo-ai-send { width: 46px; height: 46px; border-radius: 50%; background: var(--cyan); color: #04060f; display: grid; place-items: center; flex-shrink: 0; }
.demo-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 14px; }
.demo-chip { font-size: 12.5px; padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--ink-dim); transition: all .3s; }
.demo-chip:hover { border-color: var(--cyan); color: var(--ink); }

/* ── Demo: MOBILE (phone) ── */
.demo-mobile { background: radial-gradient(circle at 50% 0%, #101736, #04060f 70%); display: grid; place-items: center; padding: 26px; }
.demo-phone { width: min(320px, 84vw); border-radius: 38px; border: 3px solid #2a3350; background: #0a0e1d; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 60px rgba(53,208,255,.1); }
.demo-phone-notch { height: 26px; display: grid; place-items: center; }
.demo-phone-notch i { width: 86px; height: 7px; border-radius: 99px; background: #2a3350; }
.demo-app { padding: 8px 16px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 480px; }
.demo-app-head { display: flex; align-items: center; justify-content: space-between; }
.demo-app-head b { font-family: var(--font-head); font-size: 17px; }
.demo-app-head .demo-app-badge { font-size: 10.5px; color: var(--mint); font-family: var(--font-mono); }
.demo-app-search { background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; padding: 11px 16px; font-size: 12.5px; color: var(--ink-faint); }
.demo-app-cats { display: flex; gap: 8px; overflow: hidden; }
.demo-app-cats span { font-size: 11.5px; padding: 8px 14px; border-radius: 99px; background: var(--bg-3); border: 1px solid var(--line); white-space: nowrap; }
.demo-app-cats span.on { background: var(--cyan); color: #04060f; border-color: var(--cyan); font-weight: 700; }
.demo-app-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-app-item { background: var(--bg-3); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; transition: transform .25s, border-color .25s; }
.demo-app-item:hover { transform: translateY(-3px); border-color: var(--cyan); }
.demo-app-item .food { height: 52px; border-radius: 11px; display: grid; place-items: center; font-size: 26px; background: rgba(53,208,255,.07); }
.demo-app-item b { font-size: 12.5px; font-family: var(--font-head); }
.demo-app-item .row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ink-faint); }
.demo-app-item .add { width: 24px; height: 24px; border-radius: 8px; background: var(--cyan); color: #04060f; font-weight: 900; display: grid; place-items: center; font-size: 15px; }
.demo-app-cart { margin-top: auto; background: linear-gradient(135deg, var(--violet), #5138e8); border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.demo-app-cart b { font-family: var(--font-mono); font-size: 15px; }
.demo-app-toast { position: absolute; top: 44px; right: 50%; translate: 50% 0; background: var(--mint); color: #04060f; font-size: 12.5px; font-weight: 800; padding: 10px 20px; border-radius: 99px; opacity: 0; pointer-events: none; }

/* ── Demo: AUTOMATION (pipeline) ── */
.demo-auto { background: #070a14; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.demo-auto-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.demo-auto-stat { border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px; text-align: center; }
.demo-auto-stat b { display: block; font-family: var(--font-mono); font-size: clamp(20px, 3vw, 30px); color: var(--gold); }
.demo-auto-stat span { font-size: 12px; color: var(--ink-faint); }
.demo-auto-pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.demo-auto-node { position: relative; border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px 12px; text-align: center; background: var(--bg-3); transition: border-color .4s, box-shadow .4s; }
.demo-auto-node.is-active { border-color: var(--gold); box-shadow: 0 0 26px rgba(255,209,102,.18); }
.demo-auto-node.is-done { border-color: var(--mint); }
.demo-auto-node svg { width: 30px; height: 30px; margin-bottom: 8px; color: var(--ink-dim); }
.demo-auto-node.is-active svg { color: var(--gold); }
.demo-auto-node.is-done svg { color: var(--mint); }
.demo-auto-node b { display: block; font-size: 13px; font-family: var(--font-head); margin-bottom: 4px; }
.demo-auto-node span { font-size: 11px; color: var(--ink-faint); }
.demo-auto-log { flex: 1; border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px 18px; font-family: var(--font-mono); font-size: 12px; line-height: 2; overflow-y: auto; max-height: 180px; direction: ltr; text-align: left; }
.demo-auto-log .ok { color: var(--mint); } .demo-auto-log .run { color: var(--gold); } .demo-auto-log .dim2 { color: var(--ink-faint); }

/* ── Demo: CLOUD (terminal + deploy) ── */
.demo-cloud { background: #04060a; display: grid; grid-template-columns: 1fr 280px; gap: 0; }
.demo-cloud-term { padding: 22px; font-family: var(--font-mono); font-size: 12.8px; line-height: 2.05; direction: ltr; text-align: left; overflow-y: auto; }
.demo-cloud-term .cmd { color: #fff; } .demo-cloud-term .cmd::before { content: '$ '; color: var(--cyan); }
.demo-cloud-term .ok { color: var(--mint); } .demo-cloud-term .info { color: #8aa0c8; } .demo-cloud-term .warn { color: var(--gold); }
.demo-cloud-side { border-inline-start: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 16px; background: #070b16; }
.demo-cloud-side h5 { font-family: var(--font-head); font-size: 14px; }
.demo-meter { display: flex; flex-direction: column; gap: 6px; }
.demo-meter .m-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-faint); }
.demo-meter .m-row b { color: var(--cyan); }
.demo-meter .m-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.demo-meter .m-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--cyan)); border-radius: 99px; transition: width .5s; }
.demo-cloud-url { margin-top: auto; border: 1px dashed rgba(142,240,201,.4); border-radius: 12px; padding: 12px; font-size: 11.5px; color: var(--mint); font-family: var(--font-mono); direction: ltr; text-align: center; opacity: 0; transition: opacity .6s; }
.demo-cloud-url.show { opacity: 1; }

/* ── Demo: CONSULTING (roadmap) ── */
.demo-consult { background: #070a14; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.demo-consult-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.demo-kpi { border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px; }
.demo-kpi span { font-size: 12px; color: var(--ink-faint); display: block; margin-bottom: 6px; }
.demo-kpi b { font-family: var(--font-mono); font-size: clamp(18px, 2.6vw, 26px); color: var(--cyan); }
.demo-kpi .up { color: var(--mint); font-size: 11.5px; font-family: var(--font-mono); }
.demo-consult-chart { flex: 1; border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px; min-height: 190px; position: relative; }
.demo-consult-chart svg { width: 100%; height: 100%; }
.demo-consult-road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.demo-road-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 12.5px; color: var(--ink-dim); display: flex; gap: 10px; align-items: center; opacity: .35; transition: all .5s; }
.demo-road-item.lit { opacity: 1; border-color: var(--cyan); color: var(--ink); }
.demo-road-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; box-shadow: 0 0 10px var(--cyan); }

.lab-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; flex-wrap: wrap; }
.lab-foot-note { color: var(--ink-faint); font-size: 13.5px; }

@media (max-width: 860px) {
  .lab-topbar { flex-direction: column; }
  .lab-controls { align-self: flex-end; margin-top: -8px; }
  .demo-ai { grid-template-columns: 1fr; }
  .demo-ai-train { display: none; }
  .demo-cloud { grid-template-columns: 1fr; }
  .demo-cloud-side { border: 0; border-top: 1px solid var(--line); }
  .demo-web-cards { grid-template-columns: 1fr; }
  .demo-auto-stats, .demo-consult-kpis, .demo-consult-road { grid-template-columns: 1fr; }
  .demo-auto-pipe { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════ REVEAL DEFAULTS ═══════════ */
[data-reveal] { opacity: 0; }

/* graceful degradation when GSAP is unavailable */
.no-gsap [data-reveal],
.no-gsap .manifesto-text .w { opacity: 1; }
.no-gsap #process-line-fill { transform: scaleY(1); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pricing-head { display: none; }
  .pricing-row span::before { content: attr(data-th); display: block; font-size: 11.5px; color: var(--ink-faint); margin-bottom: 4px; }
  .pricing-row span:first-child::before { content: none; }
}
@media (max-width: 860px) {
  :root { --nav-h: 70px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  #nav-burger { display: flex; }
  .service-card { grid-template-columns: auto 1fr; }
  .service-icon { display: none; }
  .hero-meta-sep { display: none; }
  .hero-meta { gap: 22px; }
  .contact-channels { grid-template-columns: 1fr; }
  .tools-tabs { display: flex; width: 100%; }
  .tools-tab { flex: 1; justify-content: center; padding: 12px 10px; font-size: 13.5px; }
  .hero-code { display: none; }
  .work-track { padding-inline: 4vw; }
}
@media (max-width: 560px) {
  .pricing-row { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  #wa-fab { width: 52px; height: 52px; bottom: 18px; inset-inline-start: 18px; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain, .scanlines { display: none; }
  #aurora { opacity: .35; }
  .aurora-blob { animation: none !important; }
  .hero-term { display: none; }
  .footer-mega span { opacity: 1 !important; transform: none !important; }
}

/* ═══════════ AURORA AMBIENT LAYER ═══════════ */
#aurora {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none; filter: blur(90px) saturate(1.15);
}
#smooth-content { position: relative; z-index: 1; }
.aurora-blob { position: absolute; width: 44vmax; height: 44vmax; border-radius: 50%; }
.aurora-b1 {
  top: -14%; inset-inline-start: -8%;
  background: radial-gradient(circle, rgba(53, 208, 255, .13), transparent 65%);
  animation: auroraFloat1 26s ease-in-out infinite alternate;
}
.aurora-b2 {
  bottom: -18%; inset-inline-end: -10%;
  background: radial-gradient(circle, rgba(123, 108, 255, .12), transparent 65%);
  animation: auroraFloat2 32s ease-in-out infinite alternate;
}
.aurora-b3 {
  top: 38%; inset-inline-start: 34%; width: 30vmax; height: 30vmax;
  background: radial-gradient(circle, rgba(255, 157, 226, .07), transparent 65%);
  animation: auroraFloat3 38s ease-in-out infinite alternate;
}
@keyframes auroraFloat1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(9vmax, 7vmax) scale(1.18); } }
@keyframes auroraFloat2 { 0% { transform: translate(0, 0) scale(1.1); } 100% { transform: translate(-8vmax, -6vmax) scale(.92); } }
@keyframes auroraFloat3 { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(-10vmax, 8vmax) rotate(40deg); } }

/* ═══════════ HERO WEBGL ═══════════ */
#hero-webgl { position: absolute; inset: 0; width: 100%; height: 100%; }
.no-webgl #hero-webgl { display: none; }

/* ═══════════ HERO LIVE TERMINAL ═══════════ */
.hero-term {
  position: absolute; bottom: 34px; inset-inline-end: 4vw; z-index: 4;
  width: min(430px, 84vw);
  background: rgba(8, 12, 26, .72); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 40px rgba(53, 208, 255, .06);
  overflow: hidden; text-align: left; direction: ltr;
}
.hero-term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}
.hero-term-bar i { width: 9px; height: 9px; border-radius: 50%; }
.hero-term-bar i:nth-child(1) { background: #ff5f57; }
.hero-term-bar i:nth-child(2) { background: #febc2e; }
.hero-term-bar i:nth-child(3) { background: #28c840; }
.hero-term-bar span { margin-left: 8px; font-size: 11px; color: var(--ink-faint); }
#hero-term-code {
  margin: 0; padding: 14px 16px; min-height: 148px;
  font-size: 12.5px; line-height: 1.75; color: #c8d3f5;
  white-space: pre-wrap; word-break: break-word;
}
@media (max-width: 860px) { .hero-term { display: none; } }

/* ═══════════ 3D TILT SERVICE CARDS ═══════════ */
.service-card { transform-style: preserve-3d; will-change: transform; }
.service-card .card-glare {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(560px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .09), transparent 42%);
}
.service-card:hover .card-glare { opacity: 1; }

/* ═══════════ FOOTER MEGA WAVE ═══════════ */
.footer-mega span { display: inline-block; }
