﻿:root {
  --font-ar: "Cairo", sans-serif;
  --font-en: "Sora", sans-serif;
  --font-base: var(--font-ar);
  --font-display: var(--font-ar);
  --bg: #f4f4ef;
  --surface: #ffffff;
  --surface-soft: #f8fbfa;
  --ink: #102127;
  --muted: #4f6167;
  --accent: #006d77;
  --accent-2: #ff7b00;
  --accent-3: #8ecae6;
  --line: #d8e1dc;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --fs-body: 18px;
  --lh-body: 1.7;
  --fs-h1: 46px;
  --fs-h2: 32px;
  --fs-h3: 22px;

  --shadow-soft: 0 14px 36px rgba(16, 33, 39, 0.1);
  --shadow-focus: 0 10px 28px rgba(0, 109, 119, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[lang="ar"] {
  --font-base: var(--font-ar);
  --font-display: var(--font-ar);
}

html[lang="en"] {
  --font-base: var(--font-en);
  --font-display: var(--font-en);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 109, 119, 0.12), transparent 35%),
    radial-gradient(circle at 15% 15%, rgba(255, 123, 0, 0.1), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

h1,
h2,
h3,
.brand,
.kicker,
.btn,
.sticky-tabs a,
.metric-card p,
.topbar nav a,
.lang-switch .lang {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 1.2;
}

h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: 1.3;
}

h3 {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.4;
}

p,
li {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  width: min(1200px, 92vw);
  margin: var(--space-4) auto var(--space-7);
  display: grid;
  gap: var(--space-3);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 6vw;
  background: rgba(244, 244, 239, 0.94);
  border-bottom: 1px solid rgba(216, 225, 220, 0.9);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 800;
  font-size: 1.14rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.topbar nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.topbar nav a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.topbar nav a:hover,
.topbar nav a.active {
  color: var(--ink);
  background: rgba(0, 109, 119, 0.1);
}

.global-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch .lang {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid rgba(0, 109, 119, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  transition: all 180ms ease;
}

.lang-switch .lang:hover {
  border-color: rgba(0, 109, 119, 0.45);
  color: var(--ink);
}

.lang-switch .lang.active {
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent), #0f4c5c);
  border-color: transparent;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 225, 220, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero,
.metrics,
.story,
.impact,
.case-preview,
.analytics,
.embed-report,
footer,
.case-list-page,
.case-hero,
.case-section,
.case-callout,
.case-nav-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 225, 220, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero {
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -90px;
  inset-block-end: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: conic-gradient(from 170deg, rgba(142, 202, 230, 0.3), rgba(0, 109, 119, 0.2), rgba(255, 123, 0, 0.24));
  filter: blur(18px);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 var(--space-1);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.hero p {
  margin: var(--space-2) 0 0;
  color: var(--muted);
}

.hero-cta {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.hero-panel {
  background: linear-gradient(170deg, rgba(0, 109, 119, 0.08), rgba(255, 123, 0, 0.09));
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 109, 119, 0.16);
  padding: var(--space-3);
}

.hero-panel h2 {
  margin-bottom: var(--space-2);
  font-size: 1.15rem;
}

.hero-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-1);
}

.hero-panel li {
  display: grid;
}

.hero-panel span {
  font-size: 0.84rem;
  color: var(--muted);
}

.hero-panel strong {
  font-size: 0.96rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent), #0f4c5c);
  box-shadow: var(--shadow-focus);
}

.btn-ghost {
  color: var(--accent);
  border-color: rgba(0, 109, 119, 0.25);
  background: rgba(0, 109, 119, 0.08);
}

.btn-ghost:hover {
  background: rgba(0, 109, 119, 0.16);
}

.btn-download {
  color: #ffffff;
  background: linear-gradient(120deg, #0f4c5c, var(--accent-2));
  box-shadow: var(--shadow-focus);
}

.metrics {
  padding: var(--space-3);
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: var(--space-2);
}

.metric-card {
  border-radius: var(--radius-md);
  padding: var(--space-2);
  border: 1px solid rgba(16, 33, 39, 0.08);
  background: linear-gradient(160deg, rgba(142, 202, 230, 0.18), rgba(255, 123, 0, 0.1));
}

.metric-card p {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
}

.metric-card span {
  font-size: 0.92rem;
  color: var(--muted);
}

.story,
.impact,
.case-preview,
.analytics,
.embed-report,
footer,
.case-list-page,
.case-hero,
.case-section,
.case-callout,
.case-nav-box {
  padding: var(--space-4);
}

.section-head {
  margin-bottom: var(--space-2);
}

.section-head h2 {
  margin-top: var(--space-1);
}

.timeline {
  display: grid;
  gap: var(--space-2);
}

.timeline-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 109, 119, 0.16);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(142, 202, 230, 0.16));
  padding: var(--space-3);
  position: relative;
  overflow: hidden;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: flex-start;
}

