/* ============================================================
   Payro — luxury monochrome design system
   Palette: #0a0a0a bg / #111-#1a surfaces / #f5f5f5 text /
   gray secondary / single muted-gold accent #C9A96A
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #151515;
  --surface-3: #1a1a1a;
  --line: #232323;
  --line-soft: #1c1c1c;
  --text: #f5f5f5;
  --muted: #9c9c9c;
  --muted-2: #6f6f6f;
  --gold: #C9A96A;
  --radius: 16px;
  --maxw: 1140px;
  --font-en: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ar: "Tajawal", "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--text); text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow { max-width: 820px; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark { border-radius: 7px; }

.brand-name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
}

html[lang="ar"] .brand-name { letter-spacing: 0; }

.main-nav {
  display: none;
  gap: 26px;
  margin-inline-start: auto;
}

.main-nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--text); }

.lang-toggle {
  margin-inline-start: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav:not(:only-child) ~ .lang-toggle,
.main-nav ~ .lang-toggle { margin-inline-start: 0; }

.lang-toggle:hover { border-color: #3a3a3a; }

.lang-toggle [data-lang-opt].active { color: var(--text); font-weight: 600; }

.lang-sep { color: var(--muted-2); }

/* ---------------- Hero ---------------- */

.hero {
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  padding-block: 72px 64px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

html[lang="ar"] .kicker { letter-spacing: 0.02em; font-size: 14.5px; }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 12ch;
}

html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; max-width: 16ch; }

.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18.5px);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--text);
  color: #0a0a0a;
  border: 1px solid var(--text);
}

.btn-primary:hover { background: #dcdcdc; border-color: #dcdcdc; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: #3d3d3d; background: var(--surface-2); }

.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------------- Trust strip ---------------- */

.trust {
  padding-block: 40px;
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}

.trust-label {
  color: var(--muted-2);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

html[lang="ar"] .trust-label { letter-spacing: 0.02em; font-size: 13.5px; }

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.chip::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-inline-end: 9px;
  vertical-align: middle;
  opacity: 0.75;
}

/* ---------------- Sections ---------------- */

.section { padding-block: 92px; }

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: center;
  margin-bottom: 14px;
}

html[lang="ar"] .section-title { letter-spacing: 0; }

.section-sub {
  color: var(--muted);
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 56px;
}

/* ---------------- Feature cards ---------------- */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover { border-color: #2e2e2e; transform: translateY(-3px); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: 20px;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p { color: var(--muted); font-size: 15px; }

/* ---------------- Steps ---------------- */

.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}

.step {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.step-num {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }

.step p { color: var(--muted); font-size: 15px; }

/* ---------------- FAQ ---------------- */

.faq-list details {
  border-bottom: 1px solid var(--line-soft);
}

.faq-list details:first-child { border-top: 1px solid var(--line-soft); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 4px;
  font-size: 16.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--muted-2);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease, color 0.2s ease;
}

.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--gold); }

.faq-list summary:hover { color: #ffffff; }

.faq-list details p {
  color: var(--muted);
  font-size: 15px;
  padding: 0 4px 24px;
  max-width: 68ch;
}

/* ---------------- CTA banner ---------------- */

.cta-section { padding-top: 0; }

.cta-banner {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  padding: 72px 28px;
}

.cta-banner h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

html[lang="ar"] .cta-banner h2 { letter-spacing: 0; }

.cta-banner p { color: var(--muted); margin-bottom: 32px; }

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 48px 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}

.footer-brand p { color: var(--muted-2); font-size: 14px; margin-top: 6px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14.5px;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--text); }

.footer-copy { color: var(--muted-2); font-size: 13.5px; }

/* ---------------- Legal pages ---------------- */

.legal { padding-block: 72px 96px; }

.legal h1 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

html[lang="ar"] .legal h1 { letter-spacing: 0; }

.legal-updated {
  color: var(--muted-2);
  font-size: 14px;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}

.legal h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.legal p { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; max-width: 74ch; }

.legal a { color: var(--text); border-bottom: 1px solid var(--line); }

/* ---------------- Entrance animations ---------------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .main-nav a, .footer-links a { transition: none; }
}

/* ---------------- Responsive ---------------- */

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
    align-items: flex-start;
  }
  .footer-brand { max-width: 300px; }
}
