/* ============================================================
   كمبيوترجي ماهر · NIGHT CITY  —  v3
   A scroll-driven neon-Tokyo experience.
   Built from the original Maher Tech site as reference.
   ============================================================ */

:root {
  /* -- base ink -- */
  --bg-0: #05060a;
  --bg-1: #090b12;
  --bg-2: #0e111c;
  --bg-3: #141826;
  --line: #1d2536;
  --line-2: #2a3450;

  /* -- neon -- */
  --cyan: #35e6ff;
  --pink: #ff2e97;
  --violet: #9b6cff;
  --lime: #c8ff3d;
  --amber: #ffb020;

  /* -- text -- */
  --text-0: #eef3f8;
  --text-1: #97a6bd;
  --text-2: #5a6a83;

  /* -- type -- */
  --font-ui: 'Cairo', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, monospace;
  --font-display: 'Orbitron', 'Cairo', sans-serif;

  /* -- driven by scroll (JS) -- */
  --accent-live: var(--cyan);
  --glow-a: rgba(53, 230, 255, 0.16);
  --glow-b: rgba(255, 46, 151, 0.13);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-ui);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--lime); color: #06110c; }

.no-scroll { overflow: hidden; }

/* ============================================================
   AMBIENT BACKGROUND STACK
   ============================================================ */
#fx {
  position: fixed; inset: 0; z-index: -4;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
}
#fx.ready { opacity: 1; }

.street {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  overflow: hidden;
  perspective: 340px;
  perspective-origin: 50% 42%;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 62%, transparent 92%);
}
.street-floor {
  position: absolute;
  left: -60%; right: -60%; bottom: -10%;
  height: 190%;
  background-image:
    linear-gradient(to right, rgba(53, 230, 255, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(155, 108, 255, 0.12) 1px, transparent 1px);
  background-size: 68px 68px;
  transform: rotateX(72deg) translateY(0);
  animation: street 14s linear infinite;
}
@keyframes street { to { transform: rotateX(72deg) translateY(68px); } }

.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 230, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 230, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 82% 58% at 50% 0%, #000 30%, transparent 100%);
}

.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(760px 560px at 14% 6%, var(--glow-b), transparent 62%),
    radial-gradient(820px 620px at 88% 16%, var(--glow-a), transparent 62%),
    radial-gradient(900px 720px at 50% 108%, rgba(155, 108, 255, 0.10), transparent 60%);
  transition: background 1.2s ease;
}

.beam {
  position: fixed; top: 0; left: 0; width: 40vw; height: 200vh; z-index: -2;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(53, 230, 255, 0.05) 50%, transparent 58%);
  transform: translateX(-30vw) rotate(8deg);
  animation: beam 11s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes beam { 0%, 100% { transform: translateX(-40vw) rotate(8deg); } 50% { transform: translateX(120vw) rotate(8deg); } }

.noise-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 260px rgba(0, 0, 0, 0.85);
}
.noise-vignette::after {
  content: ""; position: absolute; inset: 0; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.4;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.11) 3px, rgba(0, 0, 0, 0) 4px);
  mix-blend-mode: overlay;
}

/* ============================================================
   BOOT
   ============================================================ */
