/* DAR | دار — landing page. Contemporary Saudi luxury, built on the app's own tokens. */
:root {
  --forest: #172923;
  --forest-deep: #0E1B16;
  --forest-soft: #1D322B;
  --ivory: #F5F1E8;
  --ivory-2: #FAF7F1;
  --ivory-3: #ECE5D8;
  --terracotta: #D96C4A;
  --terracotta-soft: #F4E1DA;
  --sand: #D6BFA3;
  --sand-hair: #E0D1BC;
  --sage: #A9B99F;
  --ink: #172923;
  --ink-2: #4B5C55;
  --radius-s: 2px;
  --radius-m: 6px;
  --radius-l: 10px;
  --shadow: 0 24px 60px -30px rgba(23, 41, 35, .45);
  --shell: 1200px;
  --sans: "Tajawal", "Segoe UI", system-ui, sans-serif;
  --serif: "Amiri", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; }
p { margin: 0; color: var(--ink-2); }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

.shell { width: min(100% - 48px, var(--shell)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--forest); color: var(--ivory); padding: 10px 16px; z-index: 99; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--sand-hair);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 28px; height: 28px; }
.brand-word { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--ink); }
.brand-divider { width: 1px; height: 20px; background: var(--sand); }
.brand-latin { font-size: 12px; letter-spacing: .38em; color: var(--ink-2); }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { font-size: 14.5px; color: var(--ink-2); position: relative; padding-block: 4px; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 1px; background: var(--terracotta); transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-m); border: 1px solid transparent;
  font-family: var(--sans); font-size: 14.5px; font-weight: 700;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary { background: var(--forest); color: var(--ivory); }
