:root {
  --ink: #11110f;
  --paper: #f7f5ef;
  --white: #ffffff;
  --gold: #e4bf4f;
  --gold-deep: #8f6714;
  --mint: #2f7d6a;
  --clay: #b34f42;
  --line: rgba(17, 17, 15, 0.16);
  --muted: #59564c;
  --shadow: 0 24px 70px rgba(12, 12, 10, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "SF Pro Text", "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.lang {
  display: none;
}

.dahab-word {
  color: var(--gold);
  font-weight: inherit;
}

.hero h1 .dahab-word,
.brand .dahab-word,
footer .dahab-word {
  color: #f1ce66;
}

body.lang-ar .lang.ar,
body.lang-en .lang.en {
  display: revert;
}

body.lang-ar article.lang.ar,
body.lang-en article.lang.en {
  display: block;
}

body.lang-ar article.lang.en,
body.lang-en article.lang.ar {
  display: none;
}

.site-header {
  align-items: center;
  color: var(--white);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  inset: 0 0 auto;
  margin: 0 auto;
  max-width: 1220px;
  padding: 22px 30px;
  position: absolute;
  width: 100%;
  z-index: 3;
}

.site-header.solid {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  max-width: none;
  position: sticky;
  top: 0;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: center;
}

nav a,
.footer-links a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.language-switch {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.language-switch button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 40px;
  min-width: 58px;
  padding: 8px 12px;
}

.language-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}

.hero {
  background-color: #181713;
  background-image: url("assets/dahab-app-icon.png");
  background-position: calc(100% - 8vw) center;
  background-repeat: no-repeat;
  background-size: min(70vw, 760px);
  color: var(--white);
  isolation: isolate;
  min-height: min(88svh, 860px);
  overflow: hidden;
  padding: 170px max(30px, calc((100vw - 1160px) / 2)) 120px;
  position: relative;
}

body.lang-ar .hero {
  background-position: max(8vw, 48px) center;
}

.hero::before {
  background: rgba(24, 23, 19, 0.78);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-copy {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 900;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(4.5rem, 13vw, 11rem);
  line-height: 0.88;
  margin: 0 0 24px;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.8;
  margin: 0;
  max-width: 630px;
}

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

.primary-action,
.secondary-action {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  text-decoration: none;
}

.primary-action {
  background: var(--gold);
  color: var(--ink);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.hero-signal {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  bottom: 34px;
  color: var(--white);
  display: grid;
  gap: 2px;
  inset-inline-end: max(30px, calc((100vw - 1160px) / 2));
  min-width: 210px;
  padding: 16px 18px;
  position: absolute;
}

.signal-points {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 950;
}

.signal-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.product-preview {
  align-items: start;
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(270px, 390px) 1fr;
  margin: -72px auto 0;
  max-width: 1160px;
  padding: 0 30px 96px;
  position: relative;
  z-index: 2;
}

.preview-phone {
  background: var(--ink);
  border: 10px solid #050505;
  border-radius: 44px;
  box-shadow: var(--shadow);
  color: var(--white);
  min-height: 660px;
  overflow: hidden;
  padding: 34px 24px;
}

.preview-status {
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 56px;
}

.preview-balance {
  background: var(--gold);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  padding: 24px;
}

.preview-balance b {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.preview-balance small {
  color: rgba(17, 17, 15, 0.76);
  font-weight: 800;
}

.preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.preview-grid span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 18px;
}

.preview-grid b {
  font-size: 1.1rem;
}

.preview-grid small {
  color: #98d7c5;
  font-weight: 800;
}

.preview-notes {
  border-top: 1px solid var(--line);
  display: grid;
}

.preview-notes article {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 72px 1fr;
  padding: clamp(22px, 4vw, 42px) 0;
}

.preview-notes h2,
.flow h3,
.feature-list h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.35;
  margin: 0;
}

.preview-notes p,
.flow p,
.feature-list p,
.trust-copy p,
.support-grid p,
.support-note p {
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}

.step-number {
  color: var(--mint);
  font-weight: 950;
  grid-row: span 2;
}

.band {
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: 1160px;
  padding: 88px 30px;
}

.section-intro {
  display: grid;
  gap: 12px;
  margin-bottom: 44px;
  max-width: 760px;
}

.section-intro h2,
.support-hero h1,
.legal-intro h1 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.16;
  margin: 0;
}

