@font-face {
  font-family: "FarNaskh";
  src: url("../fonts/far_naskh.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "HKGrotesk";
  src: url("../fonts/hkgrotesk-medium.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

:root {
  color-scheme: light;
  --brand: #38bdf8;
  --brand-strong: #0284c7;
  --ink: #1a375e;
  --muted: #334155;
  --surface: rgba(255, 255, 255, 0.86);
  --line: rgba(15, 23, 42, 0.16);
}

.dark {
  color-scheme: dark;
  --ink: #e7f7ff;
  --muted: #9fb3c8;
  --surface: rgba(8, 17, 31, 0.68);
  --line: rgba(148, 163, 184, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 32rem),
    linear-gradient(135deg, #f8fbff 0%, #eef7ff 42%, #ffffff 100%);
  color: var(--ink);
  font-family: "FarNaskh", "Segoe UI", Tahoma, Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

html[lang="fa"] body {
  font-family: "FarNaskh", "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

html[lang="en"] body {
  font-family: "HKGrotesk", "Inter", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.dark body {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 34rem),
    radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.18), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #1a375e 46%, #0b1727 100%);
}

::selection {
  background: rgba(56, 189, 248, 0.28);
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(20px);
}

html:not(.dark) .text-slate-500 {
  color: #475569 !important;
}

html:not(.dark) .text-slate-600 {
  color: #334155 !important;
}

html:not(.dark) .text-slate-700 {
  color: #1f2937 !important;
}

html:not(.dark) .text-slate-800 {
  color: #1a375e !important;
}

html:not(.dark) .text-slate-900,
html:not(.dark) .text-slate-950 {
  color: #1a375e !important;
}

html:not(.dark) .nav-link {
  color: #1a375e;
}

html:not(.dark) .section-kicker {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(2, 132, 199, 0.28);
}

html:not(.dark) .process-card {
  color: #1a375e !important;
}

html:not(.dark) .process-card h3 {
  color: #1a375e !important;
}

html:not(.dark) .process-card .text-slate-300,
html:not(.dark) .process-card p {
  color: #4a6281 !important;
}

.dark .glass {
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 48%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-ring {
  position: absolute;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  animation: spin-soft 28s linear infinite;
}

.brand-ring::before,
.brand-ring::after {
  content: "";
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.85);
}

.brand-ring::before {
  top: 5%;
  inset-inline-start: 18%;
}

.brand-ring::after {
  bottom: 8%;
  inset-inline-end: 13%;
}

.hero-mark {
  position: absolute;
  inset-block-start: 4rem;
  inset-inline-end: clamp(-7rem, -3vw, 2rem);
  width: min(48vw, 34rem);
  opacity: 0.12;
  filter: drop-shadow(0 32px 80px rgba(56, 189, 248, 0.45));
  animation: float-y 7s ease-in-out infinite;
}

[dir="rtl"] .hero-mark {
  inset-inline-end: auto;
  inset-inline-start: clamp(-7rem, -3vw, 2rem);
}

.hero-line {
  position: absolute;
  height: 2px;
  width: 18rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.7), transparent);
  animation: scan-line 6s ease-in-out infinite;
}

.service-card,
.case-card,
.team-card,
.article-card,
.pricing-card,
.metric-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.dark .service-card,
.dark .case-card,
.dark .team-card,
.dark .article-card,
.dark .pricing-card,
.dark .metric-card {
  background: rgba(8, 17, 31, 0.62);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.service-card:hover,
.case-card:hover,
.team-card:hover,
.article-card:hover,
.pricing-card:hover,
.metric-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow: 0 26px 80px rgba(56, 189, 248, 0.16);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.45rem;
  height: 2px;
  border-radius: 999px;
  background: #38bdf8;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: #0284c7;
  background: rgba(56, 189, 248, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
}

.dark .section-kicker {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.13);
}

.section-kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.timeline-dot {
  width: 0.9rem;
  height: 0.9rem;
  border: 3px solid #e0f2fe;
  background: #38bdf8;
  box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.12);
}

.dark .timeline-dot {
  border-color: #082f49;
}

.floating-chip {
  animation: float-y 6.8s ease-in-out infinite;
}

.floating-chip:nth-child(2) {
  animation-delay: -1.8s;
}

.floating-chip:nth-child(3) {
  animation-delay: -3.1s;
}

.project-filter.is-active {
  color: #fff;
  background: #0284c7;
  border-color: #0284c7;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.faq-item.is-open .faq-panel {
  max-height: 18rem;
}

.faq-item [data-lucide="plus"] {
  transition: transform 220ms ease;
}

.faq-item.is-open [data-lucide="plus"] {
  transform: rotate(45deg);
}

.js [data-animate] {
  opacity: 0;
}

[data-animate].is-visible {
  opacity: 1;
}

.marquee {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 24s linear infinite;
}

[dir="rtl"] .marquee {
  animation-direction: reverse;
}

.marquee:hover {
  animation-play-state: paused;
}

.logo-tile {
  display: grid;
  place-items: center;
  min-width: 10rem;
  height: 4.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-weight: 800;
}

.dark .logo-tile {
  background: rgba(8, 17, 31, 0.56);
}

.input-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.9rem 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dark .input-field {
  background: rgba(2, 6, 23, 0.58);
}

.input-field:focus {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.btn-primary,
.btn-secondary,
.icon-btn {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.icon-btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 22px 58px rgba(14, 165, 233, 0.34);
}

.work-visual {
  position: relative;
  overflow: hidden;
  min-height: 14rem;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.58), transparent 12rem),
    linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(2, 132, 199, 0.82));
}

.work-visual::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 1rem;
}

.work-visual::after {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  inset-inline-end: -3.5rem;
  bottom: -4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  animation: pulse-soft 4.8s ease-in-out infinite;
}

@keyframes spin-soft {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes scan-line {
  0%,
  100% {
    opacity: 0.1;
    transform: translateX(-24px);
  }
  50% {
    opacity: 0.75;
    transform: translateX(24px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.16);
    opacity: 0.25;
  }
}

@media (max-width: 768px) {
  .hero-mark {
    width: 78vw;
    inset-block-start: 7rem;
    opacity: 0.08;
  }

  .brand-ring {
    width: 24rem;
    height: 24rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-animate] {
    opacity: 1;
  }
}
