  @import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

  /* ریست */
  *, *::before, *::after {
    box-sizing: border-box;
  }
  body {
    margin: 0; padding: 0;
    font-family: 'Vazir', 'Inter', Tahoma, sans-serif;
    background: #121217;
    color: #cfd2f7;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    direction: rtl;
  }
  a {
    color: #7f85ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  a:hover, a:focus {
    color: #a3aaff;
    outline: none;
  }

  /* هدر چسبان */
  header {
    position: sticky;
    top: 0;
    background: rgba(31, 31, 42, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.9);
    padding: 25px 40px;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #aab0ff;
    text-align: center;
    z-index: 1000;
    user-select: none;
    animation: fadeInDown 0.8s ease forwards;
  }

  /* کانتینر */
  main {
    max-width: 900px;
    margin: 90px auto 70px;
    background: #1c1c2e;
    border-radius: 18px;
    padding: 55px 60px;
    box-shadow:
      0 10px 30px rgba(127, 133, 255, 0.25),
      inset 0 0 40px #2e2e55;
    animation: fadeInUp 1s ease forwards;
  }

  /* تیترها */
  h1, h2, h3 {
    color: #9aa0ff;
    font-weight: 700;
  }
  h1 {
    font-size: 3.4rem;
    margin-bottom: 40px;
    border-bottom: 3px solid #7f85ff;
    padding-bottom: 12px;
  }
  h2 {
    font-size: 2.1rem;
    margin-top: 55px;
    margin-bottom: 25px;
    position: relative;
  }
  h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: #7f85ff;
    border-radius: 3px;
  }
  h3 {
    font-size: 1.5rem;
    margin-top: 33px;
    margin-bottom: 15px;
  }

  /* پاراگراف */
  p {
    font-size: 1.12rem;
    color: #c3c7ffcc;
    margin-bottom: 15px;
  }

  /* لیست */
  ul {
    padding-right: 22px;
    margin: 18px 0 28px;
    color: #bfc2ffcc;
    font-size: 1.05rem;
  }
  ul li {
    margin-bottom: 14px;
    position: relative;
    padding-right: 24px;
  }
  ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #7f85ff;
    font-weight: 700;
  }

  /* دکمه خرید */
  .btn-buy {
    display: inline-block;
    background: linear-gradient(135deg, #7f85ff, #5458d8);
    color: white;
    font-weight: 700;
    padding: 16px 46px;
    border-radius: 40px;
    font-size: 1.28rem;
    box-shadow: 0 8px 30px rgba(127, 133, 255, 0.6);
    cursor: pointer;
    user-select: none;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    overflow: hidden;
  }
  .btn-buy::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3), transparent 70%);
    transform: translateX(-100%) translateY(0) rotate(45deg);
    transition: transform 0.7s ease;
    pointer-events: none;
    z-index: 0;
  }
  .btn-buy:hover::before, .btn-buy:focus::before {
    transform: translateX(100%) translateY(0) rotate(45deg);
  }
  .btn-buy:hover, .btn-buy:focus {
    background: linear-gradient(135deg, #9ba0ff, #696fe1);
    box-shadow: 0 10px 40px rgba(155, 160, 255, 0.8);
    outline: none;
    transform: scale(1.05);
  }

  /* کدهای بلوک */
  pre {
    background: #2a2a4d;
    color: #e0e3ff;
    border-radius: 14px;
    padding: 26px 32px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.98rem;
    overflow-x: auto;
    box-shadow: inset 0 0 12px #464677;
    margin-top: 25px;
    margin-bottom: 38px;
    user-select: text;
    transition: box-shadow 0.3s ease;
  }
  pre:hover {
    box-shadow: inset 0 0 18px #7f85ff;
  }
  code {
    background: #3a3a6b;
    color: #ffd6e8;
    padding: 5px 12px;
    border-radius: 10px;
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
  }

  /* فوتر */
  footer {
    text-align: center;
    padding: 38px 18px;
    font-size: 0.9rem;
    color: #7a7fbc;
    letter-spacing: 0.5px;
    user-select: none;
  }

  /* انیمیشن‌ها */
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-25px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(25px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

@media (max-width: 840px) {
  main {
    padding: 45px 35px;
    margin: 80px 20px 60px;
  }
  h1 {
    font-size: 2.8rem;
    margin-bottom: 35px;
  }
  h2 {
    font-size: 1.8rem;
    margin-top: 45px;
    margin-bottom: 20px;
    word-break: break-word;
  }
  h3 {
    font-size: 1.3rem;
    margin-top: 28px;
    margin-bottom: 12px;
  }
  .btn-buy {
    padding: 14px 36px;
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 25px 15px;
    margin: 70px 15px 40px;
    border-radius: 14px;
  }
  header {
    font-size: 1.9rem;
    padding: 20px 15px;
  }
  h1 {
    font-size: 2.2rem;
    margin-bottom: 25px;
  }
  h2 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom-width: 2px;
    width: 90%;
    word-break: break-word;
  }
  h3 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  p {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  ul {
    font-size: 0.95rem;
    margin: 15px 0 20px;
    padding-right: 18px;
  }
  ul li {
    margin-bottom: 12px;
    padding-right: 20px;
  }
  ul li::before {
    font-size: 1rem;
  }
  .btn-buy {
    padding: 12px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 320px) {
  main {
    padding: 20px 12px;
    margin: 60px 10px 30px;
  }
  header {
    font-size: 1.6rem;
    padding: 15px 10px;
  }
  h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  h2 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 12px;
    width: 100%;
  }
  h3 {
    font-size: 1rem;
    margin-top: 18px;
    margin-bottom: 8px;
  }
  p, ul {
    font-size: 0.9rem;
  }
  ul li::before {
    font-size: 0.9rem;
  }
  .btn-buy {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}