#boot {
  position: fixed; inset: 0; z-index: 9999; background: #030409;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  font-family: var(--font-mono); color: var(--cyan);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#boot.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-mark {
  width: 62px; height: 62px; border: 2px solid var(--cyan); transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px; box-shadow: 0 0 26px rgba(53, 230, 255, 0.45);
  animation: bootpulse 1.6s ease-in-out infinite;
}
.boot-mark { font-size: 22px; font-family: var(--font-ui); font-weight: 800; }
.boot-mark { color: var(--cyan); }
.boot-mark > * , .boot-mark { }
#boot .boot-mark { }
.boot-mark { position: relative; }
.boot-mark::after { content: "م"; transform: rotate(-45deg); }
.boot-mark { color: transparent; }
.boot-mark::after { color: var(--cyan); position: absolute; }
@keyframes bootpulse { 0%, 100% { box-shadow: 0 0 20px rgba(53, 230, 255, 0.35); } 50% { box-shadow: 0 0 40px rgba(53, 230, 255, 0.7); } }
#boot .line { font-size: 12.5px; letter-spacing: 1px; opacity: 0.8; margin: 3px 0; }
#boot .bar-wrap { width: 280px; height: 3px; background: #141a22; margin-top: 20px; border: 1px solid var(--line); overflow: hidden; }
#boot .bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width 0.2s ease; }
.boot-pct { font-size: 11px; margin-top: 10px; color: var(--text-2); letter-spacing: 2px; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor { position: fixed; top: 0; left: 0; z-index: 9000; pointer-events: none; display: none; }
.cursor-dot,
.cursor-ring {
  position: absolute; top: 0; left: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent-live); box-shadow: 0 0 10px var(--accent-live); }
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.35);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, background 0.25s;
  mix-blend-mode: difference;
}
.cursor.is-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--accent-live); background: rgba(53, 230, 255, 0.08); }
.cursor.is-down .cursor-ring { width: 24px; height: 24px; }
/* only hide the native cursor when the JS cursor is actually running */
html.has-cursor .cursor { display: block; }
html.has-cursor,
html.has-cursor a,
html.has-cursor button,
html.has-cursor [data-magnetic],
html.has-cursor [data-tilt] { cursor: none; }

/* ============================================================
   SCROLL RAIL
   ============================================================ */
.rail {
  position: fixed; top: 50%; inset-inline-start: 26px; transform: translateY(-50%);
  z-index: 60; display: flex; align-items: center; gap: 14px;
  writing-mode: vertical-rl;
}
html[dir="rtl"] .rail { writing-mode: vertical-rl; }
.rail-fill {
  position: absolute; inset-inline-start: 3px; top: 0; width: 2px; height: 0%;
  background: linear-gradient(var(--cyan), var(--pink));
  box-shadow: 0 0 10px var(--accent-live);
}
.rail::before {
  content: ""; position: absolute; inset-inline-start: 3px; top: 0; bottom: 0; width: 2px;
  background: var(--line);
}
.rail-labels { list-style: none; display: flex; flex-direction: column; gap: 22px; padding-inline-start: 16px; }
.rail-labels li {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--text-2);
  transition: color 0.3s, transform 0.3s; transform-origin: center;
}
.rail-labels li.active { color: var(--text-0); transform: scale(1.25); }
@media (max-width: 1100px) { .rail { display: none; } }

/* ============================================================
   STATUS BAR
   ============================================================ */
.statusbar {
  position: relative; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px max(5vw, 20px);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  color: var(--text-2); border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.55); backdrop-filter: blur(6px);
}
.statusbar .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 8px var(--lime);
  margin-inline-end: 6px; animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.statusbar .mid { color: var(--text-1); }
.statusbar .right-stat { display: flex; gap: 18px; }
@media (max-width: 760px) { .statusbar .mid { display: none; } }

/* ============================================================
   NAV
   ============================================================ */
header.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px max(5vw, 20px);
  background: rgba(5, 6, 10, 0.55); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding 0.35s var(--ease), background 0.35s, border-color 0.35s;
}
header.nav.scrolled {
  padding-top: 10px; padding-bottom: 10px;
  background: rgba(5, 6, 10, 0.82);
  border-color: var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); color: var(--cyan); font-weight: 700;
  transform: rotate(45deg); box-shadow: 0 0 14px rgba(53, 230, 255, 0.5);
  flex-shrink: 0; transition: box-shadow 0.3s, transform 0.5s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(135deg); box-shadow: 0 0 22px rgba(53, 230, 255, 0.8); }
.logo-mark span { transform: rotate(-45deg); font-size: 14px; transition: transform 0.5s var(--ease); }
.logo:hover .logo-mark span { transform: rotate(-135deg); }
.logo-text { font-weight: 800; font-size: 17px; letter-spacing: 0.5px; }
.logo-text small { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 2.5px; color: var(--text-2); font-weight: 400; }

