:root {
  --bg: #f6f8fb;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-2: rgba(91, 110, 127, 0.08);
  --surface-3: rgba(91, 110, 127, 0.12);
  --border: rgba(91, 110, 127, 0.16);
  --border-strong: rgba(91, 110, 127, 0.28);
  --text: #22313f;
  --muted: #5b6e7f;
  --muted-2: #728394;
  --brand: #e81a3b;
  --brand-dark: #bf1430;
  --navy: #5b6e7f;
  --navy-soft: #6f8394;
  --success: #1fa971;
  --warning: #d48f14;
  --shadow: 0 24px 60px rgba(91, 110, 127, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(232, 26, 59, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #f2f6fa 100%);
  overflow: hidden;
}

body.is-locked {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 110, 127, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 110, 127, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
  opacity: 0.35;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition: filter 220ms ease, transform 220ms ease, opacity 220ms ease;
}

body.is-locked .app-shell {
  filter: blur(18px);
  transform: scale(1.015);
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.access-gate[aria-hidden="true"] {
  display: none;
}

.access-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(232, 26, 59, 0.2), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(91, 110, 127, 0.3), transparent 28%),
    linear-gradient(135deg, rgba(11, 19, 30, 0.9), rgba(24, 37, 52, 0.86));
}

.access-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 34px;
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(16, 23, 34, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
  color: #f8fbff;
}

.access-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(232, 26, 59, 0.42), rgba(91, 110, 127, 0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-title {
  margin: 22px 0 12px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.access-text {
  margin: 0;
  color: rgba(240, 246, 255, 0.82);
  line-height: 1.7;
  font-size: 1rem;
}

.access-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.access-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.access-input-wrap i {
  color: rgba(255, 255, 255, 0.78);
}

.access-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 1rem;
}

.access-input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.access-button {
  min-height: 58px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), #ff6f86 62%, #ff9cab 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(232, 26, 59, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.access-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(232, 26, 59, 0.34);
  filter: saturate(1.05);
}

.access-feedback {
  min-height: 22px;
  margin: 12px 0 0;
  color: #ffb7c4;
  font-size: 0.92rem;
}

.access-feedback.visible {
  font-weight: 600;
}

.access-hint {
  margin: 12px 0 0;
  color: rgba(240, 246, 255, 0.62);
  font-size: 0.84rem;
}

.topbar,
.bottombar {
  position: relative;
  z-index: 5;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
}

.topbar-inner,
.bottombar-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
}

.bottombar {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 150px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(91, 110, 127, 0.12);
  padding: 6px 12px;
}

.brand-logo {
  max-width: 100%;
  max-height: 28px;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.brand-title {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-center,
.bottombar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(91, 110, 127, 0.12);
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), #ff6d85 75%, #5b6e7f 100%);
  box-shadow: 0 0 16px rgba(232, 26, 59, 0.22);
  transition: width 220ms ease;
}

.nav-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(91, 110, 127, 0.2);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-dot.active {
  transform: scale(1.45);
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(232, 26, 59, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.lang-link,
.secondary-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.lang-link:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: #ffffff;
}

.button-icon {
  width: 42px;
  padding: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(91, 110, 127, 0.06);
  border: 1px solid var(--border);
}

.lang-link {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.lang-link.active {
  background: linear-gradient(135deg, var(--brand), #ff6680);
  box-shadow: 0 12px 24px rgba(232, 26, 59, 0.2);
  color: #ffffff;
}

.main-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.deck {
  width: min(100%, var(--max-width));
  min-height: min(760px, calc(100vh - 180px));
  position: relative;
}

.slide-frame {
  position: relative;
  min-height: min(760px, calc(100vh - 180px));
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.96)),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  overflow: auto;
}

.slide-frame,
.topbar,
.bottombar {
  box-shadow: 0 18px 44px rgba(91, 110, 127, 0.08);
}

.slide-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(232, 26, 59, 0.05), transparent 20%),
    radial-gradient(circle at 84% 20%, rgba(91, 110, 127, 0.05), transparent 24%);
}

.slide-frame::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 160px;
  height: 48px;
  background: url("https://www.bdo-info.ma/images/logo-dark.png") center/contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.slide {
  position: relative;
  z-index: 1;
  padding: 40px;
  min-height: 100%;
  animation: fade-up 260ms ease;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  min-height: 100%;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.panel,
.card,
.metric,
.quote-block,
.table-card,
.timeline-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}

