/* ============ THEME TOKENS ============ */
:root {
  --r-xl: 34px;
  --r-lg: 24px;
  --r-md: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="dark"] {
  --bg: #060a14;
  --bg-soft: #0a0f20;
  --surface: #0f1730;
  --surface-2: #141d3f;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f6fb;
  --text-dim: #9aa3c8;
  --text-dimmer: #666fa0;
  --brand: #2f7dfb;
  --brand-deep: #033f88;
  --accent: #ffb020;
  --accent-2: #17c3b2;
  --shadow-strong: 0 20px 50px -14px rgba(0, 0, 0, 0.65);
  --oncta: #04101f;
}
[data-theme="light"] {
  --bg: #f3f6fb;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #eaf0f9;
  --line: rgba(3, 63, 136, 0.13);
  --text: #0a152e;
  --text-dim: #4b5678;
  --text-dimmer: #828cad;
  --brand: #033f88;
  --brand-deep: #022a5c;
  --accent: #e2900d;
  --accent-2: #0d9e91;
  --shadow-strong: 0 20px 50px -18px rgba(3, 63, 136, 0.28);
  --oncta: #ffffff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: "Vazirmatn", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.5s var(--ease),
    color 0.5s var(--ease);
}
::selection {
  background: var(--brand);
  color: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container-x {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 10px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- cute custom cursor ---- */
body.has-cursor,
body.has-cursor * {
  cursor: none !important;
}
.cur-dot,
.cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cur-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  transition:
    transform 0.15s var(--ease),
    background 0.3s;
}
.cur-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--brand);
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    border-color 0.3s,
    background 0.3s;
}
.cur-ring.hover {
  width: 58px;
  height: 58px;
  background: rgba(47, 125, 251, 0.12);
  border-color: var(--accent-2);
}
@media (pointer: coarse) {
  .cur-dot,
  .cur-ring {
    display: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 20%, transparent);
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.section-sub {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 560px;
  line-height: 1.9;
}
.grad-text {
  background: linear-gradient(95deg, var(--accent-2), var(--brand) 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-flow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(95deg, var(--brand), var(--accent-2));
  color: var(--oncta);
  border: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  box-shadow: 0 10px 30px -10px
    color-mix(in srgb, var(--brand) 60%, transparent);
}
.btn-flow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px -10px
    color-mix(in srgb, var(--accent-2) 60%, transparent);
  color: var(--oncta);
}
.btn-flow i {
  transition: transform 0.35s var(--ease);
}
.btn-flow:hover i {
  transform: translateX(-4px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  transition: all 0.35s var(--ease);
}
.btn-ghost:hover {
  border-color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 10%, transparent);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.22s;
}
.reveal-delay-3 {
  transition-delay: 0.34s;
}
.reveal-delay-4 {
  transition-delay: 0.46s;
}

/* ============ HEADER ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 1010;
  background: transparent;
}
.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--sp, 0%);
  background: linear-gradient(90deg, var(--brand), var(--accent-2));
  transition: width 0.1s linear;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent-2) 70%, transparent);
}
header.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: all 0.5s var(--ease);
}
header.site-header.scrolled {
  padding: 14px 0;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 99px;
  border: 1px solid transparent;
  padding: 6px 4px;
  transition: all 0.5s var(--ease);
}
header.site-header.scrolled .nav-wrap {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: var(--line);
  box-shadow: var(--shadow-strong);
  padding: 8px 22px 8px 8px;
}
header.site-header.scrolled .brand {
  transform: scale(0.94);
}
header.site-header.scrolled .brand .mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  transition: transform 0.5s var(--ease);
}
.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: markPulse 4s ease-in-out infinite;
  transition:
    width 0.5s var(--ease),
    height 0.5s var(--ease),
    border-radius 0.5s var(--ease);
}
.brand .mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  background-size: 250% 250%;
  animation: sheen 3.2s linear infinite;
}
.brand .mark i {
  color: var(--oncta);
  font-size: 1.05rem;
  z-index: 1;
}
@keyframes markPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 40%, transparent);
  }
  50% {
    box-shadow: 0 0 0 10px transparent;
  }
}
@keyframes sheen {
  0% {
    background-position: -150% -150%;
  }
  100% {
    background-position: 150% 150%;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 99px;
}
.main-nav a {
  position: relative;
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}
.main-nav a.active {
  background: var(--surface-2);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-switch {
  width: 52px;
  height: 30px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  position: relative;
  cursor: pointer;
  flex: none;
}
.theme-switch .knob {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oncta);
  font-size: 0.65rem;
  transition: transform 0.4s var(--ease);
}
[data-theme="light"] .theme-switch .knob {
  transform: translateX(-22px);
}
.theme-switch .knob i {
  transition: opacity 0.2s;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--text);
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  flex: none;
}

/* ---- mobile bottom-sheet menu ---- */
.mnav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.62);
  backdrop-filter: blur(4px);
  z-index: 1150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mnav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.mnav-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  max-height: 88vh;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  transform: translateY(105%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 14px 22px 26px;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.mnav-panel::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 160px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--brand) 30%, transparent),
    transparent 70%
  );
  pointer-events: none;
}
.mnav-panel.open {
  transform: translateY(0);
}
.mnav-handle {
  width: 42px;
  height: 5px;
  border-radius: 99px;
  background: var(--line);
  margin: 2px auto 18px;
  flex: none;
}
.mnav-panel .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.mnav-panel .top h6 {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
}
.mnav-panel nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.mnav-panel nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 8px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.45s var(--ease),
    opacity 0.45s var(--ease);
}
.mnav-panel.open nav a {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mnav-panel.open nav a:nth-child(1) {
  transition-delay: 0.06s;
}
.mnav-panel.open nav a:nth-child(2) {
  transition-delay: 0.11s;
}
.mnav-panel.open nav a:nth-child(3) {
  transition-delay: 0.16s;
}
.mnav-panel.open nav a:nth-child(4) {
  transition-delay: 0.21s;
}
.mnav-panel.open nav a:nth-child(5) {
  transition-delay: 0.26s;
}
.mnav-panel.open nav a:nth-child(6) {
  transition-delay: 0.31s;
}
.mnav-panel nav a i {
  font-size: 1.35rem;
  color: var(--accent-2);
}
.mnav-panel nav a.active,
.mnav-panel nav a:active {
  background: linear-gradient(140deg, var(--brand), var(--accent-2));
  border-color: transparent;
  color: var(--oncta);
}
.mnav-panel nav a.active i {
  color: var(--oncta);
}
.mnav-panel .foot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.mnav-panel .foot .btn-flow {
  flex: 1;
  justify-content: center;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 180px 0 70px;
  overflow: hidden;
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(
      60% 55% at 85% 15%,
      rgba(47, 125, 251, 0.25),
      transparent 60%
    ),
    radial-gradient(
      50% 45% at 10% 85%,
      rgba(23, 195, 178, 0.14),
      transparent 60%
    ),
    var(--bg);
}
[data-theme="light"] .hero {
  background:
    radial-gradient(60% 55% at 85% 15%, rgba(3, 63, 136, 0.1), transparent 60%),
    radial-gradient(
      50% 45% at 10% 85%,
      rgba(13, 158, 145, 0.1),
      transparent 60%
    ),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero p.lead-x {
  font-size: 1.08rem;
  color: var(--text-dim);
  line-height: 2;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-dimmer);
  font-size: 0.85rem;
}
.avatar-stack {
  display: flex;
}
.avatar-stack span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--oncta);
}
.avatar-stack span:nth-child(1) {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.avatar-stack span:nth-child(2) {
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
}
.avatar-stack span:nth-child(3) {
  background: linear-gradient(135deg, var(--accent-2), var(--brand));
}
.avatar-stack span:nth-child(4) {
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.65rem;
}

.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-ring {
  position: absolute;
  border: 1px dashed var(--line);
  border-radius: 50%;
}
.orbit-ring.r1 {
  width: 340px;
  height: 340px;
  animation: spin 26s linear infinite;
}
.orbit-ring.r2 {
  width: 440px;
  height: 440px;
  animation: spin 40s linear infinite reverse;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.core-cube {
  width: 150px;
  height: 150px;
  position: relative;
  z-index: 3;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 30px 80px -20px color-mix(in srgb, var(--brand) 55%, transparent),
    inset 0 0 40px color-mix(in srgb, var(--brand) 20%, transparent);
  animation: float 5s ease-in-out infinite;
}
.core-cube i {
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--accent-2), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(4deg);
  }
}
.float-chip {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  animation: chipFloat 6s ease-in-out infinite;
}
.float-chip.c1 {
  top: 6%;
  right: 8%;
  color: var(--accent-2);
  animation-delay: 0s;
}
.float-chip.c2 {
  bottom: 14%;
  right: 2%;
  color: var(--accent);
  animation-delay: 1.2s;
}
.float-chip.c3 {
  top: 18%;
  left: 0;
  color: var(--brand);
  animation-delay: 2.1s;
}
.float-chip.c4 {
  bottom: 4%;
  left: 14%;
  color: var(--accent-2);
  animation-delay: 0.6s;
}
@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.stat-strip-outer {
  position: relative;
  z-index: 6;
  margin-top: -70px;
  margin-bottom: 74px;
}
.stat-strip {
  position: relative;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  border-radius: var(--r-lg);
  padding: 34px 10px;
  box-shadow: var(--shadow-strong);
}
.stat-item {
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat-item:last-child {
  border-left: none;
}
.stat-item h3 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.stat-item span {
  color: var(--text-dim);
  font-size: 0.86rem;
}

/* ============ SERVICES ============ */
.services {
  padding: 150px 0 120px;
  position: relative;
  background: var(--bg-soft);
}
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 70px;
  flex-wrap: wrap;
}
.flow-wrap {
  position: relative;
}
.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}
.flow-svg path {
  stroke-dasharray: 8 10;
  animation: dash 34s linear infinite;
}
@keyframes dash {
  to {
    stroke-dashoffset: -2000;
  }
}
.svc-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.svc-card {
  position: relative;
  padding: 38px 30px 34px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    transform 0.5s var(--ease),
    border-color 0.5s var(--ease);
}
.svc-card:nth-child(2) {
  transform: translateY(30px);
}
.svc-card:nth-child(2):hover {
  transform: translateY(14px);
}
.svc-card:nth-child(5) {
  transform: translateY(30px);
}
.svc-card:nth-child(5):hover {
  transform: translateY(14px);
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  background: radial-gradient(
    120px 120px at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--brand) 35%, transparent),
    transparent 70%
  );
}
.svc-card:hover::before {
  opacity: 1;
}
.svc-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent-2) 40%, transparent);
}
.svc-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--brand) 18%, transparent),
    color-mix(in srgb, var(--accent-2) 14%, transparent)
  );
  border: 1px solid var(--line);
  color: var(--accent-2);
  transition:
    transform 0.5s var(--ease),
    background 0.5s var(--ease);
}
.svc-card:hover .svc-icon {
  transform: rotate(-8deg) scale(1.08);
  background: linear-gradient(140deg, var(--brand), var(--accent-2));
  color: var(--oncta);
}
.svc-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.svc-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.9;
  margin-bottom: 22px;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-2);
}
.svc-link i {
  transition: transform 0.4s var(--ease);
  font-size: 0.8rem;
}
.svc-card:hover .svc-link i {
  transform: translateX(-6px);
}
.svc-num {
  position: absolute;
  top: 22px;
  left: 26px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dimmer);
  letter-spacing: 0.05em;
}

