@font-face {
  font-family: "IRANYekanXFaNum";
  src: url("/assets/fonts/IRANYekanXFaNum-Regular.woff2?v=2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanXFaNum";
  src: url("/assets/fonts/IRANYekanXFaNum-Medium.woff2?v=2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanXFaNum";
  src: url("/assets/fonts/IRANYekanXFaNum-DemiBold.woff2?v=2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanXFaNum";
  src: url("/assets/fonts/IRANYekanXFaNum-Bold.woff2?v=2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanXFaNum";
  src: url("/assets/fonts/IRANYekanXFaNum-ExtraBold.woff2?v=2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanXFaNum";
  src: url("/assets/fonts/IRANYekanXFaNum-Black.woff2?v=2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --cyan-900: #013257;
  --cyan-700: #014a72;
  --cyan-500: #016396;
  --cyan-400: #087caf;
  --surface: #f7fafa;
  --white: #ffffff;
  --text: #364954;
  --text-secondary: #717182;
  --muted: #9ca3af;
  --line: #c4d9e2;
  --page-width: 1280px;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "IRANYekanXFaNum", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-rails {
  width: min(var(--page-width), calc(100% - 160px));
  margin-inline: auto;
  border-inline: 1px solid rgba(1, 99, 150, 0.75);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  inset-inline: 0;
  height: 88px;
  border-bottom: 1px solid rgba(1, 99, 150, 0.75);
}

.header-inner {
  height: 88px;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
}

.brand-mark {
  width: 40px;
  height: 40px;
  padding: 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cyan-700);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.main-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 64px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.main-nav a,
.footer-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--cyan-500);
}

.button {
  min-height: 48px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--cyan-500);
  border-radius: 999px;
  background: var(--cyan-500);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  box-shadow: 0 4px 5px rgba(1, 99, 150, 0.28);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--cyan-700);
  box-shadow: 0 7px 16px rgba(1, 99, 150, 0.24);
}

.button-small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 12px;
}

.button-outline {
  background: var(--white);
  color: var(--cyan-500);
  box-shadow: none;
}

.button-outline:hover {
  color: var(--white);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  padding: 9px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--cyan-500);
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  margin: 4px 0;
  display: block;
  border-radius: 2px;
  background: var(--white);
}

.hero {
  position: relative;
  height: 1024px;
  padding-top: 136px;
  overflow: hidden;
}

.grid-backdrop {
  position: absolute;
  z-index: -1;
  inset: 88px -41px 0;
  background-image:
    linear-gradient(rgba(1, 99, 150, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 99, 150, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent 2%, #000 25%, #000 85%, transparent);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  color: var(--cyan-500);
  font-size: clamp(36px, 3.35vw, 48px);
  font-weight: 900;
  line-height: 1.18;
}

.hero-copy p {
  margin: 38px 0 24px;
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
}

.hero-visual {
  position: absolute;
  top: 406px;
  left: 50%;
  width: min(740px, 70vw);
  height: 618px;
  overflow: hidden;
  transform: translateX(-50%);
}

.hero-visual img {
  position: absolute;
  top: -11.05%;
  left: -59.16%;
  width: 215.16%;
  height: 144.69%;
  max-width: none;
}

.fade-to-page {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  height: 180px;
  inset-inline: -1px;
  bottom: -1px;
  background: linear-gradient(to bottom, transparent, var(--surface) 82%);
}

.steps {
  position: relative;
  height: 300vh;
  min-height: 2160px;
  padding: 0 48px;
  overflow: clip;
  --steps-progress: 0;
}

.steps-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: clamp(36px, 7vh, 72px) 0 clamp(32px, 6vh, 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.section-heading {
  text-align: center;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
}

.steps-flow {
  width: 828px;
  max-width: 100%;
  height: min(690px, calc(100vh - 220px));
  min-height: 480px;
  margin: clamp(24px, 5vh, 64px) auto 0;
  display: grid;
  grid-template-columns: 268px 100px 400px;
  direction: ltr;
}

.step-images,
.step-cards {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
}

.step-images {
  gap: 12px;
}

.step-image {
  width: clamp(132px, 20vh, 208px);
  aspect-ratio: 1;
  padding: clamp(12px, 2vh, 20px);
  border: 3px solid var(--white);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.3);
  transition:
    opacity 360ms ease,
    filter 360ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 360ms ease,
    box-shadow 360ms ease;
}

.step-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.steps-rail {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  place-items: center;
}

.steps-rail::before {
  content: "";
  position: absolute;
  top: 16.666%;
  bottom: 16.666%;
  left: 50%;
  width: 2px;
  background: #e4e9ed;
}

.steps-rail::after {
  content: "";
  position: absolute;
  top: 16.666%;
  left: 50%;
  width: 2px;
  height: calc(66.668% * var(--steps-progress));
  background: var(--cyan-500);
  transition: height 120ms linear;
}

.rail-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #e4e9ed;
  transition: background 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.rail-dot.is-active,
.rail-dot.is-past {
  background: var(--cyan-500);
  box-shadow: 0 2px 6px rgba(1, 99, 150, 0.35);
}

.rail-dot.is-active {
  transform: scale(1.2);
}

.rail-dot.is-active::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 12px;
  width: 74px;
  height: 2px;
  background: var(--cyan-500);
}

.step-cards {
  height: 100%;
  gap: 12px;
}

.step-card {
  position: relative;
  width: 400px;
  min-height: 132px;
  padding: 26px 30px;
  direction: rtl;
  text-align: right;
  border: 3px solid var(--white);
  border-radius: 28px;
  background: var(--surface);
  color: var(--cyan-500);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.5);
  transition:
    opacity 360ms ease,
    filter 360ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    color 360ms ease,
    border-color 360ms ease,
    box-shadow 360ms ease;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.step-card p {
  margin: 0;
  opacity: 0.65;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.step-image.is-active,
.step-card.is-active {
  opacity: 1;
  filter: none;
  transform: translateY(0) scale(1.035);
  border-color: rgba(1, 99, 150, 0.3);
  box-shadow: 0 14px 34px rgba(1, 50, 87, 0.11), inset 0 2px 8px rgba(255, 255, 255, 0.6);
}

.step-image.is-past,
.step-card.is-past {
  opacity: 0.42;
  filter: grayscale(0.45) saturate(0.55);
  transform: translateY(-8px) scale(0.94);
}

.step-image.is-future,
.step-card.is-future {
  opacity: 0.24;
  filter: grayscale(0.7) saturate(0.3);
  transform: translateY(8px) scale(0.94);
}

.step-card.is-past,
.step-card.is-future {
  color: var(--text-secondary);
}

.comparison {
  min-height: 828px;
  background: linear-gradient(90deg, #012e59, #016396 55%, #0185b8);
  color: var(--white);
}

.comparison-inner {
  min-height: 828px;
  padding: 72px 48px;
}

.section-heading-light h2,
.section-heading-light p {
  color: var(--white);
}

.comparison-scroll {
  margin-top: 64px;
}

.comparison-table {
  width: 964px;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px;
  display: grid;
  grid-template-columns: 200px 348px 348px;
  gap: 8px;
  direction: rtl;
  border: 3px solid var(--white);
  border-radius: 20px;
  background: rgba(247, 250, 250, 0.2);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.25);
}

.comparison-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparison-cell {
  min-height: 56px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  font-size: 14px;
  line-height: 24px;
}

.criteria .comparison-cell {
  background: var(--cyan-500);
  color: var(--white);
  font-weight: 500;
}

.traditional .comparison-cell {
  background: rgba(54, 73, 84, 0.5);
  color: #eceef2;
  font-size: 16px;
}

.smart {
  margin: -2px;
  padding: 10px;
  border: 2px solid var(--cyan-900);
  border-radius: 16px;
  background: var(--cyan-700);
  box-shadow: 0 0 8px rgba(1, 50, 87, 0.3);
}

.smart .comparison-cell {
  background: var(--cyan-900);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.comparison-cell.checked {
  justify-content: space-between;
}

.comparison-cell.checked::before {
  content: "✓";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--cyan-900);
  font-size: 12px;
  font-weight: 900;
}

.column-title {
  font-weight: 600 !important;
}

.pricing {
  min-height: 924px;
  padding: 72px 40px;
}

.pricing-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 380px));
  gap: 24px;
  justify-content: center;
}

