/* Q8Core storefront — NEON design.
   Dark, glowing, premium. Pure CSS glow (near-zero weight). */

:root {
  --bg:        #05060f;
  --bg-2:      #0a0c1c;
  --card:      #0d1024;
  --card-2:    #11152e;
  --line:      #223056;
  --ink:       #eaf1ff;
  --ink-soft:  #b9c6e6;
  --muted:     #7f8db3;

  --cyan:      #22d3ee;
  --teal:      #2dd4bf;
  --violet:    #a855f7;
  --pink:      #ff3ea5;
  --gold:      #ffcc4d;

  --glow-cyan:   0 0 22px rgba(34,211,238,.55);
  --glow-violet: 0 0 26px rgba(168,85,247,.5);
  --glow-pink:   0 0 26px rgba(255,62,165,.5);

  --radius: 18px;
  --maxw:   1140px;
  --font: "Segoe UI", "Tajawal", "Cairo", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.6;
  background:
    radial-gradient(900px 520px at 82% -6%, rgba(168,85,247,.20), transparent 60%),
    radial-gradient(820px 520px at 4% 4%, rgba(34,211,238,.18), transparent 58%),
    radial-gradient(700px 500px at 60% 108%, rgba(255,62,165,.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* faint neon grid overlay */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(90,120,200,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,120,200,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700;
  font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { color: #04121a;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: var(--glow-cyan), 0 6px 20px rgba(34,211,238,.25); }
.btn-primary:hover { box-shadow: 0 0 34px rgba(34,211,238,.85), 0 8px 26px rgba(34,211,238,.35);
  transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.02); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20;
  background: rgba(5,6,15,.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34,211,238,.14); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  color: #04121a; font-size: .92rem; font-weight: 900; letter-spacing: .5px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: var(--glow-cyan); }
.brand-name { font-size: 1.2rem; letter-spacing: .3px;
  text-shadow: 0 0 18px rgba(34,211,238,.35); }
.nav { display: flex; gap: 24px; margin-inline-start: auto; }
.nav a { color: var(--ink-soft); font-weight: 500; transition: color .15s, text-shadow .15s; }
.nav a:hover { color: var(--cyan); text-shadow: var(--glow-cyan); }
.lang-btn { border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--ink);
  border-radius: 999px; padding: 8px 17px; font-weight: 700; cursor: pointer; font-family: var(--font);
  transition: border-color .15s, color .15s, box-shadow .15s; }
.lang-btn:hover { border-color: var(--violet); color: var(--violet); box-shadow: var(--glow-violet); }
.hamburger { display: none; width: 44px; height: 40px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); border-radius: 12px; cursor: pointer;
  padding: 0; align-items: center; justify-content: center; gap: 5px; flex-direction: column; }
.hamburger span { display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transition: transform .2s, opacity .2s; }
body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 96px 0 74px; }
.hero-inner { max-width: 780px; }
.eyebrow { color: var(--cyan); font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  font-size: .78rem; margin: 0 0 16px; text-shadow: var(--glow-cyan); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -.6px;
  background: linear-gradient(120deg, #ffffff 0%, var(--cyan) 55%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(34,211,238,.28)); }
.hero-sub { font-size: 1.18rem; color: var(--ink-soft); max-width: 660px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 26px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0;
  color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.hero-badges li { display: flex; align-items: center; gap: 9px; }
.dot { width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero-badges li:nth-child(2) .dot { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.hero-badges li:nth-child(3) .dot { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.hero-badges li:nth-child(4) .dot { background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* Sections */
.section { padding: 70px 0; position: relative; z-index: 1; }
.section-alt { background: linear-gradient(180deg, rgba(168,85,247,.05), rgba(34,211,238,.04));
  border-block: 1px solid rgba(34,211,238,.12); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900;
  text-shadow: 0 0 22px rgba(34,211,238,.25); }
.section-lead { color: var(--muted); max-width: 640px; margin: 0 0 36px; font-size: 1.05rem; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 22px; }
.card { position: relative; background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 12px; cursor: pointer; overflow: hidden;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(135deg, transparent, transparent); opacity: 0; transition: opacity .2s; }
.card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,.55);
  box-shadow: 0 0 0 1px rgba(34,211,238,.25), 0 18px 46px rgba(0,0,0,.55), 0 0 40px rgba(34,211,238,.18); }
.card-top { display: flex; align-items: center; gap: 14px; }
.tile { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 15px; color: #fff; display: grid;
  place-items: center; font-weight: 800; font-size: 1.55rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 22px rgba(34,211,238,.30); }
.tile.has-icon { background: transparent; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.tile.has-icon img, .modal-tile.has-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-tile.has-icon { background: transparent; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.card h3 { margin: 0; font-size: 1.18rem; }
.card-tagline { color: var(--ink-soft); font-size: .98rem; margin: 0; flex: 1 1 auto; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-weight: 900; font-size: 1.18rem; color: #fff; text-shadow: 0 0 16px rgba(34,211,238,.4); }
.price .cur { color: var(--cyan); font-weight: 700; font-size: .85rem; margin-inline-end: 3px; }
.platforms { display: flex; gap: 6px; flex-wrap: wrap; }
.pf { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 6px;
  background: rgba(34,211,238,.10); color: var(--cyan); border: 1px solid rgba(34,211,238,.22); }
.card-cta { color: var(--cyan); font-weight: 800; font-size: .92rem; text-shadow: var(--glow-cyan); }

/* Compare table */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: 0 0 40px rgba(34,211,238,.10); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 460px;
  background: linear-gradient(180deg, var(--card), var(--card-2)); }
.cmp-table th, .cmp-table td { padding: 15px 18px; text-align: start;
  border-bottom: 1px solid var(--line); }
.cmp-table thead th { font-size: 1rem; color: var(--ink-soft); font-weight: 700;
  background: rgba(34,211,238,.05); }
.cmp-table th.cmp-us, .cmp-table td.yes, .cmp-table td.no, .cmp-table td.mid { text-align: center; width: 130px; }
.cmp-badge { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 800;
  color: #04121a; background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: var(--glow-cyan); }
.cmp-table td.yes { color: var(--teal); font-weight: 900; font-size: 1.25rem;
  text-shadow: 0 0 14px rgba(45,212,191,.6); }
.cmp-table td.no { color: #ff5c7a; font-weight: 900; font-size: 1.2rem; }
.cmp-table td.mid { color: var(--gold); font-weight: 900; font-size: 1.2rem; }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table tbody tr:hover td { background: rgba(34,211,238,.04); }

/* Why */
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.feature { background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: rgba(168,85,247,.5); box-shadow: 0 0 30px rgba(168,85,247,.16); }
.feature-icon { font-size: 1.8rem; margin-bottom: 10px; filter: drop-shadow(0 0 12px rgba(34,211,238,.6)); }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* Support */
.support-inner { text-align: center; }
.support-inner .section-lead { margin-inline: auto; }

/* Footer */
.site-footer { border-top: 1px solid rgba(34,211,238,.14); padding: 40px 0;
  background: linear-gradient(180deg, transparent, rgba(168,85,247,.05)); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-note { color: var(--ink-soft); margin: 4px 0 0; }
.footer-legal { color: var(--muted); font-size: .88rem; margin: 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,5,12,.72); backdrop-filter: blur(5px); }
.modal-card { position: relative; z-index: 1; width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid rgba(34,211,238,.45); border-radius: 22px; padding: 28px;
  box-shadow: 0 0 0 1px rgba(34,211,238,.2), 0 30px 80px rgba(0,0,0,.7), 0 0 60px rgba(34,211,238,.2); }
.modal-close { position: absolute; inset-inline-end: 16px; top: 12px; border: none; background: transparent;
  font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--cyan); text-shadow: var(--glow-cyan); }
.modal-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.modal-tile { width: 66px; height: 66px; border-radius: 17px; color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.75rem; flex: 0 0 auto; box-shadow: 0 0 26px rgba(34,211,238,.4); }
.modal-head h3 { margin: 0; font-size: 1.45rem; }
.modal-tagline { color: var(--ink-soft); margin: 4px 0 8px; }
.modal-platforms { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-desc { color: var(--ink-soft); }
.modal-features { list-style: none; padding: 0; margin: 16px 0; display: grid;
  grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.modal-features li { position: relative; padding-inline-start: 24px; font-size: .96rem; }
.modal-features li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--cyan);
  font-weight: 900; text-shadow: var(--glow-cyan); }
.modal-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.modal-price { font-weight: 900; font-size: 1.55rem; color: #fff; text-shadow: 0 0 18px rgba(34,211,238,.45); }
.modal-price .cur { color: var(--cyan); font-weight: 700; font-size: .9rem; margin-inline-end: 4px; }
.modal-hint { color: var(--muted); font-size: .82rem; margin: 12px 0 0; text-align: center; }
.modal-pay { margin: 14px 0 0; min-height: 0; }
.modal-deliver { margin: 16px 0 0; padding: 18px; border-radius: 14px;
  background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.25); text-align: center; }
.deliver-thanks { font-weight: 800; font-size: 1.1rem; color: #fff; }
.deliver-keylabel { margin-top: 12px; font-size: .74rem; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--violet); }
.deliver-key { display: flex; gap: 8px; align-items: center; justify-content: center;
  flex-wrap: wrap; margin-top: 8px; }
.deliver-key code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem;
  font-weight: 700; color: var(--cyan); background: rgba(0,0,0,.35); padding: 8px 12px;
  border-radius: 8px; border: 1px solid var(--line); letter-spacing: 1px; word-break: break-all; }
.deliver-copy { padding: 8px 14px; font-size: .85rem; }
.deliver-note { color: var(--muted); font-size: .82rem; margin: 12px 0 0; }
.deliver-downloads { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.deliver-getting { color: var(--muted); font-size: .85rem; }
.deliver-dl { width: 100%; max-width: 340px; }
.modal-shots { display: flex; justify-content: center; gap: 10px; overflow-x: auto; margin: 18px 0 4px;
  padding-bottom: 6px; scroll-snap-type: x mandatory; }
.modal-shots img { max-height: 46vh; max-width: 100%; width: auto; height: auto; border-radius: 12px;
  border: 1px solid var(--line); scroll-snap-align: start; box-shadow: 0 8px 24px rgba(0,0,0,.5);
  background: #05060f; }
.modal-shots::-webkit-scrollbar { height: 8px; }
.modal-shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.modal-subhead { margin: 20px 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--violet); }
.modal-compat { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.modal-compat li { display: flex; gap: 12px; align-items: baseline; font-size: .93rem; color: var(--ink-soft); }
.compat-os { flex: 0 0 auto; min-width: 96px; font-weight: 800; font-size: .74rem; letter-spacing: .3px;
  padding: 3px 9px; border-radius: 6px; text-align: center; color: var(--violet);
  background: rgba(168,85,247,.10); border: 1px solid rgba(168,85,247,.24); }
.modal-req { margin: 14px 0 0; font-size: .88rem; color: var(--ink-soft);
  background: rgba(255,62,165,.06); border: 1px solid rgba(255,62,165,.20);
  border-radius: 10px; padding: 10px 14px; }
.modal-req strong { color: var(--pink); }

/* category filter chips */
.cat-filter { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; }
.chip { font-size: .84rem; font-weight: 700; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line);
  transition: color .15s, border-color .15s, box-shadow .15s, background .15s; }
.chip:hover { color: var(--cyan); border-color: var(--cyan); }
.chip-on { color: #04121a; background: linear-gradient(135deg, var(--cyan), var(--teal));
  border-color: transparent; box-shadow: var(--glow-cyan); }

/* category sections */
.cat-wrap { display: grid; gap: 44px; }
.cat-block { display: grid; gap: 20px; }
.cat-head { display: flex; align-items: center; gap: 12px; }
.cat-title { font-size: 1.25rem; font-weight: 800; margin: 0;
  background: linear-gradient(120deg, #fff, var(--cyan)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.cat-count { font-size: .74rem; font-weight: 800; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.cat-head::after { content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent); }
[dir="rtl"] .cat-head::after { background: linear-gradient(270deg, var(--line), transparent); }

/* RTL tweak */
[dir="rtl"] .nav { margin-inline-start: auto; }

@media (max-width: 760px) {
  .hamburger { display: flex; }
  .nav { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0;
    background: rgba(7,9,20,.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(34,211,238,.2); padding: 6px 22px 14px;
    margin: 0; opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
  body.nav-open .nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 1.05rem; }
  .modal-features { grid-template-columns: 1fr; }
  .modal-compat li { flex-direction: column; gap: 3px; }
  .compat-os { align-self: flex-start; }
  .hero { padding: 66px 0 50px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 2rem; }
  .grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
}