.flow,
.feature-list,
.support-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow article,
.feature-list article,
.support-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 26px;
}

.flow b {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--gold);
  display: inline-flex;
  font-size: 1.35rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.feature-list article:nth-child(2) {
  border-top: 4px solid var(--gold);
}

.feature-list article:nth-child(3) {
  border-top: 4px solid var(--mint);
}

.category-rail {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-rail article {
  border-inline-end: 1px solid var(--line);
  display: grid;
  gap: 16px;
  min-height: 200px;
  padding: 28px 20px;
}

body.lang-ar .category-rail article:last-child,
body.lang-en .category-rail article:last-child {
  border-inline-end: 0;
}

.category-rail span {
  color: var(--clay);
  font-weight: 950;
}

.category-rail b {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.45;
}

.offer-strip {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  min-height: 118px;
  padding: 24px;
}

.offer-strip p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  margin: 0;
}

.trust {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr minmax(300px, 460px);
}

.trust .section-intro {
  margin: 0;
}

.trust-copy {
  border-inline-start: 4px solid var(--gold);
  display: grid;
  gap: 24px;
  padding-inline-start: 24px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inline-links a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  padding: 12px 16px;
  text-decoration: none;
}

footer {
  background: var(--ink);
  color: var(--white);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 16px;
  padding: 42px max(30px, calc((100vw - 1160px) / 2));
}

footer strong {
  color: var(--gold);
  font-size: 1.4rem;
}

footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 10px 0 0;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.legal-shell,
.support-shell {
  margin: 0 auto;
  max-width: 1060px;
  padding: 84px 30px 110px;
}

.legal-intro,
.support-hero {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin-bottom: 42px;
  padding-bottom: 36px;
}

.legal-intro > p:last-child,
.support-hero > p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.legal-copy {
  max-width: 820px;
}

.legal-copy h2,
.support-grid h2,
.support-note h2 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.4;
  margin: 30px 0 10px;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  color: var(--muted);
  line-height: 2;
  margin: 0;
}

.legal-copy a {
  color: var(--mint);
  font-weight: 900;
}

.support-hero {
  padding-top: 22px;
}

.support-hero .primary-action {
  justify-self: start;
  margin-top: 8px;
}

body.lang-ar .support-hero .primary-action {
  justify-self: end;
}

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

.support-grid article {
  min-height: 230px;
}

.support-grid h2,
.support-note h2 {
  margin: 0;
}

.support-note {
  border-top: 1px solid var(--line);
  margin-top: 54px;
  padding-top: 42px;
}

.checklist {
  display: grid;
  gap: 0;
  margin-top: 24px;
}

.checklist p {
  border-bottom: 1px solid var(--line);
  min-height: 58px;
  padding: 14px 0;
}

.install-shell .support-hero {
  margin-bottom: 34px;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.secondary-action.dark {
  border-color: var(--line);
  color: var(--ink);
}

.install-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.install-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 24px;
}

.install-grid b {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--gold);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.install-grid h2 {
  font-size: 1.3rem;
  margin: 0;
}

.install-grid p {
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

.setup-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: 22px;
}

.setup-form label {
  font-weight: 900;
}

.setup-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 54px;
  padding: 12px 14px;
}

.setup-form .primary-action {
  border: 0;
  cursor: pointer;
  justify-self: start;
}

body.lang-ar .setup-form .primary-action {
  justify-self: end;
}

.setup-result {
  display: grid;
  gap: 16px;
}

.setup-result.error {
  color: var(--clay);
}

.setup-accounts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-account {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 20px;
}

.setup-account h2,
.setup-account p {
  margin: 0;
}

.setup-account p,
.setup-next {
  color: var(--muted);
  line-height: 1.8;
}

.setup-account dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.setup-account dl div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 10px;
}

.setup-account dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.setup-account dd {
  margin: 0;
}

.setup-account code {
  background: #f4efe1;
  border-radius: 6px;
  direction: ltr;
  display: inline-block;
  padding: 4px 7px;
}

