/* ===== Reset & base ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:#1a1a2e;line-height:1.7;background:#ffffff;font-size:18px;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:#3b4bd8;text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{line-height:1.25;color:#0f1230;font-weight:700;letter-spacing:-0.01em}
h1{font-size:clamp(1.9rem,5vw,2.8rem);margin-bottom:1rem}
h2{font-size:clamp(1.4rem,3.5vw,2rem);margin:2.5rem 0 1rem}
h3{font-size:clamp(1.15rem,2.5vw,1.35rem);margin:1.75rem 0 .75rem}
p{margin:0 0 1rem}
ul,ol{margin:0 0 1.25rem;padding-left:1.4rem}
li{margin-bottom:.5rem}
table{width:100%;border-collapse:collapse;margin:1.5rem 0;font-size:.95rem;overflow-x:auto;display:block}
th,td{border:1px solid #e4e6f0;padding:.75rem 1rem;text-align:left;vertical-align:top}
th{background:#f4f5fb;font-weight:700}
tr:nth-child(even) td{background:#fafbff}

/* ===== Layout ===== */
.container{width:100%;max-width:880px;margin:0 auto;padding:0 1.25rem}
.wide{max-width:1140px}
section{padding:2.5rem 0}
section + section{padding-top:0}

/* ===== Header ===== */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid #eceef6}
.nav{display:flex;align-items:center;justify-content:space-between;height:62px;max-width:1140px;margin:0 auto;padding:0 1.25rem}
.brand{font-weight:800;font-size:1.05rem;color:#0f1230;letter-spacing:-.02em}
.brand span{color:#3b4bd8}
.nav-links{display:flex;gap:1.5rem;list-style:none;padding:0;margin:0}
.nav-links a{color:#3a3a52;font-size:.95rem;font-weight:500}
.nav-links a:hover{color:#3b4bd8;text-decoration:none}
.lang-switch{font-size:.85rem;color:#6b6b85}

/* ===== Hero ===== */
.hero{padding:3.5rem 0 2rem;background:linear-gradient(180deg,#f7f8ff 0%,#fff 100%)}
.hero .eyebrow{display:inline-block;background:#eef0ff;color:#3b4bd8;font-weight:600;
  font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;padding:.35rem .8rem;border-radius:999px;margin-bottom:1rem}
.hero p.lead{font-size:1.15rem;color:#3a3a52;margin-bottom:1.5rem;max-width:60ch}
.hero-img{border-radius:14px;overflow:hidden;box-shadow:0 20px 50px -20px rgba(20,20,60,.25);margin:2rem 0}
.hero-img img{width:100%}

/* ===== Quick answer ===== */
.quick-answer{background:#f4f5fb;border-left:4px solid #3b4bd8;border-radius:0 12px 12px 0;
  padding:1.25rem 1.5rem;margin:1.5rem 0 2rem}
.quick-answer h2{margin-top:0;font-size:1.1rem;color:#0f1230}
.quick-answer ul{margin-bottom:0}
.quick-answer li{font-weight:500}

/* ===== CTA blocks ===== */
.cta{background:linear-gradient(135deg,#3b4bd8 0%,#5b3bd8 100%);color:#fff;
  border-radius:16px;padding:2rem;margin:2rem 0;box-shadow:0 18px 40px -18px rgba(59,75,216,.5)}
.cta h3{color:#fff;margin-top:0}
.cta p{color:#e8eaff}
.cta-btn{display:inline-block;background:#fff;color:#3b4bd8;font-weight:700;
  padding:.8rem 1.6rem;border-radius:999px;font-size:1rem;margin-top:.5rem;
  transition:transform .15s ease,box-shadow .15s ease}
.cta-btn:hover{text-decoration:none;transform:translateY(-2px);box-shadow:0 12px 24px -10px rgba(0,0,0,.3)}
.cta.soft{background:#f4f5fb;color:#1a1a2e;border:1px solid #e4e6f0;box-shadow:none}
.cta.soft h3,.cta.soft p{color:#1a1a2e}

/* ===== Service cards ===== */
.service{border:1px solid #eceef6;border-radius:14px;padding:1.75rem;margin:1.5rem 0;background:#fff}
.service .rank{font-size:1.6rem}
.service h3{margin-top:0}
.service h3 a{color:#0f1230}
.tag{display:inline-block;font-size:.78rem;font-weight:600;padding:.25rem .6rem;border-radius:999px;margin-bottom:.75rem}
.tag.gold{background:#fff4d6;color:#8a6a00}
.tag.silver{background:#eef0f5;color:#4a5568}
.tag.bronze{background:#fde9dd;color:#9a4a1a}

/* ===== Stats / tips / checklist ===== */
.stat-block{background:#0f1230;color:#fff;border-radius:14px;padding:2rem;margin:2rem 0}
.stat-block h3{color:#fff}
.stat-block p{color:#c8cae0}
.checklist{background:#f7f8ff;border-radius:12px;padding:1.5rem 1.75rem;margin:1.5rem 0}
.checklist li{list-style:none;margin-left:-1rem;position:relative;padding-left:1.75rem}
.checklist li::before{content:"✓";position:absolute;left:0;color:#3b4bd8;font-weight:700}
.callout{border:1px solid #e4e6f0;border-left:4px solid #8a6a00;background:#fffdf5;border-radius:0 12px 12px 0;padding:1.25rem 1.5rem;margin:1.5rem 0}
.callout h3{margin-top:0}
.brainstorm{background:#f4f5fb;border-radius:12px;padding:1.5rem 1.75rem;margin:1.5rem 0}
.brainstorm li{font-style:italic;color:#3a3a52}

/* ===== FAQ ===== */
.faq{margin:2rem 0}
.faq details{border:1px solid #eceef6;border-radius:10px;padding:1rem 1.25rem;margin-bottom:.75rem;background:#fff}
.faq summary{font-weight:600;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{content:"+ ";color:#3b4bd8;font-weight:700}
.faq details[open] summary::before{content:"− "}

/* ===== Footer ===== */
.site-footer{background:#0f1230;color:#c8cae0;padding:3rem 0 2rem;margin-top:3rem}
.site-footer a{color:#aeb2e0}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2rem;max-width:1140px;margin:0 auto;padding:0 1.25rem}
.site-footer p{color:#8a8eb0;font-size:.9rem}
.site-footer ul{list-style:none;padding:0}
.site-footer li{margin-bottom:.4rem}

/* ===== RTL ===== */
html[lang="ar"] body,[dir="rtl"] body{direction:rtl;text-align:right}
[dir="rtl"] .checklist li{padding-left:0;padding-right:1.75rem}
[dir="rtl"] .checklist li::before{left:auto;right:0}
[dir="rtl"] .quick-answer{border-left:none;border-right:4px solid #3b4bd8;border-radius:12px 0 0 12px}

/* ===== Responsive ===== */
@media (max-width:720px){
  body{font-size:17px}
  .nav-links{display:none}
  .cta{padding:1.5rem}
  table{font-size:.85rem}
  th,td{padding:.5rem .6rem}
}
