/* MADAR Labs — labs.madar-network.com. Same family as madar-network.com (black/silver, gold touch), a little lighter.
   Fonts are self-hosted (the security policy allows no outside requests). No blur, no endless animations. */
@font-face { font-family: "Madar Arabic"; src: url("fonts/IBMPlexSansArabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Madar Arabic"; src: url("fonts/IBMPlexSansArabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Madar Arabic"; src: url("fonts/IBMPlexSansArabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
:root {
  --bg: #08080b; --bg-2: #101015; --card: #121218; --card-2: #17171f;
  --line: rgba(215, 220, 230, 0.12); --line-2: rgba(215, 220, 230, 0.26);
  --text: #f3f4f6; --muted: #a3a6ae; --gold: #ffc857; --gold-2: #ffd98a; --good: #34d399;
  --gold-btn: linear-gradient(180deg, #ffe7a8 0%, #ffc857 50%, #e9a23b 100%);
  --silver: linear-gradient(180deg, #ffffff 0%, #d7dae0 50%, #a9adb6 100%);
  --font: "Madar Arabic", "Segoe UI", system-ui, -apple-system, "Tahoma", "Noto Sans Arabic", "Geeza Pro", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 480px at 80% -120px, rgba(255, 200, 87, 0.13), transparent 70%), radial-gradient(700px 420px at 0% 10%, rgba(120, 140, 255, 0.07), transparent 70%), var(--bg); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: rgba(8, 8, 11, 0.92); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: .3px; white-space: nowrap; }
.brand img { height: 30px; width: auto; }
.brand b { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-net { color: var(--muted); font-size: 14px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.nav-net:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.lang-btn { font: inherit; font-size: 14px; color: var(--text); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.lang-btn:hover { border-color: var(--gold); }

/* Hero */
.hero { padding: 56px 0 36px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gold-2); border: 1px solid rgba(255, 200, 87, 0.35); background: rgba(255, 200, 87, 0.07); padding: 6px 14px; border-radius: 999px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
h1 { margin: 18px 0 4px; font-size: clamp(44px, 11vw, 84px); line-height: 1.05; letter-spacing: -1px; font-weight: 800; }
h1 span { display: inline-block; }
.silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold { background: var(--gold-btn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 0; font-size: clamp(18px, 4.6vw, 24px); color: var(--text); font-weight: 500; }
.lead { margin: 14px auto 0; max-width: 620px; color: var(--muted); font-size: 16.5px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 14px; font-weight: 700; font-size: 16px; transition: transform .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.gold-btn { background: var(--gold-btn); color: #1a1405; }
.ghost { border: 1px solid var(--line-2); background: var(--card); }
.ghost:hover { border-color: var(--gold); }

/* Featured game */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; margin: 18px 0 8px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 200, 87, 0.4); background: linear-gradient(135deg, #17140c, #101015 55%); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--gold); transform: translateY(-2px); }
.feature-art { position: relative; min-height: 220px; background: #07070a; border-inline-end: 1px solid var(--line); overflow: hidden; }
.bricks { position: absolute; top: 26px; inset-inline: 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.bricks i { height: 18px; border-radius: 5px; background: linear-gradient(180deg, #ffe7a8, #ffc857 55%, #c98a22); }
.bricks i.s { background: linear-gradient(180deg, #f7f8fa, #8f939c); }
.bricks i.g { background: linear-gradient(180deg, #a7f3d0, #047857); }
.ball { position: absolute; width: 14px; height: 14px; border-radius: 50%; left: 56%; bottom: 62px; background: radial-gradient(circle at 35% 35%, #fff, #ffe7a8 50%, #e9a23b); box-shadow: 0 0 14px rgba(255, 200, 87, .8); }
.paddle { position: absolute; width: 90px; height: 12px; border-radius: 7px; left: calc(50% - 45px); bottom: 34px; background: linear-gradient(180deg, #f7f8fa, #a9adb6); }
.feature-body { padding: 26px 26px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.feature-body h2 { margin: 2px 0 0; font-size: 30px; line-height: 1.15; }
.feature-body p { margin: 0; color: var(--muted); }
.tag { font-size: 12px; font-weight: 700; color: #1a1405; background: var(--gold-btn); padding: 3px 10px; border-radius: 999px; }
.go { margin-top: 6px; color: var(--gold); font-weight: 700; font-size: 15px; }

/* Product cards */
.group { margin: 38px 0 14px; font-size: 20px; color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid.dev { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; border-radius: 18px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(255, 200, 87, 0.55); transform: translateY(-2px); }
.card h3 { margin: 4px 0 0; font-size: 17px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 200, 87, 0.09); border: 1px solid rgba(255, 200, 87, 0.25); color: var(--gold); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { align-self: flex-start; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--gold-2); border: 1px solid rgba(255, 200, 87, 0.3); padding: 2px 10px; border-radius: 999px; }

/* Network strip */
.net { margin: 40px 0 10px; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.net img { height: 34px; width: auto; flex: none; }
.net > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.net > span:nth-child(2) span { color: var(--muted); font-size: 14.5px; }
.net .go { margin: 0; white-space: nowrap; }
.net:hover { border-color: var(--line-2); }

.foot { margin-top: 36px; border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot a { color: var(--text); }
.foot a:hover { color: var(--gold); }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.dev { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { padding: 38px 0 24px; }
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 170px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .feature-body { padding: 20px 18px 22px; }
  .grid, .grid.dev { grid-template-columns: 1fr; gap: 12px; }
  .cta .btn { flex: 1 1 100%; }
  .net { flex-wrap: wrap; }
  .net .go { flex-basis: 100%; }
  .nav-net { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.nf-logo { margin: 0 auto; height: 50px; width: auto; }
