/* شبایار — website */
@font-face {
  font-family: "IRANYekanX";
  src: url("../assets/fonts/IRANYekanXFaNum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANYekanX";
  src: url("../assets/fonts/IRANYekanXFaNum-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANYekanX";
  src: url("../assets/fonts/IRANYekanXFaNum-DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANYekanX";
  src: url("../assets/fonts/IRANYekanXFaNum-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANYekanX";
  src: url("../assets/fonts/IRANYekanXFaNum-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1e6fe8;
  --blue-dark: #1557c0;
  --blue-deep: #0a274f;
  --blue-soft: #e8f0fe;
  --ink: #1a2332;
  --muted: #6b7785;
  --border: #d0d7e2;
  --surface: #f5f8fc;
  --white: #ffffff;
  --sky-top: #e8f4fc;
  --sky-bot: #d6e8f6;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(10, 39, 79, 0.12);
  --font: "IRANYekanX", Tahoma, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover {
  color: var(--blue);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  padding: 1.25rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-deep);
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid;
  align-items: stretch;
  overflow: visible;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(30, 111, 232, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 80%, rgba(21, 87, 192, 0.12), transparent 50%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 55%, #cfe0f2 100%);
  padding: 7rem 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem 3rem;
  align-items: center;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding-bottom: 3.5rem;
}

.hero-copy {
  padding-bottom: 0;
  animation: rise 0.9s ease both;
}

.hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--blue-deep);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.45rem;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(30, 111, 232, 0.28);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(208, 215, 226, 0.9);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  animation: float-in 1.1s 0.15s ease both;
}

.phone-frame {
  position: relative;
  width: min(100%, 300px);
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #24364f, #0a274f);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 40px 80px rgba(10, 39, 79, 0.22);
  animation: float 6s ease-in-out infinite;
}

.phone-frame img {
  border-radius: 30px;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  background: var(--white);
}

.phone-glow {
  position: absolute;
  inset: auto 8% -8% 8%;
  height: 80px;
  background: radial-gradient(ellipse, rgba(30, 111, 232, 0.35), transparent 70%);
  filter: blur(18px);
  z-index: -1;
}

/* —— Sections —— */
section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--blue-deep);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.features {
  background: var(--white);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.feature-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

/* —— How —— */
.how {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(30, 111, 232, 0.08), transparent 60%),
    var(--surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding: 0 0 0 0.25rem;
}

.steps li::before {
  counter-increment: step;
  content: "۰" counter(step);
  display: block;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue);
  line-height: 1;
}

.steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* —— Converter tool (interaction) —— */
.tool {
  background: var(--white);
}

.tool-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tool-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.35;
}

.tool-copy p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.tool-panel {
  background: linear-gradient(165deg, #f8fbff, #eef4fb);
  border: 1px solid rgba(208, 215, 226, 0.85);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(10, 39, 79, 0.08);
}

.tool-panel label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.input-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card-input {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  direction: ltr;
  text-align: left;
}

.card-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 111, 232, 0.12);
}

.card-input::placeholder {
  color: #9aa5b3;
  font-weight: 500;
  letter-spacing: 0;
}

.bank-chip {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  width: fit-content;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.bank-chip.is-visible {
  display: inline-flex;
  animation: rise 0.35s ease both;
}

.bank-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tool-panel .btn-primary {
  width: 100%;
  margin-top: 0.35rem;
}

.tool-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.tool-result {
  display: none;
  margin-top: 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
}

.tool-result.is-visible {
  display: block;
  animation: rise 0.4s ease both;
}

.result-msg {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

.result-success .result-bank {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

.result-bank-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.result-grid {
  margin: 0;
}

.result-grid > div {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}

.result-grid > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.result-grid dt {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.result-grid dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  font-size: 1.02rem;
  word-break: break-word;
}

.result-grid .mono {
  direction: ltr;
  text-align: left;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.btn-copy {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--blue-dark);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-copy:hover {
  background: var(--blue-soft);
  border-color: #b7c9e8;
}

.tool-panel .btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* —— Banks —— */
.banks {
  background: var(--surface);
}

.bank-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.bank-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 45s linear infinite;
  align-items: center;
}

.bank-track img {
  height: 42px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(0.15);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.bank-track img:hover {
  opacity: 1;
  filter: none;
}

/* —— Showcase —— */
.showcase {
  background: var(--white);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.shot {
  overflow: hidden;
  border-radius: 20px;
  background: var(--sky-top);
  box-shadow: 0 16px 40px rgba(10, 39, 79, 0.08);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot figcaption {
  padding: 1rem 1.1rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

/* —— FAQ —— */
.faq {
  background:
    radial-gradient(ellipse 45% 50% at 0% 100%, rgba(30, 111, 232, 0.07), transparent 55%),
    var(--surface);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* —— CTA band —— */
.cta-band {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 40%, rgba(30, 111, 232, 0.35), transparent 55%),
    linear-gradient(135deg, var(--blue-deep), #123a6e 45%, var(--blue-dark));
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.cta-band p {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  opacity: 0.85;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--blue-deep);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: var(--blue-soft);
}

/* —— SEO article strip —— */
.seo-strip {
  padding: 4.5rem 0;
  background: var(--white);
}

.seo-strip article {
  max-width: 720px;
  margin: 0 auto;
}

.seo-strip h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--blue-deep);
}

.seo-strip p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.seo-strip a {
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  padding: 3rem 0 2rem;
  background: #0a1a33;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.site-footer p {
  margin: 0;
  max-width: 22rem;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* —— Inner pages —— */
.page-hero {
  padding: 8rem 0 3.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(30, 111, 232, 0.16), transparent 55%),
    linear-gradient(180deg, var(--sky-top), var(--white));
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.3;
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose {
  padding: 0 0 5rem;
}

.prose .container {
  max-width: 720px;
}

.prose h2 {
  margin: 2.5rem 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-deep);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-inline-start: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

/* —— Reveal —— */
/* فقط وقتی JS فعال شد مخفی می‌شود؛ وگرنه محتوا همیشه دیده می‌شود */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-anim .reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero-grid,
  .tool-shell,
  .feature-list,
  .steps,
  .showcase-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
  }

  .hero-copy {
    padding-bottom: 0;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 0;
  }

  .phone-frame {
    width: min(100%, 260px);
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
  }

  .nav.is-open a {
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
  }

  .nav.is-open .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-header {
    position: absolute;
  }

  .site-header .container {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-anim .reveal {
    opacity: 1;
    transform: none;
  }
}
