:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: #101827;
  --surface: #141d2f;
  --surface-strong: #19243a;
  --card: rgba(255, 255, 255, 0.065);
  --card-strong: rgba(255, 255, 255, 0.095);
  --primary: #8b5cf6;
  --primary-soft: #c4b5fd;
  --accent: #26c6da;
  --accent-soft: #9be8ef;
  --warm: #f4b860;
  --text: #f7f9fc;
  --text-soft: #d9e2ef;
  --muted: #95a3b8;
  --border: rgba(217, 226, 239, 0.14);
  --border-strong: rgba(155, 232, 239, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --font: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    linear-gradient(180deg, rgba(38, 198, 218, 0.08), transparent 440px),
    linear-gradient(135deg, rgba(139, 92, 246, 0.16), transparent 42%),
    var(--bg);
  color: var(--text);
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(217, 226, 239, 0.1);
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand__logo {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.brand__text {
  display: grid;
  line-height: 1.35;
}

.brand__text strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__text small {
  color: var(--muted);
  direction: ltr;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.nav__links a {
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  background: rgba(38, 198, 218, 0.12);
  color: var(--text);
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid rgba(155, 232, 239, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #4f8df7 52%, var(--primary));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(38, 198, 218, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(247, 249, 252, 0.55);
  box-shadow: 0 24px 56px rgba(139, 92, 246, 0.24);
  outline: none;
}

.btn--small {
  min-height: 42px;
  padding: 9px 17px;
  font-size: 0.92rem;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 86px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--accent-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--warm);
  box-shadow: 0 0 0 5px rgba(244, 184, 96, 0.1);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 15px;
  font-size: clamp(1.74rem, 3.3vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 850;
}

.hero__lead,
.section-heading p,
.assurance p,
.site-footer p,
.service-card p,
.steps p,
.faq-list p,
.quote-box p {
  color: var(--muted);
}

.hero__lead {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: 1.12rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 36px;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 0;
}

.hero__metrics div {
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
}

.hero__metrics dt {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 900;
}

.hero__metrics dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.exchange-panel {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(217, 226, 239, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    var(--surface);
  box-shadow: var(--shadow);
}

.exchange-panel::before {
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(38, 198, 218, 0.16);
  border-radius: 22px;
  content: "";
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}

.panel-header img {
  width: 68px;
  height: 68px;
  border-radius: 20px;
}

.panel-header span,
.quote-box span {
  display: block;
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.panel-header strong {
  display: block;
  margin-top: 2px;
  font-size: 1.3rem;
  font-weight: 900;
}

.quote-box {
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: rgba(11, 16, 32, 0.62);
}

.quote-box strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1.46rem;
  font-weight: 900;
}

.quote-box p {
  margin-bottom: 0;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-weight: 600;
}

.mini-list span {
  color: var(--warm);
  direction: ltr;
  font-size: 0.86rem;
  font-weight: 900;
}

.section {
  padding: 88px 0;
}

.section--muted {
  background: rgba(255, 255, 255, 0.028);
  border-block: 1px solid rgba(217, 226, 239, 0.08);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 246px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--card-strong), var(--card));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 232, 239, 0.36);
  background: rgba(255, 255, 255, 0.09);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 1px solid rgba(244, 184, 96, 0.34);
  border-radius: 13px;
  background: rgba(244, 184, 96, 0.12);
  color: var(--warm);
  font-size: 1.18rem;
  font-weight: 900;
}

.process-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: start;
}

.section-heading--sticky {
  position: sticky;
  top: 108px;
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent-soft);
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
  outline: none;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.052);
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(38, 198, 218, 0.12);
  color: var(--accent-soft);
  direction: ltr;
  font-weight: 900;
}

.steps p {
  margin-bottom: 0;
}

.assurance {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 32px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(217, 226, 239, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(38, 198, 218, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.058);
  box-shadow: var(--shadow);
}

.assurance-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assurance-list li {
  position: relative;
  padding: 13px 42px 13px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(11, 16, 32, 0.44);
  color: var(--text-soft);
}

.assurance-list li::before {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
  content: "";
}

.faq-wrap {
  max-width: 900px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.052);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 850;
}

summary::marker {
  color: var(--accent-soft);
}

details p {
  margin: 0;
  padding: 0 20px 20px;
}

.site-footer {
  border-top: 1px solid rgba(217, 226, 239, 0.1);
  background: rgba(8, 12, 24, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 34px 0 22px;
}

.brand--footer {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 560px;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  border-color: rgba(155, 232, 239, 0.38);
  background: rgba(38, 198, 218, 0.08);
  color: var(--text);
  outline: none;
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(217, 226, 239, 0.08);
  color: rgba(217, 226, 239, 0.68);
  font-size: 0.86rem;
}

.copyright span:last-child {
  direction: ltr;
}

@media (max-width: 920px) {
  .nav__links {
    display: none;
  }

  .hero__grid,
  .process-layout,
  .assurance,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }

  .exchange-panel {
    order: -1;
  }

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

  .section-heading--sticky {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    position: static;
  }

  .nav {
    min-height: 68px;
  }

  .brand__text small {
    display: none;
  }

  .btn--small {
    padding-inline: 12px;
  }

  .hero,
  .section {
    padding: 58px 0;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.25rem);
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__actions,
  .hero__metrics {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .exchange-panel,
  .assurance {
    padding: 22px;
    border-radius: 22px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .steps li {
    grid-template-columns: 1fr;
  }

  .footer-links {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links a {
    text-align: center;
  }

  .copyright {
    align-items: flex-start;
    flex-direction: column;
  }
}

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