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

:root {
  --bg: #08080f;
  --bg-alt: #0d0e1a;
  --surface: #12131f;
  --surface-2: #171827;
  --border: rgba(255,255,255,0.08);
  --text: #f2f2f7;
  --text-dim: #a3a3b8;
  --text-dimmer: #6f6f85;

  --violet: #7c5cff;
  --violet-2: #a78bfa;
  --cyan: #00d4ff;
  --pink: #ff5fa2;

  --grad-1: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
  --grad-2: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-glow: 0 0 60px rgba(124,92,255,0.25);
  --ease: cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
:dir(ltr) body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), var(--cyan)); border-radius: 10px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== Utility ===================== */
.gradient-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--violet-2);
  background: rgba(124,92,255,0.1);
  border: 1px solid rgba(124,92,255,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; letter-spacing: -.5px; }
.section-head p { color: var(--text-dim); font-size: 17px; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255,255,255,0.75); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 100px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(-3px); }

.btn-primary {
  background: var(--grad-1);
  color: #fff;
  box-shadow: 0 8px 30px rgba(124,92,255,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(124,92,255,0.5); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ===================== Header ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,8,15,0.75);
  backdrop-filter: blur(16px) saturate(140%);
  padding: 12px 0;
  border-color: var(--border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad-1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; color: #fff;
  box-shadow: 0 4px 20px rgba(124,92,255,0.4);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 16px; font-weight: 800; }
.brand-text small { font-size: 11.5px; color: var(--text-dim); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: 14.5px; font-weight: 600; color: var(--text-dim);
  position: relative; padding: 4px 0;
  transition: color .3s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; right: 0; left: auto;
  width: 0; height: 2px; background: var(--grad-1);
  transition: width .35s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* ---- Mega menu dropdown ---- */
.nav-item.dropdown { position: relative; }
.dropdown-trigger {
  display: flex; align-items: center; gap: 6px;
  font-family: inherit;
}
.dropdown-trigger .chev { transition: transform .3s var(--ease); }
.nav-item.dropdown.open .dropdown-trigger .chev { transform: rotate(180deg); }
.nav-item.dropdown.open .dropdown-trigger { color: var(--text); }

.mega-menu {
  position: absolute;
  top: calc(100% + 22px);
  right: 50%;
  transform: translate(50%, -12px);
  width: min(680px, 90vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  z-index: 250;
}
.nav-item.dropdown.open .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(50%, 0);
}
.mega-col { display: flex; flex-direction: column; gap: 4px; }
.mega-col h4 {
  font-size: 12.5px; font-weight: 800; color: var(--text-dimmer);
  letter-spacing: .3px; margin-bottom: 8px; padding: 0 12px;
}
.mega-col a {
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  padding: 9px 12px; border-radius: 9px;
  transition: background .25s, color .25s;
}
.mega-col a:hover { background: rgba(124,92,255,0.1); color: var(--text); }
.mega-col.mega-cta { border-right: 1px solid var(--border); padding-right: 22px; }
.mega-cta-box h4 { padding: 0; color: var(--text); font-size: 15px; margin-bottom: 8px; }
.mega-cta-box p { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 300;
}
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .35s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8,8,15,0.98);
  backdrop-filter: blur(20px);
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 90px 24px 40px;
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
  pointer-events: none;
}
.mobile-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu > a { font-size: 21px; font-weight: 700; color: var(--text); }
.mobile-lang-link { font-size: 15px !important; color: var(--violet-2) !important; margin-top: 6px; }