.timeline-top h3 {
  font-size: 1.1rem;
}

.timeline-top span {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.timeline-item p {
  margin: var(--space-1) 0 0;
  color: var(--muted);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: var(--space-2);
}

.chart-grid article,
.tables-wrap article,
.case-preview-card,
.case-card,
.case-mini-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 109, 119, 0.15);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(0, 109, 119, 0.08));
  padding: var(--space-2);
}

.chart-grid h3,
.tables-wrap h3,
.case-preview-card h3,
.case-card h3,
.case-mini-card h3 {
  margin-bottom: var(--space-1);
}

.chart {
  min-height: 300px;
}

.case-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: var(--space-2);
}

.case-preview-card p,
.case-card p {
  margin-top: var(--space-1);
  color: var(--muted);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: var(--space-2) 0;
}

.case-tags span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(0, 109, 119, 0.22);
  background: rgba(0, 109, 119, 0.08);
}

.analytics {
  display: grid;
  gap: var(--space-2);
}

.demo-note,
.case-callout {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 123, 0, 0.25);
  background: linear-gradient(160deg, rgba(255, 123, 0, 0.12), rgba(255, 255, 255, 0.94));
  padding: var(--space-2);
}

.lab-controls {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: var(--space-1);
  align-items: end;
}

.upload-box {
  display: grid;
  gap: 6px;
  border: 1px dashed rgba(0, 109, 119, 0.5);
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, rgba(0, 109, 119, 0.08), rgba(142, 202, 230, 0.16));
  padding: var(--space-1);
  min-height: 66px;
}

.upload-box span {
  font-size: 0.82rem;
  color: var(--muted);
}

.upload-box input {
  width: 100%;
}

.control {
  display: grid;
  gap: 6px;
}

.control label {
  font-size: 0.8rem;
  color: var(--muted);
}

select,
input[type="url"] {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 0.95rem;
}

select:focus,
input[type="url"]:focus,
button:focus,
a:focus {
  outline: 2px solid rgba(0, 109, 119, 0.32);
  outline-offset: 2px;
}

.profile-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: var(--space-1);
}

.profile-cards article {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 109, 119, 0.14);
  background: rgba(255, 255, 255, 0.92);
  padding: var(--space-2);
}

.profile-cards p {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.profile-cards span {
  font-size: 0.88rem;
  color: var(--muted);
}

.analytics-chart {
  min-height: 380px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 109, 119, 0.13);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(142, 202, 230, 0.12));
}

.tables-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.table-container {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 33, 39, 0.09);
  background: rgba(255, 255, 255, 0.96);
  overflow: auto;
  max-height: 280px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: start;
  font-size: 0.84rem;
  padding: 8px;
  border-bottom: 1px solid rgba(16, 33, 39, 0.08);
}

th {
  position: sticky;
  top: 0;
  background: #edf4f0;
  z-index: 1;
}

.embed-note {
  margin: 0;
  color: var(--muted);
}

.embed-controls {
  margin-top: var(--space-2);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1);
}

#powerBiFrame {
  width: 100%;
  border: 1px solid rgba(0, 109, 119, 0.2);
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
  min-height: 0;
  height: 0;
  opacity: 0;
  transition: all 220ms ease;
}

#powerBiFrame.active {
  min-height: 500px;
  height: 500px;
  opacity: 1;
}

footer {
  text-align: center;
}

footer h2 {
  margin-bottom: var(--space-1);
}