/* ============ WHY US ============ */
.why {
  padding: 120px 0;
}
.why-visual {
  position: relative;
}
.why-photo {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/4.6;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-photo .deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
}
.why-photo i {
  font-size: 6rem;
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 2;
}
.badge-float {
  position: absolute;
  bottom: -26px;
  left: -26px;
  z-index: 4;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-strong);
}
.badge-float .num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-2);
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 34px 0;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.why-list li:last-child {
  border-bottom: none;
}
.why-list .ico {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-list h4 {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.why-list p {
  color: var(--text-dim);
  font-size: 0.87rem;
  margin: 0;
}

/* ============ PORTFOLIO — new switcher layout ============ */
.folio {
  padding: 120px 0;
  background: var(--bg-soft);
}
.folio-shell {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
}
.folio-tabs {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid var(--line);
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: revert;
}
.folio-tabs::-webkit-scrollbar {
  width: 6px;
}
.folio-tabs::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 10px;
}
.folio-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  position: relative;
}
.folio-tab:hover {
  background: var(--surface-2);
}
.folio-tab.active {
  background: var(--surface-2);
  border-color: var(--line);
}
.folio-tab .ft-ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--oncta);
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  opacity: 0.55;
  transition: opacity 0.35s;
}
.folio-tab.active .ft-ic {
  opacity: 1;
}
.folio-tab h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 2px;
}
.folio-tab span {
  font-size: 0.76rem;
  color: var(--text-dimmer);
}
.folio-tab .bar {
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--accent-2);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease);
}
.folio-tab.active .bar {
  transform: scaleY(1);
}

