 html {
      scroll-behavior: smooth;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Tahoma, "Segoe UI", sans-serif;
      color: #fff;

      /* فضای اصلی: بنفش غالب + فیروزه‌ای + سبز */
      /*
      background:
        radial-gradient(circle at 15% 20%, rgba(156, 39, 176, 0.65), transparent 30%),
        radial-gradient(circle at 85% 70%, rgba(76, 175, 80, 0.28), transparent 28%),
        radial-gradient(circle at 70% 15%, rgba(0, 150, 136, 0.35), transparent 25%),
        linear-gradient(135deg, #180b2e 0%, #3b1260 35%, #241447 65%, #102f38 100%);
*/
background: radial-gradient(circle at 50% 50%, rgba(156, 39, 176, 0.65), transparent 80%),linear-gradient(150deg, #673ab7 70%,  #4f2c8b 100%);      background-attachment: fixed;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* نورهای بسیار ظریف برای حس فضایی */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -1;

      background-image:
        radial-gradient(circle, rgba(255,255,255,0.7) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);

      background-size: 90px 90px, 150px 150px;
      background-position: 10px 20px, 50px 80px;
      opacity: 0.12;
    }

    header {
      
      position: sticky;
      top: 0;
      /*background: rgba(15, 8, 28, 0.78);*/
            background-color: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);

      padding: 0.8em 1.5em;

      display: flex;
      /*justify-content: space-between;*/
      align-items: center;

      z-index: 1000;

      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    header > div {
      display: flex;
      align-items: center;
      gap: 10px;
      white-space: nowrap;
    }

    header strong {
      font-size: 1.05rem;
    }

    nav {
      display: flex;
      align-items: center;
      gap: 0.4em;
    }

    nav a {
      margin: 0 0.4em;
      padding: 0.45em 0.7em;

      color: #fff;
      text-decoration: none;
      font-weight: bold;

      border-radius: 8px;
      transition: all 0.25s ease;
    }

    nav a:hover {
      background-color: #4CAF50;
      /*color: #b9f6ca;*/
    }

    section {
      padding: 5em 2em;
      /*max-width: 1100px;*/
      margin: auto;

      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease-in-out;

      text-align: center;
    }

    section.visible {
      opacity: 1;
      transform: translateY(0);
    }

    #home {
      max-width: none;
      background-color: rgba(255, 255, 255, 0.01);
      }

    #apps {
      background-color: rgba(255, 255, 255, 0.05);
    }

    #games {
      background-color: rgba(255, 255, 255, 0.05);
    }

    #about {
      background-color: rgba(255, 255, 255, 0.01);
    }

    #contact {
      background-color: rgba(255, 255, 255, 0.01);
    }

    #feature {
      background-color: rgba(255, 255, 255, 0.05);
    }

    #preview {
      background-color: rgba(255, 255, 255, 0.01);
    }

    #download {
      background-color: rgba(255, 255, 255, 0.05);
    }

    #play {
      background-color: rgba(255, 255, 255, 0.01);
    }

    #faq {
      background-color: rgba(255, 255, 255, 0.05);
    }


    h1 {
      font-size: clamp(2rem, 5vw, 3.2rem);
      margin: 0.5em 0;
    }

    h2 {
      font-size: clamp(1.6rem, 4vw, 2.2rem);
      margin-bottom: 1.5em;
    }

    h3 {
      margin-top: 0.5em;
    }

    #home > div:first-child p {
      max-width: 700px;
      margin: 1em auto;
      line-height: 2;
      font-size: 1.05rem;
      color: rgba(255,255,255,0.9);
    }

    .icon{

    font-size:40px;

    margin-bottom:18px;

    }

    .stats {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      max-width: 1000px;
      margin: 3em auto 0;
    }

    .stat-box {
      margin: 1em;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255,255,255,0.1);

      padding: 1.7em;
      border-radius: 15px;

      text-align: center;
      flex: 1 1 180px;

      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);

      transition: transform 0.3s, background 0.3s;
    }

    .stat-box:hover {
      transform: translateY(-5px) scale(1.03);
      background: rgba(156, 39, 176, 0.18);
    }

    .stat-box h3 {
      font-size: 1.8rem;
      margin-bottom: 0.3em;
    }

    .stat-box p {
      margin: 0;
      color: rgba(255,255,255,0.85);
    }

    .app-list,
    .game-list,
    .team {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5em;
      justify-content: center;
    }

    .app-list > a {
      color: inherit;
      text-decoration: none;
    }

    .app-card,
    .member {
      background: rgba(255,255,255,0.09);
      border: 1px solid rgba(255,255,255,0.1);

      padding: 1.2em;
      border-radius: 15px;

      text-align: center;
      width: 170px;

      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);

      transition: transform 0.3s ease, background 0.3s ease;
    }

    .app-card:hover,
    .member:hover {
      transform: translateY(-7px);
      background: rgba(156, 39, 176, 0.2);
    }

    .app-card img,
    .member img {
      width: 100px;
      height: 100px;
      border-radius: 15px;
      object-fit: cover;
    }

    .member img {
      border-radius: 50%;
    }

    .app-card p {
      font-weight: bold;
    }

    .btn {
      /*background: linear-gradient(135deg, #9C27B0, #009688);*/
      background-color: #4CAF50;
      color: white;

      padding: 1em 2em;

      border: none;
      border-radius: 8px;

      cursor: pointer;
      font-family: inherit;
      font-weight: bold;

      transition: transform 0.2s, box-shadow 0.2s;
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 18px rgba(156, 39, 176, 0.35);
    }

    .social-links {
      margin-top: 2em;
      text-align: center;
    }

    .social-links a {
      display: inline-block;

      margin: 0 0.5em;

      color: #fff;
      font-size: 2.3em;
      text-decoration: none;

      transition: transform 0.2s, color 0.2s;
    }

    .social-links a:hover {
      transform: scale(1.2);
      color: #4CAF50;
    }

    .contact-form {
      max-width: 500px;
      margin: auto;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
      width: 100%;

      margin: 0.5em 0;
      padding: 0.85em;

      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.08);

      background: rgba(255,255,255,0.93);
      color: #222;

      font-family: inherit;
      font-size: 1rem;

      direction: rtl;
    }

    .contact-form textarea {
      resize: vertical;
    }

    .contact-form input:focus,
    .contact-form textarea:focus,
    .contact-form select:focus {
      outline: 2px solid rgba(76, 175, 80, 0.6);
    }

    .contact-form .btn {
      margin-top: 0.5em;
    }

    footer {
      text-align: center;
      padding: 2em;

      background: rgba(0,0,0,0.55);
      border-top: 1px solid rgba(255,255,255,0.08);

      color: rgba(255,255,255,0.8);
    }

    
