:root {
  --navy: #002347;
  --navy-deep: #001a35;
  --gold: #c5a059;
  --gold-dark: #9a7a3d;
  --cream: #f5f3ee;
  --cream-dark: #ebe6dc;
  --parchment: #f0ebe3;
  --text: #1c1915;
  --muted: #4a433a;
  --surface: #fffcf7;
  --border: #d9d0c3;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 22px 55px rgba(0, 26, 53, 0.18);
  --shadow-soft: 0 12px 32px rgba(28, 25, 21, 0.08);
  --header-h: 72px;
  --container: min(1140px, calc(100% - clamp(1rem, 5vw, 3rem)));
  --section-y: clamp(3rem, 8vw, 5.75rem);
  --font-display: "Amiri", "Times New Roman", serif;
  --font-body: "Tajawal", system-ui, sans-serif;
  --font-en: "Cinzel", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--cream);
  background-image: radial-gradient(
      circle at 20% 10%,
      rgba(197, 160, 89, 0.07) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 35, 71, 0.06) 0%,
      transparent 50%
    );
  color: var(--text);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
.hero-card-title {
  font-family: var(--font-display);
  font-weight: 700;
}

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

img {
  max-width: 100%;
  height: auto;
}

.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;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, var(--border));
}

@supports not (backdrop-filter: blur(16px)) {
  .top-nav {
    background: rgba(245, 243, 238, 0.98);
  }
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: 0 6px 18px rgba(0, 35, 71, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.2;
}

.brand-name-ar {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
}

.brand-name-en {
  font-family: var(--font-en);
  font-size: clamp(0.55rem, 1.2vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: color-mix(in srgb, var(--navy) 28%, var(--border));
  background: color-mix(in srgb, var(--navy) 5%, white);
}

.nav-toggle-bars {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

body.nav-open .nav-toggle-bars {
  background: transparent;
}

body.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.nav-shell {
  display: contents;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.35rem);
}

.primary-nav a {
  color: #2f3542;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--navy);
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(90vh, 920px);
  display: flex;
  align-items: center;
  background: var(--navy-deep)
    url("./assets/images/hero-scribe-1.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 20, 45, 0.55) 100%
    ),
    linear-gradient(
      125deg,
      rgba(245, 243, 238, 0.12) 0%,
      rgba(0, 35, 71, 0.72) 42%,
      rgba(0, 15, 35, 0.92) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  padding-block: clamp(2.75rem, 8vw, 5.5rem);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin: 0;
}

.eyebrow-ar {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.eyebrow-en {
  font-family: var(--font-en);
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: color-mix(in srgb, var(--gold) 92%, white);
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 1rem + 3.1vw, 3rem);
  margin: 0.6rem 0 1rem;
  line-height: 1.22;
  letter-spacing: 0;
  color: #fffdf8;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  color: color-mix(in srgb, #fff 88%, var(--cream));
  font-size: clamp(0.98rem, 1rem + 0.35vw, 1.12rem);
  line-height: 1.9;
  margin: 0;
  max-width: 50ch;
}

.hero-actions {
  margin-top: clamp(1.35rem, 3.2vw, 2rem);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.96rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--gold) 70%, white);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fffef9;
  border-color: color-mix(in srgb, var(--gold) 55%, var(--navy));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.btn-secondary {
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  color: var(--navy);
  border-color: color-mix(in srgb, var(--gold) 65%, white);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: #fff;
}

.hero-card {
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 3.2vw, 2.1rem);
  text-align: center;
  backdrop-filter: blur(10px);
}

.hero-card-logo {
  width: clamp(76px, 18vw, 104px);
  height: auto;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}

.hero-card-title {
  margin: 1rem 0 0.25rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
}

.hero-card-tag {
  margin: 0;
  font-family: var(--font-display);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1.05rem;
}

.hero-card-en {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--navy);
  text-transform: uppercase;
}

.hero-card-note {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  font-size: 0.96rem;
}

.section {
  padding-block: var(--section-y);
}

.section-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.2rem);
  color: var(--navy);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1rem + 0.2vw, 1.06rem);
  max-width: 62ch;
}

.section-subtitle-tight {
  margin-top: 0.65rem;
  font-size: 0.92rem;
}