.btn-primary:hover { background: var(--forest-soft); }
.btn-outline { border-color: var(--sand); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { border-color: var(--sand); color: var(--ink); min-height: 40px; padding: 8px 16px; font-size: 13.5px; }
.btn-ghost:hover { background: var(--ivory-2); }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 76px) 0 clamp(28px, 4vw, 48px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1100px 420px at 85% -10%, rgba(214, 191, 163, .35), transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; position: relative; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .04em; color: var(--terracotta); font-weight: 500; }
.rule { width: 26px; height: 1px; background: var(--terracotta); display: inline-block; }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 6.4vw, 84px); line-height: 1.06; margin: 18px 0 0; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--forest); position: relative; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 4px; bottom: 6px; height: 7px; background: var(--terracotta-soft); z-index: -1; }
.lead { margin-top: 20px; max-width: 46ch; font-size: 17px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 13px; color: var(--ink-2); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; background: var(--terracotta); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-chip {
  position: absolute; z-index: 3; background: var(--ivory-2); border: 1px solid var(--sand-hair);
  color: var(--ink); font-size: 12px; padding: 7px 12px; border-radius: var(--radius-m);
  box-shadow: 0 12px 28px -18px rgba(23,41,35,.5);
}
.chip-a { inset-inline-start: 4%; top: 16%; }
.chip-b { inset-inline-end: 2%; bottom: 18%; }

/* ---------- phone frames ---------- */
.phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 9 / 19.6;
  background: #0b1512; border-radius: 34px; padding: 9px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(214,191,163,.18);
}
.phone::after { content: ""; position: absolute; inset-inline: 34%; top: 12px; height: 5px; border-radius: 99px; background: #0b1512; box-shadow: 0 0 0 1px rgba(255,255,255,.05); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: var(--ivory); }
.phone-hero { max-width: 340px; }

/* ---------- notice ---------- */
.notice { background: var(--terracotta-soft); border-block: 1px solid #e9cabb; }
.notice-inner { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-block: 12px; font-size: 14px; color: #6b3323; }
.notice strong { color: #8a3f28; }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tint { background: var(--ivory-2); border-block: 1px solid var(--sand-hair); }
.section-dark { background: var(--forest); color: var(--ivory); }
.section-dark p { color: rgba(245, 241, 232, .76); }
.section-head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); margin: 14px 0 10px; letter-spacing: -.01em; }
.section-head.light h2 { color: var(--ivory); }
.section-head.light .eyebrow { color: var(--sand); }
.section-head.light .rule { background: var(--sand); }

.grid { display: grid; gap: 18px; }
.card { background: var(--ivory-2); border: 1px solid var(--sand-hair); border-radius: var(--radius-l); }

/* features */
.features { grid-template-columns: repeat(3, 1fr); }
.feature { padding: 24px; transition: transform .25s ease, border-color .25s; }
.feature:hover { transform: translateY(-3px); border-color: var(--sand); }
.feature .num { font-family: var(--serif); font-size: 15px; color: var(--terracotta); letter-spacing: .08em; }
.feature h3 { font-size: 18.5px; margin: 8px 0 8px; }
.feature p { font-size: 14.5px; line-height: 1.8; }

/* gallery */
.gallery { grid-template-columns: repeat(3, 1fr); }
.shot { padding: 18px 18px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.shot .phone { max-width: 218px; border-radius: 26px; padding: 7px; }
.shot .phone img { border-radius: 20px; }
.shot figcaption { text-align: center; display: grid; gap: 3px; }
.shot figcaption b { font-size: 15.5px; }
.shot figcaption span { font-size: 13px; color: var(--ink-2); }
.shot:hover .phone { transform: translateY(-4px); }
.shot .phone { transition: transform .3s ease; }

/* journey */
.journey { grid-template-columns: repeat(3, 1fr); }
.journey-shot .phone.small { max-width: 196px; }
.receipt {
  margin-top: 22px; display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: center;
  background: var(--ivory-2); border: 1px solid var(--sand-hair); border-radius: var(--radius-l); padding: 22px;
}
.receipt img { border-radius: 8px; border: 1px solid var(--sand-hair); }
.receipt h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
.ticks { display: grid; gap: 7px; margin-top: 12px; }
.ticks li { position: relative; padding-inline-start: 20px; font-size: 14.5px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 9px; height: 1px; background: var(--terracotta); }

/* tech */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tech-block h3 { font-family: var(--serif); font-size: 22px; color: var(--ivory); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; padding: 7px 12px; border: 1px solid rgba(214,191,163,.32); border-radius: var(--radius-m); color: rgba(245,241,232,.88); background: rgba(245,241,232,.04); }
.arch {
  margin-top: 34px; display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: center; gap: 12px;
  border: 1px solid rgba(214,191,163,.26); border-radius: var(--radius-l); padding: 22px; background: rgba(245,241,232,.03);
}
.arch-node { display: grid; gap: 4px; text-align: center; padding: 14px 10px; border-radius: var(--radius-m); border: 1px dashed rgba(214,191,163,.3); }
.arch-node b { color: var(--ivory); font-size: 15px; }
.arch-node span { font-size: 12px; color: rgba(245,241,232,.6); }
.arch-node.accent { border-style: solid; border-color: var(--terracotta); background: rgba(217,108,74,.1); }
.arch-arrow { display: grid; justify-items: center; gap: 4px; color: rgba(245,241,232,.55); font-size: 11px; }
.arch-arrow::before { content: "←"; color: var(--terracotta); font-size: 18px; line-height: 1; }
.arch-note { margin-top: 14px; font-size: 13px; text-align: center; }
.secure { grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.dark-card { background: rgba(245,241,232,.05); border-color: rgba(214,191,163,.22); padding: 22px; }
.dark-card h3 { color: var(--ivory); font-size: 18px; margin-bottom: 8px; }
.dark-card p { font-size: 14px; }

/* download */
.download-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.download-copy h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); margin: 14px 0 10px; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.dl-note { font-size: 13px; color: var(--ink-2); }
.file-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 22px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--sand-hair); }
.file-meta dt { font-size: 11.5px; letter-spacing: .04em; color: var(--ink-2); }
.file-meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.hash { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 11px !important; word-break: break-all; color: var(--ink-2); font-weight: 400 !important; }
.steps { counter-reset: s; display: grid; gap: 8px; margin-top: 24px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 30px; font-size: 14px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 2px; width: 20px; height: 20px; border: 1px solid var(--sand); border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--ink); }
.download-card { text-align: center; padding: 32px 24px; background: var(--ivory-2); border: 1px solid var(--sand-hair); border-radius: var(--radius-l); box-shadow: var(--shadow); }
.download-card img { margin: 0 auto 14px; border-radius: 20px; }
.download-card h3 { font-family: var(--serif); font-size: 24px; }
.download-card > p { font-size: 13.5px; margin-bottom: 18px; }
.facts { display: grid; gap: 0; text-align: start; border-top: 1px solid var(--sand-hair); }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sand-hair); font-size: 13.5px; }
.facts span { color: var(--ink-2); }

/* footer */
.site-footer { background: var(--forest-deep); color: rgba(245,241,232,.82); padding: 48px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 34px; }
.footer-brand .brand-word, .footer-brand .brand-latin { color: var(--ivory); }
.footer-tag { margin-top: 12px; font-family: var(--serif); font-size: 20px; color: var(--sand); }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links h4 { font-size: 12px; letter-spacing: .1em; color: var(--sand); margin-bottom: 4px; }
.footer-links a, .footer-links span { font-size: 14px; color: rgba(245,241,232,.82); }
.footer-links a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
.footer-links .muted { color: rgba(245,241,232,.5); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(214,191,163,.18); font-size: 12px; color: rgba(245,241,232,.55); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .header-cta { margin-inline-start: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-copy { max-width: 640px; }
  .features, .gallery, .journey, .secure { grid-template-columns: repeat(2, 1fr); }
  .arch { grid-template-columns: 1fr; }
  .arch-arrow { grid-auto-flow: column; }
  .arch-arrow::before { content: "↓"; }
  .download-grid { grid-template-columns: 1fr; }
  .receipt { grid-template-columns: 1fr; }
  .receipt img { max-width: 320px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: calc(100% - 32px); }
  .hero { padding-top: 26px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .lead { font-size: 15.5px; }
  .hero-visual .phone-hero { max-width: 270px; }
  .hero-chip { display: none; }
  .features, .gallery, .journey, .secure { grid-template-columns: 1fr; }
  .shot .phone { max-width: 240px; }
  .file-meta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .notice-inner { font-size: 13px; }
  .section { padding-block: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