/* ==========================
       APP PREVIEW
========================== */

.preview{
    width:min(1180px,92%);

    margin:auto;
    padding:120px 0;

}

.phones{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:40px;

}

.phone{

    width:260px;

    height:520px;

    margin:auto;

    background:#111827;

    border-radius:42px;

    padding:14px;

    border:2px solid rgba(255,255,255,.08);

    position:relative;

    transition:.35s;

    box-shadow:

    0 20px 60px rgba(0,0,0,.45);

}

.phone:hover{

    transform:translateY(-12px);

}

.phone::before{

    content:"";

    position:absolute;

    width:110px;

    height:26px;

    background:#000;

    border-radius:18px;

    left:50%;

    transform:translateX(-50%);

    top:12px;

}

.phone img{

    width:100%;

    height:100%;

    object-fit:cover;

    border-radius:32px;

}

    /* بهینه‌سازی موبایل */
        @media (max-width:1100px) {

      header {
        padding: 0.7em 0.8em;
        flex-direction: column;
        gap: 0.7em;
      }

      header > div {
        font-size: 0.95rem;
      }

      nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
      }

      nav a {
        margin: 0;
        padding: 0.4em 0.55em;
        font-size: 0.85rem;
      }

      section {
        padding: 4em 1em;
      }

      #home > div:first-child p {
        font-size: 0.95rem;
        line-height: 2;
      }

      .stats {
        margin-top: 2em;
      }

      .stat-box {
        flex: 1 1 130px;
        margin: 0.5em;
        padding: 1.2em 0.8em;
      }

      .stat-box h3 {
        font-size: 1.4rem;
      }

      .app-card,
      .member {
        width: 145px;
      }

      .social-links a {
        margin: 0 0.35em;
        font-size: 2em;
      }

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

    @media (max-width: 700px) {

      header {
        padding: 0.7em 0.8em;
        flex-direction: column;
        gap: 0.7em;
      }

      header > div {
        font-size: 0.95rem;
      }

      nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
      }

      nav a {
        margin: 0;
        padding: 0.4em 0.55em;
        font-size: 0.85rem;
      }

      section {
        padding: 4em 1em;
      }

      #home > div:first-child p {
        font-size: 0.95rem;
        line-height: 2;
      }

      .stats {
        margin-top: 2em;
      }

      .stat-box {
        flex: 1 1 130px;
        margin: 0.5em;
        padding: 1.2em 0.8em;
      }

      .stat-box h3 {
        font-size: 1.4rem;
      }

      .app-card,
      .member {
        width: 145px;
      }

      .social-links a {
        margin: 0 0.35em;
        font-size: 2em;
      }

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