/* yusful.apps — brand palette derived from logo_yusful.svg */
:root {
  --ink: #2d2b6b;        /* logo indigo */
  --ink-soft: #454379;
  --ink-deep: #232152;
  --muted: #67659a;
  --rose: #b88088;       /* logo rose */
  --rose-deep: #a06970;
  --rose-soft: #f6ecee;
  --rose-line: #eadadd;
  --bg: #fdfbfc;
  --card: #ffffff;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Noto Naskh Arabic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--rose-deep); }

a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 251, 252, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rose-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 26px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 20px; }

.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-link:hover { color: var(--rose-deep); }

/* language dropdown (no JS required) */
.lang { position: relative; }

.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--rose-line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--card);
  user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--rose); color: var(--rose-deep); }
.lang summary svg { width: 16px; height: 16px; }

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  background: var(--card);
  border: 1px solid var(--rose-line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(45, 43, 107, 0.14);
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.lang-menu a:hover { background: var(--rose-soft); color: var(--rose-deep); }
.lang-menu a.active { font-weight: 700; color: var(--rose-deep); }

/* ---------- hero ---------- */
.hero {
  padding-block: 96px 84px;
  text-align: center;
  background:
    radial-gradient(640px 320px at 18% -10%, rgba(184, 128, 136, 0.14), transparent 70%),
    radial-gradient(640px 320px at 85% 10%, rgba(45, 43, 107, 0.09), transparent 70%);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose-deep);
  margin-bottom: 18px;
}
html[dir="rtl"] .kicker { letter-spacing: 0; }

.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin-inline: auto;
}
html[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.3; }

.lead {
  max-width: 640px;
  margin: 22px auto 38px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(45, 43, 107, 0.22);
}
.btn:hover { background: var(--rose-deep); transform: translateY(-1px); }

.btn-rose {
  background: var(--rose);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.btn-rose:hover { background: var(--rose-deep); }

/* ---------- sections ---------- */
section { padding-block: 64px; }

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}
html[dir="rtl"] .section-title { letter-spacing: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--rose-line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 4px 24px rgba(45, 43, 107, 0.05);
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

.apps-card {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  padding: 44px 32px;
}
.apps-card p { font-size: 1.02rem; }

.badge {
  display: inline-block;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
html[dir="rtl"] .badge { letter-spacing: 0; }

/* ---------- contact ---------- */
.contact-banner {
  background: linear-gradient(135deg, var(--ink-deep), var(--ink) 55%, #4a3f7a);
  color: #fff;
  border-radius: 26px;
  text-align: center;
  padding: 60px 32px;
}
.contact-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.contact-banner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin: 0 auto 30px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: #fff;
  margin-top: 48px;
  padding-block: 44px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}

.wordmark { font-weight: 700; font-size: 1.15rem; }
.wordmark span { color: var(--rose); }

.rights {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
html[dir="rtl"] .footer-col { align-items: flex-start; }

.footer-col > a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-col > a:hover { color: #fff; text-decoration: underline; }

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.85rem;
  justify-content: flex-end;
}
.footer-langs a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.footer-langs a:hover { color: #fff; }
.footer-langs a.active { color: var(--rose); font-weight: 600; }

/* ---------- privacy / prose pages ---------- */
.prose {
  max-width: 720px;
  margin-inline: auto;
  padding-block: 64px 32px;
}
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 36px; }
.prose h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.prose p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 12px; }

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  text-decoration: none;
  font-weight: 500;
  color: var(--rose-deep);
}
.back-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .hero { padding-block: 72px 60px; }
  section { padding-block: 44px; }
  .header-inner { height: 58px; }
  .logo img { height: 22px; }
}
