/* 044 · Footfall (أثر المتسوق) — 1:1 Reference-Faithful Spatial Retail Analytics Stylesheet */
:root {
  --ff-bg: #070b12;
  --ff-card: #0c131e;
  --ff-card2: #101926;
  --ff-fg: #f4f7fa;
  --ff-muted: #8b9bb0;
  --ff-cyan: #2ce6d3;
  --ff-amber: #ff9d3b;
  --ff-line: rgba(255, 255, 255, 0.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ff-bg); color: var(--ff-fg); }

body {
  margin: 0;
  background: var(--ff-bg);
  color: var(--ff-fg);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.68;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, a, button, span, input, select { letter-spacing: 0; }
[dir="ltr"] { font-family: 'JetBrains Mono', monospace; }

/* Sticky Glass Header */
.ff-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 18, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ff-line);
  padding: 14px clamp(18px, 3.5vw, 48px);
}

.ff-nav {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ff-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Readex Pro', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.ff-links { display: flex; align-items: center; gap: 20px; }
.ff-links a { color: var(--ff-muted); text-decoration: none; font-size: 0.85rem; white-space: nowrap; }
.ff-links a:hover { color: #ffffff; }

.ff-pill-cyan {
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: var(--ff-cyan);
  color: #070b12;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.ff-pill-dark {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ff-line);
  background: var(--ff-card);
  color: var(--ff-fg);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
}

/* Section 1: Holographic City Footfall Hero */
.ff-hero {
  position: relative;
  min-height: calc(100dvh - 69px);
  padding: 52px clamp(20px, 4vw, 56px) 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--ff-line);
}

.ff-hero-bg { position: absolute; inset: 0; z-index: 0; }
.ff-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }

.ff-walk-wm {
  position: absolute;
  bottom: 8%;
  inset-inline-end: 3%;
  z-index: 1;
  font-family: 'Readex Pro', sans-serif;
  font-weight: 800;
  font-size: clamp(5rem, 13vw, 13rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(44, 230, 211, 0.18);
  pointer-events: none;
}

.ff-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to left, rgba(7, 11, 18, 0.92) 0%, rgba(7, 11, 18, 0.58) 50%, rgba(7, 11, 18, 0.2) 100%);
}

.ff-hero-grid {
  position: relative;
  z-index: 5;
  max-width: 1340px;
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: center;
}

.ff-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(12, 19, 30, 0.85);
  border: 1px solid var(--ff-line);
  font-size: 0.74rem;
  color: var(--ff-fg);
  margin-bottom: 16px;
}

.ff-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ff-amber); }

.ff-h1 {
  margin: 0 0 16px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  font-weight: 700;
  line-height: 1.08;
}

.ff-cyan { color: var(--ff-cyan); font-style: normal; }

.ff-addr-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
  max-width: 540px;
}

.ff-addr-bar input {
  flex: 1;
  min-width: 210px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 19, 30, 0.88);
  color: #ffffff;
  font-family: inherit;
}

/* Thermal Lens Telemetry Card */
.ff-lens-card {
  justify-self: end;
  width: min(330px, 100%);
  background: rgba(12, 19, 30, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(44, 230, 211, 0.35);
  border-radius: 18px;
  padding: 20px;
}

.ff-hero-hud {
  position: relative;
  z-index: 5;
  max-width: 1340px;
  width: 100%;
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--ff-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--ff-muted);
}

/* Shared Dark Section */
.ff-sec {
  scroll-margin-top: 72px;
  border-bottom: 1px solid var(--ff-line);
  padding: clamp(72px, 8vw, 108px) clamp(20px, 4vw, 56px);
}

.ff-wrap { max-width: 1320px; margin: 0 auto; }

.ff-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--ff-cyan);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.ff-h2 {
  margin: 0 0 14px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.16;
}

.ff-grid-3 {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ff-card {
  background: var(--ff-card);
  border: 1px solid var(--ff-line);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ff-card.is-cyan-edge { border-inline-start: 3px solid var(--ff-cyan); }
.ff-card.is-amber-edge { border-inline-start: 3px solid var(--ff-amber); }

/* 04 · #report Inverted White Paper Sample Document */
.ff-paper {
  margin-top: 34px;
  background: #ffffff;
  color: #070b12;
  border-radius: 24px;
  padding: clamp(26px, 4vw, 44px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.ff-paper-kpis {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.ff-paper-kpi {
  padding: 16px;
  border-inline-end: 1px solid #e2e8f0;
}

.ff-paper-kpi:last-child { border-inline-end: 0; }

.ff-bars-24 {
  height: 120px;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 4px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.ff-bar-col {
  background: #0d9488;
  border-radius: 3px 3px 0 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ff-bar-col:hover, .ff-bar-col.is-hot {
  background: var(--ff-amber);
}

/* City-Segmented Pricing Pills */
.ff-city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 12px;
}

.ff-city-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ff-line);
  background: var(--ff-card);
  color: var(--ff-muted);
  font-family: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.ff-city-btn.is-active {
  background: var(--ff-cyan);
  border-color: var(--ff-cyan);
  color: #070b12;
  font-weight: 700;
}

.ff-day-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ff-line);
  background: var(--ff-card);
  color: var(--ff-muted);
  font-family: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.ff-day-btn.is-active {
  background: var(--ff-amber);
  border-color: var(--ff-amber);
  color: #070b12;
  font-weight: 700;
}

.ff-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--ff-line);
  background: var(--ff-bg);
  color: #ffffff;
  font-family: inherit;
}

.ff-footer { padding: 38px clamp(20px, 4vw, 56px); background: #05080d; }

@media (max-width: 720px) {
  .ff-links { display: none; }
  .ff-hero-grid, .ff-grid-3, .ff-paper-kpis { grid-template-columns: 1fr; }
}
