/* ===================================================================
   Taraz Site v2 — Background Integration
   Full CSS+SVG background system + "Lens-over-Word" brand identity
   =================================================================== */

/* ----- Design Tokens ------------------------------------------------ */
:root {
  --color-bg-base: #05060d;
  --color-bg-base-warm: #070815;
  --color-bg-surface: #0a0f1e;
  --color-bg-surface-warm: #0c1122;
  --color-bg-elevated: #111827;
  --color-bg-hover: #1e293b;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-border: rgba(59, 130, 246, 0.06);
  --color-border-strong: rgba(59, 130, 246, 0.15);
  --color-border-glow: rgba(59, 130, 246, 0.04);
  --color-accent-blue: #3b82f6;
  --color-accent-cyan: #06b6d4;
  --color-accent-purple: #8b5cf6;
  --color-accent-blue-dim: rgba(59, 130, 246, 0.08);
  --color-accent-cyan-dim: rgba(6, 182, 212, 0.08);
  --color-accent-purple-dim: rgba(139, 92, 246, 0.08);
  --color-accent-blue-glow: rgba(59, 130, 246, 0.15);
  --color-accent-cyan-glow: rgba(6, 182, 212, 0.12);
  --color-accent-purple-glow: rgba(139, 92, 246, 0.1);
  --color-success: #22c55e;
  --color-gradient-blue: linear-gradient(135deg, #3b82f6, #2563eb);
  --color-gradient-multi: linear-gradient(135deg, #60a5fa, #22d3ee, #a78bfa);

  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-display: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', monospace;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-blue: 0 0 60px rgba(59, 130, 246, 0.08);
  --shadow-glow-cyan: 0 0 60px rgba(6, 182, 212, 0.06);
  --shadow-glow-purple: 0 0 60px rgba(139, 92, 246, 0.06);
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.35);

  --container-max: 1200px;
  --nav-height: 72px;
  --line-height-body: 1.7;
  --line-height-display: 1.2;
}

:root[dir="rtl"] {
  --font-body: 'Vazirmatn', 'Inter', -apple-system, system-ui, sans-serif;
  --font-display: 'Vazirmatn', 'Inter', -apple-system, system-ui, sans-serif;
  --line-height-body: 1.8;
  --line-height-display: 1.3;
}

/* ----- Grain Texture Overlay --------------------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ----- Reset ------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  line-height: var(--line-height-body);
  background: var(--color-bg-base);
  color: var(--color-text-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; font-size: inherit; }

/* ----- Typography -------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-height-display);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1em; }

.text-gradient {
  background: var(--color-gradient-multi);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  background: var(--color-gradient-multi);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- Container --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ----- Section ----------------------------------------------------- */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-glow), transparent);
  pointer-events: none;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-top: var(--space-md);
}

/* ----- Nav --------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  background: rgba(5, 6, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}
.nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.06), transparent);
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-cyan);
  transition: width var(--transition-base);
}
.nav-links a:hover { color: var(--color-text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-lang {
  padding: 6px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-dim);
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
}
.nav-lang:hover {
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
}

/* ----- Logo Wrappers ----------------------------------------------- */
.logo-nav { width: 160px; }
.logo-nav svg { display: block; width: 100%; height: auto; direction: ltr; }
.logo-hero-wrap { width: 420px; margin: 0 auto var(--space-xl); cursor: none; }
.logo-hero-wrap svg { display: block; width: 100%; height: auto; direction: ltr; }
.logo-card-wrap { width: 180px; margin: 0 auto var(--space-md); }
.logo-card-wrap svg { display: block; width: 100%; height: auto; direction: ltr; }
.logo-footer { width: 140px; }
.logo-footer svg { display: block; width: 100%; height: auto; direction: ltr; }
.logo-mono-sm { width: 40px; }
.logo-mono-sm svg { display: block; width: 100%; height: auto; direction: ltr; }