nav.links { display: flex; gap: 24px; align-items: center; }
nav.links a {
  color: var(--text-1); text-decoration: none; font-size: 14px; font-weight: 600;
  position: relative; padding: 4px 2px; transition: color 0.25s; overflow: hidden;
}
nav.links a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 8px var(--cyan);
  transform: scaleX(0); transform-origin: inline-end; transition: transform 0.35s var(--ease);
}
nav.links a:hover { color: var(--text-0); }
nav.links a:hover::after { transform: scaleX(1); transform-origin: inline-start; }
nav.links a.active { color: var(--text-0); }
nav.links a.active::after { transform: scaleX(1); }
@media (max-width: 1000px) { nav.links { display: none; } }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text-1);
  padding: 8px 14px; cursor: pointer; transition: all 0.25s; border-radius: 2px;
}
.lang-toggle:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 12px rgba(53, 230, 255, 0.3); }
.lang-toggle.glitching { animation: glitchflip 0.4s steps(2) 1; }
@keyframes glitchflip { 0% { clip-path: inset(0 0 60% 0); } 50% { clip-path: inset(50% 0 0 0); } 100% { clip-path: inset(0); } }

.btn-cta {
  font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  background: var(--lime); color: #06110c; border: none;
  padding: 11px 22px; cursor: pointer; letter-spacing: 0.3px;
  border-radius: 2px; position: relative; overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.3s;
}
.btn-cta::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-120%); transition: transform 0.6s var(--ease);
}
.btn-cta:hover { box-shadow: 0 8px 30px rgba(200, 255, 61, 0.35); }
.btn-cta:hover::before { transform: translateX(120%); }
.btn-cta:active { transform: scale(0.97); }
.btn-cta.sending { background: var(--bg-3); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }

.btn-outline {
  font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  background: transparent; color: var(--text-0); border: 1px solid var(--line-2);
  padding: 11px 22px; cursor: pointer; letter-spacing: 0.3px; border-radius: 2px;
  transition: all 0.25s;
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink); box-shadow: 0 0 16px rgba(255, 46, 151, 0.25); }

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
section {
  position: relative; z-index: 5;
  padding: clamp(80px, 12vh, 150px) max(5vw, 20px);
  max-width: var(--maxw); margin-inline: auto;
}
.sec-head { margin-bottom: 56px; max-width: 640px; }
.sec-head .tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; color: var(--accent-live);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.sec-head .tag::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.sec-head h2 {
  font-size: clamp(28px, 4.4vw, 46px); font-weight: 900; letter-spacing: -0.5px; line-height: 1.28;
}
.sec-head p { margin-top: 16px; color: var(--text-1); font-size: 15.5px; line-height: 1.8; max-width: 560px; }

/* clip-reveal for split headings */
.split .word {
  display: inline-block; overflow: hidden; vertical-align: top;
}
.split .word > span {
  display: inline-block; transform: translateY(110%);
}
.split.is-in .word > span { transition: transform 0.7s var(--ease); transform: translateY(0); }

/* generic reveal */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .split .word > span { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 92vh; display: flex; align-items: center; justify-content: space-between; gap: 48px;
  padding-top: 6vh; padding-bottom: 10vh;
}
.hero-left { max-width: 640px; }
.eyebrow {
  font-family: var(--font-mono); color: var(--pink); font-size: 12px; letter-spacing: 3px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--pink); }
.hero-h1 {
  font-size: clamp(40px, 6.4vw, 82px); font-weight: 900; line-height: 1.18; letter-spacing: -1px;
  margin-bottom: 28px;
}
.line-mask { display: block; overflow: hidden; }
.line-in { display: block; transform: translateY(105%); }
.hero-h1 .glitch-word {
  position: relative; display: inline-block; color: var(--cyan);
  text-shadow: 0 0 26px rgba(53, 230, 255, 0.5);
}
.hero-h1 .glitch-word.glitch::before,
.hero-h1 .glitch-word.glitch::after {
  content: attr(data-text); position: absolute; inset: 0;
}
.hero-h1 .glitch-word.glitch::before { color: var(--pink); transform: translate(2px, -2px); clip-path: inset(0 0 55% 0); }
.hero-h1 .glitch-word.glitch::after { color: var(--violet); transform: translate(-2px, 2px); clip-path: inset(55% 0 0 0); }
.hero-h1 .accent { color: var(--lime); text-shadow: 0 0 30px rgba(200, 255, 61, 0.55); }
.hero .sub {
  font-size: 17px; line-height: 1.85; color: var(--text-1); max-width: 500px; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.scrollcue {
  margin-top: 54px; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; color: var(--text-2);
}
.scrollcue i {
  width: 1px; height: 42px; background: linear-gradient(var(--cyan), transparent); position: relative; overflow: hidden;
}
.scrollcue i::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(280%); } }

