:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, .82);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, .1);
  --blue: #0071e3;
  --blue-dark: #005bbf;
  --shadow: 0 24px 70px rgba(0, 0, 0, .08);
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 113, 227, .1), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--bg) 52%, #fff 100%);
}

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

.page-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  font-weight: 800;
}

.topbar-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.topbar-links a:hover,
.footer a:hover {
  color: var(--text);
}

.download {
  display: grid;
  justify-items: start;
  min-height: 58vh;
  padding: clamp(54px, 10vw, 118px) 0 clamp(46px, 8vw, 90px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.15;
}

.intro {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.6;
}

.cta-card,
.guide {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.cta-card {
  width: min(100%, 650px);
  padding: 14px;
  border-radius: 28px;
}

.cta-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.btn {
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 15px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  transition: transform .24s cubic-bezier(.2, .8, .2, 1), box-shadow .24s ease, background .24s ease;
}

.btn span {
  font-size: 16px;
}

.btn small {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  opacity: .68;
}

.btn-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(0, 113, 227, .28);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--text);
  background: #f5f5f7;
}

.btn-secondary:hover {
  background: #ececf0;
  transform: translateY(-2px);
}

.compat-note,
.noscript-note {
  margin: 12px 10px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.guide {
  margin-bottom: 70px;
  padding: clamp(24px, 5vw, 44px);
  border-radius: 34px;
}

.section-heading h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
}

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: #f0f0f3;
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.tab.is-active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-list li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.step-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--text);
  font-weight: 800;
}

.step-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 0 20px 38px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .download {
    min-height: auto;
  }

  .step-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 28px, 920px);
  }

  .topbar-links {
    display: none;
  }

  h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .cta-actions {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
