:root {
  color-scheme: light;
  --purple: #573cff;
  --purple-dark: #24144f;
  --purple-soft: #eeeaff;
  --mint: #19ba92;
  --coral: #ff795f;
  --ink: #171332;
  --muted: #77718e;
  --border: #e7e3f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(87,60,255,.13), transparent 24rem),
    radial-gradient(circle at 90% 45%, rgba(25,186,146,.11), transparent 25rem),
    #f8f7ff;
}

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

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding: clamp(28px, 6vw, 68px);
  border-radius: 36px;
  color: white;
  background: linear-gradient(135deg, #17102f 0%, #30206f 50%, #5a3bff 100%);
  box-shadow: 0 30px 80px rgba(37,22,94,.25);
}

.glow { position: absolute; border-radius: 999px; filter: blur(4px); opacity: .55; }
.glow-one { width: 360px; height: 360px; background: #765fff; top: -190px; left: -100px; }
.glow-two { width: 260px; height: 260px; background: #13cfa0; bottom: -170px; right: -70px; }

.brand, .intro, .store-buttons, .shared-content, .load-note, .privacy-link { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 20px; }
.logo {
  width: clamp(82px, 12vw, 120px);
  height: clamp(82px, 12vw, 120px);
  object-fit: cover;
  border-radius: 28px;
  border: 5px solid rgba(255,255,255,.9);
  box-shadow: 0 14px 38px rgba(0,0,0,.25);
}
.brand h1 { margin: 0; font-size: clamp(34px, 6vw, 64px); line-height: 1.1; font-weight: 900; }
.brand h1 span { font-family: system-ui, sans-serif; }
.brand h1 b { color: #a89aff; font-weight: 400; }
.tagline { margin: 12px 0 0; color: #dcd7ff; font-size: clamp(18px, 2.4vw, 25px); font-weight: 700; }

.privacy-link {
  position: absolute;
  top: clamp(28px, 5vw, 54px);
  left: clamp(28px, 5vw, 54px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 14px;
  color: white;
  background: rgba(255,255,255,.12);
  text-decoration: none;
  font-weight: 800;
  backdrop-filter: blur(12px);
  transition: transform .18s ease, background .18s ease;
}
.privacy-link:hover { transform: translateY(-2px); background: rgba(255,255,255,.2); }

.intro { max-width: 760px; margin: 44px 0 30px; font-size: clamp(18px, 2.4vw, 25px); line-height: 1.9; color: #eeebff; }

.shared-content {
  margin-top: 34px;
  padding: 23px;
  max-width: 760px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(12px);
}
.kind-pill { display: inline-flex; padding: 7px 13px; border-radius: 999px; background: #dffaf2; color: #087d63; font-weight: 800; }
.shared-content h2 { margin: 14px 0 6px; font-size: clamp(22px, 3vw, 32px); }
.shared-content p { margin: 0 0 18px; color: #e5e0ff; }
.open-app { border: 0; border-radius: 15px; padding: 13px 18px; font: inherit; font-weight: 900; color: #3823cc; background: white; cursor: pointer; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  min-width: 235px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 19px;
  border-radius: 18px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.store:hover { transform: translateY(-3px); box-shadow: 0 13px 30px rgba(0,0,0,.2); }
.store.android { background: #fff; color: #1a1537; }
.store.apple { background: #111; color: #fff; }
.store-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: white; background: linear-gradient(135deg,#20c886,#27a5ff 48%,#ffcd35 74%,#ff5d54); font-size: 18px; }
.apple-mark { background: white; color: black; font-size: 31px; }
.store span:last-child { display: flex; flex-direction: column; }
.store small { font-size: 12px; opacity: .7; }
.store strong { font-family: system-ui, sans-serif; font-size: 20px; }
.load-note { margin: 14px 3px 0; color: #cfc8f4; font-size: 13px; }

.about-card { margin-top: 24px; padding: clamp(26px, 5vw, 50px); border: 1px solid var(--border); border-radius: 32px; background: rgba(255,255,255,.92); box-shadow: 0 20px 60px rgba(43,28,94,.08); }
.section-heading { display: flex; align-items: center; gap: 15px; }
.heading-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; color: white; background: linear-gradient(135deg,var(--purple),#8b71ff); font-size: 24px; }
.section-heading p { margin: 0; color: var(--purple); font-weight: 900; }
.section-heading h2 { margin: 4px 0 0; font-size: clamp(25px, 4vw, 38px); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.features article { padding: 24px; border-radius: 23px; background: #faf9ff; border: 1px solid var(--border); }
.features article > span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; color: var(--purple); background: var(--purple-soft); font-size: 23px; }
.features article:nth-child(2) > span { color: #d44b34; background: #fff0ec; }
.features article:nth-child(3) > span { color: #07846a; background: #e4faf4; }
.features h3 { margin: 17px 0 8px; font-size: 21px; }
.features p { margin: 0; color: var(--muted); line-height: 1.7; }

footer { display: flex; justify-content: center; align-items: center; gap: 9px; padding: 26px 0 0; color: var(--muted); font-weight: 700; }
footer img { width: 32px; height: 32px; border-radius: 9px; }
footer a { color: var(--purple); font-weight: 800; text-decoration: none; }
.footer-separator { color: #bbb5cc; }

.privacy-page .page-shell { width: min(960px, calc(100% - 28px)); }
.privacy-header {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 32px;
  color: white;
  background: linear-gradient(135deg, #17102f 0%, #30206f 55%, #5a3bff 100%);
  box-shadow: 0 25px 65px rgba(37,22,94,.22);
}
.privacy-brand { display: flex; align-items: center; gap: 17px; }
.privacy-brand img { width: 78px; height: 78px; object-fit: cover; border-radius: 22px; border: 4px solid white; }
.privacy-brand h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); }
.privacy-brand p { margin: 7px 0 0; color: #dcd7ff; font-weight: 700; }
.home-link { padding: 11px 16px; border-radius: 14px; color: #3823cc; background: white; text-decoration: none; font-weight: 900; white-space: nowrap; }
.privacy-content { margin-top: 22px; padding: clamp(26px, 5vw, 50px); border: 1px solid var(--border); border-radius: 30px; background: white; box-shadow: 0 18px 55px rgba(43,28,94,.08); }
.privacy-content h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 38px); }
.privacy-content .updated { margin: 0 0 26px; color: var(--muted); }
.privacy-body { color: #353047; font-size: 18px; line-height: 2; white-space: pre-wrap; }
.privacy-admob-disclosure { margin-top: 30px; padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: #f8f6ff; color: #353047; font-size: 17px; line-height: 1.9; }
.privacy-admob-disclosure h3 { margin: 0 0 8px; color: var(--ink); font-size: 22px; }
.privacy-admob-disclosure p { margin: 8px 0 0; }
.privacy-admob-disclosure a { color: var(--primary); font-weight: 700; }
.privacy-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 16px, 1120px); padding-top: 8px; }
  .hero-card { border-radius: 26px; min-height: 0; }
  .brand { align-items: flex-start; }
  .brand h1 { font-size: 34px; }
  .privacy-link { position: relative; inset: auto; margin-top: 24px; }
  .intro { margin-top: 30px; }
  .store-buttons { flex-direction: column; }
  .store { width: 100%; min-width: 0; }
  .features { grid-template-columns: 1fr; }
  .about-card { border-radius: 26px; }
  footer { flex-wrap: wrap; }
  .privacy-header { align-items: flex-start; flex-direction: column; border-radius: 25px; }
  .privacy-brand img { width: 64px; height: 64px; border-radius: 18px; }
  .privacy-content { border-radius: 25px; }
}
