:root{
  --bg-deep:#0a1220;
  --bg-panel:#0f1c30;
  --bg-card:#122238;
  --green:#8cd93f;
  --green-bright:#b6f24d;
  --cyan:#33d9c4;
  --myket-blue:#2f8fef;
  --myket-blue-bright:#5fa9ff;
  --white:#f3f7fb;
  --muted:#8fa0b8;
  --muted-dim:#5c6c84;
  --line:rgba(255,255,255,.08);
  --radius:20px;
  --shadow-deep: 0 20px 60px -20px rgba(0,0,0,.6);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg-deep);
  color:var(--white);
  font-family:'Vazirmatn', sans-serif;
  overflow-x:hidden;
}
::selection{ background:var(--green); color:#06110a; }

/* animated background: soft hex texture + slowly drifting color glows (PS-store style),
   transform/opacity only so it stays cheap on mobile */
.hex-field{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='96' viewBox='0 0 84 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'%3E%3Cpath d='M42 0 L84 24 L84 72 L42 96 L0 72 L0 24 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 96px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 10%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 10%, transparent 75%);
}
.glow-orb{
  position:fixed; z-index:0; pointer-events:none; filter:blur(100px); opacity:.28; border-radius:50%;
  will-change:transform; animation:drift 20s ease-in-out infinite alternate;
}
.glow-orb.g1{ width:520px; height:520px; top:-160px; right:-140px; background:radial-gradient(circle, var(--green), transparent 70%); animation-duration:22s; }
.glow-orb.g2{ width:460px; height:460px; bottom:8%; left:-160px; background:radial-gradient(circle, var(--cyan), transparent 70%); animation-duration:26s; animation-direction:alternate-reverse; }
.glow-orb.g3{ width:380px; height:380px; top:38%; left:42%; background:radial-gradient(circle, #ff4d9e, transparent 70%); opacity:.14; animation-duration:30s; }
@keyframes drift{
  from{ transform:translate(0,0) scale(1); }
  to{ transform:translate(60px,-50px) scale(1.12); }
}
/* lighten the effect on small screens: smaller blur radius = cheaper paint, less battery use */
@media (max-width:640px){
  .glow-orb{ filter:blur(60px); opacity:.22; }
  .glow-orb.g1{ width:340px; height:340px; }
  .glow-orb.g2{ width:300px; height:300px; }
  .glow-orb.g3{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .glow-orb{ animation:none; }
}

.wrap{ max-width:1280px; margin:0 auto; padding:0 28px; position:relative; z-index:2;}

/* ---------- nav ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(10,18,32,.75);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
nav{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; position:relative; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ width:44px; height:44px; border-radius:12px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.brand .name{ font-family:'Orbitron', sans-serif; font-weight:800; font-size:20px; letter-spacing:1px; color:var(--white); }
.brand .name span{ color:var(--green); }
.brand-sub{ font-size:10.5px; color:var(--muted); font-weight:500; margin-top:2px; }
.nav-links{ display:flex; gap:34px; list-style:none; }
.nav-links a{ color:var(--muted); text-decoration:none; font-weight:500; font-size:15px; transition:color .25s; position:relative; }
.nav-links a:hover{ color:var(--white); }
.nav-links a::after{ content:''; position:absolute; right:0; bottom:-6px; width:0; height:2px; background:var(--green); transition:width .25s; }
.nav-links a:hover::after{ width:100%; }
.nav-cta{
  background:linear-gradient(135deg, var(--green), var(--cyan));
  color:#06130c; font-weight:700; font-size:14px; padding:10px 22px; border-radius:100px;
  text-decoration:none; box-shadow:0 8px 24px -8px rgba(140,217,63,.5);
  transition:transform .2s;
}
.nav-cta:hover{ transform:translateY(-2px); }
.burger{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; z-index:70; position:relative; }
.burger span{ width:24px; height:2px; background:var(--white); border-radius:2px; }
.mobile-cta-item{ display:none; }

/* ---------- hero ---------- */
.hero{ padding:100px 0 80px; position:relative; text-align:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--line); padding:7px 16px; border-radius:100px;
  font-size:13px; color:var(--green-bright); margin-bottom:28px;
  background:rgba(140,217,63,.06);
}
.eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--green-bright); box-shadow:0 0 10px var(--green-bright); animation:pulse 1.6s infinite; }
@keyframes pulse{ 0%,100%{opacity:1} 50%{opacity:.3} }

.hero h1{
  font-size:clamp(25px, 6vw, 45px); font-weight:900; line-height:1.15; letter-spacing:-1px;
  max-width:920px; margin:0 auto 22px;
}
.hero h1 .grad{
  background:linear-gradient(90deg, var(--green-bright), var(--cyan));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p{ color:var(--muted); font-size:clamp(15px,2vw,19px); max-width:620px; margin:0 auto 40px; line-height:1.9; }
.hero-ctas{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:70px; }
.btn{
  display:inline-flex; align-items:center; gap:10px; padding:15px 30px; border-radius:14px;
  font-weight:700; font-size:15px; text-decoration:none; cursor:pointer; border:none;
  transition:transform .2s, box-shadow .2s; position:relative;
}
.btn-primary{ background:linear-gradient(135deg, var(--green), var(--cyan)); color:#06130c; box-shadow:0 14px 34px -12px rgba(140,217,63,.55); }
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 18px 40px -10px rgba(140,217,63,.7); }
.btn-ghost{ background:rgba(255,255,255,.04); color:var(--white); border:1px solid var(--line); }
.btn-ghost:hover{ background:rgba(255,255,255,.08); transform:translateY(-3px); }
.btn-myket{ background:linear-gradient(135deg, var(--myket-blue), var(--myket-blue-bright)); color:#fff; box-shadow:0 14px 34px -12px rgba(47,143,239,.55); }
.btn-myket:hover{ transform:translateY(-3px); box-shadow:0 18px 40px -10px rgba(47,143,239,.7); }
.btn-myket svg path{ stroke:#fff; }

.hero-badge-wrap{ position:relative; width:200px; height:200px; margin:0 auto 30px; }
.hero-badge-wrap img{ width:100%; height:100%; filter:drop-shadow(0 20px 50px rgba(51,217,196,.3)); }

/* ---------- stats ---------- */
.stats{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; margin-top:-10px;
}
.stat{ background:var(--bg-panel); padding:34px 20px; text-align:center; }
.stat b{ display:block; font-family:'Orbitron',sans-serif; font-size:clamp(26px,4vw,40px); font-weight:800; color:var(--green-bright); }
.stat span{ display:block; margin-top:8px; color:var(--muted); font-size:14px; }

section{ padding:100px 0; position:relative; }
.section-head{ text-align:center; max-width:640px; margin:0 auto 56px; }
.section-head .tag{ color:var(--cyan); font-weight:700; font-size:13px; letter-spacing:2px; text-transform:uppercase; }
.section-head h2{ font-size:clamp(28px,4vw,42px); font-weight:900; margin:14px 0 14px; }
.section-head p{ color:var(--muted); line-height:1.9; font-size:15.5px; }

/* ---------- filters ---------- */
.filters{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:44px; }
.chip{
  background:rgba(255,255,255,.04); border:1px solid var(--line); color:var(--muted);
  padding:10px 22px; border-radius:100px; font-size:14px; font-weight:600; cursor:pointer;
  transition:all .22s;
}
.chip.active, .chip:hover{ background:var(--green); color:#06130c; border-color:var(--green); }

/* ---------- game cards ---------- */
.games-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(272px,1fr)); gap:22px;
}
.card{
  position:relative; background:var(--bg-card); border-radius:var(--radius); padding:22px;
  border:1px solid var(--line); opacity:0; transform:translateY(24px);
  transition:opacity .6s ease, transform .6s ease, border-color .25s;
}
.card.show{ opacity:1; transform:translateY(0); }
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-deep); border-color:rgba(140,217,63,.35); }

.card-top{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.icon-tile{
  width:60px; height:60px; border-radius:16px; flex:none; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-family:'Orbitron',sans-serif; font-weight:800; font-size:20px; color:#06130c;
}
.icon-tile img{ width:100%; height:100%; object-fit:cover; display:block; }
.card-title{ font-weight:700; font-size:16px; line-height:1.4; }
.card-cat{ display:inline-block; margin-top:5px; font-size:11.5px; color:var(--cyan); background:rgba(51,217,196,.1); padding:3px 10px; border-radius:100px; }
.card-desc{ color:var(--muted); font-size:13.5px; line-height:1.85; margin-bottom:16px; min-height:44px; }

.card-meta{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; padding-top:14px; border-top:1px dashed var(--line); }
.rating{ display:flex; align-items:center; gap:5px; font-family:'Orbitron',sans-serif; font-weight:700; font-size:14px; color:var(--green-bright); }
.rating svg{ width:14px; height:14px; fill:var(--green-bright); }
.installs{ display:flex; align-items:center; gap:6px; color:var(--muted); font-size:13px; }
.installs .n{ font-family:'Orbitron',sans-serif; color:var(--white); font-weight:700; }

.card-actions{ display:flex; gap:8px; }
.dl{
  flex:1; display:flex; align-items:center; justify-content:center; gap:7px;
  padding:11px 8px; border-radius:11px; font-size:12.5px; font-weight:700; text-decoration:none;
  transition:filter .2s, transform .2s; cursor:pointer;
}
.dl:hover{ filter:brightness(1.15); transform:translateY(-2px); }
/* مایکت = آبی، هماهنگ با رنگ برند مایکت */
.dl-myket{ background:rgba(47,143,239,.14); color:var(--myket-blue-bright); border:1px solid rgba(47,143,239,.35); }
/* کافه‌بازار = سبز، هماهنگ با رنگ برند بازار */
.dl-bazaar{ background:rgba(140,217,63,.12); color:var(--green-bright); border:1px solid rgba(140,217,63,.3); }

.more-wrap{ text-align:center; margin-top:50px; }

/* ---------- features ---------- */
.features{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.feature{ background:var(--bg-panel); border:1px solid var(--line); border-radius:var(--radius); padding:32px 26px; }
.feature .f-ico{
  width:52px; height:52px; border-radius:14px; margin-bottom:20px;
  background:linear-gradient(135deg, rgba(140,217,63,.18), rgba(51,217,196,.18));
  display:flex; align-items:center; justify-content:center;
}
.feature h3{ font-size:18px; margin-bottom:10px; }
.feature p{ color:var(--muted); font-size:14px; line-height:1.9; }

/* ---------- cta band ---------- */
.cta-band{
  background:linear-gradient(120deg, var(--bg-panel), var(--bg-card));
  border:1px solid var(--line); border-radius:28px; padding:60px 40px; text-align:center;
  position:relative; overflow:hidden;
}
.cta-band h2{ font-size:clamp(24px,3.4vw,36px); font-weight:900; margin-bottom:14px; }
.cta-band p{ color:var(--muted); margin-bottom:30px; }

/* ---------- social links ---------- */
.social-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:34px; padding-top:30px; border-top:1px solid var(--line); }
.social-btn{
  display:inline-flex; align-items:center; gap:9px; padding:11px 20px; border-radius:100px;
  background:rgba(255,255,255,.04); border:1px solid var(--line); color:var(--white);
  text-decoration:none; font-size:14px; font-weight:600; transition:all .22s;
}
.social-btn:hover{ transform:translateY(-3px); background:rgba(255,255,255,.09); border-color:rgba(140,217,63,.4); }
.social-ico{ width:20px; height:20px; display:flex; color:var(--green-bright); }
.social-ico svg{ width:100%; height:100%; }

footer{ border-top:1px solid var(--line); padding:50px 0 30px; }
.foot-top{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:30px; margin-bottom:40px; }
.foot-brand p{ color:var(--muted); font-size:13.5px; max-width:280px; line-height:1.9; margin-top:12px; }
.foot-cols{ display:flex; gap:60px; flex-wrap:wrap; }
.foot-col h4{ font-size:14px; margin-bottom:16px; color:var(--white); }
.foot-col a{ display:block; color:var(--muted); text-decoration:none; font-size:13.5px; margin-bottom:10px; transition:color .2s; }
.foot-col a:hover{ color:var(--green-bright); }
.foot-bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; padding-top:24px; border-top:1px solid var(--line); color:var(--muted-dim); font-size:12.5px; }

@media (max-width:860px){
  .nav-links, .nav-cta{ display:none; }
  .burger{ display:flex; }
  .stats{ grid-template-columns:1fr; }
  .features{ grid-template-columns:1fr; }
  .foot-top{ flex-direction:column; }
  /* عملکرد بهتر روی موبایل: حذف افکت‌های سنگین بلور/انیمیشن که باعث لگ می‌شدند */
  header{ backdrop-filter:none; -webkit-backdrop-filter:none; background:rgba(10,18,32,.96); }
  .glow-orb{ animation:none; }

  /* پنل منوی موبایل — به‌صورت ثابت زیر هدر باز می‌شود، بدون بهم‌ریختن چیدمان بقیه صفحه */
  header.menu-open .nav-links{
    display:flex; flex-direction:column; position:fixed; left:0; right:0; top:70px;
    max-height:calc(100vh - 70px); overflow-y:auto;
    background:#0f1c30; padding:20px 28px 28px; gap:6px;
    border-bottom:1px solid rgba(255,255,255,.08); z-index:60;
  }
  header.menu-open .nav-links li{ list-style:none; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.06); }
  header.menu-open .nav-links li:last-child{ border-bottom:none; }
  header.menu-open .nav-links a{ display:block; font-size:16px; }
  .mobile-cta-item{ display:block !important; margin-top:8px; }
  .mobile-cta-item a{ display:inline-flex; align-items:center; justify-content:center; width:100%; text-decoration:none; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}