.price-card {
  min-height: 554px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 3px solid var(--white);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    0 6px 10px rgba(1, 99, 150, 0.1),
    inset 0 2px 8px rgba(255, 255, 255, 0.5);
}

.price-card.featured {
  border: 1.5px solid var(--cyan-500);
  box-shadow: 0 4px 16px rgba(1, 99, 150, 0.14);
}

.plan-badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 24px;
}

.featured .plan-badge {
  background: var(--cyan-500);
  color: var(--white);
}

.price {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price strong {
  font-size: 36px;
  font-weight: 600;
  line-height: 48px;
}

.price-card:first-child .price strong {
  color: var(--cyan-500);
}

.price span {
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}

.plan-description {
  margin: 16px 0;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.price-card .button {
  width: 100%;
}

.price-card ul {
  margin: 20px 0 0;
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #eceef2;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-right: 22px;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--cyan-500);
  font-weight: 800;
}

footer {
  border-top: 1px solid rgba(1, 99, 150, 0.75);
}

.footer-main {
  min-height: 104px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-mark {
  width: 48px;
  height: 48px;
}

.social-links {
  display: flex;
  gap: 10px;
  direction: ltr;
}

.social-links a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan-500);
  font-weight: 800;
}

.footer-legal {
  padding: 8px 24px;
  background: #eceef2;
  color: var(--text);
  text-align: center;
  font-size: 14px;
  line-height: 24px;
}

.footer-legal strong {
  color: var(--cyan-500);
  font-weight: 500;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-visual.reveal {
  transform: translate(-50%, 18px);
}

.hero-visual.reveal.is-visible {
  transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
  .page-rails {
    width: calc(100% - 64px);
  }

  .main-nav {
    gap: 28px;
  }

  .steps-flow {
    transform: scale(0.88);
    transform-origin: top center;
    margin-bottom: -80px;
  }

  .comparison-inner {
    padding-inline: 24px;
  }

  .comparison-scroll {
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .comparison-table {
    max-width: none;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-rails {
    width: calc(100% - 32px);
  }

  .site-header,
  .header-inner {
    height: 72px;
  }

  .header-inner {
    padding-inline: 14px;
  }

  .main-nav {
    position: absolute;
    top: 62px;
    inset-inline: 10px;
    padding: 18px;
    display: none;
    flex-direction: column;
    gap: 18px;
    border: 1px solid rgba(1, 99, 150, 0.22);
    border-radius: 16px;
    background: rgba(247, 250, 250, 0.98);
    box-shadow: 0 14px 32px rgba(1, 50, 87, 0.13);
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-inner > .button {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 780px;
    padding: 112px 20px 0;
  }

  .hero-copy h1,
  .section-heading h2 {
    font-size: 34px;
    line-height: 1.35;
  }

  .hero-copy p,
  .section-heading p {
    font-size: 17px;
    line-height: 28px;
  }

  .hero-copy p {
    margin-top: 22px;
  }

  .hero-visual {
    top: 360px;
    width: 680px;
    height: 567px;
    max-width: none;
  }

  .steps {
    height: auto;
    min-height: auto;
    padding: 64px 18px 110px;
    overflow: hidden;
  }

  .steps-sticky {
    position: static;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .steps-flow {
    height: auto;
    margin-top: 44px;
    display: block;
    transform: none;
  }

  .step-images,
  .steps-rail {
    display: none;
  }

  .step-cards {
    height: auto;
    padding: 0;
    gap: 18px;
  }

  .step-card,
  .step-card.is-active,
  .step-card.is-past,
  .step-card.is-future {
    width: 100%;
    min-height: 148px;
    opacity: 1;
    filter: none;
    transform: none;
    color: var(--cyan-500);
  }

  .comparison {
    min-height: auto;
  }

  .comparison-inner {
    min-height: auto;
    padding: 64px 18px;
  }

  .comparison-scroll {
    margin-top: 42px;
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .comparison-table {
    width: 840px;
    grid-template-columns: 170px 300px 300px;
  }

  .pricing {
    min-height: auto;
    padding: 64px 18px;
  }

  .pricing-grid {
    margin-top: 42px;
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: auto;
  }

  .footer-main {
    padding: 28px 18px;
    flex-direction: column;
    gap: 26px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .step-image,
  .step-card,
  .rail-dot,
  .steps-rail::after {
    transition: none;
  }
}
