:root {
  --bg: #FAFAF9;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F0EEEB;
  --navy: #0B111A;
  --navy-light: #131C2B;
  --gold: #D4692A;
  --gold-light: #E67E35;
  --gold-dim: rgba(212, 105, 42, 0.12);
  --text-main: #0B111A;
  --text-muted: #475569;
  --text-light: #64748B;
  --border: rgba(11, 17, 26, 0.08);
  --border-strong: rgba(11, 17, 26, 0.15);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* RTL Support */
[dir="rtl"] {
  font-family: 'Cairo', sans-serif !important;
  text-align: right;
}
[dir="rtl"] .nav-brand { flex-direction: row; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .site-nav > .nav-actions { flex-direction: row; }
[dir="rtl"] .mobile-drawer .nav-actions { flex-direction: column; }
[dir="rtl"] .footer-grid, [dir="rtl"] .footer-bottom, [dir="rtl"] .grid-2 { direction: rtl; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] p, [dir="rtl"] div { font-family: 'Cairo', sans-serif !important; }

/* Navigation */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 4%; background: rgba(250, 250, 249, 0.95);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.site-nav.scrolled {
  box-shadow: 0 4px 20px rgba(11, 17, 26, 0.05);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.nav-mark {
  width: 36px; height: 36px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: url('/favicon.svg') center / contain no-repeat;
  color: transparent; font-size: 0; overflow: hidden;
}
.nav-wordmark {
  display: flex; flex-direction: column;
  font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1; color: var(--navy);
  white-space: nowrap;
}
.nav-wordmark::after {
  content: "LEASEFLOW OS";
  margin-top: 4px;
  font-family: var(--sans); font-size: 8px; font-weight: 600; line-height: 1;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-light);
  white-space: nowrap;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--text-muted);
  border-radius: 6px; transition: all 0.2s; white-space: nowrap;
}
.nav-link:hover { color: var(--navy); }
.nav-link.active { color: var(--gold); font-weight: 600; }
.nav-actions {
  display: flex; align-items: center; gap: 16px;
}
.site-nav > .nav-actions .btn-primary {
  box-sizing: border-box;
  height: 40px;
  padding: 10px 22px !important;
  font-size: 14px !important;
  line-height: 20px;
  transform: none !important;
  box-shadow: none;
  white-space: nowrap;
}
.lang-switch {
  background: transparent; border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer;
  color: var(--text-muted); transition: all 0.2s;
}
.lang-switch:hover { color: var(--navy); border-color: var(--border-strong); }
.btn-text {
  font-size: 14px; font-weight: 600; color: var(--navy); transition: color 0.2s;
}
.btn-text:hover { color: var(--gold); }
.btn-primary {
  padding: 10px 24px; font-size: 14px; font-weight: 600; background: var(--gold);
  color: #fff; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary:hover {
  background: var(--navy); transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212, 105, 42, 0.2);
}

/* Mobile Nav */
.mobile-menu-btn {
  display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--navy);
}
.mobile-drawer {
  position: fixed; inset: 0; background: var(--bg); z-index: 999;
  display: flex; flex-direction: column; padding: 80px 6% 40px;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer.open { transform: translateX(0); }
[dir="rtl"] .mobile-drawer { transform: translateX(-100%); }
[dir="rtl"] .mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .nav-links {
  flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px;
}
.mobile-drawer .nav-link { font-size: 20px; padding: 0; }
.mobile-drawer .nav-actions { flex-direction: column; align-items: flex-start; gap: 20px; }

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-menu-btn { display: block; }
}

/* Footer */
.site-footer {
  background: var(--bg-subtle); padding: 80px 6% 40px; border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; margin-bottom: 60px;
}
.footer-col h4 {
  font-family: var(--serif); font-size: 16px; font-weight: 600; margin-bottom: 24px; color: var(--navy);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 20px; max-width: 320px; line-height: 1.7; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-light);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--navy); }
.site-footer .footer-bottom {
  max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-light);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* Utility Layouts */
.section { padding: 96px 6%; }
.container { max-width: 1200px; margin: 0 auto; }
.hero-header {
  padding-top: 160px; padding-bottom: 80px; text-align: center; background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.badge-label {
  display: inline-block; padding: 6px 14px; background: var(--gold-dim); border: 1px solid rgba(212, 105, 42, 0.2);
  border-radius: 100px; font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 24px;
}
.display-title {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 64px); font-weight: 600; line-height: 1.1;
  letter-spacing: -0.5px; color: var(--navy); margin-bottom: 24px;
}
.display-subtitle {
  font-size: clamp(18px, 2vw, 22px); color: var(--text-muted); line-height: 1.6; max-width: 700px; margin: 0 auto; font-weight: 300;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 100px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 40px; } }
[dir="rtl"] .form-group label { text-align: right; }
[dir="rtl"] .agenda-item { flex-direction: row; }
[dir="rtl"] .price-features li { flex-direction: row; }
[dir="rtl"] .story-text, [dir="rtl"] .legal-content { text-align: right; }
[dir="rtl"] .footer-col ul { align-items: flex-start; }
[dir="rtl"] .form-input, [dir="rtl"] select.form-input { text-align: right; direction: rtl; }
