/* =========================================================
   رسيس لتقنية المعلومات — Rassees Information Technology
   site.css — static styles (no external libraries)
   ========================================================= */

:root {
  --bg:            #f6f7f9;
  --surface:       #ffffff;
  --ink:           #14161c;
  --ink-soft:      #4a4f5c;
  --ink-muted:     #8a909e;
  --line:          #e7e9ee;
  --accent:        #1e63d6;
  --accent-dark:   #1850b0;
  --accent-soft:   #eaf1fc;
  --dark:          #0d1018;
  --radius:        16px;
  --radius-lg:     24px;
  --shadow-sm:     0 1px 2px rgba(16,20,30,.06), 0 4px 14px rgba(16,20,30,.05);
  --shadow-md:     0 12px 34px rgba(16,20,30,.10);
  --maxw:          1120px;
  --font: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Header (transparent, floating over hero) ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
/* On the privacy page (dark solid bar) */
.site-header.solid {
  position: sticky;
  background: rgba(13,16,24,.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand img { width: 40px; height: 40px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 16.5px; font-weight: 800; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.brand-text span { font-size: 11.5px; color: rgba(255,255,255,.72); letter-spacing: .02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}

.nav-links a { transition: color .15s ease; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.nav-links a:hover { color: #fff; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ---------- Hero (bottom-aligned, cinematic) ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  min-height: min(94vh, 860px);
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,16,24,.55) 0%, rgba(13,16,24,0) 24%, rgba(13,16,24,.30) 52%, rgba(13,16,24,.93) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
  padding-top: 120px;
}

.hero-panel {
  position: relative;
  display: inline-block;
  max-width: 760px;
  background: linear-gradient(180deg, rgba(8,10,16,.30) 0%, rgba(8,10,16,.54) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(112%);
  backdrop-filter: blur(10px) saturate(112%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  padding: 26px 34px 28px;
  margin-bottom: 34px;
  box-shadow: 0 20px 56px rgba(0,0,0,.28);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #dfe7f5;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4d9bff; box-shadow: 0 0 0 4px rgba(77,155,255,.25);
}

.hero h1 {
  font-size: clamp(20px, 5.2vw, 50px);
  line-height: 1.12;
  margin-bottom: 14px;
  white-space: nowrap;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.hero h1 .brandname { color: #5aa6ff; }
.hero h1 .accent { color: #ffffff; }

.hero-lead {
  font-size: clamp(17px, 2.2vw, 21px);
  color: #e3e8f0;
  margin-bottom: 0;
  max-width: 52ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,99,214,.4); }
.btn-ghost { background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.hero-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--dark);
  padding: 10px 20px 10px 18px;
  border-radius: 14px;
  min-width: 190px;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .s-top { font-size: 11px; color: var(--ink-muted); line-height: 1.1; }
.store-badge .s-main { font-size: 17px; font-weight: 800; line-height: 1.15; }

/* ---------- Game section ---------- */
.game { background: var(--surface); }

.game-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.game-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1122 / 1402;
  background: #0d1018;
}
.game-figure img { width: 100%; height: 100%; object-fit: cover; }

.features {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}
.features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16.5px;
  color: var(--ink-soft);
}
.features .tick {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 3px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.features .tick svg { width: 15px; height: 15px; }

/* ---------- Screenshots ---------- */
.shots { background: var(--bg); }

.shots-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.shots-head .section-lead { margin-inline: auto; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 18px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1018;
  box-shadow: var(--shadow-sm);
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery figure:hover img { transform: scale(1.06); }

.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- About ---------- */
.about { background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
}
.about-card h3 { font-size: 22px; margin-bottom: 22px; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  margin-top: 8px;
}
.about-stats .k { font-size: 30px; font-weight: 800; color: #6fb0ff; }
.about-stats .v { font-size: 14.5px; color: #aab4c4; }

/* ---------- Social ---------- */
.social { background: var(--bg); }
.social-inner { text-align: center; max-width: 640px; margin-inline: auto; }
.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.social-pill svg { width: 20px; height: 20px; }
.social-pill:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #c8cfdb;
  padding-block: 60px 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer-brand .brand-text b { color: #fff; }
.footer-brand p {
  margin-top: 16px;
  font-size: 14.5px;
  color: #9aa3b2;
  max-width: 34ch;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a, .footer-col span { font-size: 15px; color: #aab4c4; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #cdd5e1;
  transition: background .15s ease, transform .15s ease;
}
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  font-size: 14px;
  color: #8a93a3;
}
.footer-bottom a { color: #aab4c4; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .sep { opacity: .4; margin-inline: 10px; }

/* ---------- Privacy page ---------- */
.policy-hero {
  background: var(--dark);
  color: #fff;
  padding-block: 96px 72px;
}
.policy-hero .eyebrow { background: rgba(255,255,255,.10); color: #9fc2ff; }
.policy-hero h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 14px; }
.policy-hero p { color: #aab4c4; font-size: 17px; max-width: 60ch; }
.policy-hero .updated { margin-top: 22px; font-size: 14px; color: #8a93a3; }

.policy-body { padding-block: 72px; background: var(--surface); }
.policy-wrap {
  max-width: 820px;
  margin-inline: auto;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 44px;
}
.lang-switch button {
  font-family: var(--font);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-switch button.active { background: var(--accent); color: #fff; }

.policy h2 {
  font-size: 22px;
  margin: 44px 0 14px;
  padding-top: 8px;
}
.policy h2:first-of-type { margin-top: 0; }
.policy p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 14px; }
.policy ul { color: var(--ink-soft); font-size: 16.5px; padding-inline-start: 22px; margin: 0 0 14px; }
.policy li { margin-bottom: 8px; }
.policy a { color: var(--accent); font-weight: 600; }
.policy strong { color: var(--ink); }

.policy-en { display: none; direction: ltr; text-align: left; }
.policy-en.active { display: block; }
.policy-ar.hidden { display: none; }

.policy-note {
  margin-top: 40px;
  background: var(--accent-soft);
  border: 1px solid #d4e3fb;
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 15.5px;
  color: var(--accent-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 999px;
  }
  .section { padding-block: 64px; }
  .game-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .game-figure { max-width: 480px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery .wide { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .hero-inner { padding-block: 84px; }
  .hero-panel { padding: 26px 20px 30px; border-radius: 22px; }
  .store-badge { min-width: 0; flex: 1; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery .wide, .gallery .tall { grid-column: auto; grid-row: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { justify-content: flex-start; }
}
