:root {
  --brand: #102a56;
  --brand-deep: #0a1d3d;
  --accent: #0f62fe;
  --accent-2: #6e4ff6;
  --text: #13161b;
  --muted: rgba(19, 22, 27, 0.68);
  --surface: rgba(255, 255, 255, 0.82);
  --radius: 16px;
  --shadow: 0 24px 60px rgba(16, 42, 86, 0.12);
  --font-fa: "Vazirmatn", "Tahoma", sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-fa);
  color: var(--text);
  background: #f4f7fc;
  line-height: 1.65;
  overflow-x: hidden;
}

body.ltr {
  direction: ltr;
  font-family: var(--font-en);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(15, 98, 254, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(110, 79, 246, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(16, 42, 86, 0.06), transparent 60%),
    linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
}

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 42, 86, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--brand);
  font-weight: 800;
  font-size: 1.2rem;
}

.brand img {
  color: var(--brand);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.top-nav a:not(.btn):hover {
  color: var(--brand);
}

.lang-switch {
  display: flex;
  border: 1px solid rgba(16, 42, 86, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.lang {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: inherit;
}

.lang.active {
  background: var(--brand);
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  border-radius: 10px;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4589ff 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 98, 254, 0.35);
}

.btn--outline {
  background: #fff;
  border-color: rgba(16, 42, 86, 0.15);
  color: var(--brand);
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
}

.btn--white {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow);
}

.btn--ghost-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 98, 254, 0.1);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow--light {
  background: rgba(255, 255, 255, 0.15);
  color: #b8d4ff;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) 2rem;
}

.hero__copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 36em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__pills li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(16, 42, 86, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  box-shadow: 0 4px 14px rgba(16, 42, 86, 0.06);
}

.hero__visual img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin-inline-start: auto;
  filter: drop-shadow(var(--shadow));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.stat {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--surface);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(16, 42, 86, 0.06);
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1.1;
}

.stat span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--brand);
  font-weight: 800;
  line-height: 1.25;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.story {
  padding: 2rem 0 4rem;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.pain-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(16, 42, 86, 0.08);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.pain-card:hover {
  transform: translateY(-4px);
}

.pain-card__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.75rem;
}

.pain-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--brand);
}

.pain-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.bridge {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.bridge__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 45%, #1a4a8a 100%);
  color: #fff;
  box-shadow: 0 32px 64px rgba(16, 42, 86, 0.28);
  overflow: hidden;
  position: relative;
}

.bridge__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(15, 98, 254, 0.35), transparent 50%);
  pointer-events: none;
}

.bridge__copy {
  position: relative;
  z-index: 1;
}

.bridge__copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.3;
}

.bridge__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

.bridge__orbit {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-core {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.12);
}

.orbit-node {
  position: absolute;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.orbit-node--a {
  top: 12%;
  inset-inline-end: 8%;
}

.orbit-node--b {
  bottom: 18%;
  inset-inline-start: 4%;
}

.orbit-node--c {
  top: 42%;
  inset-inline-end: 0;
}

.products {
  padding: 2rem 0 4rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.product-card {
  background: #fff;
  border-radius: 20px;
  padding: 0 0 1.5rem;
  border: 1px solid rgba(16, 42, 86, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__visual {
  height: 140px;
  margin-bottom: 0.25rem;
}

.product-card--braix .product-card__visual {
  background: linear-gradient(160deg, #e8f1ff 0%, #d4e4ff 100%);
}

.product-card--produx .product-card__visual {
  background: linear-gradient(160deg, #f0ebff 0%, #e2d6ff 100%);
}

.product-card--thinx .product-card__visual {
  background: linear-gradient(160deg, #fff4e8 0%, #ffe8cc 100%);
}

.product-mock {
  width: 78%;
  height: 72%;
  margin: 14% auto 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 42, 86, 0.12);
}

.product-mock--chart {
  background: linear-gradient(180deg, #fff 40%, rgba(15, 98, 254, 0.15) 100%);
  border: 1px solid rgba(15, 98, 254, 0.2);
}

.product-mock--ui {
  background: repeating-linear-gradient(
      90deg,
      rgba(110, 79, 246, 0.08) 0,
      rgba(110, 79, 246, 0.08) 24px,
      transparent 24px,
      transparent 48px
    ),
    #fff;
  border: 1px solid rgba(110, 79, 246, 0.25);
}

.product-mock--ai {
  background: radial-gradient(circle at 50% 40%, rgba(255, 152, 0, 0.35), transparent 55%), #fff;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.product-card__tag {
  margin: 0 1.25rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.product-card h3 {
  margin: 0 1.25rem 0.75rem;
  font-size: 1.35rem;
  color: var(--brand);
}

.product-card__problem,
.product-card__solution {
  margin: 0 1.25rem 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.product-card__problem strong,
.product-card__solution strong {
  color: var(--brand);
}

.product-card__link {
  margin: auto 1.25rem 0;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.product-card__link:hover {
  text-decoration: underline;
}

.how {
  padding: 2rem 0 4rem;
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: none;
}

.steps li {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(16, 42, 86, 0.06);
  position: relative;
}

.step-num {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--brand);
}

.steps p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.cta-band {
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 24px 48px rgba(15, 98, 254, 0.35);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.92;
  font-size: 1.05rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  color: var(--brand);
}

.footer__brand img {
  color: var(--brand);
}

body.ltr .product-card__link,
body.ltr .orbit-node {
  letter-spacing: 0;
}

body.ltr .hero__visual img {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy .lead {
    margin-inline: auto;
  }

  .hero__actions,
  .hero__pills {
    justify-content: center;
  }

  .hero__visual img {
    margin-inline: auto;
  }

  .pain-grid,
  .product-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .bridge__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .top-nav {
    display: none;
  }

  .top-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid rgba(16, 42, 86, 0.08);
    box-shadow: var(--shadow);
  }

  .menu-toggle {
    display: block;
  }
}