.mobile-accordion { width: 100%; max-width: 320px; text-align: center; }
.mobile-accordion-trigger {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  font-family: inherit; font-size: 21px; font-weight: 700; color: var(--text);
}
.mobile-accordion-trigger svg { transition: transform .3s var(--ease); }
.mobile-accordion.open .mobile-accordion-trigger svg { transform: rotate(180deg); }
.mobile-accordion-panel {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease), margin .4s var(--ease);
  margin-top: 0;
}
.mobile-accordion.open .mobile-accordion-panel { max-height: 700px; margin-top: 18px; }
.mobile-accordion-panel a {
  font-size: 15px; font-weight: 600; color: var(--text-dim);
  padding: 9px 0;
}
.mobile-accordion-panel .mobile-accordion-all { color: var(--violet-2); font-weight: 700; margin-top: 6px; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: var(--violet); top: -120px; right: -100px; }
.blob-2 { width: 420px; height: 420px; background: var(--cyan); bottom: -140px; left: -80px; animation-delay: -6s; }
.blob-3 { width: 320px; height: 320px; background: var(--pink); top: 40%; left: 45%; animation-delay: -12s; opacity: .3; }
.blob-4 { width: 500px; height: 500px; background: var(--violet); top: -200px; left: 50%; transform: translateX(-50%); opacity: .35; }
.blob-5 { width: 380px; height: 380px; background: var(--pink); bottom: -160px; right: -60px; opacity: .3; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 80%);
}

.hero-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--violet-2);
  background: rgba(124,92,255,0.1);
  border: 1px solid rgba(124,92,255,0.3);
  padding: 8px 20px; border-radius: 100px;
  margin-bottom: 28px;
}
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(0,212,255,0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,212,255,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(0,212,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
}

.hero-title {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.25;
  max-width: 920px;
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 26px;
}

.hero-sub {
  max-width: 620px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  margin-bottom: 42px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 50px; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 640px; }
.hero-tags span {
  font-size: 13px; font-weight: 600; color: var(--text-dimmer);
  border: 1px solid var(--border); padding: 7px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.02);
}

.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-dimmer); font-size: 12px;
  z-index: 1;
}
.mouse { width: 24px; height: 38px; border: 2px solid var(--text-dimmer); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 3px; height: 8px; background: var(--cyan); border-radius: 2px; animation: scrollWheel 1.6s infinite; }
@keyframes scrollWheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }

/* ===================== Marquee ===================== */
.marquee-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); overflow: hidden; }
.marquee { padding: 22px 0; }
.marquee-track { display: flex; gap: 50px; width: max-content; animation: scrollX 26s linear infinite; }
.marquee-track span { font-size: 15px; font-weight: 700; color: var(--text-dimmer); white-space: nowrap; letter-spacing: .5px; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===================== Services ===================== */
.services { padding: 130px 0; position: relative; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.services-more { display: flex; justify-content: center; margin-top: 44px; }

.service-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-1);
  opacity: 0;
  transition: opacity .45s;
  z-index: 0;
  mix-blend-mode: overlay;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124,92,255,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,92,255,0.1);
}
.service-card:hover::before { opacity: .12; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad-1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 22px;
  position: relative; z-index: 1;
  box-shadow: 0 8px 24px rgba(124,92,255,0.35);
}

.service-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 12px; position: relative; z-index: 1; }
.service-card > p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 18px; position: relative; z-index: 1; }

.service-list { display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 1; }
.service-list li {
  font-size: 13.5px; color: var(--text-dimmer);
  padding-right: 20px; position: relative;
}
.service-list li::before {
  content: ''; position: absolute; right: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
}

/* ===================== Process ===================== */
.process { padding: 130px 0; background: var(--bg-alt); position: relative; }

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.process-line {
  position: absolute;
  top: 20px;
  right: 10%; left: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), var(--pink), transparent);
  opacity: .5;
}

.process-step { position: relative; padding-top: 56px; }
.step-num {
  position: absolute; top: 0; right: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--violet);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--violet-2);
  box-shadow: 0 0 0 6px var(--bg-alt), 0 0 20px rgba(124,92,255,0.4);
}
.process-step h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 10px; }
.process-step p { font-size: 13.5px; color: var(--text-dim); }

/* ===================== Why Us ===================== */
.why { padding: 130px 0; }
.why-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }

.why-content h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 14px 0 18px; letter-spacing: -.5px; }
.why-content > p { color: var(--text-dim); font-size: 16px; margin-bottom: 36px; }

.why-list { display: flex; flex-direction: column; gap: 22px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grad-1);
  color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.why-item h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.why-item p { font-size: 14px; color: var(--text-dim); }

