:root {
  color-scheme: light;
  --ink: #271f24;
  --muted: #685e62;
  --wine: #563344;
  --wine-dark: #412535;
  --rose: #9f5e66;
  --cream: #faf6f0;
  --paper: #fffdf9;
  --line: #e9dfd8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(250, 246, 240, .92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.08rem; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--wine); color: white; font-size: 1.3rem; line-height: 1; }
.site-header nav { display: flex; gap: 28px; color: var(--muted); font-size: .95rem; }
.site-header nav a:hover, .site-footer a:hover, .text-link:hover { color: var(--rose); }

.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 52px; padding-block: 88px 104px; }
.eyebrow { margin: 0 0 16px; color: var(--rose); font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
.hero h1 { margin: 0; font-size: clamp(2.65rem, 5vw, 4.6rem); line-height: 1.32; letter-spacing: -.045em; }
.hero h1 span { color: var(--wine); }
.hero-description { max-width: 560px; margin: 26px 0 32px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 56px; padding: 12px 24px; border-radius: 15px; font-weight: 800; line-height: 1.4; text-align: center; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--wine); color: white; box-shadow: 0 12px 28px rgba(65, 37, 53, .16); }
.button-primary:hover { background: var(--wine-dark); }
.text-link { color: var(--wine); font-weight: 700; }
.text-link span { margin-inline-start: 4px; }
.availability { margin: 20px 0 0; color: var(--muted); font-size: .88rem; }

.reader-art { position: relative; display: grid; place-items: center; min-height: 520px; overflow: hidden; border: 1px solid #efdfd7; border-radius: 34px; background: radial-gradient(circle at 82% 15%, #f8dfd5 0, transparent 35%), linear-gradient(145deg, #f4ebe5, #e9d9d8); }
.art-orbit { position: absolute; border: 1px solid rgba(86, 51, 68, .12); border-radius: 50%; }
.orbit-one { width: 540px; height: 540px; }
.orbit-two { width: 390px; height: 390px; }
.reader-card { position: relative; z-index: 1; width: min(290px, 68%); min-height: 390px; padding: 24px 25px 20px; border: 1px solid #e6d8ce; border-radius: 20px; background: var(--paper); box-shadow: 0 28px 60px rgba(67, 39, 49, .16); transform: rotate(-5deg); }
.reader-top, .reader-bottom { display: flex; justify-content: space-between; gap: 12px; color: #8c7e7f; font-size: .72rem; }
.reader-top { color: var(--wine); font-weight: 800; }
.reader-rule { width: 50px; height: 3px; margin: 23px 0 25px; border-radius: 9px; background: #bf9493; }
.reader-label { margin: 0 0 10px; color: var(--rose); font-size: .74rem; font-weight: 700; }
.reader-title { margin: 0; color: var(--wine); font-size: 1.7rem; line-height: 1.55; font-weight: 800; }
.reader-lines { margin: 21px 0 25px; color: #6c5f63; font-size: .85rem; line-height: 2.1; }
.reader-progress { height: 5px; overflow: hidden; border-radius: 10px; background: #eee4de; }
.reader-progress span { display: block; width: 28%; height: 100%; border-radius: inherit; background: var(--rose); }
.reader-bottom { margin-top: 12px; }
.art-caption { position: absolute; z-index: 2; bottom: 31px; left: 32px; padding: 8px 17px; border-radius: 999px; background: var(--wine); color: white; font-size: .82rem; font-weight: 700; transform: rotate(4deg); }

.features { padding-block: 88px 100px; border-top: 1px solid var(--line); background: #fffdf9; }
.section-heading { max-width: 560px; margin-bottom: 34px; }
.section-heading h2, .download h2 { margin: 0 0 10px; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.4; }
.section-heading > p:last-child { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { min-height: 210px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.feature-number { color: var(--rose); font-size: .85rem; font-weight: 800; }
.feature-card h3 { margin: 16px 0 8px; font-size: 1.2rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.download { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-block: 80px; padding: 48px 54px; border-radius: 28px; background: var(--wine); color: white; }
.download .eyebrow { color: #ebc6c4; }
.download h2 { max-width: 600px; }
.download p:last-child { margin: 0; color: #e6d7dc; }
.button-light { flex-shrink: 0; background: white; color: var(--wine); }
.button-light:hover { background: #f9eee9; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 25px; color: var(--muted); font-size: .88rem; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding-block: 64px 80px; }
  .reader-art { min-height: 480px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .download { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 32px, 460px); }
  .header-inner { min-height: 70px; }
  .site-header nav { gap: 16px; font-size: .85rem; }
  .hero { padding-block: 56px 64px; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .hero-description { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero-actions .button { width: 100%; }
  .reader-art { min-height: 420px; }
  .reader-card { min-height: 360px; padding: 20px 22px 16px; }
  .reader-lines { margin-block: 16px; }
  .art-caption { bottom: 16px; left: 15px; }
  .features { padding-block: 64px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; padding: 25px; }
  .download { margin-block: 56px; padding: 34px 25px; }
  .button-light { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