.folio-preview {
  position: relative;
  min-height: 460px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.folio-preview .fp-bg {
  position: absolute;
  inset: 0;
  transition: opacity 0.5s var(--ease);
  opacity: 1;
}
.folio-preview .fp-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    color-mix(in srgb, var(--bg) 85%, transparent),
    transparent 60%
  );
}
.fp-content {
  position: relative;
  z-index: 2;
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.fp-content .tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 15%, transparent);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.fp-content h4 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}
.fp-content p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.9;
  max-width: 440px;
  margin-bottom: 22px;
}
.fp-content .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0a1226;
  padding: 11px 22px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85rem;
}
.fp-dots {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.fp-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.fp-dots span.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}
.folio-mobile-tabs {
  display: none;
}

/* ============ TEAM — new design ============ */
.team {
  padding: 120px 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.team-card {
  text-align: center;
  padding: 30px 16px;
  border-radius: 26px;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  position: relative;
}
.team-card:hover {
  background: var(--surface);
  border-color: var(--line);
  transform: translateY(-6px);
}
.team-ring {
  width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 4px;
  position: relative;
  background: conic-gradient(
    from 0deg,
    var(--brand),
    var(--accent-2),
    var(--accent),
    var(--brand)
  );
  /* animation: ringspin 7s linear infinite; */
}
.team-ring-1 {
  width: 160px;
  height: 160px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 4px;
  position: relative;
  background: conic-gradient(
    from 0deg,
    var(--brand),
    var(--accent-2),
    var(--accent),
    var(--brand)
  );
  /* animation: ringspin 7s linear infinite; */
}
.team-card:hover .team-ring {
  animation-play-state: paused;
}
@keyframes ringspin {
  to {
    transform: rotate(360deg);
  }
}
.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--oncta);
  border: 3px solid var(--bg-soft);
}
.tc1 {
  background: linear-gradient(150deg, var(--brand), var(--accent-2));
}
.tc2 {
  background: linear-gradient(150deg, var(--accent), var(--brand));
}
.tc3 {
  background: linear-gradient(150deg, var(--accent-2), var(--brand-deep));
}
.tc4 {
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
}
.tc5 {
  background: linear-gradient(150deg, var(--brand), var(--accent));
}
.team-avatar .ov {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.team-card:hover .team-avatar .ov {
  opacity: 1;
}
.team-avatar .ov a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  transition: 0.3s;
}
.team-avatar .ov a:hover {
  background: var(--accent-2);
  color: var(--oncta);
}
.team-card h4 {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 1rem;
}
.team-card p {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin: 0;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 16px;
  }

  /* کارت رئیس (امیرمحمد) - تمام عرض، بالا، سایز حلقه دست نمی‌خوره */
  .team-card:nth-child(3) {
    grid-column: 1 / -1;
    order: -1;
  }

  /* اختیاری: کمی جمع و جورتر برای موبایل */
  .team-card {
    padding: 20px 12px;
  }
}

