:root {
  color-scheme: dark;
  --black: #050301;
  --panel: rgba(13, 8, 5, 0.88);
  --panel-soft: rgba(24, 14, 8, 0.72);
  --gold: #f1b64f;
  --gold-bright: #ffd978;
  --gold-deep: #9a671d;
  --cream: #fff0cd;
  --muted: #c9ad78;
  --ruby: #ec3947;
  --emerald: #19b978;
  --line: rgba(241, 182, 79, 0.5);
  --line-soft: rgba(241, 182, 79, 0.24);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --max: 1280px;
  font-family:
    "Noto Naskh Arabic",
    "Geeza Pro",
    "Tahoma",
    "Arial",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(116, 72, 23, 0.66), transparent 25rem),
    radial-gradient(circle at 18% 36%, rgba(94, 16, 15, 0.44), transparent 24rem),
    radial-gradient(circle at 90% 92%, rgba(12, 76, 54, 0.24), transparent 24rem),
    linear-gradient(135deg, #020201 0%, #130904 45%, #020806 100%);
  color: var(--cream);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

body::before {
  background-image:
    linear-gradient(135deg, rgba(241, 182, 79, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(255, 215, 120, 0.12), transparent 18rem);
  background-size: 24px 24px, 100% 100%;
  mask-image: linear-gradient(to bottom, transparent 0, #000 8rem, transparent 30rem);
}

body::after {
  background-image:
    linear-gradient(90deg, transparent 48%, rgba(241, 182, 79, 0.18) 50%, transparent 52%),
    linear-gradient(rgba(241, 182, 79, 0.06) 1px, transparent 1px);
  background-size: 84px 84px, 100% 84px;
  opacity: 0.42;
  mask-image: linear-gradient(to bottom, transparent, black 18%, transparent 90%);
}

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

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  top: 14px;
  inset-inline-start: 18px;
  z-index: 80;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #120904;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(241, 182, 79, 0.18);
  background: rgba(4, 3, 2, 0.74);
  backdrop-filter: blur(18px);
}

.nav-shell,
main,
.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 20px;
}

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

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(216, 99, 255, 0.26);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1.34rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--gold-bright);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

main {
  padding: 46px 0 0;
}

.hero {
  direction: rtl;
  display: grid;
  grid-template-columns: minmax(390px, 0.86fr) minmax(0, 1fr);
  align-items: center;
  gap: 70px;
  min-height: calc(100vh - 132px);
}

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

.brand-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 224px;
  min-height: 42px;
  margin-bottom: 62px;
  padding: 8px 22px;
  border-radius: 999px;
  color: #1d0d03;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  font-weight: 900;
  box-shadow: 0 18px 50px rgba(241, 182, 79, 0.22);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

.hero h1 {
  max-width: 660px;
  margin-bottom: 24px;
  color: #fff7e8;
  font-size: clamp(3.5rem, 6.4vw, 6.3rem);
  font-weight: 950;
  line-height: 1.05;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero h1 .brand-line {
  color: var(--gold-bright);
}

.hero h1 span,
html[dir="rtl"] .hero h1 {
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.42);
}

.hero-text {
  max-width: 680px;
  margin-bottom: 44px;
  color: #ead9b7;
  font-size: 1.24rem;
  line-height: 1.9;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 950;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.btn[href]:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #120904;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  box-shadow: 0 16px 50px rgba(241, 182, 79, 0.23);
}

.btn-secondary {
  color: var(--cream);
  background: rgba(0, 0, 0, 0.34);
}

.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.86;
}

.pending-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #030201;
  box-shadow: var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  content: "";
}

.hero-visual::before {
  inset: 14px;
  border: 1px solid rgba(255, 217, 120, 0.32);
  border-radius: 8px;
}

.hero-visual::after {
  inset: 0;
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 217, 120, 0.18), transparent 26%),
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.38));
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
}

.plaque {
  position: absolute;
  inset: 27% 25%;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 26px;
  border: 1px solid var(--gold);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.84);
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 189, 0.16),
    0 22px 50px rgba(0, 0, 0, 0.45);
}

.plaque p {
  margin-bottom: 14px;
  color: var(--gold-bright);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 950;
}

.plaque strong {
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
}

