:root {
  color-scheme: light;
  --ink: #10201a;
  --muted: #52645d;
  --paper: #fbfaf4;
  --soft: #eef3eb;
  --line: #d9dfd4;
  --green: #0f4f3d;
  --green-2: #0a2d25;
  --gold: #bf8d2c;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body[dir="rtl"] {
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

a {
  color: inherit;
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 32, 26, 0.1);
  background: rgba(251, 250, 244, 0.9);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

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

.nav a {
  text-decoration: none;
}

.language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--green-2);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 25, 21, 0.95), rgba(6, 25, 21, 0.78) 44%, rgba(6, 25, 21, 0.28)),
    image-set(url("/assets/screenshots/01-hifz-player-listen-pass.png") 1x);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(251, 250, 244, 0), var(--paper));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 0 138px;
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #f1d08a;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(3.25rem, 11vw, 7.5rem);
  font-weight: 900;
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--gold);
  color: #1b1305;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 72px 0;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  max-width: 760px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -62px;
  position: relative;
  z-index: 3;
}

.trust-item,
.feature,
.step,
.qr-panel,
.privacy-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.trust-item {
  min-height: 84px;
  padding: 18px;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(16, 32, 26, 0.08);
}

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

.step {
  padding: 24px;
}

.step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
}

.step h3 {
  margin-top: 20px;
  font-size: 1.25rem;
}

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

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

.feature {
  min-height: 86px;
  padding: 18px;
  font-weight: 750;
}

.screenshots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 260px);
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 18px;
  scroll-snap-type: x mandatory;
}

.phone-shot {
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--green-2);
  box-shadow: 0 18px 38px rgba(16, 32, 26, 0.16);
}

.download-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: stretch;
}

.privacy-panel {
  padding: 30px;
  background: var(--soft);
}

.privacy-panel p {
  color: var(--muted);
}

.qr-panel {
  padding: 20px;
  text-align: center;
}

.qr-panel img {
  width: 190px;
  margin: 0 auto 12px;
}

.qr-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.privacy-doc {
  max-width: 820px;
  padding: 72px 0;
}

.privacy-doc h1 {
  color: var(--green-2);
  font-size: clamp(2.4rem, 8vw, 4.6rem);
}

.privacy-doc h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

.privacy-doc p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 660px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(6, 25, 21, 0.94), rgba(6, 25, 21, 0.76) 48%, rgba(6, 25, 21, 0.52)),
      image-set(url("/assets/screenshots/01-hifz-player-listen-pass.png") 1x);
    background-position: center top;
  }

  .trust,
  .steps,
  .feature-grid,
  .download-area {
    grid-template-columns: 1fr;
  }

  .trust {
    margin-top: -42px;
  }
}

