@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;
}


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

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

@font-face {
  font-family: "KalamehFaNum";
  src: url("../fonts/KalamehFaNum-Bold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700 800;
}

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

: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: "KalamehFaNum", "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

html[lang="fa"] h1,
html[lang="fa"] h2 {
  font-family: "FarNaskh", "Segoe UI", Tahoma, Arial, sans-serif;
}

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);
}

.tech-stack-card {
  direction: ltr;
  text-align: left;
}
[data-header] {
  top: 0.75rem;
  padding-inline: 1rem;
}

@media (min-width: 1024px) {
  [data-header] {
    top: 1.25rem;
    padding-inline: 2rem;
  }
}

.site-header-panel {
  max-width: 80rem;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-header-row {
  position: relative;
  min-height: 4.5rem;
}

.site-header-brand,
.site-header-actions {
  position: relative;
  z-index: 2;
}

.site-header-actions {
  margin-inline-start: auto;
}

@media (min-width: 1024px) {
  .site-header-nav {
    position: absolute;
    inset-inline: 0;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .site-header-nav a {
    pointer-events: auto;
  }
}

.site-header-panel.is-scrolled {
  border-color: rgba(14, 165, 233, 0.24);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.11);
}

.dark .site-header-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(8, 17, 31, 0.78), rgba(15, 23, 42, 0.64));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.dark .site-header-panel.is-scrolled {
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
}

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;
}

.article-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.35rem;
  border-radius: 1.25rem;
  background: rgba(248, 250, 252, 0.82);
}

.article-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 320ms ease, filter 320ms ease;
}

.article-card:hover .article-visual img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}

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;
}

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

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

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

html:not(.dark) .team-card [data-lucide] {
  color: #0284c7 !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: 8.5rem;
  inset-inline-end: clamp(-7rem, -3vw, 2rem);
  width: min(48vw, 34rem);
  opacity: 0.08;
  filter: drop-shadow(0 18px 42px rgba(56, 189, 248, 0.22));
  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);
}


.site-footer {
  padding: 2rem 0 0;
}

.site-footer-shell {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1.75rem 1.75rem 0 0;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: clamp(1.35rem, 3vw, 2.25rem) clamp(1rem, 4vw, 2rem) 1rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-footer-shell::before {
  content: "";
  position: absolute;
  inset-inline: clamp(1rem, 6vw, 5rem);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.42), transparent);
}

.site-footer-layout {
  display: grid;
  gap: 1.35rem;
  max-width: 80rem;
  margin-inline: auto;
}

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer-logo img {
  width: 3rem;
  height: 3rem;
  flex: none;
  object-fit: contain;
}

.site-footer-logo strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
}

.site-footer-logo small {
  display: block;
  margin-top: 0.25rem;
  color: #0284c7;
  font-size: 0.72rem;
  font-weight: 900;
}

.site-footer-brand-block p,
.site-footer-card p {
  max-width: 25rem;
  margin-top: 0.9rem;
  color: #334155;
  line-height: 1.8;
  font-size: 0.94rem;
}

.site-footer-links i,
.site-footer-contact-list i {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #0284c7;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-footer-column h3,
.site-footer-card h3 {
  position: relative;
  width: fit-content;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.site-footer-column h3::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 0.18rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.site-footer-links,
.site-footer-contact-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.site-footer-links a,
.site-footer-contact-list a,
.site-footer-contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 180ms ease, color 180ms ease;
}

.site-footer-links i,
.site-footer-contact-list i {
  width: 1.8rem;
  height: 1.8rem;
  background: rgba(14, 165, 233, 0.1);
}

.site-footer-links a:hover,
.site-footer-contact-list a:hover,
.site-footer-bottom a:hover {
  transform: translateY(-1px);
  color: #0284c7;
}

.site-footer-card {
  align-self: start;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.62);
  padding: 1rem;
}

.site-footer-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.7rem;
  margin-top: 1rem;
  border-radius: 0.75rem;
  background: #0284c7;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-footer-card a:hover {
  transform: translateY(-1px);
  background: #0369a1;
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.18);
}

.site-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 80rem;
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 0.9rem;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

.site-footer-bottom a {
  color: inherit;
  transition: transform 180ms ease, color 180ms ease;
}

.dark .site-footer-shell {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.5);
  color: #e7f7ff;
}

.dark .site-footer-logo strong,
.dark .site-footer-column h3,
.dark .site-footer-card h3 {
  color: #fff;
}

.dark .site-footer-brand-block p,
.dark .site-footer-card p,
.dark .site-footer-links a,
.dark .site-footer-contact-list a,
.dark .site-footer-contact-list span,
.dark .site-footer-bottom {
  color: #cbd5e1;
}

.dark .site-footer-links i,
.dark .site-footer-contact-list i,
.dark .site-footer-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.58);
}

@media (min-width: 768px) {
  .site-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .site-footer-layout {
    grid-template-columns: 1.15fr 0.75fr 1fr 0.85fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 1.5rem;
  }

  .site-footer-shell {
    border-radius: 1.35rem 1.35rem 0 0;
  }
}
.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;
  aspect-ratio: 16 / 9;
  min-height: 14rem;
  margin: 0;
  border-radius: 1.35rem;
  background: rgba(248, 250, 252, 0.82);
}

.work-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 320ms ease, filter 320ms ease;
}

.case-card:hover .work-visual img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}

@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;
  }
}