.hero-right { position: relative; width: 360px; height: 440px; flex-shrink: 0; }
@media (max-width: 1000px) { .hero-right { display: none; } }
.hud-panel {
  position: absolute; inset: 0; border: 1px solid var(--line-2);
  background: linear-gradient(155deg, rgba(53, 230, 255, 0.07), rgba(255, 46, 151, 0.05));
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  overflow: hidden; backdrop-filter: blur(3px);
  transition: transform 0.2s var(--ease);
}
.hud-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(53, 230, 255, 0.14), transparent 42%);
}
.hud-scan {
  position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan); animation: scan 3.4s linear infinite;
}
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }
.hud-content { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--font-mono); }
.hud-content .top-row { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-2); letter-spacing: 1px; }
.hud-id { font-size: 46px; font-weight: 700; color: var(--lime); text-shadow: 0 0 22px rgba(200, 255, 61, 0.5); line-height: 1; font-family: var(--font-display); }
.hud-mini { font-size: 11px; color: var(--text-1); margin-top: 10px; line-height: 1.7; }
.hud-bars { display: flex; gap: 4px; margin-top: 16px; }
.hud-bars span { width: 5px; height: 16px; background: var(--line); }
.hud-bars span.on { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 820px) { .services-grid { grid-template-columns: 1fr; } }

.card-base {
  border: 1px solid var(--line); position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.004));
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.service-card {
  border: 1px solid var(--line); position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.004));
  padding: 32px 30px;
  transition: border-color 0.35s, transform 0.2s var(--ease), box-shadow 0.35s;
  transform-style: preserve-3d;
}
.service-card::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent, var(--cyan)), transparent);
}
/* cursor-follow glow */
.service-card::after,
.product-card::after,
.project-card::after,
.testi-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent, var(--cyan)) 16%, transparent), transparent 60%);
}
.service-card:hover::after,
.product-card:hover::after,
.project-card:hover::after,
.testi-card:hover::after { opacity: 1; }

.service-card:hover {
  border-color: var(--accent, var(--cyan));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5), 0 0 28px color-mix(in srgb, var(--accent, var(--cyan)) 26%, transparent);
}
.s-index { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 2px; margin-bottom: 20px; }
.s-icon {
  width: 52px; height: 52px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--accent, var(--cyan)); transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.s-icon svg { width: 24px; height: 24px; }