@media (max-width: 420px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* ============ TESTIMONIALS ============ */
.testi {
  padding: 120px 0;
  background: var(--bg-soft);
  position: relative;
}
.testi-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
}
.testi-card {
  scroll-snap-align: start;
  flex: 0 0 min(420px, 86vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
}
.testi-card i.quote {
  color: var(--accent-2);
  font-size: 1.6rem;
  opacity: 0.6;
}
.testi-card p {
  margin: 18px 0 24px;
  line-height: 2;
  color: var(--text);
  font-size: 0.98rem;
}
.testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-person .av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--oncta);
}
.testi-person h5 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
}
.testi-person span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ============ FAQ + CONTACT ============ */
.faqc {
  padding: 120px 0;
}
.acc-item {
  border-bottom: 1px solid var(--line);
}
.acc-btn {
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  color: var(--text);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
}
.acc-btn i {
  transition: transform 0.4s var(--ease);
  color: var(--accent-2);
}
.acc-item.open .acc-btn i {
  transform: rotate(45deg);
}
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.acc-panel p {
  color: var(--text-dim);
  padding-bottom: 22px;
  line-height: 1.9;
  font-size: 0.92rem;
  margin: 0;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 40px;
}
.form-control-x {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  color: var(--text);
  font-family: inherit;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.form-control-x:focus {
  outline: none;
  border-color: var(--accent-2);
}
textarea.form-control-x {
  min-height: 110px;
  resize: vertical;
}

/* ============ BLOG — separate animated background shell ============ */
.blog {
  padding: 120px 0;
}
.blog-shell {
  background: linear-gradient(155deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.blog-shell .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}
.blog-shell .blob.b1 {
  width: 360px;
  height: 360px;
  background: var(--brand);
  top: -140px;
  right: -100px;
  animation: blobMove1 16s ease-in-out infinite;
}
.blog-shell .blob.b2 {
  width: 300px;
  height: 300px;
  background: var(--accent-2);
  bottom: -130px;
  left: -90px;
  animation: blobMove2 19s ease-in-out infinite;
}
.blog-shell .blob.b3 {
  width: 220px;
  height: 220px;
  background: var(--accent);
  top: 40%;
  left: 38%;
  opacity: 0.25;
  animation: blobMove3 22s ease-in-out infinite;
}
@keyframes blobMove1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-60px, 60px) scale(1.15);
  }
}
@keyframes blobMove2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -40px) scale(1.1);
  }
}
@keyframes blobMove3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, 30px);
  }
}
.blog-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}
.blog-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--oncta);
  border: 3px solid var(--bg);
}
.blog-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 0.85fr;
  gap: 26px;
  position: relative;
  z-index: 2;
}
.blog-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: color-mix(in srgb, var(--text) 3%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.35s var(--ease);
}
.blog-list-item:hover {
  background: color-mix(in srgb, var(--accent-2) 10%, transparent);
  border-color: var(--accent-2);
  transform: translateX(-4px);
}
.blog-list-item .arr {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--oncta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex: none;
}
.blog-feature {
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, var(--brand-deep), #0e1030);
}
.blog-feature .deco {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(
      circle at 30% 20%,
      color-mix(in srgb, var(--brand) 60%, transparent),
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 80%,
      color-mix(in srgb, var(--accent-2) 50%, transparent),
      transparent 45%
    );
}
.blog-feature-inner {
  position: relative;
  z-index: 2;
  padding: 28px;
  background: rgba(4, 8, 18, 0.55);
  backdrop-filter: blur(6px);
  margin: 14px;
  border-radius: 18px;
  width: calc(100% - 28px);
}
.blog-feature-inner h5 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #fff;
}
.blog-feature-inner .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  margin-bottom: 16px;
}
.blog-feature-inner a.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-2);
  color: var(--oncta);
  padding: 9px 18px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.82rem;
}
.blog-side-card {
  background: color-mix(in srgb, var(--text) 3%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.blog-side-card .thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--oncta);
}
.blog-side-card .thumb.a {
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
}
.blog-side-card .thumb.b {
  background: linear-gradient(135deg, var(--accent), var(--brand));
}
.blog-side-card .tag {
  font-size: 0.68rem;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}
