:root {
  --night: #17434a;
  --night-2: #1f5c64;
  --gold: #f2c14e;
  --gold-2: #e9a93a;
  --cream: #fffaf2;
  --sand: #f5ead6;
  --line: #e8dcc8;
  --ink: #1d2b2f;
  --muted: #5f6f73;
  --link: #1f6f7a;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
[lang=ar], [dir=rtl] { font-family: "Tajawal", "Baloo 2", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(23, 67, 74, .92); backdrop-filter: blur(8px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 21px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: #e6f1f0; text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--gold); }

/* hero */
.hero {
  color: #fff; overflow: hidden; position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(242,193,78,.18) 0 2px, transparent 3px) 0 0 / 90px 90px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.14) 0 1.5px, transparent 2.5px) 0 0 / 70px 70px,
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 60%, #2b6f6a 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; margin: 0 0 6px; font-weight: 800; }
.hero h1 .ar { display: block; text-align: inherit; unicode-bidi: isolate; color: var(--gold); font-family: "Tajawal", sans-serif; font-size: .8em; margin-top: 8px; }
.hero p.lead { font-size: 20px; color: #dcebea; max-width: 30em; margin: 18px 0 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0d1416; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.25); border-radius: 14px;
  padding: 10px 20px 10px 16px; min-width: 190px;
  transition: transform .15s, box-shadow .15s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.2; }
.store b { display: block; font-size: 19px; line-height: 1.15; }

.phone {
  justify-self: center; width: min(280px, 70vw, 34vh);
  border-radius: 38px; padding: 10px; background: #0d1416;
  box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 0 2px rgba(242,193,78,.4);
  transform: rotate(3deg);
}
.phone img { border-radius: 30px; }

/* sections */
section.block { padding: 72px 0; }
section.block h2 { font-size: clamp(28px, 4vw, 38px); text-align: center; margin: 0 0 8px; line-height: 1.15; }
section.block .sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 34em; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.feature .ic { font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; background: var(--sand); border-radius: 16px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 4px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.shots-bg { background: var(--sand); }
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; justify-content: center; }
.shots img { width: 230px; flex: none; border-radius: 22px; scroll-snap-align: center; box-shadow: 0 12px 30px rgba(23,67,74,.18); }

.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.link-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.link-card b { display: block; font-size: 18px; }
.link-card span { color: var(--muted); font-size: 14px; }
.link-card code { display: block; margin-top: 8px; font-size: 13px; color: var(--link); word-break: break-all; }

.ar-band { background: var(--night); color: #fff; text-align: center; }
.ar-band p { color: #dcebea; max-width: 34em; margin: 0 auto; font-size: 19px; }
.ar-band h2 { color: var(--gold); }

footer { background: #0f2e33; color: #b9cfcd; font-size: 14px; padding: 30px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; }
footer a { color: #e6f1f0; text-decoration: none; margin-inline-end: 18px; }
footer a:hover { color: var(--gold); }

/* document pages (privacy, support) */
.doc { max-width: 780px; margin: 0 auto; padding: 40px 20px 70px; }
.doc .langs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.doc .langs a { background: var(--sand); border-radius: 999px; padding: 3px 14px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); }
.doc section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 30px 26px; margin-top: 24px; }
.doc h1 { font-size: 34px; margin: 18px 0 2px; line-height: 1.2; }
.doc h2 { font-size: 21px; margin: 28px 0 4px; color: var(--night); }
.doc .muted { color: var(--muted); font-size: 14px; }
.doc li { margin: 6px 0; }
[dir=rtl] { text-align: right; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 44px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .pills, .stores { justify-content: center; }
  .phone { transform: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .links { grid-template-columns: 1fr; }
  .shots { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .top nav a.hide-sm { display: none; }
  .features { grid-template-columns: 1fr; }
  .doc section { padding: 6px 18px 20px; }
  .store { min-width: 0; flex: 1 1 100%; justify-content: center; }
}