.dahab-ad-dock {
  position: fixed;
  inset-block-end: 18px;
  inset-inline-start: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  justify-items: start;
  max-width: min(380px, calc(100vw - 36px));
}

.dahab-ad-toggle,
.dahab-ad-close {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.dahab-ad-toggle {
  border-radius: 999px;
  background: #12100b;
  color: #f8e5a6;
  box-shadow: 0 16px 40px rgba(18, 16, 11, 0.22);
  font-weight: 800;
  min-width: 76px;
  padding: 10px 18px;
}

.dahab-ad-toggle:focus-visible,
.dahab-ad-close:focus-visible {
  outline: 3px solid rgba(223, 189, 89, 0.6);
  outline-offset: 3px;
}

.dahab-ad-panel {
  width: min(380px, calc(100vw - 36px));
  border: 1px solid rgba(223, 189, 89, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 56px rgba(18, 16, 11, 0.18);
  padding: 12px;
  backdrop-filter: blur(12px);
}

.dahab-ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dahab-ad-title {
  color: var(--ink);
  font-size: 0.95rem;
}

.dahab-ad-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(18, 16, 11, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
}

.dahab-ad-note {
  display: block;
  margin-block: 6px 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.dahab-ad-body {
  min-height: 86px;
  border-radius: 8px;
  background: #f7f3e9;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dahab-ad-slot {
  width: 100%;
  min-height: 86px;
}

.dahab-ad-placeholder {
  margin: 0;
  padding: 14px;
  color: #4e4736;
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 860px) {
  .site-header {
    align-items: start;
    gap: 14px;
    grid-template-columns: 1fr auto;
    padding: 18px;
  }

  nav {
    gap: 14px;
    grid-column: 1 / -1;
    justify-content: start;
    order: 3;
    overflow-x: auto;
  }

  body.lang-ar nav {
    justify-content: end;
  }

  .hero {
    background-position: center bottom 14px;
    background-size: 115vw;
    min-height: 820px;
    padding: 158px 18px 170px;
  }

  body.lang-ar .hero {
    background-position: center bottom 14px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 25vw, 8rem);
  }

  .hero-signal {
    bottom: 24px;
    inset-inline: 18px;
    min-width: 0;
  }

  .product-preview {
    grid-template-columns: 1fr;
    margin-top: -26px;
    padding: 0 18px 72px;
  }

  .preview-phone {
    min-height: 590px;
  }

  .preview-notes article {
    grid-template-columns: 52px 1fr;
  }

  .band,
  .legal-shell,
  .support-shell {
    padding-inline: 18px;
  }

  .flow,
  .feature-list,
  .support-grid,
  .install-grid,
  .setup-accounts,
  .trust {
    grid-template-columns: 1fr;
  }

  .flow article,
  .feature-list article,
  .support-grid article {
    min-height: 0;
  }

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

  .category-rail article {
    border-bottom: 1px solid var(--line);
    min-height: 150px;
  }

  .offer-strip {
    min-height: 0;
  }

  footer {
    flex-direction: column;
    padding-inline: 18px;
  }

  .dahab-ad-dock {
    inset-inline: 14px;
    inset-block-end: 14px;
    max-width: none;
  }

  .dahab-ad-panel {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand span {
    font-size: 1rem;
  }

  .language-switch button {
    min-width: 52px;
  }

  .category-rail {
    grid-template-columns: 1fr;
  }
}

.hero-polished {
  background: #11110f;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  min-height: 780px;
  padding-bottom: 88px;
}

body.lang-ar .hero-polished,
body.lang-en .hero-polished {
  background-image: none;
  background-position: center;
}

.hero-polished::before {
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.94), rgba(17, 17, 15, 0.72)),
    url("assets/dahab-app-icon.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 700px;
  opacity: 0.36;
}

.hero-polished h1 {
  font-size: 7.4rem;
  line-height: 0.9;
  margin-bottom: 22px;
}

.hero-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  max-width: 620px;
}

.hero-metrics span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-height: 86px;
  padding: 14px;
}

.hero-metrics b {
  color: var(--gold);
  font-size: 1.7rem;
}

