/* ============================================================
   GENZONIX GLOBAL — APPS SHOWCASE + BACKEND SERVICES
   Loads on top of home.css. Styles the #apps and #backend
   homepage sections and the dedicated backend.html page.
   ============================================================ */

/* ---------- Apps grid ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }

.app-card {
  display: grid; gap: 0.85rem; align-content: start;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem 1.4rem;
  background: linear-gradient(160deg, var(--panel), rgba(10, 10, 26, 0.4));
  transition: border-color 0.3s, transform 0.25s ease, box-shadow 0.3s;
}
.app-card:hover {
  border-color: var(--line-2); transform: translateY(-5px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
}
.app-top { display: flex; align-items: center; gap: 0.9rem; }
.app-ico {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-size: 1.55rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.15));
  border: 1px solid var(--line-2);
}
.app-cat { font-family: var(--font-m); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }
.app-name { font-family: var(--font-b); font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.2; margin-top: 0.15rem; }
.app-desc { color: var(--dim); font-size: 0.88rem; line-height: 1.55; min-height: 3.2em; }
.app-pkg { font-family: var(--font-m); font-size: 0.6rem; letter-spacing: 0.02em; color: var(--dim); opacity: 0.62; word-break: break-all; }

/* Google Play badge button */
.gplay {
  display: inline-flex; align-items: center; gap: 0.6rem; width: fit-content;
  padding: 0.6rem 1rem; border-radius: 10px; margin-top: 0.2rem;
  border: 1px solid var(--line-2); background: rgba(150, 160, 255, 0.04);
  font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.02em; color: var(--ink);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.gplay:hover { border-color: var(--cyan); background: rgba(34, 211, 238, 0.09); transform: translateY(-2px); }
.gplay svg { flex: none; color: var(--cyan); }
.gplay b { color: var(--dim); font-weight: 500; text-transform: uppercase; font-size: 0.58rem; letter-spacing: 0.16em; }

/* ---------- Backend feature grid ---------- */
.be-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.be-card {
  display: grid; gap: 0.5rem; align-content: start;
  border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.3rem;
  background: rgba(12, 12, 29, 0.45);
  transition: border-color 0.3s, transform 0.25s ease;
}
.be-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.be-num { font-family: var(--font-m); font-size: 0.6rem; letter-spacing: 0.18em; color: var(--cyan); }
.be-card h4 { font-family: var(--font-b); font-weight: 700; font-size: 1rem; color: var(--ink); }
.be-card p { color: var(--dim); font-size: 0.87rem; line-height: 1.55; }

/* ---------- Offer callout (Pakistan software houses) ---------- */
.offer {
  position: relative; overflow: hidden;
  margin-top: 1.8rem; border-radius: 18px;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.16), rgba(34, 211, 238, 0.10));
  border: 1px solid var(--line-2);
  display: grid; grid-template-columns: 1fr minmax(210px, auto); gap: clamp(1.2rem, 3vw, 2rem); align-items: center;
}
.offer::before {
  content: ''; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%); pointer-events: none;
}
.offer-tag { display: inline-block; font-family: var(--font-m); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }
.offer h3 { font-family: var(--font-d); font-weight: 800; font-size: clamp(1.3rem, 3.2vw, 2.1rem); line-height: 1.12; color: var(--ink); margin: 0.5rem 0 0.6rem; }
.offer h3 b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.offer p { color: var(--dim); font-size: 0.92rem; line-height: 1.55; max-width: 56ch; }
.offer-side { display: grid; gap: 0.7rem; align-content: center; position: relative; }
.offer-price { font-family: var(--font-d); font-weight: 900; font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1; color: var(--ink); }
.offer-price small { display: block; font-family: var(--font-m); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.16em; color: var(--dim); margin-top: 0.45rem; }
@media (max-width: 720px) { .offer { grid-template-columns: 1fr; } }

.be-cta { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- WhatsApp button ---------- */
.btn-wa { background: #1faf54; color: #fff; box-shadow: 0 8px 26px rgba(31, 175, 84, 0.34); }
.btn-wa:hover { background: #24c561; transform: translateY(-2px); box-shadow: 0 14px 38px rgba(31, 175, 84, 0.46); }
.btn-wa svg { color: #fff; }

/* ---------- Backend page: hero tag row + lead ---------- */
.be-hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.be-lead { color: var(--dim); font-size: 1.02rem; line-height: 1.6; max-width: 64ch; margin-bottom: 1.6rem; }
.be-hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.4rem; }

/* Backend page uses .section blocks; give the page a comfy top gap under the fixed nav */
.backend-page main { padding-top: 0; }
.be-note { color: var(--dim); font-size: 0.85rem; margin-top: 1.2rem; }
.be-note a { color: var(--cyan); border-bottom: 1px dashed rgba(34, 211, 238, 0.4); }
