:root {
  --primary: #006b5a;
  --deep: #004c43;
  --gold: #c99a2e;
  --cream: #fff8ec;
  --paper: #fffcf5;
  --white: #ffffff;
  --ink: #182b2a;
  --muted: #5f6f6a;
  --line: #e8dcc5;
  --shadow: 0 20px 55px rgba(84, 60, 20, .12);
  --soft-shadow: 0 10px 25px rgba(84, 60, 20, .09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 26%, rgba(201, 154, 46, .14), transparent 28rem),
    radial-gradient(circle at 8% 10%, rgba(0, 107, 90, .08), transparent 26rem),
    var(--cream);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto auto 0;
  width: min(38vw, 520px);
  height: min(56vw, 760px);
  pointer-events: none;
  opacity: .24;
  background:
    linear-gradient(135deg, transparent 48%, rgba(201,154,46,.35) 49%, rgba(201,154,46,.35) 51%, transparent 52%),
    radial-gradient(circle at 0 0, transparent 0 18%, rgba(201,154,46,.35) 18.2% 18.8%, transparent 19%);
  background-size: 42px 42px, 100% 100%;
  mask-image: linear-gradient(135deg, #000 0 58%, transparent 78%);
}

a {
  color: var(--deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(201, 154, 46, .55);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 236, .92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  filter: drop-shadow(0 4px 8px rgba(0, 76, 67, .16));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
}

.site-nav a,
.site-header > .nav-download {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  color: white !important;
  background: linear-gradient(135deg, var(--primary), var(--deep));
  box-shadow: 0 10px 22px rgba(0, 76, 67, .22);
}

.menu-button {
  display: none;
  width: 48px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--deep);
}

.section-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 34px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(30px, 7vw, 86px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding-block: clamp(40px, 7vw, 86px);
}

.badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(201, 154, 46, .55);
  border-radius: 999px;
  color: var(--deep);
  background: rgba(255, 252, 245, .72);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--deep);
}

h1 {
  margin-top: 24px;
  font-size: clamp(3rem, 9vw, 6.25rem);
  line-height: .96;
  letter-spacing: 0;
}

.subhead {
  margin: 16px 0 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
}

.lead {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.7;
}

.cta-stack {
  display: grid;
  gap: 12px;
  max-width: 410px;
  margin-top: 28px;
}

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

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--deep));
  box-shadow: 0 14px 30px rgba(0, 76, 67, .23);
}

.button.secondary {
  border: 1px solid rgba(201, 154, 46, .52);
  color: var(--ink);
  background: rgba(255, 252, 245, .72);
}

.button.disabled {
  cursor: default;
}

.small-note {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.55;
}

.verify {
  max-width: 540px;
  margin-top: 22px;
  color: var(--muted);
}

.verify summary {
  cursor: pointer;
  color: var(--deep);
  font-weight: 900;
}

.checksum-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 10px;
}

code {
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #efe6d4;
  color: var(--ink);
  padding: 10px 12px;
  font-size: .82rem;
}

.checksum-row code {
  flex: 1;
}

.copy-button {
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: white;
  background: var(--deep);
  font-weight: 900;
}

.command code {
  display: inline;
  padding: 2px 5px;
}

.hero-visual {
  position: relative;
  min-height: 630px;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(320px, 78vw);
  border: 13px solid #111;
  border-radius: 42px;
  background: #111;
  box-shadow: var(--shadow);
}

.phone-top {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 110px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: #111;
}

.phone-screen {
  overflow: hidden;
  min-height: 584px;
  border-radius: 30px;
  padding: 44px 18px 18px;
  background: #fffaf1;
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.mini-card {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #eadfca;
  border-radius: 8px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.mini-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-card strong,
.mini-card small {
  display: block;
}

.mini-button {
  margin-top: 10px;
  padding: 9px;
  border-radius: 8px;
  color: white;
  background: var(--primary);
  text-align: center;
  font-weight: 900;
}

.progress {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eadf;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.mini-stats span {
  padding: 8px 4px;
  border: 1px solid #eadfca;
  border-radius: 8px;
  background: white;
  color: var(--muted);
  text-align: center;
  font-size: .65rem;
}

.mini-stats strong {
  display: block;
  color: var(--deep);
  font-size: .95rem;
}

.arabic-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee4d4;
}

.arabic-row:last-child {
  border-bottom: 0;
}

.arabic-row span {
  direction: rtl;
  color: var(--deep);
  font-size: 1.35rem;
  font-weight: 900;
}

.lamp-card {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 210px;
  height: 320px;
  border-radius: 120px 120px 8px 8px;
  opacity: .2;
  background:
    linear-gradient(transparent 0 55%, rgba(201,154,46,.55) 56% 58%, transparent 59%),
    radial-gradient(ellipse at center, rgba(201,154,46,.36), transparent 62%);
  border: 3px solid rgba(201, 154, 46, .18);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-block: 26px 36px;
}

.feature-card,
.trust,
.download,
.disclaimer,
.faq-preview details,
.policy-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, .86);
  box-shadow: var(--soft-shadow);
}

.feature-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 20px;
}

.feature-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--deep);
  background: #edf3e9;
  font-size: 1.8rem;
  font-weight: 900;
}

.feature-card h2 {
  font-size: 1.05rem;
}

.feature-card p {
  grid-column: 2;
  margin: -6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.trust {
  padding: 28px;
  text-align: center;
}

.trust h2,
.download h2,
.faq-preview h2 {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.trust > p {
  color: var(--muted);
}

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

.trust-grid span {
  padding: 16px;
  border-left: 1px solid var(--line);
  color: var(--deep);
  font-weight: 900;
}

.download {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 36px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.safety {
  color: #77560f;
  font-weight: 800;
}

.download-actions {
  display: grid;
  min-width: 260px;
  gap: 10px;
}

.faq-preview {
  padding-block: 40px;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-top: 18px;
  text-align: left;
}

details {
  padding: 16px 18px;
}

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

details p,
details li {
  color: var(--muted);
  line-height: 1.58;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--deep);
  font-weight: 900;
  text-decoration: none;
}

.disclaimer {
  margin-bottom: 38px;
  padding: 22px 28px;
  border-color: rgba(201, 154, 46, .55);
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 245, .84);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand span {
  max-width: 310px;
  color: var(--muted);
  font-size: .88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.page {
  max-width: 900px;
  padding-block: 48px 80px;
}

.page h1 {
  margin-top: 0;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
}

.faq-list,
.policy-card {
  margin-top: 26px;
}

.faq-list details {
  margin-bottom: 12px;
}

.policy-card {
  padding: 24px;
  color: var(--muted);
  line-height: 1.7;
}

.policy-card li {
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: auto;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .badge {
    border-radius: 8px;
  }

  .cta-stack,
  .button,
  .download-actions {
    width: 100%;
  }

  .features,
  .trust-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-columns: 52px 1fr;
  }

  .trust-grid span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .checksum-row {
    flex-direction: column;
  }
}