.plaque span {
  color: var(--muted);
  font-size: 0.98rem;
}

.royal-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 34px 0 48px;
}

.royal-card,
.steps-panel,
.faq-panel,
.final-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 217, 120, 0.06), transparent 42%),
    var(--panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
}

.royal-card {
  min-height: 126px;
  padding: 24px 26px;
}

.gem {
  position: absolute;
  top: 22px;
  inset-inline-end: 20px;
  width: 11px;
  height: 22px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--ruby), #5b0c10);
  transform: rotate(45deg);
  box-shadow: 0 0 20px rgba(236, 57, 71, 0.36);
}

.royal-card h2 {
  margin-bottom: 12px;
  color: var(--gold-bright);
  font-size: 1.42rem;
}

.royal-card p,
.steps-panel p,
.faq-panel p,
.final-cta p {
  margin-bottom: 0;
  color: #dec89b;
  line-height: 1.7;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 38px;
}

.steps-panel,
.faq-panel,
.final-cta {
  padding: 34px;
}

.steps-panel h2,
.faq-panel h2,
.final-cta h2 {
  margin-bottom: 20px;
  color: #fff6e4;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
}

.step-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.step-line article {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
}

.step-line span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--emerald);
  font-weight: 950;
}

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

details {
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

summary {
  cursor: pointer;
  color: var(--cream);
  font-weight: 900;
}

details p {
  margin-top: 12px;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 14% 20%, rgba(241, 182, 79, 0.16), transparent 20rem),
    rgba(10, 6, 4, 0.9);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 1040px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    inset-inline: 22px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(6, 4, 2, 0.96);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a {
    padding: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

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

@media (max-width: 640px) {
  .nav-shell,
  main,
  .site-footer {
    width: min(100% - 32px, var(--max));
  }

  .nav-shell {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    direction: ltr;
    min-height: 78px;
    align-items: center;
    gap: 8px;
  }

  html[dir="rtl"] .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  html[dir="rtl"] .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
  }

  .brand {
    gap: 9px;
    min-width: 0;
    max-width: 126px;
    overflow: hidden;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  main {
    padding-top: 18px;
  }

  .hero {
    direction: ltr;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    overflow: hidden;
  }

  .hero-copy,
  .hero-visual,
  .lower-grid,
  .steps-panel,
  .faq-panel,
  .final-cta {
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy {
    order: 2;
    text-align: center;
  }

  .hero-visual {
    order: 1;
  }

  .brand-kicker {
    margin-inline: auto;
    min-width: 178px;
    min-height: 34px;
    margin-bottom: 16px;
    padding: 6px 16px;
    font-size: 0.74rem;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.75rem;
  }

  .hero h1 {
    margin-inline: auto;
    margin-bottom: 12px;
    max-width: 100%;
    font-size: clamp(1.76rem, 8.7vw, 2.12rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .hero-text {
    margin-inline: auto;
    max-width: 100%;
    margin-bottom: 18px;
    font-size: 0.92rem;
    line-height: 1.62;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .btn {
    min-width: 0;
    min-height: 50px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .pending-note {
    margin-top: 10px;
    font-size: 0.78rem;
  }

  .hero-visual img {
    width: 100%;
    aspect-ratio: 2 / 1;
  }

  .plaque {
    inset: 27% 29% 20%;
    padding: 10px;
    border-radius: 14px;
  }

  .plaque p {
    margin-bottom: 8px;
    font-size: 1.38rem;
  }

  .plaque strong {
    font-size: 0.86rem;
  }

  .plaque span {
    font-size: 0.64rem;
  }

  .royal-cards {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 26px 0 32px;
  }

  .royal-card {
    min-height: 126px;
    padding: 18px 16px;
  }

  .royal-card h2 {
    max-width: calc(100% - 22px);
    font-size: 1.1rem;
  }

  .royal-card p {
    font-size: 0.8rem;
    line-height: 1.55;
  }

  .steps-panel,
  .faq-panel,
  .final-cta {
    padding: 22px;
  }

  .steps-panel h2,
  .faq-panel h2,
  .final-cta h2 {
    font-size: 1.8rem;
  }

  .step-line {
    grid-template-columns: 1fr;
  }

  .final-cta,
  .site-footer {
    display: grid;
  }

  .final-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