.service-card:hover .s-icon { box-shadow: 0 0 22px color-mix(in srgb, var(--accent, var(--cyan)) 42%, transparent); transform: translateY(-2px); }
.service-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.service-card p { color: var(--text-1); font-size: 14.5px; line-height: 1.75; margin-bottom: 24px; min-height: 66px; }
.service-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; gap: 12px; }
.service-price { font-family: var(--font-mono); font-size: 15px; color: var(--accent, var(--cyan)); white-space: nowrap; }
.service-price small { color: var(--text-2); font-size: 11px; }
.book-btn {
  font-family: var(--font-ui); font-weight: 700; font-size: 13px;
  background: transparent; border: 1px solid var(--accent, var(--cyan)); color: var(--accent, var(--cyan));
  padding: 9px 16px; cursor: pointer; border-radius: 2px; transition: all 0.25s; white-space: nowrap;
}
.book-btn:hover { background: var(--accent, var(--cyan)); color: #06110c; box-shadow: 0 0 18px color-mix(in srgb, var(--accent, var(--cyan)) 55%, transparent); }
.book-btn.sending { opacity: 0.7; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 26px; } }
.steps-line {
  position: absolute; top: 26px; inset-inline: 6%; height: 2px; background: var(--line); overflow: hidden;
}
.steps-line-fill {
  position: absolute; inset-inline-start: 0; top: 0; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--violet));
  box-shadow: 0 0 10px var(--cyan);
}
html[dir="rtl"] .steps-line-fill { inset-inline-start: auto; inset-inline-end: 0; }
@media (max-width: 900px) { .steps-line { display: none; } }
.step { position: relative; padding: 0 22px; opacity: 0.38; transition: opacity 0.4s; }
.step.active { opacity: 1; }
.step .num {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700;
  background: var(--bg-0); position: relative; z-index: 2; margin-bottom: 22px; color: var(--text-2);
  box-shadow: 0 0 0 6px var(--bg-0); transition: color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step.active .num { color: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 6px var(--bg-0), 0 0 20px rgba(200, 255, 61, 0.4); }
.step h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-1); line-height: 1.65; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .products-grid { grid-template-columns: 1fr; } }
.product-card {
  border: 1px solid var(--line); background: var(--bg-1); position: relative; overflow: hidden;
  --accent: var(--pink);
  transition: transform 0.2s var(--ease), border-color 0.35s, box-shadow 0.35s;
  transform-style: preserve-3d;
}
.product-card:hover { border-color: var(--pink); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(255, 46, 151, 0.18); }
.product-thumb {
  height: 150px; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(160deg, rgba(255, 46, 151, 0.10), rgba(53, 230, 255, 0.06)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 10px);
  font-size: 44px; border-bottom: 1px solid var(--line); position: relative;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-thumb { transform: scale(1.04); }
.product-thumb .tagnew {
  position: absolute; top: 10px; inset-inline-start: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  background: var(--pink); color: #1a0410; padding: 3px 8px; border-radius: 2px;
}
.product-body { padding: 20px; }
.product-body h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.product-body .desc { font-size: 12.5px; color: var(--text-2); margin-bottom: 16px; line-height: 1.5; min-height: 34px; }
.product-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-family: var(--font-mono); font-size: 16px; color: var(--lime); }
.cart-btn {
  width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--text-1);
  cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: all 0.25s; border-radius: 2px;
}
.cart-btn:hover { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 14px rgba(200, 255, 61, 0.3); transform: rotate(90deg); }

/* ============================================================
   STATS
   ============================================================ */
.stats-section { padding-top: 0; }
.stats-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 820px) { .stats-wrap { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--bg-1); padding: 38px 24px; text-align: center; position: relative; overflow: hidden; }
.stat::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 120%, rgba(53, 230, 255, 0.12), transparent 60%);
  transition: opacity 0.4s;
}
.stat:hover::before { opacity: 1; }
.stat .num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--cyan); text-shadow: 0 0 20px rgba(53, 230, 255, 0.4); }
.stat .lbl { margin-top: 8px; font-size: 13px; color: var(--text-1); letter-spacing: 0.5px; }

/* ============================================================
   STATEMENT BAND
   ============================================================ */
.band {
  position: relative; z-index: 5; overflow: hidden; padding: 40px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(155, 108, 255, 0.05), transparent);
}
.band-track {
  white-space: nowrap; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 7vw, 82px); letter-spacing: -1px;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  will-change: transform;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card {
  border: 1px solid var(--line); background: var(--bg-1); position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.project-card:hover {
  transform: translateY(-6px); border-color: var(--accent, var(--cyan));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.62), 0 0 30px color-mix(in srgb, var(--accent, var(--cyan)) 32%, transparent);
}
.browser-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-2);
}
.browser-dots { display: flex; gap: 5px; }
.browser-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }
.browser-url {
  background: var(--bg-0); padding: 3px 14px; border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06); color: var(--text-1);
  font-size: 11px; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-status { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--lime); letter-spacing: 1px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: pulse 1.6s infinite; }

