:root {
  --navy: #18355f;
  --navy-2: #0f2545;
  --teal: #3f9bb5;
  --teal-2: #317b91;
  --teal-soft: #eaf8fb;
  --pink: #eca0bd;
  --pink-2: #f7bfd6;
  --pink-soft: #fff0f7;
  --white: #ffffff;
  --bg: #f7fbfd;
  --text: #152843;
  --muted: #69778a;
  --line: #dce8ef;
  --shadow: 0 24px 60px rgba(24, 53, 95, 0.10);
  --shadow-soft: 0 16px 35px rgba(63, 155, 181, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Tajawal', system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(236, 160, 189, 0.24), transparent 26%),
    radial-gradient(circle at top left, rgba(63, 155, 181, 0.18), transparent 28%),
    linear-gradient(180deg, #fbfdff, #f3f8fb);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 53, 95, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 53, 95, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: -2;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 34px 0;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
  animation: floatOrb 13s ease-in-out infinite;
}

.orb-one {
  width: 180px;
  height: 180px;
  background: var(--pink);
  top: 14%;
  right: -60px;
}

.orb-two {
  width: 140px;
  height: 140px;
  background: var(--teal);
  top: 54%;
  left: -50px;
  animation-delay: 2s;
}

.orb-three {
  width: 90px;
  height: 90px;
  background: var(--navy);
  bottom: 10%;
  right: 10%;
  animation-delay: 4s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(220, 232, 239, 0.9);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.1rem;
  color: var(--navy);
}

.brand small {
  color: var(--muted);
  margin-top: -4px;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a,
.primary-link,
.ghost-link {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-links a {
  padding: 9px 14px;
  color: var(--navy);
  background: rgba(63, 155, 181, 0.08);
}

.nav-links a:hover,
.primary-link:hover,
.ghost-link:hover {
  transform: translateY(-2px);
}

.primary-link {
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: white;
  padding: 11px 18px;
  box-shadow: var(--shadow-soft);
}

.ghost-link {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 11px 18px;
}

.hero {
  padding-top: 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.75fr;
  gap: 18px;
  align-items: stretch;
}

.hero-card,
.summary-card {
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 38px;
  color: white;
  background:
    radial-gradient(circle at 8% 22%, rgba(236, 160, 189, 0.5), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--navy), var(--teal-2));
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(236, 160, 189, 0.28);
  left: -80px;
  bottom: -100px;
  animation: pulseSoft 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -1px;
}

.hero p {
  max-width: 70ch;
  margin: 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.summary-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-logo {
  width: 118px;
  height: 118px;
  object-fit: contain;
  margin-bottom: 14px;
}

.summary-card h2,
.summary-card p {
  margin: 0;
}

.summary-card h2 {
  font-size: 1.7rem;
  color: var(--navy);
}

.summary-card p {
  margin-top: 8px;
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--teal));
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.section-title h2,
.section-title p {
  margin: 0;
}

.section-title h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.2;
  color: var(--navy);
}

.section-title p {
  margin-top: 5px;
  color: var(--muted);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.kpi-card,
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.kpi-card::before,
.card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--pink));
}

.kpi-label {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1;
  font-weight: 900;
  color: var(--navy);
}

.kpi-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.page-panels,
.split,
.recommendation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card-head h3,
.card-head p {
  margin: 0;
}

.card-head h3,
.card h3 {
  color: var(--navy);
  font-size: 1.45rem;
}

.card-head p {
  color: var(--muted);
  margin-top: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-2);
  font-weight: 900;
  white-space: nowrap;
}

.pill.positive {
  background: var(--teal-soft);
}

.pill.warning {
  background: var(--pink-soft);
  color: #bb5f84;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(63, 155, 181, 0.35);
  box-shadow: 0 12px 24px rgba(24, 53, 95, 0.07);
}

.rank-item.no-views {
  grid-template-columns: 44px 1fr;
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: white;
  font-weight: 900;
}

.rank-item.low .rank-number {
  background: linear-gradient(135deg, #c27096, var(--pink));
}

.rank-title strong {
  display: block;
  color: var(--navy);
  line-height: 1.45;
}

.rank-title small {
  color: var(--muted);
  direction: ltr;
  text-align: right;
  margin-top: 2px;
}

.rank-views {
  font-weight: 900;
  color: var(--teal-2);
  white-space: nowrap;
}

.bars {
  display: grid;
  gap: 15px;
}

.bar-row {
  display: grid;
  grid-template-columns: 135px 1fr 90px;
  gap: 12px;
  align-items: center;
}

.bar-label,
.bar-value {
  font-weight: 900;
}

.bar-label {
  color: var(--navy);
}

.bar-value {
  color: var(--teal-2);
  text-align: left;
  direction: ltr;
}

.bar-track {
  height: 16px;
  background: #eaf2f6;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--pink));
  transition: width 1.4s cubic-bezier(.22, 1, .36, 1);
}

.donut-layout {
  display: grid;
  place-items: center;
  gap: 20px;
}

.donut {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(var(--teal) 0 100%);
  box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.26), var(--shadow-soft);
}

.donut::before {
  content: "";
  position: absolute;
  inset: 30px;
  background: white;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 1;
}

.donut-center strong,
.donut-center span {
  display: block;
}

.donut-center strong {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--navy);
}

.donut-center span {
  color: var(--muted);
  font-weight: 800;
}

.legend {
  width: 100%;
  display: grid;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.legend-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.dot {
  width: 13px;
  height: 13px;
  display: inline-block;
  border-radius: 50%;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: #f9fcfe;
  font-weight: 900;
}

tbody tr:hover {
  background: #fbfdff;
}

.country-bars .bar-row {
  grid-template-columns: 120px 1fr 90px;
}

.insights {
  display: grid;
  gap: 14px;
}

.insight-box,
.tip {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.insight-box strong,
.insight-box span,
.tip strong,
.tip span {
  display: block;
}

.insight-box strong,
.tip strong {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.insight-box span,
.tip span,
.note {
  color: var(--muted);
}


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

.wide-card {
  grid-column: 1 / -1;
}

.accent-teal::before {
  background: linear-gradient(180deg, var(--teal), var(--navy));
}

.accent-pink::before {
  background: linear-gradient(180deg, var(--pink), var(--navy));
}

.accent-navy::before {
  background: linear-gradient(180deg, var(--navy), var(--teal));
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}

.clean-list li {
  position: relative;
  padding: 12px 44px 12px 12px;
  border-radius: 18px;
  background: #fbfdff;
  border: 1px solid var(--line);
}

.clean-list li::before {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-2);
  font-weight: 900;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.site-footer {
  padding: 26px 0 38px;
  color: var(--muted);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.08); }
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.14); opacity: 1; }
}

@media (max-width: 1024px) {
  .hero-grid,
  .kpi-grid,
  .page-panels,
  .split,
  .recommendation-grid,
  .tips-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .nav-wrap,
  .nav-links,
  .hero-grid,
  .kpi-grid,
  .page-panels,
  .split,
  .recommendation-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-card,
  .summary-card,
  .card,
  .kpi-card {
    border-radius: 24px;
    padding: 20px;
  }

  .rank-item,
  .bar-row,
  .country-bars .bar-row {
    grid-template-columns: 1fr;
  }

  .rank-number {
    width: 38px;
    height: 38px;
  }

  .bar-value {
    text-align: right;
  }

  .donut {
    width: 210px;
    height: 210px;
  }
}

@media print {
  .site-header,
  .bg-orb {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section {
    padding: 18px 0;
    break-inside: avoid;
  }

  .card,
  .kpi-card,
  .hero-card,
  .summary-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
