:root {
  color-scheme: dark;
  --bg: #070a12;
  --panel: #101622;
  --panel-strong: #121a2a;
  --line: rgba(122, 153, 214, 0.2);
  --line-bright: rgba(32, 109, 255, 0.58);
  --text: #eef5ff;
  --muted: #93a2bd;
  --soft: #b8c9e6;
  --blue: #0a84ff;
  --blue-2: #2f68ff;
  --green: #40e987;
  --gold: #ffc62e;
  --radius: 28px;
  font-family: Vazirmatn, IRANSans, Dana, Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% 11%, rgba(10, 132, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 15% 35%, rgba(47, 104, 255, 0.1), transparent 22rem),
    linear-gradient(180deg, #09101d 0%, #070a12 36%, #080d18 100%);
  color: var(--text);
  direction: rtl;
}

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

.page-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 18px 34px;
  overflow: hidden;
}

.hero,
.features,
.download-card {
  position: relative;
}

.hero {
  min-height: 92vh;
  display: grid;
  align-content: center;
  text-align: center;
  padding: 24px 0 34px;
}

.topbar {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  direction: ltr;
}

.stars {
  color: var(--gold);
  font-size: 21px;
  letter-spacing: 5px;
  text-shadow: 0 0 20px rgba(255, 198, 46, 0.2);
}

.version {
  direction: rtl;
  padding: 10px 18px;
  border: 1px solid rgba(47, 104, 255, 0.58);
  border-radius: 999px;
  background: rgba(37, 87, 179, 0.2);
  color: #7fb1ff;
  font-size: 15px;
  font-weight: 800;
}

.brand-mark {
  width: 128px;
  height: 128px;
  margin: 86px auto 28px;
  border-radius: 31px;
  background: #080b11;
  box-shadow:
    0 0 58px rgba(10, 132, 255, 0.48),
    0 22px 50px rgba(0, 0, 0, 0.5);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(48px, 15vw, 72px);
  line-height: 1;
  font-weight: 950;
  background: linear-gradient(180deg, #f8fbff 12%, #88bdff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  width: min(330px, 100%);
  margin: 0 auto 34px;
  color: var(--soft);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.65;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin: 0 auto;
}

.metrics div {
  min-width: 0;
  padding: 12px 6px;
}

.metrics strong {
  display: block;
  color: #4d8dff;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
}

.metrics span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.features {
  padding-top: 18px;
  border-top: 1px solid rgba(122, 153, 214, 0.12);
}

.features h2 {
  margin-bottom: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 22px;
  font-weight: 900;
}

.feature-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-card.is-active {
  border-color: var(--line-bright);
  background: linear-gradient(135deg, rgba(31, 69, 139, 0.48), rgba(15, 20, 31, 0.74));
}

.feature-icon,
.cta-icon {
  display: grid;
  place-items: center;
  border-radius: 20px;
}

.feature-icon {
  width: 66px;
  height: 66px;
  background: rgba(31, 69, 139, 0.42);
  color: #6cadff;
}

.feature-card.is-active .feature-icon {
  background: linear-gradient(145deg, #2e76ff, #2366f4);
  color: #fff;
}

svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.feature-card h3 {
  margin-bottom: 7px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 950;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.download-card {
  margin-top: 34px;
  padding: 26px 20px 22px;
  border: 1px solid var(--line-bright);
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 0%, rgba(47, 104, 255, 0.15), transparent 18rem),
    linear-gradient(180deg, rgba(18, 26, 42, 0.98), rgba(9, 15, 26, 0.96));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--text);
}

.section-title svg {
  color: var(--text);
}

.section-title h2 {
  margin-bottom: 4px;
  font-size: 29px;
  line-height: 1.1;
  font-weight: 950;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.cta {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 92px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  text-align: right;
  text-decoration: none;
  cursor: pointer;
}

.cta-primary {
  border: 0;
  background: linear-gradient(135deg, #3374ff, #2457eb);
  box-shadow: 0 18px 42px rgba(37, 91, 240, 0.3);
}

.cta-primary .cta-icon {
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.28), transparent 42%),
    rgba(255, 255, 255, 0.14);
}

.cta-icon {
  width: 62px;
  height: 62px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.pwa-logo {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.cta-icon.bazaar {
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.92), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(215, 232, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.16);
}

.cta-icon.myket {
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.92), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(224, 236, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(64, 233, 135, 0.16);
}

.store-logo {
  display: block;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.16));
}

.bazaar-logo {
  max-width: 48px;
}

.myket-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.cta small {
  display: block;
  margin-bottom: 6px;
  color: rgba(238, 245, 255, 0.65);
  font-size: 13px;
  font-weight: 800;
}

.cta span:last-child {
  min-width: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 950;
}

.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.7;
}

.trust-line span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 14px;
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 38px 0 0;
  color: var(--muted);
}

.footer-brand img {
  width: 66px;
  height: 66px;
  border-radius: 18px;
}

.footer-brand strong {
  direction: ltr;
  color: var(--soft);
  font-size: 18px;
}

.footer-brand span {
  font-size: 14px;
  font-weight: 800;
}

.is-installed .cta-primary small {
  color: rgba(238, 245, 255, 0.82);
}

@media (max-width: 360px) {
  .page-shell {
    padding-inline: 14px;
  }

  .tagline,
  .cta span:last-child,
  .feature-card h3 {
    font-size: 20px;
  }

  .feature-card,
  .cta {
    grid-template-columns: 62px 1fr;
    gap: 12px;
    padding-inline: 14px;
  }

  .feature-icon,
  .cta-icon {
    width: 58px;
    height: 58px;
  }
}