.hero-copy {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(160deg, rgba(91, 110, 127, 0.04) 0%, rgba(232, 26, 59, 0.08) 100%),
    rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(91, 110, 127, 0.08);
  border: 1px solid rgba(91, 110, 127, 0.14);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.slide-title {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 3.7vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 13ch;
}

.slide-subtitle {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
}

.hero-subtitle {
  max-width: 720px;
  font-size: 1.06rem;
}

.metrics-grid,
.card-grid,
.split-grid,
.table-grid,
.benefit-grid {
  display: grid;
  gap: 18px;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.metric {
  padding: 18px;
}

.metric-value {
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.metric-label {
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.panel,
.table-card,
.timeline-card {
  padding: 20px;
}

.card h3,
.panel h3,
.table-card h3,
.timeline-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.card p,
.panel p,
.table-card p,
.timeline-card p,
.card li,
.panel li,
.table-card li,
.timeline-card li {
  color: var(--muted);
  line-height: 1.65;
}

.accent {
  color: var(--brand-dark);
}

.bullet-list,
.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.bullet-list li + li {
  margin-top: 10px;
}

.bullet-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #ff8ba2);
  margin-top: 10px;
  flex: 0 0 auto;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(91, 110, 127, 0.08);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text);
}

.quote-block {
  padding: 20px;
  border-left: 4px solid var(--brand);
}

.quote-block p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}

.section-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-title {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
}

.section-note {
  max-width: 430px;
  color: var(--muted-2);
  font-size: 0.94rem;
  line-height: 1.6;
}

.split-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

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

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

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(91, 110, 127, 0.12);
  vertical-align: top;
}

.comparison-table th {
  color: var(--muted-2);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table td strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.status-rail {
  display: grid;
  gap: 14px;
}

.status-row {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(91, 110, 127, 0.05);
  border: 1px solid var(--border);
}

.status-row strong {
  display: block;
  margin-bottom: 6px;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.status-label.good::before,
.status-label.warn::before,
.status-label.alert::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.status-label.good::before {
  background: var(--success);
}

.status-label.warn::before {
  background: var(--warning);
}

.status-label.alert::before {
  background: var(--brand);
}

.score-list {
  display: grid;
  gap: 16px;
}

.score-row {
  display: grid;
  gap: 8px;
}

.score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-title {
  font-weight: 700;
}

.score-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(91, 110, 127, 0.12);
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #5b6e7f);
}

.score-caption {
  font-size: 0.84rem;
  color: var(--muted-2);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-year {
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 26, 59, 0.16), rgba(91, 110, 127, 0.18));
  text-align: center;
  font-weight: 800;
}

.timeline-body {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 26, 59, 0.06), rgba(91, 110, 127, 0.06));
  border: 1px solid rgba(91, 110, 127, 0.12);
  font-size: 0.88rem;
  color: var(--text);
}

.highlight-card {
  background:
    linear-gradient(135deg, rgba(91, 110, 127, 0.06), rgba(232, 26, 59, 0.06)),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(91, 110, 127, 0.08);
}

.hero-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.signal-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(91, 110, 127, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.signal-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.signal-card strong {
  font-size: 0.98rem;
  line-height: 1.45;
}

.hero-visual-panel {
  justify-content: space-between;
  align-items: stretch;
}

.map-embed-shell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(91, 110, 127, 0.12);
  background: rgba(255, 255, 255, 0.88);
  min-height: 380px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.geo-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
}

.geo-map-head h3 {
  margin: 0;
  font-size: 1.02rem;
}

.geo-map-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.map-embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  flex: 1;
  border: 0;
  filter: grayscale(0.1) contrast(1.02);
}

.hero-metrics-grid {
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-label {
  color: var(--muted-2);
  font-size: 0.9rem;
}

.slide-meta {
  font-size: 0.86rem;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(91, 110, 127, 0.08);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .hero-signal-grid,
  .hero-metrics-grid,
  .card-grid.three,
  .card-grid.four,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .main-stage {
    padding: 16px 10px;
  }

  .topbar-inner,
  .bottombar-inner {
    width: min(calc(100% - 20px), var(--max-width));
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 0;
    min-height: auto;
  }

  .topbar-center,
  .bottombar-center {
    order: 3;
    width: 100%;
  }

  .slide {
    padding: 24px;
  }

  .card-grid.two,
  .card-grid.three,
  .card-grid.four,
  .hero-signal-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics-grid {
    grid-template-columns: 1fr;
  }

  .map-embed-shell {
    min-height: 340px;
  }

  .map-embed {
    min-height: 280px;
  }

  .deck,
  .slide-frame {
    min-height: calc(100vh - 208px);
  }

  .access-card {
    padding: 26px;
    border-radius: 26px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .access-gate {
    padding: 14px;
  }

  .access-card {
    padding: 22px;
  }

  .access-title {
    font-size: 2rem;
  }

  .brand-title {
    white-space: normal;
  }

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

  .lang-switch {
    flex: 1;
  }

  .lang-link {
    flex: 1;
  }

  .button-label {
    display: none;
  }

  .slide-title {
    font-size: 2rem;
  }
}
