/*
 * فكّها — landing pages.
 *
 * Deliberately its own stylesheet rather than reusing the Gahez one. Gahez is a light,
 * corporate B2B product; Fokkaha is a dark puzzle game. Sharing a stylesheet would drag
 * one identity onto the other, and these pages only happen to share a domain.
 *
 * The palette is lifted straight from the game's design system so the site and the app
 * look like the same thing.
 */

:root {
  --bg: #0B0E1C;
  --bg-alt: #141A33;
  --surface: #1B2140;
  --surface-2: #232B4E;
  --primary: #FFB020;
  --primary-ink: #2A1B00;
  --success: #3DD68C;
  --text: #F2F4FF;
  --text-dim: #9AA3C7;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Arabic is the primary language of these pages, so RTL is the default, not a mode. */
[dir="rtl"] { text-align: right; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- header */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 28, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand b { font-size: 1.15rem; letter-spacing: .2px; }

nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--text-dim); font-size: .95rem; }
nav a:hover { color: var(--text); text-decoration: none; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 72px 0 84px;
  overflow: hidden;
}

/* The illustration sits behind everything at low opacity and is masked to nothing at the
   bottom, so text never has to fight it for contrast. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/backdrop.jpg") center/cover no-repeat;
  opacity: .38;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}

.hero > * { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  color: var(--text-dim);
  margin-bottom: 30px;
  max-width: 46ch;
}

.art { text-align: center; }
.art img {
  width: min(100%, 420px);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}

/* ---------------------------------------------------------------- buttons */

.buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 12px 30px rgba(255, 176, 32, .28);
}
.btn-primary:hover { box-shadow: 0 16px 38px rgba(255, 176, 32, .38); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(255, 255, 255, .12);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn small { display: block; font-size: .74rem; opacity: .75; font-weight: 500; }

/* A button for a store that is not live yet. Visibly present, visibly not ready - which
   is more honest than hiding it and more useful than a dead link. */
.btn[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

/* ---------------------------------------------------------------- sections */

section { padding: 68px 0; }
section.tint { background: var(--bg-alt); }

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin-bottom: 14px;
}

.sub { color: var(--text-dim); margin-bottom: 34px; max-width: 62ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: .96rem; }

/* ---------------------------------------------------------------- steps */

.steps { counter-reset: step; display: grid; gap: 16px; }

.step {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  padding: 22px 26px 22px 26px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: -14px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
}

.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: .95rem; }

/* ---------------------------------------------------------------- notice */

.notice {
  border-inline-start: 4px solid var(--primary);
  background: rgba(255, 176, 32, .07);
  border-radius: 12px;
  padding: 18px 22px;
  color: var(--text-dim);
  margin: 26px 0;
}
.notice b { color: var(--text); }

/* ---------------------------------------------------------------- legal */

.doc { max-width: 78ch; }
.doc h2 { margin-top: 40px; }
.doc h3 { margin-top: 26px; margin-bottom: 6px; font-size: 1.08rem; }
.doc p, .doc li { color: var(--text-dim); }
.doc ul { margin: 10px 0 0; padding-inline-start: 24px; }
.doc li { margin-bottom: 6px; }

.updated {
  display: inline-block;
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .86rem;
  color: var(--text-dim);
}

/* ---------------------------------------------------------------- footer */

footer {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 34px 0;
  color: var(--text-dim);
  font-size: .92rem;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.foot nav { gap: 18px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero p.lead { max-width: none; }
  .art { order: -1; }
  .art img { width: min(78%, 320px); }
  .step { padding-inline-start: 30px; }
  .step::before { inset-inline-start: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