footer p {
  margin: 0;
  color: var(--muted);
}

.copy {
  margin-top: var(--space-2);
  font-size: 0.84rem;
}

.case-main {
  width: min(1160px, 92vw);
  margin: var(--space-4) auto var(--space-7);
  display: grid;
  gap: var(--space-2);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--accent);
}

.case-hero {
  padding: var(--space-4);
}

.case-hero h1 {
  margin-top: var(--space-1);
}

.case-hero p {
  margin-top: var(--space-2);
  color: var(--muted);
}

.case-nav-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
}

.case-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: var(--space-2);
}

.case-card {
  padding: var(--space-3);
}

.case-card .btn {
  margin-top: var(--space-2);
}

.case-layout {
  display: grid;
  gap: var(--space-2);
}

.sticky-tabs {
  position: sticky;
  top: 84px;
  z-index: 80;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 109, 119, 0.2);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 22px rgba(16, 33, 39, 0.08);
}

.sticky-tabs a {
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 109, 119, 0.2);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 180ms ease;
}

.sticky-tabs a.active,
.sticky-tabs a:hover {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent), #0f4c5c);
}

.case-section {
  padding: var(--space-4);
}

.case-section h2 {
  margin-bottom: var(--space-2);
}

.case-section h3 {
  margin-top: var(--space-2);
}

.case-section ul,
.case-section ol {
  margin: var(--space-1) 0 0;
  padding-inline-start: 1.2em;
}

.case-section li + li {
  margin-top: 6px;
}

.case-callout {
  margin: var(--space-2) 0;
}

.case-callout strong {
  display: block;
  margin-bottom: 4px;
}

.flow-diagram {
  margin-top: var(--space-2);
  display: grid;
  gap: var(--space-1);
}

.flow-row {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.flow-step {
  min-width: 180px;
  flex: 1 1 180px;
  border-radius: 12px;
  border: 1px solid rgba(0, 109, 119, 0.2);
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-1) var(--space-2);
  text-align: center;
  font-weight: 700;
}

.flow-arrow {
  font-weight: 800;
  color: var(--accent);
}

.download-grid {
  margin-top: var(--space-2);
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: var(--space-1);
}

.takeaways {
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 109, 119, 0.2);
  background: linear-gradient(160deg, rgba(0, 109, 119, 0.1), rgba(255, 255, 255, 0.95));
  padding: var(--space-3);
}

.takeaways h3 {
  margin-bottom: var(--space-1);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
  animation: drift 8s ease-in-out infinite alternate;
}

.orb-a {
  top: -80px;
  right: -80px;
  background: rgba(255, 123, 0, 0.42);
}

.orb-b {
  bottom: -80px;
  left: -60px;
  background: rgba(0, 109, 119, 0.3);
  animation-delay: 1.4s;
}

.reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  transition: opacity 450ms ease, transform 450ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-20px, 20px) scale(1.12);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .chart-grid,
  .case-preview-grid,
  .case-list-grid {
    grid-template-columns: 1fr;
  }

  .lab-controls {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .tables-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
  --font-ar: "Cairo", sans-serif;
  --font-en: "Sora", sans-serif;
  --font-base: var(--font-ar);
  --font-display: var(--font-ar);
    --fs-h1: 36px;
    --fs-h2: 28px;
    --fs-h3: 21px;
    --fs-body: 17px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .topbar nav {
    width: 100%;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .profile-cards {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .embed-controls {
    grid-template-columns: 1fr;
  }

  #powerBiFrame.active {
    min-height: 380px;
    height: 380px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .sticky-tabs {
    top: 122px;
  }
}

@media (max-width: 560px) {
  :root {
  --font-ar: "Cairo", sans-serif;
  --font-en: "Sora", sans-serif;
  --font-base: var(--font-ar);
  --font-display: var(--font-ar);
    --fs-h1: 30px;
    --fs-h2: 24px;
    --fs-h3: 20px;
    --fs-body: 16px;
  }

  .lab-controls,
  .metrics,
  .profile-cards {
    grid-template-columns: 1fr;
  }

  .global-actions {
    width: 100%;
    justify-content: space-between;
  }

  .sticky-tabs {
    top: 154px;
  }
}