.section-parchment {
  background-color: var(--parchment);
  background-image: image-set(
    url("./assets/images/parchment-cuneiform-bg.webp") type("image/webp"),
    url("./assets/images/parchment-cuneiform-bg.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-block: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.section-alt {
  background: linear-gradient(185deg, #e8e2d8 0%, var(--cream) 55%);
}

/* 04 — وحدات النظام: خلفية مسمارية (فاتحة) */
#modules.section-alt {
  background-color: var(--parchment);
  background-image: image-set(
    url("./assets/images/modules-cuneiform-bg.webp") type("image/webp"),
    url("./assets/images/modules-cuneiform-bg.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-identity {
  background: var(--cream);
}

.page-hero {
  min-height: auto;
  padding: clamp(3rem, 8vw, 5rem) 0;
  background-position: center;
}

.page-hero--bright .hero-overlay {
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 20, 45, 0.42) 100%
    ),
    linear-gradient(
      125deg,
      rgba(245, 243, 238, 0.1) 0%,
      rgba(0, 35, 71, 0.55) 45%,
      rgba(0, 15, 35, 0.82) 100%
    );
}

.page-hero .hero-content {
  grid-template-columns: 1fr;
  max-width: 860px;
}

.page-hero .hero-copy h1,
.page-hero .hero-lead {
  max-width: 70ch;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.content-card h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

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

.list-clean li {
  background: color-mix(in srgb, var(--cream) 75%, #fff);
  border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--border));
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  color: #3f3a32;
  font-weight: 600;
}

.two-col {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.identity-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.identity-figure {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.identity-figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.identity-figure figcaption {
  padding: 0.85rem 1.1rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: clamp(0.9rem, 2.2vw, 1.2rem);
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.card,
.download-card,
.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.card,
.download-card {
  padding: clamp(1.2rem, 2.6vw, 1.55rem);
  display: flex;
  flex-direction: column;
}

.card-icon {
  font-size: 1.35rem;
  color: var(--gold-dark);
  margin-bottom: 0.35rem;
  line-height: 1;
}

.card h3,
.download-card h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.card p,
.download-card p {
  margin: 0;
  line-height: 1.85;
  color: var(--muted);
  font-size: 0.97rem;
}

.download-card .btn {
  margin-top: auto;
  padding-top: 1rem;
  width: 100%;
}

.inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: color-mix(in srgb, var(--navy) 8%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.download-alt {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  text-align: center;
}

.download-alt-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-alt-link:hover {
  color: var(--gold-dark);
}

.contact-card {
  text-align: center;
  padding: clamp(1.85rem, 4vw, 2.65rem);
  max-width: 720px;
  margin-inline: auto;
}

.contact-card h2 {
  margin-bottom: 0.5rem;
}

.contact-card p {
  margin: 0 0 1.35rem;
  color: var(--muted);
}

.footer {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #000c1a 100%);
  color: color-mix(in srgb, var(--cream) 82%, var(--gold));
  padding: clamp(1.35rem, 3.5vw, 2rem) 0;
  font-size: 0.9rem;
  border-top: 3px solid color-mix(in srgb, var(--gold) 75%, transparent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  text-align: center;
}

.footer-ar {
  margin: 0;
  font-weight: 600;
}

.footer-divider {
  margin: 0;
  opacity: 0.45;
  user-select: none;
}

.footer-en {
  margin: 0;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--gold) 90%, white);
}

.site-toast {
  position: fixed;
  inset-inline: 50%;
  bottom: clamp(1rem, 4vw, 1.5rem);
  transform: translate(-50%, 12px);
  z-index: 220;
  background: color-mix(in srgb, var(--navy) 92%, black);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 12px;
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  width: max-content;
  max-width: min(92vw, 420px);
  text-align: center;
}

.site-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-card {
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(0, 15, 30, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-shell {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 150;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--header-h) + 0.65rem + env(safe-area-inset-top))
      max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
    background: transparent;
    /* لا تغطي الهيدر: حتى زر (X) يبقى قابل للنقر */
    pointer-events: none;
  }

  .nav-shell .primary-nav {
    pointer-events: auto;
    flex-direction: column;
    gap: 0.25rem;
    width: min(100%, 420px);
    padding: 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--navy-deep) 94%, #000) 0%,
      color-mix(in srgb, var(--navy) 80%, #000) 100%
    );
    border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
    box-shadow: var(--shadow);
    transform: scale(0.96);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  body.nav-open .nav-shell .primary-nav {
    opacity: 1;
    transform: scale(1);
  }

  body:not(.nav-open) .nav-shell .primary-nav {
    visibility: hidden;
  }

  body.nav-open .nav-shell .primary-nav {
    visibility: visible;
  }

  .primary-nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
    color: color-mix(in srgb, var(--gold) 92%, #fff);
    font-weight: 800;
    letter-spacing: 0.01em;
    position: relative;
  }

  /* فواصل ذهبية بين عناصر القائمة (ملكية وهادئة) */
  .nav-shell .primary-nav a:not(:last-child) {
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    color: #fff;
    background: color-mix(in srgb, var(--gold) 22%, transparent);
    outline: none;
  }

  .brand-name-en {
    letter-spacing: 0.18em;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 2.25rem 0;
  }

  .page-hero .hero-copy h1 {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
    line-height: 1.25;
  }

  .page-hero .hero-lead {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .content-card {
    padding: 1rem;
  }

  .list-clean li {
    font-size: 0.92rem;
    line-height: 1.6;
    word-break: break-word;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-divider {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (min-width: 1400px) {
  :root {
    --container: min(1200px, calc(100% - 4rem));
  }
}

/* ——— Home (MNTN / wide-landing patterns) ——— */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 500;
  padding: 0.5rem 0.9rem;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.top-nav--dark {
  background: color-mix(in srgb, var(--navy-deep) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}

.top-nav--dark .brand {
  color: #fff9f0;
}

.top-nav--dark .brand-name-en {
  color: color-mix(in srgb, var(--gold) 95%, white);
}

.top-nav--dark .nav-toggle {
  background: color-mix(in srgb, var(--navy) 25%, transparent);
  border-color: color-mix(in srgb, var(--gold) 40%, var(--navy));
}

.top-nav--dark .nav-toggle-bars,
.top-nav--dark .nav-toggle-bars::before,
.top-nav--dark .nav-toggle-bars::after {
  background: #fff;
}

.top-nav--dark .nav-toggle:hover {
  background: color-mix(in srgb, var(--gold) 15%, var(--navy));
}

.primary-nav--wide {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.35rem;
  column-gap: clamp(0.4rem, 1.2vw, 0.9rem);
}

.top-nav--dark .primary-nav a {
  color: #f0ebe3;
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  padding: 0.35rem 0.2rem;
}

.top-nav--dark .primary-nav a:hover,
.top-nav--dark .primary-nav a:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--gold) 20%, transparent);
}

.hero--home {
  box-sizing: border-box;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: 100vh;
  align-items: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  padding-bottom: 3.5rem;
  background-image: url("./assets/images/hero-scribe-1.png");
  background-position: center;
  background-size: cover;
}

.hero-content--home {
  grid-template-columns: auto minmax(0, 1.15fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  width: 100%;
  max-width: min(1200px, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero-sidelabel {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: max(0.5rem, env(safe-area-inset-left));
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--gold) 80%, white);
  opacity: 0.75;
  pointer-events: none;
}

.hero-index {
  font-family: var(--font-en);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  color: color-mix(in srgb, #fff 25%, var(--gold));
  opacity: 0.45;
  user-select: none;
  justify-self: end;
  align-self: start;
  margin-top: 0.5rem;
}

.hero--home .hero-title-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 0.6rem + 2.1vw, 1.9rem);
  color: #fff6ea;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-title-line--sub {
  margin-top: 0.4rem;
  font-size: clamp(1.2rem, 0.5rem + 1.5vw, 1.5rem) !important;
  opacity: 0.95;
}

.hero-title-brand {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 1rem + 5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0.35rem 0 0.5rem;
  background: linear-gradient(
    165deg,
    #f4e0b0 0%,
    var(--gold) 38%,
    #6b5428 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.4));
}

.hero--home h1#hero-title {
  margin: 0.5rem 0 1rem;
  font-size: inherit;
  line-height: 1.2;
  font-weight: 700;
}

.hero--home .eyebrow {
  margin: 0;
  justify-content: flex-start;
}

.hero--home .eyebrow-en {
  opacity: 0.85;
}

.hero-card--home {
  text-align: center;
  max-width: 400px;
  justify-self: end;
  margin: 0;
}

.hero--home .hero-card-title {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: color-mix(in srgb, #fff 80%, var(--gold));
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(3px);
  outline: none;
}

.scroll-cue__text {
  font-size: 0.72rem;
}

.scroll-cue__icon {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
  border-radius: 2px;
  animation: scroll-hint 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue__icon {
    animation: none;
  }
}

@keyframes scroll-hint {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 1;
  }
}

.section-showcase {
  padding: 0;
  /* لا يغطي الشريط اللاصق أعلى الصورة/النص */
  padding-top: var(--header-h);
  background-color: var(--navy-deep);
  background-image: image-set(
    url("./assets/images/showcase-navy-cuneiform-bg.webp") type("image/webp"),
    url("./assets/images/showcase-navy-cuneiform-bg.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f0ebe3;
}

.section-showcase__inner {
  padding-block: clamp(1.25rem, 3vw, 2rem) 0;
}

/* لوحة نصوص تغطي خلفية المسمارية اللامعة حتى تُقرأ العناوين أوضح */
.section-showcase .section-header {
  max-width: min(100%, 72ch);
  margin-inline: auto;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  padding: clamp(1.05rem, 2.2vw, 1.4rem) clamp(1.15rem, 2.5vw, 1.5rem);
  border-radius: var(--radius);
  background: color-mix(in srgb, #001a2e 90%, rgba(0, 0, 0, 0.35));
  border: 1px solid color-mix(in srgb, var(--gold) 32%, rgba(0, 0, 0, 0.5));
  box-shadow: 0 10px 36px rgba(0, 4, 12, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (prefers-reduced-transparency: reduce) {
  .section-showcase .section-header {
    background: #001a2e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.section-showcase .section-header h2,
.section-showcase .section-subtitle {
  color: #faf6ef;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.section-showcase .section-header h2 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  font-weight: 700;
}

.section-showcase .section-subtitle {
  margin-top: 0.35rem;
  opacity: 1;
  color: #e8e0d4;
  font-weight: 600;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 58ch;
}

.showcase-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  /* لا تقص أطراف الصورة (كان overflow:hidden يخفي أعلى/أسفل أحياناً) */
  overflow: visible;
  background: transparent;
  min-height: 0;
  padding-bottom: 0.5rem;
}

/* تظليل خفيف فقط — لا يُغمّي التفاصيل */
.showcase-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 18, 40, 0.12) 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.showcase-img {
  position: relative;
  z-index: 0;
  display: block;
  /* أبعاد الملف: 1024×610 — لا تُكبّر فوق 1024px لئلا يليّن الحد (دقة بصرية) */
  width: 100%;
  max-width: 1024px;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  object-position: center center;
  image-rendering: auto;
  /* بدون max-height: لا نُصغّر بناءً على ارتفاع النافذة فيقص أعلى/أسفل */
  /* بدون filter: نحافظ على وضوح الألوان كما في الملف */
  vertical-align: middle;
}

.pillars-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.card-pillar h3 {
  font-size: 1.02rem;
}

.section-reasons {
  padding-block: 1.25rem 1.5rem;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.reasons-bar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  text-align: center;
}

.reasons-bar li {
  flex: 1 1 120px;
  min-width: 0;
}

.reasons-bar__k {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.reasons-bar__t {
  display: block;
  font-size: 0.82rem;
  color: #e8e0d4;
  font-weight: 600;
  margin-top: 0.25rem;
}

.modules-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 920px;
  margin-inline: auto;
}

.module-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 0.15rem 0.35rem;
}

.module-block summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  padding: 0.75rem 0.6rem 0.75rem 0.5rem;
  list-style: none;
  font-size: 1.02rem;
}

.module-block summary::-webkit-details-marker {
  display: none;
}

.module-block summary::after {
  content: "+";
  float: left;
  color: var(--gold-dark);
  font-weight: 800;
  margin-inline-end: 0.35rem;
}

.module-block[open] summary::after {
  content: "–";
}

.module-list {
  margin: 0 0.75rem 0.9rem 1rem;
  padding: 0;
  list-style: disc;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.module-list li {
  margin-bottom: 0.4rem;
}

.section-platforms {
  text-align: center;
  background: var(--parchment);
  border-block: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
}

.section-platforms__title {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 0.4rem + 1.2vw, 1.4rem);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
}

.platform-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
}

.platform-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: var(--navy);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--border));
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.platform-chips__ic {
  color: var(--gold-dark);
  font-size: 0.7rem;
}

.section-cta {
  background: linear-gradient(180deg, var(--navy) 0%, #000a14 100%);
  color: #f0ebe3;
  border-top: 3px solid color-mix(in srgb, var(--gold) 60%, transparent);
}

.section-cta h2 {
  color: #fff9f0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.75rem);
  margin: 0 0 0.5rem;
}

.section-cta > .container.contact-social {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
  max-width: 640px;
}

.split-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-block: 0.25rem;
}

.split-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-cta {
  min-width: 12rem;
}

.section-subtitle--on-dark {
  color: color-mix(in srgb, #f0ebe3 88%, var(--gold));
  margin: 0;
}

.contact-social {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.contact-social__title {
  font-family: var(--font-display);
  color: #fff9f0;
  font-size: clamp(1.1rem, 0.2rem + 1.1vw, 1.4rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.contact-social__lead {
  color: color-mix(in srgb, #f0ebe3 85%, var(--gold));
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}

.social-bar {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem 1.1rem;
  padding: 0;
  margin: 0;
}

.social-bar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  background: color-mix(in srgb, #000 25%, var(--navy));
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease,
    transform 0.2s ease;
}

.social-bar__link:hover,
.social-bar__link:focus-visible {
  color: #fff0d0;
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, var(--navy));
  transform: translateY(-2px);
  outline: none;
}

.social-bar__link svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.footer--extended .footer-inner {
  flex-direction: column;
  gap: 1.25rem;
}

.footer-skip {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--cream) 80%, var(--gold));
  opacity: 0.9;
  width: 100%;
  text-align: center;
}

.footer-skip__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.footer-skip__link:hover,
.footer-skip__link:focus-visible {
  color: #fff6ea;
  outline: none;
}

.footer-cta {
  margin: 0.5rem 0 0;
  width: 100%;
  text-align: center;
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--cream) 80%, var(--gold));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.footer-cta__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.footer .social-bar {
  margin-top: 0.25rem;
}

.footer .social-bar__link {
  background: color-mix(in srgb, #000 35%, var(--navy-deep));
  border-color: color-mix(in srgb, var(--gold) 40%, var(--navy));
}

.footer .contact-social {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
  max-width: none;
}

.footer .contact-social__title {
  font-size: 1rem;
}

.footer .contact-social__lead {
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .hero-sidelabel {
    display: none;
  }

  .hero-content--home {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero--home .eyebrow {
    justify-content: center;
  }

  .hero-index {
    justify-self: center;
    order: 0;
  }

  .hero-copy {
    order: 1;
  }

  .hero-card--home {
    order: 2;
    margin-inline: auto;
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .primary-nav--wide {
    flex-direction: column;
    align-items: stretch;
  }
}

html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* — Home: أول 4 view-snap ≈ Reels (JS)؛ من #platforms = تمرير عادي + scroll-padding للرواسي */
html.home-scroll-snap {
  scroll-padding-top: var(--header-h);
  scroll-behavior: auto;
}

html.home-scroll-snap .view-snap {
  min-height: 100dvh;
  min-height: 100vh;
  box-sizing: border-box;
  scroll-margin-top: 0.01px;
}

@media (prefers-reduced-motion: reduce) {
  html.home-scroll-snap .view-snap {
    min-height: 0;
  }
}

/* الهيرو يبدأ من أعلى النافذة (تحت شريط ثابت) — الشفافية تُرى صورة القسم لا لون body */
body.page-home .top-nav--hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
}

/* شفاف: النصوص تُقرأ على الخلفية الداكنة مباشرة (بدون شريط كريمي) */
body.page-home .top-nav--hero.top-nav--dark:not(.is-solid) {
  background: transparent !important;
  box-shadow: none;
  border-bottom: 1px solid color-mix(
    in srgb,
    var(--gold) 32%,
    rgba(0, 0, 0, 0.2)
  );
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@supports not (backdrop-filter: blur(16px)) {
  body.page-home .top-nav--hero.top-nav--dark:not(.is-solid) {
    background: transparent !important;
  }
}

body.page-home .top-nav--hero.top-nav--dark.is-solid {
  background: color-mix(in srgb, var(--navy-deep) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

/* روابط واضحة فوق صورة الهرِم (بدون خلفية شريط) */
body.page-home .top-nav--hero.top-nav--dark:not(.is-solid) .primary-nav a {
  color: #fffcf2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  font-weight: 800;
}

body.page-home
  .top-nav--hero.top-nav--dark:not(.is-solid)
  .primary-nav
  a:hover,
body.page-home
  .top-nav--hero.top-nav--dark:not(.is-solid)
  .primary-nav
  a:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--gold) 22%, rgba(0, 0, 0, 0.25));
}

body.page-home .top-nav--hero.top-nav--dark:not(.is-solid) .brand {
  color: #fff9f0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

body.page-home
  .top-nav--hero.top-nav--dark:not(.is-solid)
  .brand-name-en {
  color: color-mix(in srgb, var(--gold) 88%, #fff);
}

body.page-home .top-nav--hero.top-nav--dark:not(.is-solid) .nav-toggle {
  background: color-mix(in srgb, #000 28%, var(--navy));
  border-color: color-mix(in srgb, var(--gold) 50%, var(--navy));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* ——— Legal pages (privacy, terms) ——— */
.legal-meta {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--muted) 88%, #fff);
}

.legal-doc__inner {
  display: grid;
  gap: 1.25rem;
  max-width: 820px;
}

.legal-section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: var(--navy-deep);
}

.legal-section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
}

.legal-section p {
  margin: 0 0 0.85rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-list {
  margin: 0 0 0.85rem;
  padding-inline-start: 1.35rem;
}

.legal-list li {
  margin-bottom: 0.45rem;
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.legal-dl {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.legal-dl dt {
  font-weight: 700;
  color: var(--navy);
}

.legal-dl dd {
  margin: 0;
}

.legal-table {
  width: 100%;
  margin: 0.85rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}

.legal-table th {
  background: var(--parchment);
  font-weight: 700;
  color: var(--navy-deep);
}

.legal-related {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.legal-section a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: var(--gold-dark);
}

@media (max-width: 640px) {
  .legal-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── iOS PWA install page ─────────────────────────────────────────────── */
.page-ios-install {
  background: var(--navy-deep);
  color: #f5f3ee;
  min-height: 100vh;
  min-height: 100dvh;
}

.ios-install-header {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.ios-install-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand--compact img {
  height: 36px;
  width: auto;
}

.ios-install-main {
  padding: clamp(2rem, 6vw, 3.5rem) 0;
}

.ios-install-container {
  max-width: 520px;
}

.ios-install-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.ios-install-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ios-install-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ios-install-hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.ios-install-lead {
  color: rgba(245, 243, 238, 0.82);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.ios-install-alert {
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}

.ios-install-alert strong {
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
}

.ios-install-alert p {
  margin: 0;
  color: rgba(245, 243, 238, 0.88);
  font-size: 0.95rem;
}

.ios-install-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.ios-install-actions--stack .btn {
  width: 100%;
  text-align: center;
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
}

.ios-install-guide {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

.ios-install-guide h2 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 1.25rem;
}

.ios-install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ios-install-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ios-install-step__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.ios-install-steps strong {
  color: #fff;
  display: block;
  margin-bottom: 0.25rem;
}

.ios-install-steps p {
  margin: 0;
  color: rgba(245, 243, 238, 0.75);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ios-install-note {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.ios-install-note p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(245, 243, 238, 0.7);
  line-height: 1.65;
}

.ios-install-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.ios-install-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.ios-install-footer a {
  color: var(--gold);
  text-decoration: none;
}

.ios-install-footer a:hover {
  text-decoration: underline;
}