.blog-side-card h6 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.5;
}
.blog-side-card span.time {
  font-size: 0.72rem;
  color: var(--text-dimmer);
}
.blog-more {
  text-align: center;
  margin-top: 36px;
  position: relative;
  z-index: 2;
}

.newsletter-pill {
  margin-top: 50px;
  position: relative;
  z-index: 2;
  background: linear-gradient(
    95deg,
    color-mix(in srgb, var(--brand) 18%, transparent),
    color-mix(in srgb, var(--accent-2) 14%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 10px 10px 28px;
  flex-wrap: wrap;
}
.newsletter-pill strong {
  font-size: 1rem;
}
.newsletter-pill form {
  display: flex;
  gap: 8px;
  background: var(--bg);
  border-radius: 99px;
  padding: 6px;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
}
.newsletter-pill input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 10px 16px;
  font-family: inherit;
}
.newsletter-pill input:focus {
  outline: none;
}
.newsletter-pill button {
  background: var(--accent-2);
  color: var(--oncta);
  border: none;
  border-radius: 99px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ============ FOOTER — Ventura-style, elevated island layout ============ */
.footer-wave {
  display: block;
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 2;
  transform: translateY(1px);
}
.footer-wave svg {
  width: 100%;
  height: 70px;
  display: block;
}
footer.site-footer {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  padding: 0 0 0;
  max-width: 100vw;
}
footer.site-footer::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--brand) 16%, transparent),
    transparent 70%
  );
  bottom: -220px;
  right: -160px;
  pointer-events: none;
}
footer.site-footer::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent-2) 12%, transparent),
    transparent 70%
  );
  top: -140px;
  left: -120px;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  z-index: 2;
  padding: 56px 0 0;
}
.footer-island {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 44px 44px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.footer-island .dots {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(
    circle at 100% 0%,
    black,
    transparent 60%
  );
  mask-image: radial-gradient(circle at 100% 0%, black, transparent 60%);
}
.footer-newsletter {
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
  background: linear-gradient(
    95deg,
    color-mix(in srgb, var(--brand) 18%, transparent),
    color-mix(in srgb, var(--accent-2) 13%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  flex-wrap: wrap;
}
.footer-newsletter .fn-text {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-newsletter .fn-ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oncta);
  font-size: 1.1rem;
}
.footer-newsletter strong {
  font-size: 0.98rem;
  display: block;
}
.footer-newsletter span.sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-newsletter form {
  display: flex;
  gap: 8px;
  background: var(--bg);
  border-radius: 99px;
  padding: 6px;
  flex: 1;
  min-width: 260px;
  max-width: 400px;
}
.footer-newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 9px 14px;
  font-family: inherit;
}
.footer-newsletter input:focus {
  outline: none;
}
.footer-newsletter button {
  background: var(--accent-2);
  color: var(--oncta);
  border: none;
  border-radius: 99px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.82rem;
}

.footer-3col {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 30px;
  align-items: start;
  padding-bottom: 40px;
}
.footer-col h5 {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 0.98rem;
  position: relative;
  display: inline-block;
}
.footer-col h5::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent-2));
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 13px;
}
.footer-col ul li a {
  color: var(--text-dim);
  font-size: 0.87rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}
