@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #1f6feb;
  --blue-dark: #1248b0;
  --navy: #0c1b33;
  --teal: #14b8a6;
  --ink: #162033;
  --muted: #5c6b80;
  --line: #e3eaf3;
  --bg: #f4f7fb;
  --card: #fff;
  --shadow: 0 16px 40px rgba(12, 27, 51, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(520px 280px at 100% -4%, rgba(255, 176, 46, 0.28), transparent 70%),
    radial-gradient(640px 360px at 0% 18%, rgba(20, 184, 166, 0.22), transparent 68%),
    radial-gradient(720px 420px at 90% 72%, rgba(31, 111, 235, 0.16), transparent 70%),
    var(--bg);
  line-height: 1.7;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 234, 243, 0.8);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0049ac;
  box-shadow: 0 6px 14px rgba(0, 73, 172, 0.28);
}
.brand strong { display: block; font-size: 15px; line-height: 1.3; }
.brand small { display: block; color: var(--muted); font-size: 12px; direction: ltr; text-align: right; }
.top-dl {
  text-decoration: none;
  background: linear-gradient(135deg, #ffb020, #ff7a3c);
  color: #3a2208;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 138, 46, 0.35);
}

.hero {
  margin: 12px 12px 0;
  padding: 28px 20px 24px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(380px 220px at 100% 0%, rgba(255, 186, 73, 0.45), transparent 62%),
    radial-gradient(420px 260px at 0% 100%, rgba(45, 212, 191, 0.4), transparent 64%),
    radial-gradient(280px 180px at 70% 40%, rgba(96, 165, 250, 0.35), transparent 70%),
    linear-gradient(155deg, #1d4ed8 0%, #12315f 46%, #0b3a3a 100%);
  box-shadow: 0 22px 50px rgba(18, 72, 176, 0.28);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 214, 120, 0.2);
  color: #ffe7a8;
  font-size: 13px;
  font-weight: 500;
}
h1 {
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}
.lead {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}
.cta { margin-top: 22px; display: grid; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
.btn svg { width: 22px; height: 22px; }
.btn-primary {
  background: linear-gradient(135deg, #ffe08a 0%, #ffb020 45%, #ff7a3c 100%);
  color: #3a2208;
  box-shadow: 0 12px 24px rgba(255, 140, 40, 0.32);
}
.btn-primary:active { transform: translateY(1px); }
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  filter: grayscale(1);
  font-size: 13px;
  font-weight: 700;
  cursor: not-allowed;
  user-select: none;
}
.store svg { width: 18px; height: 18px; flex: none; }
.store em {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  opacity: 0.85;
}
.fine {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
}

.phone {
  margin-top: 26px;
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(#1a2744, #10192e);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.phone-bar { display: flex; gap: 5px; margin-bottom: 12px; }
.phone-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.lesson {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 16px;
}
.lesson-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.lesson-top b { color: var(--blue); font-weight: 700; }
.de {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-align: left;
}
.fa { margin-top: 4px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}
.chips span:nth-child(1) { background: #dbeafe; color: #1d4ed8; }
.chips span:nth-child(2) { background: #ccfbf1; color: #0f766e; }
.chips span:nth-child(3) { background: #ffedd5; color: #c2410c; }
.bar {
  margin-top: 14px;
  height: 8px;
  border-radius: 99px;
  background: #e8eef6;
  overflow: hidden;
}
.bar span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}
.quote {
  margin-top: 12px;
  text-align: center;
  direction: ltr;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 12px 0;
}
.stats div {
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid transparent;
}
.stats div:nth-child(1) { background: linear-gradient(180deg, #dbeafe, #fff 70%); border-color: #bfdbfe; }
.stats div:nth-child(2) { background: linear-gradient(180deg, #ccfbf1, #fff 70%); border-color: #99f6e4; }
.stats div:nth-child(3) { background: linear-gradient(180deg, #fef3c7, #fff 70%); border-color: #fde68a; }
.stats div:nth-child(1) strong { color: #1d4ed8; }
.stats div:nth-child(2) strong { color: #0f766e; }
.stats div:nth-child(3) strong { color: #b45309; }
.stats strong { display: block; font-size: 14px; }
.stats span { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }

.block { padding: 36px 20px 8px; }
.block h2 { font-size: 26px; line-height: 1.4; }
.sub { margin-top: 6px; color: var(--muted); }
.grid {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.grid article, .level-row article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.grid article:nth-child(6n+1) { background: linear-gradient(180deg, #eff6ff, #fff 58%); border-color: #dbeafe; }
.grid article:nth-child(6n+2) { background: linear-gradient(180deg, #f0fdfa, #fff 58%); border-color: #ccfbf1; }
.grid article:nth-child(6n+3) { background: linear-gradient(180deg, #fff7ed, #fff 58%); border-color: #ffedd5; }
.grid article:nth-child(6n+4) { background: linear-gradient(180deg, #f0fdf4, #fff 58%); border-color: #bbf7d0; }
.grid article:nth-child(6n+5) { background: linear-gradient(180deg, #fff1f2, #fff 58%); border-color: #fecdd3; }
.grid article:nth-child(6n+6) { background: linear-gradient(180deg, #f5f3ff, #fff 58%); border-color: #ddd6fe; }
.ico {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e8f1ff;
  color: var(--blue-dark);
  font-weight: 700;
  margin-bottom: 8px;
}
.grid article:nth-child(6n+1) .ico { background: #2563eb; color: #fff; }
.grid article:nth-child(6n+2) .ico { background: #0d9488; color: #fff; }
.grid article:nth-child(6n+3) .ico { background: #f59e0b; color: #3a2208; }
.grid article:nth-child(6n+4) .ico { background: #16a34a; color: #fff; }
.grid article:nth-child(6n+5) .ico { background: #e11d48; color: #fff; }
.grid article:nth-child(6n+6) .ico { background: #7c3aed; color: #fff; }
.grid h3 { font-size: 16px; }
.grid p, .level-row p { margin-top: 4px; color: var(--muted); font-size: 14px; }

.level-row {
  margin-top: 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin-inline: -20px;
  padding-inline: 20px;
}
.level-row article { scroll-snap-align: start; }
.level-row article:nth-child(1) { background: linear-gradient(165deg, #16a34a, #15803d); color: #fff; border-color: transparent; }
.level-row article:nth-child(2) { background: linear-gradient(165deg, #2563eb, #1d4ed8); color: #fff; border-color: transparent; }
.level-row article:nth-child(3) { background: linear-gradient(165deg, #f59e0b, #ea580c); color: #fff; border-color: transparent; }
.level-row article:nth-child(4) { background: linear-gradient(165deg, #e11d48, #be123c); color: #fff; border-color: transparent; }
.level-row article p { color: rgba(255, 255, 255, 0.88); }
.level-row b {
  display: inline-block;
  direction: ltr;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 13px;
}
.level-row strong { display: block; margin-top: 4px; }

.install ol {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.install li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.install li > span {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.install li:nth-child(1) > span { background: #2563eb; }
.install li:nth-child(2) > span { background: #f59e0b; color: #3a2208; }
.install li:nth-child(3) > span { background: #16a34a; }
.btn-inline { margin-top: 18px; width: 100%; }

.chan { margin-top: 16px; display: grid; gap: 10px; }
.chan-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 18px;
  padding: 16px;
  color: #fff;
  min-height: 76px;
}
.chan-card svg { width: 28px; height: 28px; flex: none; }
.chan-card strong, .chan-card small { display: block; }
.chan-card small { opacity: 0.85; font-size: 13px; }
.tg { background: linear-gradient(135deg, #2aabee, #1d7fbf); }
.bale { background: linear-gradient(135deg, #12a37a, #0d7a5c); }

.foot {
  margin-top: 28px;
  padding: 28px 20px 12px;
  text-align: center;
}
.foot img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 auto 10px;
  background: #0049ac;
  box-shadow: 0 8px 18px rgba(0, 73, 172, 0.28);
}
.foot a {
  display: inline-block;
  margin-top: 4px;
  color: var(--blue-dark);
  font-weight: 700;
  direction: ltr;
}
.foot small { display: block; margin-top: 10px; color: var(--muted); }

.dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 247, 251, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffe08a 0%, #ffb020 45%, #ff7a3c 100%);
  color: #3a2208;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 22px rgba(255, 140, 40, 0.35);
}

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .top, .block, .foot { padding-inline: 32px; }
  .hero {
    margin: 20px auto 0;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
    padding: 40px 36px;
  }
  .phone { margin-top: 0; }
  h1 { font-size: 46px; }
  .stats {
    max-width: 1080px;
    margin: 18px auto 0;
  }
  .block { max-width: 1080px; margin-inline: auto; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .level-row {
    grid-auto-flow: unset;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .chan { grid-template-columns: 1fr 1fr; }
  .btn-inline { width: auto; min-width: 260px; }
  .dock { display: none; }
  .top-dl { display: inline-flex; }
}

@media (max-width: 759px) {
  .top-dl { display: none; }
}

@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.05); }
  .chan-card:hover { filter: brightness(1.05); }
  .dock a:hover { filter: brightness(1.05); }
}