.hero-metrics small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.hero-device-stage {
  align-self: center;
  min-height: 590px;
  position: relative;
  z-index: 1;
}

.phone-frame {
  background: #050505;
  border: 9px solid #050505;
  border-radius: 38px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  position: relative;
}

.phone-frame::after {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  content: "";
  inset: 7px;
  pointer-events: none;
  position: absolute;
}

.phone-top {
  background: #050505;
  display: grid;
  height: 25px;
  place-items: center;
}

.phone-top span {
  background: #161616;
  border-radius: 999px;
  display: block;
  height: 7px;
  width: 72px;
}

.hero-device-main {
  margin-inline-start: auto;
  width: 330px;
  --phone-tilt: -3deg;
  transform: translateY(var(--hero-phone-y, 0px)) rotate(var(--phone-tilt));
}

body.lang-ar .hero-device-main {
  --phone-tilt: 3deg;
}

.hero-device-side {
  inset-block-start: 104px;
  inset-inline-start: 12px;
  position: absolute;
  width: 230px;
  --phone-tilt: 7deg;
  transform: translateY(var(--hero-side-y, 0px)) rotate(var(--phone-tilt));
}

body.lang-ar .hero-device-side {
  --phone-tilt: -7deg;
}

.hero-tag {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 40px;
  color: var(--ink);
  font-weight: 950;
  inset-inline-end: 12px;
  padding: 14px 18px;
  position: absolute;
}

.app-screen {
  background: var(--paper);
  color: var(--ink);
  display: grid;
  min-height: 548px;
  padding: 20px;
}

.screen-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.screen-head small {
  color: var(--muted);
  font-weight: 900;
}

.screen-head strong {
  color: var(--gold-deep);
  font-size: 1.45rem;
}

.balance-card {
  align-self: start;
  background: #181713;
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 20px;
}

.balance-card b {
  color: var(--gold);
  font-size: 2.4rem;
}

.mini-map {
  align-self: start;
  background:
    linear-gradient(90deg, transparent 21px, rgba(47, 125, 106, 0.18) 22px, transparent 23px),
    linear-gradient(0deg, transparent 21px, rgba(47, 125, 106, 0.18) 22px, transparent 23px),
    #dfead2;
  border-radius: 8px;
  display: grid;
  min-height: 190px;
  place-items: center;
  position: relative;
}

.mini-map i {
  background: var(--gold);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(17, 17, 15, 0.14);
  height: 34px;
  position: absolute;
  width: 34px;
}

.mini-map i:nth-child(1) { inset-block-start: 34px; inset-inline-start: 34px; }
.mini-map i:nth-child(2) { inset-block-start: 82px; inset-inline-end: 42px; }
.mini-map i:nth-child(3) { inset-block-end: 38px; inset-inline-start: 86px; }
.mini-map i:nth-child(4) { inset-block-end: 54px; inset-inline-end: 92px; }
.mini-map i:nth-child(5) { inset-block-start: 112px; inset-inline-start: 50%; }

.bottom-tabs {
  align-self: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.bottom-tabs span {
  background: rgba(17, 17, 15, 0.14);
  border-radius: 999px;
  height: 9px;
}

.bottom-tabs .active {
  background: var(--gold);
}

.qr-screen {
  align-content: center;
  gap: 18px;
  justify-items: center;
  min-height: 360px;
}

.qr-screen strong {
  color: var(--gold-deep);
}

.qr-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 32px);
  padding: 18px;
}

.qr-tile span {
  background: #11110f;
  border-radius: 4px;
  height: 32px;
}

.qr-tile span:nth-child(2),
.qr-tile span:nth-child(5) {
  background: var(--gold);
}

.screen-showcase {
  margin: 0 auto;
  max-width: 1180px;
  padding: 86px 30px 74px;
}

.section-intro.compact {
  margin-bottom: 30px;
  max-width: 680px;
}

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

.screen-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.screen-card h3 {
  font-size: 1.1rem;
  margin: 0;
}

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

.gallery-phone {
  border-radius: 28px;
  justify-self: center;
  width: min(100%, 210px);
}

.gallery-phone .phone-top {
  height: 20px;
}