.why-visual {
  position: relative;
  height: 420px;
  display: flex; align-items: center; justify-content: center;
}
.core-orb {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--grad-1);
  filter: blur(2px);
  box-shadow: 0 0 100px rgba(124,92,255,0.6);
  animation: pulseOrb 4s ease-in-out infinite;
}
@keyframes pulseOrb { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 50%;
}
.ring-1 { width: 280px; height: 280px; animation: spin 30s linear infinite; }
.ring-2 { width: 380px; height: 380px; animation: spin 45s linear infinite reverse; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.floating-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13.5px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  color: var(--text);
  animation: bob 6s ease-in-out infinite;
}
.floating-card svg { color: var(--cyan); }
.card-a { top: 6%; right: 2%; animation-delay: 0s; }
.card-b { bottom: 12%; left: 0%; animation-delay: -2s; }
.card-c { top: 45%; right: -6%; animation-delay: -4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===================== About ===================== */
.about { padding: 110px 0; background: var(--bg-alt); }
.about-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.about-inner h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; margin: 14px 0 22px; }
.about-inner > p { color: var(--text-dim); font-size: 16px; margin-bottom: 30px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.about-tags span {
  font-size: 13px; font-weight: 700; color: var(--violet-2);
  border: 1px solid rgba(124,92,255,0.3); background: rgba(124,92,255,0.08);
  padding: 8px 18px; border-radius: 100px;
}

/* ===================== Contact ===================== */
.contact { position: relative; padding: 130px 0 140px; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg .grid-overlay { mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%); }
.contact .container { position: relative; z-index: 1; }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 22px;
  margin-bottom: 30px;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 30px;
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}

.contact-card-glow {
  position: absolute;
  top: -50%; left: 50%;
  width: 220px; height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124,92,255,0.35), transparent 70%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-10px);
  border-color: rgba(124,92,255,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(124,92,255,0.12);
}
.contact-card:hover .contact-card-glow { opacity: 1; }

.contact-card.featured {
  border-color: rgba(124,92,255,0.35);
  background: linear-gradient(180deg, rgba(124,92,255,0.08) 0%, var(--surface-2) 100%);
}

.contact-card-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--grad-1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(124,92,255,0.4);
  position: relative; z-index: 1;
  transition: transform .4s var(--ease);
}
.contact-card:hover .contact-card-icon { transform: scale(1.08) rotate(-4deg); }
.contact-card-icon.whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 10px 30px rgba(37,211,102,0.4); }

.contact-card h3 { font-size: 18px; font-weight: 800; position: relative; z-index: 1; }
.contact-card > p { font-size: 14.5px; color: var(--text-dim); position: relative; z-index: 1; }

.phone-list { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 6px; position: relative; z-index: 1; }
.phone-list a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15.5px; font-weight: 700;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 18px;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.phone-list a svg { transition: transform .3s var(--ease); color: var(--cyan); }
.phone-list a:hover { background: rgba(124,92,255,0.12); border-color: rgba(124,92,255,0.4); transform: translateY(-3px); }
.phone-list a:hover svg { transform: translateX(-3px); }