.footer-col ul li a:hover {
  color: var(--accent-2);
  gap: 12px;
}
.footer-col ul li a i {
  font-size: 0.6rem;
}
.footer-center {
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.footer-tag {
  color: var(--text-dim);
  max-width: 340px;
  margin: 0 auto 22px;
  line-height: 1.9;
  font-size: 0.9rem;
}
.footer-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: 0.35s;
  position: relative;
}
.footer-social a::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: 0.35s;
}
.footer-social a:hover {
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  color: var(--oncta);
  border-color: transparent;
  transform: translateY(-4px) scale(1.05);
}
.footer-social a:hover::before {
  border-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
}

.footer-badges {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 38px;
  flex-wrap: wrap;
  padding: 0 0 34px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 30px;
}
.footer-badges .fb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.83rem;
  font-weight: 600;
}
.footer-badges .fb-item i {
  color: var(--accent-2);
  font-size: 1rem;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.footer-bottom p {
  margin: 0;
  color: var(--text-dimmer);
  font-size: 0.82rem;
}
.footer-bottom .legal {
  display: flex;
  gap: 20px;
}
.footer-bottom .legal a {
  color: var(--text-dimmer);
  font-size: 0.82rem;
}
.footer-bottom .legal a:hover {
  color: var(--accent-2);
}

/* floating action buttons */
.to-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  color: var(--oncta);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 60%, transparent);
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
}
.chat-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--brand));
  color: var(--oncta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 900;
  box-shadow: 0 12px 30px -8px
    color-mix(in srgb, var(--accent-2) 65%, transparent);
  border: none;
}
.chat-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  animation: fabPing 2.6s ease-out infinite;
}
@keyframes fabPing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .main-nav,
  .header-cta .btn-flow {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero {
    padding: 120px 0 56px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p.lead-x {
    margin: 0 auto 28px;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .hero-visual {
    height: 300px;
    margin-top: 16px;
  }
  .core-cube {
    width: 110px;
    height: 110px;
  }
  .core-cube i {
    font-size: 2rem;
  }
  .orbit-ring.r1 {
    width: 230px;
    height: 230px;
  }
  .orbit-ring.r2 {
    width: 290px;
    height: 290px;
  }
  .stat-strip-outer {
    margin-top: 0;
    margin-bottom: 0;
  }
  .stat-strip {
    margin: 0 0 56px;
    padding: 26px 16px;
    border-radius: 22px;
  }
  .stat-item {
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  .stat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .services {
    padding: 90px 0 80px;
  }
  .why,
  .folio,
  .team,
  .testi,
  .faqc,
  .blog {
    padding: 80px 0;
  }
  .services-head {
    margin-bottom: 44px;
  }
  .svc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .svc-card {
    padding: 30px 22px 26px;
  }
  .svc-card:nth-child(2),
  .svc-card:nth-child(5) {
    transform: none;
  }
  .svc-card:nth-child(2):hover,
  .svc-card:nth-child(5):hover {
    transform: translateY(-8px);
  }
  .why-grid {
    flex-direction: column;
  }
  .badge-float {
    padding: 16px 18px;
    gap: 10px;
    left: -8px;
    bottom: -20px;
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .team-card {
    padding: 22px 10px;
  }
  .contact-card {
    padding: 30px 24px;
  }
  .blog-shell {
    padding: 34px 22px;
    border-radius: 28px;
  }
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .blog-feature {
    order: -1;
    min-height: 260px;
  }
  .footer-inner {
    padding-top: 44px;
  }
  .footer-island {
    padding: 30px 20px 0;
    border-radius: 26px;
  }
  .footer-3col {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 34px;
    padding-bottom: 30px;
  }
  .footer-col h5::after {
    right: 50%;
    transform: translateX(50%);
  }
  .footer-col ul li a {
    justify-content: center;
  }
  .footer-center {
    order: -1;
  }
  .footer-badges {
    gap: 18px;
    padding-top: 20px;
    padding-bottom: 26px;
  }
  .footer-newsletter {
    padding: 18px 20px;
  }
  .folio-shell {
    grid-template-columns: 1fr;
  }
  .folio-tabs {
    display: none;
  }
  .folio-mobile-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px;
    border-left: none;
    border-bottom: 1px solid var(--line);
  }
  .folio-mobile-tabs .fmt-chip {
    flex: none;
    padding: 10px 18px;
    border-radius: 99px;
    border: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
  }
  .folio-mobile-tabs .fmt-chip.active {
    background: var(--brand);
    color: var(--oncta);
    border-color: var(--brand);
  }
  .folio-preview {
    min-height: 320px;
    padding: 24px;
  }
}
@media (max-width: 576px) {
  .container-x {
    padding: 0 16px;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .hero {
    padding: 110px 0 46px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero p.lead-x {
    font-size: 1rem;
  }
  .hero-btns {
    gap: 12px;
  }
  .btn-flow,
  .btn-ghost {
    padding: 13px 22px;
    font-size: 0.88rem;
  }
  .stat-strip {
    margin-bottom: 44px;
    padding: 22px 14px;
  }
  .services,
  .why,
  .folio,
  .team,
  .testi,
  .faqc,
  .blog {
    padding: 60px 0;
  }
  .eyebrow {
    font-size: 0.74rem;
    padding: 5px 13px;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .svc-card {
    padding: 26px 20px 22px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-item h3 {
    font-size: 1.5rem;
  }
  .contact-card {
    padding: 24px 18px;
    border-radius: 22px;
  }
  .footer-island {
    padding: 26px 16px 0;
  }
  .newsletter-pill {
    flex-direction: column;
    text-align: center;
    padding: 22px;
  }
  .newsletter-pill form {
    max-width: 100%;
  }
  .footer-newsletter {
    flex-direction: column;
    text-align: center;
    padding: 22px;
  }
  .footer-newsletter .fn-text {
    flex-direction: column;
  }
  .footer-newsletter form {
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .blog-top {
    flex-direction: column;
    text-align: center;
  }
  .chat-fab {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    bottom: 20px;
    right: 18px;
  }
  .to-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    left: 18px;
  }
}