/* ----- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary {
  background: var(--color-gradient-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-primary::before {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  background: rgba(255,255,255,0.03);
  color: var(--color-text-secondary);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* ===================================================================
   HERO SECTION — Background Layer Stack
   -------------------------------------------------------------------
   Layer    Element         Z-index  Description
   ──────────────────────────────────────────────────────────────
   1        .hero-bg::before    0   6-layer volumetric glow
   2        .hero-bg::after     0   Glassy light diffusion
   3        .hero-orb--1/-2/-3  0   3 floating glow orbs
   4        .hero-network       0   SVG neural connections + nodes
   5        .hero-particle      0   8 floating dots
   6        .hero-circuit--1-4  0   4 geometric trace lines
   7        .hero-waves         0   3 sine wave layers
   8        .hero-grid          0   Grid pattern
   9        .hero-grid::after   0   Crosshair dots at intersections
   ──────────────────────────────────────────────────────────────
   Content  .hero-content       1   badge, logo, headline, CTA
   =================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* --- Layer 1+2: Deep volumetric glow + glassy diffusion --- */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    /* Central ambient bloom */
    radial-gradient(ellipse 1000px 700px at 50% 40%, rgba(6,182,212,0.04) 0%, transparent 60%),
    /* Top-left blue wash */
    radial-gradient(ellipse 600px 500px at 10% 20%, rgba(59,130,246,0.06) 0%, transparent 55%),
    /* Top-right cyan glow */
    radial-gradient(ellipse 500px 400px at 85% 15%, rgba(6,182,212,0.05) 0%, transparent 50%),
    /* Bottom purple depth */
    radial-gradient(ellipse 700px 500px at 50% 90%, rgba(139,92,246,0.04) 0%, transparent 60%),
    /* Top-edge subtle light */
    radial-gradient(ellipse 800px 200px at 50% 0%, rgba(59,130,246,0.03) 0%, transparent 70%),
    /* Deep vignette */
    radial-gradient(ellipse 900px 700px at 50% 50%, transparent 25%, rgba(5,6,13,0.4) 100%);
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 30% 30%, rgba(255,255,255,0.015) 0%, transparent 60%),
    radial-gradient(ellipse 400px 250px at 70% 60%, rgba(6,182,212,0.01) 0%, transparent 55%);
  pointer-events: none;
}

/* --- Layer 3: Floating glow orbs --- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: orb-float 16s ease-in-out infinite;
}
.hero-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
  top: -10%; left: 5%;
  animation-delay: 0s;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  bottom: 10%; right: 0%;
  animation-delay: -5s;
}
.hero-orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(139,92,246,0.07) 0%, transparent 70%);
  bottom: -10%; left: 25%;
  animation-delay: -10s;
}

/* --- Layer 4: Neural network connections (SVG overlay) --- */
.hero-network {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.3;
}

.hero-network path {
  fill: none;
  stroke: rgba(6,182,212,0.15);
  stroke-width: 0.8;
  stroke-dasharray: 4 6;
  animation: circuit-pulse 8s linear infinite;
}

.hero-network circle {
  fill: rgba(6,182,212,0.2);
  animation: node-pulse 4s ease-in-out infinite;
}

.hero-network .node-center circle {
  fill: rgba(59,130,246,0.3);
  filter: drop-shadow(0 0 6px rgba(59,130,246,0.15));
}

/* --- Layer 5: Floating particles --- */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: particle-drift 20s ease-in-out infinite;
}
.hero-particle--sm {
  width: 2px; height: 2px;
  background: rgba(6,182,212,0.3);
}
.hero-particle--md {
  width: 3px; height: 3px;
  background: rgba(59,130,246,0.25);
}
.hero-particle--lg {
  width: 4px; height: 4px;
  background: rgba(139,92,246,0.2);
  box-shadow: 0 0 6px rgba(139,92,246,0.1);
}

/* --- Layer 6: Circuit trace lines --- */
.hero-circuit {
  position: absolute; z-index: 0;
  pointer-events: none;
  opacity: 0.08;
}

.hero-circuit--1 {
  top: 15%; right: 5%;
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.3), transparent);
  transform: rotate(-25deg);
}

.hero-circuit--2 {
  bottom: 25%; left: 3%;
  width: 150px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.25), transparent);
  transform: rotate(15deg);
}

.hero-circuit--3 {
  top: 60%; left: 8%;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.2), transparent);
  transform: rotate(-40deg);
}

.hero-circuit--4 {
  top: 30%; right: 12%;
  width: 100px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.2), transparent);
  transform: rotate(35deg);
}

/* --- Layer 7: Data waves --- */
.hero-waves {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 200%;
  height: 100%;
  opacity: 0.05;
}

.hero-wave svg {
  display: block;
  width: 100%; height: 100%;
}

.hero-wave--1 {
  animation: wave-shift 8s linear infinite;
}

.hero-wave--2 {
  animation: wave-shift 12s linear infinite;
  bottom: -10px;
  opacity: 0.035;
}

.hero-wave--3 {
  animation: wave-shift 16s linear infinite;
  bottom: 5px;
  opacity: 0.025;
}

/* --- Layer 8+9: Grid pattern with crosshair dots --- */
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 28%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 28%, transparent 70%);
}

.hero-grid::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(59,130,246,0.12) 1.2px, transparent 1.2px);
  background-size: 48px 48px;
  background-position: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 28%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 28%, transparent 70%);
}