.contact-cta {
  position: relative;
  text-align: center;
  padding: 60px 30px;
  border-radius: var(--radius-lg);
  background: var(--grad-1);
  overflow: hidden;
}
.contact-cta-glow {
  position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 55%);
  pointer-events: none;
}
.contact-cta h3 {
  position: relative; z-index: 1;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800; color: #fff;
  margin-bottom: 10px;
}
.contact-cta > p {
  position: relative; z-index: 1;
  color: rgba(255,255,255,0.85);
  font-size: 15.5px;
  margin-bottom: 30px;
}
.contact-cta-actions { position: relative; z-index: 1; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-cta .btn-primary { background: #fff; color: var(--violet); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.contact-cta .btn-primary:hover { background: #fff; box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
.contact-cta .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; background: rgba(255,255,255,0.08); }
.contact-cta .btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: #fff; }

/* ===================== Service Page Template v2 ===================== */

/* ---- Language switcher ---- */
.lang-switch {
  display: flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  background: rgba(255,255,255,0.03);
}
.lang-switch a, .lang-switch span {
  padding: 5px 12px; border-radius: 100px;
  color: var(--text-dimmer);
}
.lang-switch span { color: #fff; background: var(--grad-1); }
.lang-switch a { transition: color .3s; }
.lang-switch a:hover { color: var(--text); }

/* ---- Hero visual mockups ---- */
.mock-frame {
  position: relative;
  width: 300px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  padding: 20px;
  animation: bob 7s ease-in-out infinite;
}
.mock-icon-badge {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--grad-1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(124,92,255,0.4);
}
.mock-icon-badge.sm { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 0; flex-shrink: 0; }
.mock-bar { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.09); margin-bottom: 9px; }
.mock-bar.w-40 { width: 40%; } .mock-bar.w-45 { width: 45%; } .mock-bar.w-50 { width: 50%; }
.mock-bar.w-55 { width: 55%; } .mock-bar.w-60 { width: 60%; } .mock-bar.w-65 { width: 65%; }
.mock-bar.w-70 { width: 70%; } .mock-bar.w-80 { width: 80%; }

.mock-phone { width: 220px; padding: 16px 16px 26px; border-radius: 32px; }
.mock-phone-notch { width: 60px; height: 16px; background: var(--bg); border-radius: 0 0 12px 12px; margin: -16px auto 14px; }
.mock-phone-screen { background: var(--bg); border-radius: 16px; padding: 20px 16px; min-height: 220px; }
.mock-chip-row { display: flex; gap: 8px; margin-top: 14px; }
.mock-chip-row span { width: 28px; height: 28px; border-radius: 9px; background: rgba(255,255,255,0.08); }

.mock-browser { width: 340px; padding: 0; overflow: hidden; }
.mock-browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mock-browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.mock-browser-url { flex: 1; height: 16px; border-radius: 5px; background: rgba(255,255,255,0.06); margin-right: 8px; }
.mock-browser-body { padding: 22px; }
.mock-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.mock-grid-3 span { height: 34px; border-radius: 8px; background: rgba(255,255,255,0.06); }

.mock-dashboard { width: 340px; display: flex; gap: 0; padding: 0; overflow: hidden; }
.mock-dashboard-sidebar { width: 46px; background: var(--bg); display: flex; flex-direction: column; gap: 14px; padding: 18px 0; align-items: center; }
.mock-dashboard-sidebar span { width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,0.08); }
.mock-dashboard-sidebar span:first-child { background: var(--grad-1); }
.mock-dashboard-main { flex: 1; padding: 20px; }
.mock-chart-bars { display: flex; align-items: flex-end; gap: 7px; height: 70px; margin: 14px 0; }
.mock-chart-bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--grad-1); opacity: .85; }

.mock-panel { width: 320px; }
.mock-panel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.mock-panel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.mock-check { width: 18px; height: 18px; border-radius: 50%; background: rgba(0,212,255,0.15); color: var(--cyan); flex-shrink: 0; display:flex; align-items:center; justify-content:center; }
.mock-check::before { content:''; width:7px; height:4px; border-right:2px solid var(--cyan); border-bottom:2px solid var(--cyan); transform: rotate(45deg) translate(-1px,-1px); }
.mock-check.muted { background: rgba(255,255,255,0.06); color: var(--text-dimmer); }
.mock-check.muted::before { border-color: var(--text-dimmer); }

.mock-canvas { width: 280px; height: 240px; background: none; border: none; box-shadow: none; padding: 0; }
.mock-canvas-layer {
  position: absolute;
  width: 200px; height: 140px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  padding: 16px;
}
.mock-canvas .layer-1 { top: 0; right: 0; z-index: 3; }
.mock-canvas .layer-2 { top: 40px; right: 40px; z-index: 2; opacity: .7; }
.mock-canvas .layer-3 { top: 80px; right: 80px; z-index: 1; opacity: .4; }

.hero-visual-wrap { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.hero-visual-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,0.35), transparent 70%);
  filter: blur(10px);
}
.accent-pink .mock-icon-badge, .accent-pink .mock-chart-bars i { background: var(--grad-2); }
.accent-pink .hero-visual-glow { background: radial-gradient(circle, rgba(255,95,162,0.3), transparent 70%); }
.accent-pink .page-hero-icon { background: var(--grad-2); }

/* ===================== Service Page Template ===================== */
.page-hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
}
.page-hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: center;
}
.page-hero-content { display: flex; flex-direction: column; align-items: flex-start; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dimmer);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-dimmer); transition: color .3s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span:last-child { color: var(--text-dim); }

