/* Ajinthasbo landing — light + dark via html.dark, derived from logo palette */

:root {
  --primary: #1B3F73;
  --primary-light: #2D5A8E;
  --primary-dark: #142C52;
  --accent: #C8A04C;
  --background: #FFFFFF;
  --surface: #F5F8FB;
  --surface-alt: #EAF1F8;
  --border: #D6E0EC;
  --text-primary: #0F1B2D;
  --text-secondary: #4A5A70;
  --text-muted: #8A95A5;
  --success: #1F8A4C;
  --error: #C0392B;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 27, 45, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container-w: 1120px;
}

html.dark {
  --primary: #4A7FBF;
  --primary-light: #6B9BD8;
  --primary-dark: #2D5A8E;
  --accent: #E0B968;
  --background: #0E1929;
  --surface: #182438;
  --surface-alt: #1F2F47;
  --border: #2A3B57;
  --text-primary: #F0F4FA;
  --text-secondary: #A8B5C8;
  --text-muted: #6E7C92;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html[dir="rtl"] body { font-family: 'Cairo', system-ui, sans-serif; }

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

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

.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 8px 16px;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 999; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav-inner {
  display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 36px; width: auto; }
.brand-logo--dark  { display: none; }
html.dark .brand-logo--light { display: none; }
html.dark .brand-logo--dark  { display: block; }

.nav-links { display: flex; gap: 24px; flex-wrap: wrap; }
.nav-links a { color: var(--text-secondary); font-weight: 500; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }

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

.lang-switch { display: flex; gap: 4px; padding: 4px; background: var(--surface-alt); border-radius: 999px; }
.lang-btn {
  border: none; background: transparent; color: var(--text-secondary);
  padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.lang-btn.is-active { background: var(--primary); color: #fff; }

.icon-btn {
  border: 1px solid var(--border); background: var(--surface);
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.theme-icon { line-height: 1; }
.theme-icon--dark  { display: none; }
html.dark .theme-icon--light { display: none; }
html.dark .theme-icon--dark  { display: inline; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 48px; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.eyebrow { color: var(--accent); font-weight: 600; margin: 0 0 8px; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 16px; color: var(--text-primary); }
.lead { font-size: 18px; color: var(--text-secondary); margin: 0 0 24px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover   { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-alt); text-decoration: none; }

.hero-bullets { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; color: var(--text-secondary); }
.bullet { display: inline-flex; width: 20px; height: 20px; border-radius: 999px; background: var(--surface-alt); color: var(--success); align-items: center; justify-content: center; font-size: 12px; margin-inline-end: 8px; }

.hero-image { display: flex; justify-content: center; }
.hero-art { max-width: 380px; width: 100%; filter: drop-shadow(var(--shadow-lg)); }
.hero-art--dark  { display: none; }
html.dark .hero-art--light { display: none; }
html.dark .hero-art--dark  { display: block; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); transition: background-color 0.3s ease; }
.section h2 { font-size: 32px; margin: 0 0 8px; color: var(--text-primary); }
.section-lead { color: var(--text-secondary); font-size: 17px; margin: 0 0 32px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.step-num { width: 36px; height: 36px; border-radius: 999px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; color: var(--text-primary); }
.steps p { margin: 0; color: var(--text-secondary); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.feature-icon { font-size: 28px; margin-bottom: 8px; }
.feature h3 { margin: 0 0 6px; color: var(--text-primary); }
.feature p { margin: 0; color: var(--text-secondary); }

/* Download */
.download-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.qr-row { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.qr-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; text-align: center; min-width: 200px; }
a.qr-card { display: block; transition: transform 0.15s ease, box-shadow 0.2s ease; }
a.qr-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
a.qr-card .qr-label, a.qr-card:hover .qr-label { text-decoration: none; }
.qr-canvas { width: 160px; height: 160px; margin: 0 auto 8px; background: #fff; border-radius: var(--radius-sm); padding: 8px; display: flex; align-items: center; justify-content: center; }
.qr-canvas img, .qr-canvas canvas { width: 144px !important; height: 144px !important; }
.qr-label { margin: 8px 0 0; font-weight: 600; color: var(--text-primary); }
.qr-soon { margin: 4px 0 0; color: var(--accent); font-size: 13px; font-weight: 500; }

/* About */
.about-inner { max-width: 720px; }
.about-inner p { color: var(--text-secondary); font-size: 17px; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

/* Footer */
.footer { background: var(--background); border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 28px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-secondary); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .steps, .features-grid { grid-template-columns: 1fr; }
  .download-inner { grid-template-columns: 1fr; }
}

/* RTL fixes */
html[dir="rtl"] .hero-bullets .bullet { margin-inline-end: 0; margin-inline-start: 8px; }

/* ---------- Guides / articles ---------- */
.guide-main { padding: 40px 0 64px; }
.guide-wrap { max-width: 760px; margin: 0 auto; }

.breadcrumb { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb .sep { color: var(--text-muted); }

.guide-head h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; color: var(--text-primary); }
.guide-head .lead { font-size: 18px; color: var(--text-secondary); margin: 0 0 8px; }
.guide-meta { font-size: 13px; color: var(--text-muted); margin: 0 0 28px; }

.prose { color: var(--text-secondary); font-size: 17px; }
.prose h2 { font-size: 24px; color: var(--text-primary); margin: 36px 0 12px; }
.prose h3 { font-size: 19px; color: var(--text-primary); margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-inline-start: 22px; }
.prose li { margin: 0 0 8px; }
.prose strong { color: var(--text-primary); }
.prose a { color: var(--primary); font-weight: 500; }

.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-md); padding: 16px 20px; margin: 24px 0;
  color: var(--text-secondary);
}
.callout strong { color: var(--text-primary); }

.guide-cta {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin: 40px 0 8px;
  text-align: center;
}
.guide-cta h2 { font-size: 22px; margin: 0 0 8px; color: var(--text-primary); }
.guide-cta p { margin: 0 0 16px; color: var(--text-secondary); }

/* Guides hub */
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.guide-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.guide-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.guide-card .card-emoji { font-size: 28px; margin-bottom: 10px; }
.guide-card h3 { margin: 0 0 6px; color: var(--text-primary); font-size: 18px; }
.guide-card p { margin: 0; color: var(--text-secondary); font-size: 14px; }

@media (max-width: 880px) {
  .guides-grid { grid-template-columns: 1fr; }
  .guide-head h1 { font-size: 28px; }
}