.project-thumb-wrap { position: relative; height: 240px; overflow: hidden; background: #05070a; border-bottom: 1px solid var(--line); }
.project-img {
  width: 100%; height: 116%; object-fit: cover; object-position: top center;
  filter: brightness(0.9) contrast(1.05); transition: filter 0.5s ease;
  will-change: transform;
}
.project-card:hover .project-img { filter: brightness(1.03); }
.project-overlay {
  position: absolute; inset: 0; background: rgba(5, 6, 10, 0.8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: opacity 0.3s;
}
.project-thumb-wrap:hover .project-overlay { opacity: 1; }
.btn-preview {
  font-family: var(--font-ui); font-weight: 700; font-size: 13px;
  background: var(--accent, var(--cyan)); color: #06110c; border: none;
  padding: 9px 16px; cursor: pointer; border-radius: 2px; transition: transform 0.25s;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent, var(--cyan)) 40%, transparent);
}
.btn-preview:hover { transform: scale(1.05); }
.btn-visit {
  font-family: var(--font-ui); font-weight: 700; font-size: 13px;
  background: transparent; border: 1px solid var(--text-0); color: var(--text-0);
  padding: 8px 16px; cursor: pointer; border-radius: 2px; text-decoration: none; transition: all 0.25s;
}
.btn-visit:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--cyan); color: var(--cyan); }
.project-body { padding: 22px; }
.proj-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.proj-badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  color: var(--accent, var(--cyan)); background: color-mix(in srgb, var(--accent, var(--cyan)) 12%, transparent);
  padding: 4px 10px; border-radius: 2px; border: 1px solid color-mix(in srgb, var(--accent, var(--cyan)) 30%, transparent);
}
.proj-id { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 1.5px; }
.project-body h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.project-body h3 a { text-decoration: none; color: inherit; background-image: linear-gradient(var(--accent, var(--cyan)), var(--accent, var(--cyan))); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.35s var(--ease); }
.project-body h3 a:hover { background-size: 100% 1px; }
.project-body p { font-size: 13.5px; color: var(--text-1); line-height: 1.7; margin-bottom: 18px; min-height: 46px; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tech-stack span {
  font-family: var(--font-mono); font-size: 10.5px; background: var(--bg-0); color: var(--text-1);
  padding: 3px 8px; border-radius: 2px; border: 1px solid var(--line);
}
.project-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.proj-action-btn { font-family: var(--font-ui); font-weight: 700; font-size: 13px; background: transparent; border: none; color: var(--accent, var(--cyan)); cursor: pointer; display: flex; align-items: center; gap: 6px; transition: opacity 0.2s; }
.proj-action-btn:hover { opacity: 0.8; }
.proj-link-btn {
  width: 34px; height: 34px; border: 1px solid var(--line); background: var(--bg-0); color: var(--text-1);
  display: flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 2px;
  transition: all 0.25s; font-family: var(--font-mono);
}
.proj-link-btn:hover { border-color: var(--accent, var(--cyan)); color: var(--accent, var(--cyan)); box-shadow: 0 0 12px color-mix(in srgb, var(--accent, var(--cyan)) 40%, transparent); transform: translateY(-2px); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 9500; background: rgba(3, 4, 7, 0.86); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; padding: 24px 5vw;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.modal-backdrop.active { opacity: 1; pointer-events: all; }
.modal-content {
  background: var(--bg-1); border: 1px solid var(--cyan); width: 100%; max-width: 900px; max-height: 90vh;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(53, 230, 255, 0.3);
  border-radius: 4px; overflow: hidden; display: flex; flex-direction: column;
  transform: scale(0.95) translateY(20px); transition: transform 0.35s var(--ease);
}
.modal-backdrop.active .modal-content { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.modal-title-wrap { display: flex; align-items: center; gap: 12px; }
.modal-dots { display: flex; gap: 6px; }
.modal-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.modal-dots span:nth-child(1) { background: #ff5f56; }
.modal-dots span:nth-child(2) { background: #ffbd2e; }
.modal-dots span:nth-child(3) { background: #27c93f; }
.modal-url { font-family: var(--font-mono); font-size: 12px; color: var(--text-1); letter-spacing: 0.5px; }
.modal-close { background: transparent; border: none; color: var(--text-1); font-size: 24px; cursor: pointer; line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: var(--pink); }
.modal-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 24px; overflow-y: auto; }
@media (max-width: 768px) { .modal-body { grid-template-columns: 1fr; } }
.modal-preview-box { position: relative; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: #000; display: flex; align-items: center; }
.modal-img { width: 100%; height: auto; max-height: 480px; object-fit: contain; background: #06080c; }
.modal-preview-badge {
  position: absolute; bottom: 12px; inset-inline-start: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  background: rgba(5, 6, 10, 0.85); color: var(--lime); padding: 4px 10px; border: 1px solid var(--lime); border-radius: 2px;
  box-shadow: 0 0 10px rgba(200, 255, 61, 0.3);
}
.modal-details { display: flex; flex-direction: column; justify-content: space-between; }
.modal-meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-details h2 { font-size: 24px; font-weight: 900; margin-bottom: 12px; }
.modal-details p { font-size: 14px; color: var(--text-1); line-height: 1.75; margin-bottom: 20px; }
.modal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--bg-0); padding: 14px; border: 1px solid var(--line); margin-bottom: 20px; border-radius: 2px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.info-val { font-size: 13.5px; font-weight: 700; color: var(--text-0); }
.modal-stack-section { margin-bottom: 24px; }
.modal-stack-section .info-label { display: block; margin-bottom: 8px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-visit-btn { text-decoration: none; display: inline-block; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card { border: 1px solid var(--line); padding: 28px; background: var(--bg-1); position: relative; overflow: hidden; --accent: var(--violet); transition: border-color 0.35s, transform 0.35s var(--ease); }
.testi-card:hover { border-color: var(--violet); transform: translateY(-4px); }
.testi-card .quote-mark { font-family: var(--font-mono); font-size: 34px; color: var(--pink); opacity: 0.5; line-height: 1; }
.testi-card p { font-size: 14.5px; color: var(--text-1); line-height: 1.85; margin: 14px 0 18px; }
.testi-user { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--pink)); flex-shrink: 0; }
.testi-user .name { font-size: 14px; font-weight: 700; }
.testi-user .role { font-size: 12px; color: var(--text-2); }
.stars { color: var(--amber); font-size: 13px; letter-spacing: 2px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section { max-width: none; padding-inline: 0; }
.cta-banner {
  margin: 0 5vw; padding: 64px 6vw; border: 1px solid var(--line-2); position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(120deg, rgba(255, 46, 151, 0.08), rgba(53, 230, 255, 0.06));
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 900; margin-bottom: 16px; }
.cta-banner p { color: var(--text-1); margin-bottom: 30px; max-width: 520px; margin-inline: auto; }
.cta-banner::before, .cta-banner::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; filter: blur(90px); opacity: 0.4; }
.cta-banner::before { background: var(--cyan); top: -90px; inset-inline-start: -70px; }
.cta-banner::after { background: var(--pink); bottom: -90px; inset-inline-end: -70px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { position: relative; z-index: 5; border-top: 1px solid var(--line); padding: 66px 5vw 32px; background: var(--bg-1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; max-width: var(--maxw); margin-inline: auto; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { font-size: 13px; letter-spacing: 1.5px; color: var(--text-2); margin-bottom: 16px; font-family: var(--font-mono); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-1); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-grid a:hover { color: var(--cyan); }
.footer-desc { color: var(--text-1); font-size: 14px; line-height: 1.8; max-width: 300px; margin-top: 14px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a { width: 34px; height: 34px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text-1); text-decoration: none; transition: all 0.25s; border-radius: 2px; font-size: 13px; }
.social-row a:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 12px rgba(53, 230, 255, 0.3); transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); max-width: var(--maxw); margin-inline: auto; }

/* ============================================================
   TOAST
   ============================================================ */
#toast {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 9600;
  background: var(--bg-2); border: 1px solid var(--cyan); color: var(--text-0);
  padding: 14px 20px; font-size: 14px; border-radius: 2px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(53, 230, 255, 0.25);
  transform: translateY(30px); opacity: 0; pointer-events: none; transition: all 0.35s var(--ease);
  font-family: var(--font-ui); font-weight: 600; display: flex; align-items: center; gap: 10px;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast .dotok { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--line); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  .street-floor, .beam, .hud-scan, .scrollcue i::after { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