.page-hero-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--grad-1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 14px 40px rgba(124,92,255,0.4);
}

.page-hero-title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  margin: 16px 0 16px;
}
.page-hero-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-dim);
  margin-bottom: 34px;
}
.page-hero .hero-cta { justify-content: flex-start; margin-bottom: 0; }

/* ---- Solution tabs (interactive) ---- */
.solution-tabs { padding: 90px 0; background: var(--bg-alt); }
.tabs-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.tabs-list { display: flex; flex-direction: column; gap: 10px; }
.tab-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: right;
  width: 100%;
  font-family: inherit;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 15px; font-weight: 700;
  transition: background .3s, border-color .3s, color .3s;
}
.tab-btn svg { flex-shrink: 0; opacity: .5; transition: transform .3s var(--ease), opacity .3s; }
.tab-btn.active {
  background: linear-gradient(90deg, rgba(124,92,255,0.12), transparent);
  border-color: rgba(124,92,255,0.4);
  color: var(--text);
}
.tab-btn.active svg { opacity: 1; color: var(--violet-2); }
.tabs-visual { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.tabs-visual .mock-frame { width: 280px; }
.tab-panels { width: 100%; max-width: 480px; }
.tab-panel { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px 26px; }
.tab-panel.active { display: block; }
.tab-panel p { font-size: 15px; color: var(--text-dim); line-height: 1.9; }

/* ---- Tech badge cards ---- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.tech-card { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.tech-card-badge {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad-1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.tech-card span { font-size: 13px; font-weight: 700; color: var(--text-dim); }

/* ---- FAQ accordion ---- */
.faq-section { padding: 90px 0; }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: right; font-family: inherit;
  padding: 20px 24px; font-size: 15.5px; font-weight: 700; color: var(--text);
}
.faq-question .faq-icon { position: relative; flex-shrink: 0; width: 22px; height: 22px; }
.faq-question .faq-icon::before, .faq-question .faq-icon::after {
  content: ''; position: absolute; top: 50%; right: 50%; transform: translate(50%,-50%);
  background: var(--violet-2); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s;
}
.faq-question .faq-icon::before { width: 14px; height: 2px; }
.faq-question .faq-icon::after { width: 2px; height: 14px; }
.faq-item.open .faq-icon::after { transform: translate(50%,-50%) rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-answer p { padding: 0 24px 20px; font-size: 14.5px; color: var(--text-dim); line-height: 1.8; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ---- Related services ---- */
.related-section { padding: 0 0 90px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 22px;
  transition: transform .35s var(--ease), border-color .35s;
}
.related-card:hover { transform: translateY(-5px); border-color: rgba(124,92,255,0.4); }
.related-card span.related-title { font-size: 14.5px; font-weight: 700; }
.related-card svg { color: var(--cyan); flex-shrink: 0; transition: transform .3s var(--ease); }
.related-card:hover svg { transform: translateX(-4px); }

/* Solution highlight callout (e.g. iOS Solution Design) */
.solution-highlight { padding: 0 0 40px; }
.highlight-box {
  display: flex; align-items: flex-start; gap: 20px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(124,92,255,0.3);
  border-radius: var(--radius-md);
  padding: 30px;
}
.highlight-box .contact-card-icon { margin-bottom: 0; flex-shrink: 0; }
.highlight-box h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.highlight-box p { font-size: 14.5px; color: var(--text-dim); }

/* Scenarios grid */
.scenarios { padding: 90px 0; }
.scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.scenario-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  transition: transform .35s var(--ease), border-color .35s;
}
.scenario-card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,0.35); }
.scenario-check {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0,212,255,0.12);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
}
.scenario-card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.7; }

/* Mini process (vertical) */
.mini-process-section { padding: 90px 0; background: var(--bg-alt); }
.mini-process { display: flex; flex-direction: column; gap: 0; max-width: 780px; margin: 0 auto; }
.mini-process-item {
  display: flex; gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.mini-process-item:last-child { border-bottom: none; }
.mini-process-num {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--violet);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: var(--violet-2);
}
.mini-process-item h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.mini-process-item p { font-size: 14px; color: var(--text-dim); }

