@font-face {
  font-family: "IRANSans FaNum";
  src: url("/assets/fonts/IRANSansWeb(FaNum)_Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "IRANSans FaNum";
  src: url("/assets/fonts/IRANSansWeb(FaNum).ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #14213d;
  --muted: #667085;
  --paper: #fffdf8;
  --surface: #ffffff;
  --blue: #173f8f;
  --blue-2: #0e2a64;
  --cyan: #50c9ce;
  --coral: #ff7657;
  --gold: #f2b544;
  --line: rgba(20, 33, 61, 0.12);
  --shadow: 0 22px 60px rgba(24, 43, 91, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(80, 201, 206, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 14%, rgba(242, 181, 68, 0.14), transparent 25rem),
    var(--paper);
  font-family: "IRANSans FaNum", Tahoma, Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(16px);
}
.site-header.scrolled { border-color: var(--line); }

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; }
.brand-mark {
  width: 43px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 5px;
  color: white;
  background: var(--blue);
  box-shadow: 0 9px 22px rgba(23, 63, 143, 0.22);
}
.brand-mark svg { width: 25px; }
.brand-name { font-size: 1.15rem; letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav-links a { padding: 9px 13px; border-radius: 12px; color: #45506a; font-size: 0.94rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); background: #edf3ff; }

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 92px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue);
  padding: 8px 13px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.language-switch:hover { border-color: rgba(23, 63, 143, 0.35); }

.hero { padding: 90px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 72px; }
.hero-grid > * { min-width: 0; }
.eyebrow { color: var(--blue); font-weight: 900; letter-spacing: 0.02em; margin: 0 0 14px; }
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy { max-width: 650px; margin: 26px 0 32px; color: var(--muted); font-size: clamp(1.04rem, 1.7vw, 1.2rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 33, 61, .10); }
.button.primary { border-color: var(--blue); background: var(--blue); color: white; }
.button svg { width: 19px; }

.hero-art { position: relative; min-height: 450px; }
.orbit {
  position: absolute;
  inset: 5% 4%;
  border: 1px dashed rgba(23, 63, 143, 0.26);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}
.orbit::before, .orbit::after { content: ""; position: absolute; width: 16px; aspect-ratio: 1; border-radius: 50%; }
.orbit::before { inset-block-start: 9%; inset-inline-start: 12%; background: var(--coral); }
.orbit::after { inset-block-end: 8%; inset-inline-end: 16%; background: var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }

.art-card {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(82%, 360px);
  aspect-ratio: .88;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translate(-50%, -50%) rotate(-3deg);
  padding: 32px;
  border-radius: 38px;
  color: white;
  background: linear-gradient(145deg, #1d55bd, #102d6a 72%);
  box-shadow: 0 35px 80px rgba(20, 51, 120, .3);
}
html[dir="rtl"] .art-card { transform: translate(-50%, -50%) rotate(3deg); }
.art-card .mini { color: rgba(255,255,255,.7); font-weight: 750; }
.art-card strong { font-size: 3rem; line-height: 1.15; }
.art-dots { display: flex; gap: 9px; }
.art-dots span { width: 13px; aspect-ratio: 1; border-radius: 50%; background: var(--gold); }
.art-dots span:nth-child(2) { background: var(--coral); }
.art-dots span:nth-child(3) { background: var(--cyan); }
.float-tag {
  position: absolute;
  padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 15px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 850;
}
.float-tag.one { inset-block-start: 14%; inset-inline-start: -2%; }
.float-tag.two { inset-block-end: 12%; inset-inline-end: -2%; }

.section { padding: 86px 0; }
.section.alt { background: #f3f6fb; border-block: 1px solid rgba(20,33,61,.06); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.section-head h2, .page-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.15; letter-spacing: -0.04em; }
.section-head p { max-width: 530px; margin: 0; color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24,43,91,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card.featured { color: white; border: 0; background: linear-gradient(145deg, #1b50b2, #10295f); }
.product-icon { width: 62px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 20px; background: #edf3ff; color: var(--blue); }
.featured .product-icon { background: rgba(255,255,255,.14); color: white; }
.product-icon svg { width: 31px; }
.product-icon.app-icon { width: 78px; overflow: hidden; background: transparent; box-shadow: 0 12px 30px rgba(20, 33, 61, .18); }
.product-icon.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { margin: 25px 0 7px; font-size: 1.55rem; }
.product-card p { margin: 0 0 24px; color: var(--muted); }
.featured p { color: rgba(255,255,255,.72); }
.product-link { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-weight: 900; }
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 9px; }
.product-action { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 13px; border: 1px solid rgba(23, 63, 143, .18); border-radius: 13px; color: var(--blue); background: #edf3ff; font-size: .88rem; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease; }
.product-action:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20, 33, 61, .1); }
.featured .product-action { border-color: rgba(255,255,255,.25); color: white; background: rgba(255,255,255,.12); }
.pill { align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: #fff1dc; color: #8b5411; font-size: .8rem; font-weight: 900; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 28px 0; border-top: 3px solid var(--cyan); }
.value:nth-child(2) { border-color: var(--coral); }
.value:nth-child(3) { border-color: var(--gold); }
.value h3 { margin: 0 0 8px; font-size: 1.3rem; }
.value p { margin: 0; color: var(--muted); }

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 42px;
  border-radius: var(--radius-lg);
  color: white;
  background: var(--ink);
}
.cta h2 { margin: 0 0 9px; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.cta p { margin: 0; color: rgba(255,255,255,.68); }
.cta .button { border-color: white; color: var(--ink); background: white; }

.page-hero { padding: 76px 0 42px; }
.page-hero p { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 1.1rem; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 70px; padding: 30px 0 90px; }
.prose { min-width: 0; }
.prose section { padding: 28px 0; border-top: 1px solid var(--line); }
.prose h2 { margin: 0 0 12px; color: var(--blue); font-size: 1.45rem; }
.prose p, .prose li { color: #4e596f; }
.prose ul { padding-inline-start: 1.4rem; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.page-aside { position: sticky; inset-block-start: 110px; align-self: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.page-aside strong { display: block; margin-bottom: 8px; }
.page-aside p { margin: 0; color: var(--muted); font-size: .9rem; }
.page-aside a { display: inline-block; margin-top: 13px; color: var(--blue); font-weight: 850; }

.site-footer { padding: 54px 0 34px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 45px; }
.footer-grid h3 { margin: 0 0 13px; font-size: 1rem; }
.footer-grid p { max-width: 430px; margin: 14px 0 0; color: var(--muted); }
.footer-links { display: grid; gap: 8px; color: #4e596f; }
.footer-links a:hover { color: var(--blue); }
.copyright { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

[data-lang] { display: none; }
html[lang="fa"] [data-lang="fa"], html[lang="en"] [data-lang="en"] { display: revert; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-art { min-height: 410px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card:first-child { grid-column: 1 / -1; }
  .content-layout { grid-template-columns: 1fr; gap: 20px; }
  .page-aside { position: static; order: -1; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 68px; }
  .brand-name { display: none; }
  .hero { padding: 42px 0 60px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 4.2rem); }
  .hero-copy { overflow-wrap: anywhere; }
  .hero-art { min-height: 350px; }
  .art-card { padding: 25px; border-radius: 30px; }
  .art-card strong { font-size: 2.45rem; }
  .float-tag { padding: 9px 12px; font-size: .82rem; }
  .section { padding: 66px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .product-grid, .values, .footer-grid { grid-template-columns: 1fr; }
  .product-card:first-child { grid-column: auto; }
  .cta { grid-template-columns: 1fr; padding: 30px; }
  .footer-grid { gap: 30px; }
}

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