.gallery-phone .phone-top span {
  width: 48px;
}

.gallery-phone .app-screen {
  min-height: 310px;
  padding: 14px;
}

.gallery-phone .balance-card {
  padding: 14px;
}

.gallery-phone .balance-card b {
  font-size: 1.6rem;
}

.gallery-phone .mini-map {
  min-height: 116px;
}

.gallery-phone .mini-map i {
  border-width: 3px;
  height: 22px;
  width: 22px;
}

.rewards-screen,
.merchant-screen,
.admin-screen {
  align-content: center;
  gap: 14px;
}

.reward-pill,
.merchant-balance {
  background: var(--gold);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
  padding: 14px;
  text-align: center;
}

.reward-row {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 40px 1fr;
  padding: 12px;
}

.reward-row b,
.admin-grid span,
.admin-actions b {
  background: var(--mint);
  border-radius: 8px;
  display: block;
  min-height: 38px;
}

.reward-row span,
.admin-line {
  background: rgba(17, 17, 15, 0.14);
  border-radius: 999px;
  display: block;
  height: 12px;
}

.reward-ticket {
  background: #181713;
  border-radius: 8px;
  color: var(--gold);
  font-weight: 950;
  padding: 14px;
  text-align: center;
}

.scanner-box {
  border: 2px solid var(--gold);
  border-radius: 8px;
  min-height: 126px;
  position: relative;
}

.scanner-box::before,
.scanner-box::after {
  background: var(--gold);
  content: "";
  height: 2px;
  inset-inline: 22px;
  position: absolute;
}

.scanner-box::before { inset-block-start: 38px; }
.scanner-box::after { inset-block-end: 38px; }

.merchant-screen button {
  background: #181713;
  border: 0;
  border-radius: 8px;
  color: var(--gold);
  font: inherit;
  font-weight: 950;
  min-height: 46px;
}

.admin-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.admin-grid span:nth-child(2) {
  background: var(--gold);
}

.admin-grid span:nth-child(3) {
  background: var(--clay);
}

.admin-line.short {
  width: 62%;
}

.admin-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.admin-actions b {
  background: #181713;
}

.operating-strip,
.partner-band {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px 30px 76px;
}

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

.operating-strip article {
  border-top: 4px solid var(--gold);
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.operating-strip article:nth-child(2) {
  border-color: var(--mint);
}

.operating-strip article:nth-child(3) {
  border-color: var(--clay);
}

.operating-strip span {
  color: var(--muted);
  font-weight: 950;
}

.operating-strip h2,
.partner-band h2 {
  font-size: 2rem;
  line-height: 1.24;
  margin: 0;
}

.operating-strip p {
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

.partner-band {
  align-items: end;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
}

.partner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

body.lang-ar .partner-chips {
  justify-content: start;
}

.partner-chips span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  padding: 12px 16px;
}

.trust-polished {
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: 1180px;
  padding: 72px 30px 92px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .motion-phone {
    transform: rotate(var(--phone-tilt));
  }
}

@media (max-width: 980px) {
  .hero-polished {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 146px;
  }

  .hero-polished h1 {
    font-size: 5.6rem;
  }

  .hero-device-stage {
    min-height: 520px;
  }

  .hero-device-main {
    margin-inline: auto;
    width: 300px;
  }

  .hero-device-side {
    width: 200px;
  }

  .screen-gallery,
  .operating-strip,
  .partner-band,
  .trust-polished {
    grid-template-columns: 1fr;
  }

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

  .partner-chips,
  body.lang-ar .partner-chips {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .hero-polished {
    padding: 142px 18px 64px;
  }

  .hero-polished h1 {
    font-size: 4.2rem;
  }

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

  .hero-device-stage {
    min-height: 450px;
  }

  .hero-device-main {
    width: min(290px, 86vw);
  }

  .hero-device-side {
    inset-block-start: 132px;
    width: 172px;
  }

  .hero-tag {
    bottom: 0;
    inset-inline: 0 auto;
    max-width: 230px;
  }

  .screen-showcase,
  .operating-strip,
  .partner-band,
  .trust-polished {
    padding-inline: 18px;
  }
}