/* Deliverables */
.deliverables-section { padding: 90px 0; }
.deliverables-grid-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.deliverables-grid-wrap h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 14px 0 0; letter-spacing: -.5px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tech-tags-label { font-size: 13px; color: var(--text-dimmer); font-weight: 700; width: 100%; margin-bottom: 4px; }
.tech-tags span:not(.tech-tags-label) {
  font-size: 12.5px; font-weight: 700; color: var(--violet-2);
  border: 1px solid rgba(124,92,255,0.3); background: rgba(124,92,255,0.08);
  padding: 6px 14px; border-radius: 100px;
}
.deliverables-grid { display: flex; flex-direction: column; gap: 14px; }
.deliverable-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.deliverable-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad-1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.deliverable-item p { font-size: 14.5px; color: var(--text-dim); }

/* Service card as a link (hub page) */
a.service-card.link { cursor: pointer; }
.service-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--cyan);
  position: relative; z-index: 1; margin-top: auto;
}
.service-card-link svg { transition: transform .3s var(--ease); }
.service-card:hover .service-card-link svg { transform: translateX(-4px); }

/* ===================== Footer ===================== */
.site-footer { background: #05050a; border-top: 1px solid var(--border); padding-top: 70px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 50px; }
.footer-brand p { color: var(--text-dimmer); font-size: 14px; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 14px; font-weight: 800; margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col p { font-size: 14px; color: var(--text-dimmer); transition: color .3s; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; margin-top: 20px; }
.footer-bottom-inner { text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--text-dimmer); }

/* ===================== Back to top ===================== */
.back-to-top {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(124,92,255,0.4);
  z-index: 150;
  opacity: 0; pointer-events: none;
  transform: translateY(20px) scale(0.8);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.back-to-top:hover { transform: translateY(-4px) scale(1.05); }

/* ===================== Misc effects ===================== */
.noise-overlay {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress-bar {
  position: fixed; top: 0; right: 0; left: auto;
  height: 3px; width: 0%;
  background: var(--grad-1);
  z-index: 300;
  transition: width .1s linear;
}

.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  display: none;
}
@media (min-width: 1024px) { .cursor-glow { display: block; } }

/* ===================== LTR (English) mirroring ===================== */
:dir(ltr) .nav-link::after { right: auto; left: 0; }
:dir(ltr) .service-list li { padding-right: 0; padding-left: 20px; }
:dir(ltr) .service-list li::before { right: auto; left: 0; }
:dir(ltr) .btn:hover svg { transform: translateX(3px); }
:dir(ltr) .service-card:hover .service-card-link svg { transform: translateX(4px); }
:dir(ltr) .phone-list a:hover svg { transform: translateX(3px); }
:dir(ltr) .related-card:hover svg { transform: translateX(4px); }
:dir(ltr) .tab-btn { text-align: left; }
:dir(ltr) .faq-question { text-align: left; }
:dir(ltr) .back-to-top { left: auto; right: 28px; }
:dir(ltr) .mega-col.mega-cta { border-right: none; border-left: 1px solid var(--border); padding-right: 0; padding-left: 22px; }
@media (max-width: 640px) { :dir(ltr) .back-to-top { right: 16px; left: auto; } }

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 60px; }
  .why-visual { height: 320px; order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .mega-menu { grid-template-columns: 1fr 1fr; width: min(520px, 90vw); }
  .mega-col.mega-cta { display: none; }
  .deliverables-grid-wrap { grid-template-columns: 1fr; gap: 30px; }
  .page-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .page-hero-content { align-items: center; }
  .page-hero .hero-cta { justify-content: center; }
  .hero-visual-wrap { order: -1; }
  .tabs-wrap { grid-template-columns: 1fr; }
  .tabs-visual { order: -1; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .process-track { grid-template-columns: 1fr 1fr; }
  .process-line { display: none; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card.featured { order: -1; }
  .scenario-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 120px 0 80px; }
  .page-hero { padding: 130px 0 60px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .btn-sm { display: none; }
  .back-to-top { left: 16px; bottom: 16px; }
  .contact-cta-actions { flex-direction: column; width: 100%; }
  .contact-cta-actions .btn { width: 100%; }
}