/* --- Hero content (z-index 1, above background layers) --- */
.hero-content {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(59,130,246,0.2);
  background: rgba(59,130,246,0.06);
  font-size: 0.8rem;
  font-weight: 500;
  color: #60a5fa;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: var(--space-xl);
}

.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent-cyan);
  box-shadow: 0 0 8px rgba(6,182,212,0.6);
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero h1 .highlight {
  background: var(--color-gradient-multi);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ----- Trust Bar --------------------------------------------------- */
.trust-bar {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-surface);
  position: relative;
}

.trust-bar::before,
.trust-bar::after {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.06), transparent);
  pointer-events: none;
}
.trust-bar::before { top: 0; }
.trust-bar::after { bottom: 0; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.trust-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.trust-value--blue { color: var(--color-accent-blue); }
.trust-value--cyan { color: var(--color-accent-cyan); }
.trust-value--purple { color: var(--color-accent-purple); }

.trust-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ----- Cards ------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.card {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.06), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(59,130,246,0.02) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(59,130,246,0.12);
  background: rgba(59,130,246,0.02);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }

.card h3 {
  margin-bottom: var(--space-sm);
  color: #f1f5f9;
}

.card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ----- AI Consulting Section --------------------------------------- */
.consulting {
  background: var(--color-bg-surface);
  position: relative;
}

.consulting::before,
.consulting::after {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.06), transparent);
  pointer-events: none;
}
.consulting::before { top: 0; }
.consulting::after { bottom: 0; }

.consulting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.consulting h2 {
  margin-bottom: var(--space-lg);
}

.consulting-text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.consulting-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
}

.consulting-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.consulting-list li:hover {
  border-color: var(--color-border-strong);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.consulting-list-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.consulting-list h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.consulting-list p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ----- CTA --------------------------------------------------------- */
.cta {
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 500px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center, rgba(59,130,246,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 50%, rgba(6,182,212,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(139,92,246,0.03) 0%, transparent 50%);
}

.cta-glow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.05), transparent);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: var(--space-md);
}

.cta-content p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
}

.cta-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.cta-footnote span {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}

.cta-dot--green { background: var(--color-success); box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.cta-dot--blue { background: var(--color-accent-blue); box-shadow: 0 0 6px rgba(59,130,246,0.4); }

/* ----- Footer ------------------------------------------------------ */
.footer {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-surface);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.05), transparent);
  pointer-events: none;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text-primary);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* ----- Animations -------------------------------------------------- */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-scale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(40px, -25px) scale(1.06); }
  50%      { transform: translate(-25px, 20px) scale(0.94); }
  75%      { transform: translate(20px, 30px) scale(1.03); }
}

@keyframes particle-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
  10%      { opacity: 1; }
  25%      { transform: translate(60px, -40px) scale(1.2); }
  50%      { transform: translate(-30px, 50px) scale(0.8); }
  75%      { transform: translate(40px, 20px) scale(1.1); }
  90%      { opacity: 0.6; }
  100%     { transform: translate(-20px, -30px) scale(1); opacity: 0; }
}

@keyframes circuit-pulse {
  0%   { stroke-dashoffset: 0; opacity: 0.2; }
  50%  { opacity: 0.6; }
  100% { stroke-dashoffset: -20; opacity: 0.2; }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.4); }
}

@keyframes wave-shift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.7s ease-out forwards;
}

.animate-fade-in-scale {
  animation: fade-in-scale 0.7s ease-out forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

/* ----- RTL Overrides ----------------------------------------------- */
:root[dir="rtl"] .consulting-list li:hover {
  transform: translateX(-4px);
}

:root[dir="rtl"] .hero-badge {
  flex-direction: row;
}

/* ----- Responsive -------------------------------------------------- */
@media (max-width: 1024px) {
  .consulting-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .logo-hero-wrap { width: 340px; }
  .hero-orb--1 { width: 250px; height: 250px; }
  .hero-orb--2 { width: 200px; height: 200px; }
  .hero-orb--3 { width: 180px; height: 180px; }
}

@media (max-width: 768px) {
  .nav-links a { display: none; }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  .trust-value { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .logo-hero-wrap { width: 280px; }
  .logo-nav { width: 130px; }
  .cta-footnote { flex-direction: column; gap: var(--space-sm); }
  .footer-content { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-orb--1 { width: 180px; height: 180px; }
  .hero-orb--2 { width: 140px; height: 140px; }
  .hero-orb--3 { display: none; }
}

@media (max-width: 480px) {
  :root { --nav-height: 60px; }
  .nav { padding: 0 var(--space-md); }
  .section { padding: var(--space-3xl) 0; }
  .hero-badge { font-size: 0.75rem; padding: 4px 14px; }
  .logo-hero-wrap { width: 220px; }
  .logo-nav { width: 110px; }
}
