/* ============================================================
   Mizan — Landing Page (V20.8.9)
   Ledgera design system: Cobalt / Graphite / Soft White + 10% Gold
   Mizan brand preserved.
   ============================================================ */

:root {
  --cobalt: #3157D5;
  --cobalt-deep: #1F3FA0;
  --cobalt-pale: #EAF1FF;
  --graphite: #1D2226;
  --graphite-2: #2A3036;
  --graphite-soft: #6B7280;
  --text-muted: #9AA3AD;
  --soft-white: #F6F7F5;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --border-soft: #EEF0F2;
  --gold: #B79A4B;
  --gold-soft: #F4ECDA;
  --green: #16A34A;
  --red: #DC2626;
  --amber: #D97706;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius: 10px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-display: 'DM Sans', var(--font-sans);
  --font-arabic: 'Tajawal', 'IBM Plex Sans Arabic', 'Geeza Pro', 'Tahoma', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body.landing-page {
  margin: 0;
  background: var(--soft-white);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv01", "tnum";
}

.ar { font-family: var(--font-arabic); }
body.landing-page, button, input, select, textarea { font-family: var(--font-sans); }

/* ============================================================
   NAV
   ============================================================ */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.lp-nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 24px;
}
.lp-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--graphite);
  font-weight: 800; font-size: 18px;
}
.lp-brand-mark { width: 28px; height: 28px; }
.lp-brand-name { letter-spacing: -0.01em; }
.lp-brand-ar { font-weight: 600; color: var(--gold); margin-left: 6px; }
.lp-nav-links {
  display: flex; gap: 28px; margin-left: 24px; flex: 1;
}
.lp-nav-links a {
  text-decoration: none; color: var(--graphite-soft);
  font-size: 14px; font-weight: 500;
  transition: color 0.15s;
}
.lp-nav-links a:hover { color: var(--graphite); }
.lp-nav-actions { display: flex; align-items: center; gap: 10px; }
.lp-lang-toggle {
  background: transparent; border: 1px solid var(--border);
  color: var(--graphite-soft);
  padding: 7px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.lp-lang-toggle:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* ============================================================
   BUTTONS
   ============================================================ */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.lp-btn-primary {
  background: var(--cobalt); color: #fff;
  box-shadow: 0 1px 2px rgba(49, 87, 213, 0.3);
}
.lp-btn-primary:hover {
  background: var(--cobalt-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(49, 87, 213, 0.3);
}
.lp-btn-ghost {
  background: transparent; color: var(--graphite);
  border-color: var(--border);
}
.lp-btn-ghost:hover { border-color: var(--graphite); background: var(--white); }
.lp-btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.lp-btn-full { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.lp-hero {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 32px 100px;
}
.lp-hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: center;
}
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cobalt-pale);
  color: var(--cobalt-deep);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  margin-bottom: 24px;
}
.lp-eyebrow-dot {
  width: 6px; height: 6px; background: var(--cobalt);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.lp-h1 {
  font-family: var(--font-display);
  font-size: 60px; font-weight: 800;
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--graphite);
}
.lp-h1-accent {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.lp-lede {
  font-size: 18px; line-height: 1.6;
  color: var(--graphite-soft);
  margin: 0 0 32px;
  max-width: 560px;
}
.lp-lede strong { color: var(--graphite); font-weight: 600; }
.lp-hero-cta { display: flex; gap: 12px; margin-bottom: 24px; }
.lp-hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--graphite-soft);
  font-weight: 500;
}
.lp-hero-meta span::before { content: "✓"; color: var(--green); margin-right: 6px; font-weight: 700; }

.lp-hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.lp-balance-svg { width: 100%; max-width: 520px; height: auto; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.lp-trust {
  background: var(--white);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 32px 32px;
}
.lp-trust-inner {
  max-width: 1200px; margin: 0 auto;
  text-align: center;
}
.lp-trust-label {
  font-size: 11px; font-weight: 700;
  color: var(--graphite-soft);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin: 0 0 20px;
}
.lp-trust-logos {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 32px;
}
.lp-trust-logo {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--graphite-soft);
}
.lp-trust-logo strong {
  font-size: 20px; font-weight: 800;
  color: var(--graphite);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.lp-trust-logo span { font-size: 11px; }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.lp-section {
  max-width: 1200px; margin: 0 auto;
  padding: 96px 32px;
}
.lp-section-alt { background: var(--white); max-width: 100%; }
.lp-section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.lp-section-head {
  text-align: center; margin-bottom: 56px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.lp-section-head .lp-eyebrow { margin-bottom: 16px; }
.lp-h2 {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--graphite);
}
.lp-section-sub {
  font-size: 17px; color: var(--graphite-soft);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   FEATURES
   ============================================================ */
.lp-feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}
.lp-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.lp-feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.lp-feature-card h3 {
  font-size: 18px; font-weight: 700;
  margin: 0 0 10px;
  color: var(--graphite);
}
.lp-feature-card p {
  font-size: 14px; line-height: 1.6;
  color: var(--graphite-soft);
  margin: 0 0 16px;
}
.lp-feature-tag {
  display: inline-block;
  background: var(--soft-white);
  color: var(--graphite-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   MODULES
   ============================================================ */
.lp-module-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}
.lp-module-card:hover {
  border-color: var(--cobalt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.lp-module-card h3 {
  font-size: 16px; font-weight: 700;
  margin: 0 0 14px;
  color: var(--graphite);
  display: flex; align-items: center; gap: 8px;
}
.lp-module-card ul {
  list-style: none; padding: 0; margin: 0;
}
.lp-module-card li {
  font-size: 13px; line-height: 1.7;
  color: var(--graphite-soft);
  padding: 4px 0 4px 18px;
  position: relative;
}
.lp-module-card li::before {
  content: "›";
  position: absolute; left: 0;
  color: var(--cobalt); font-weight: 700;
}

/* ============================================================
   SHOWCASE (screenshots)
   ============================================================ */
.lp-showcase {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-showcase-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}
.lp-showcase-frame:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.lp-showcase-tag {
  background: var(--graphite);
  color: var(--gold);
  font-size: 11px; font-weight: 700;
  padding: 8px 16px;
  text-transform: uppercase; letter-spacing: 0.1em;
  font-family: 'JetBrains Mono', monospace;
}
.lp-showcase-svg { display: block; }
.lp-showcase-svg svg { display: block; width: 100%; height: auto; }

/* ============================================================
   PRICING
   ============================================================ */
.lp-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.lp-price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all 0.2s;
}
.lp-price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-price-featured {
  border-color: var(--cobalt);
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(49, 87, 213, 0.08), var(--shadow-lg);
}
.lp-price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: var(--graphite);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.lp-price-name {
  font-size: 20px; font-weight: 700;
  color: var(--graphite);
  margin-bottom: 6px;
}
.lp-price-tag {
  font-size: 13px; color: var(--graphite-soft);
  margin-bottom: 24px; min-height: 36px;
}
.lp-price-amount {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}
.lp-price-num {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 800;
  color: var(--graphite);
  letter-spacing: -0.02em;
}
.lp-price-per { font-size: 14px; color: var(--graphite-soft); }
.lp-price-list {
  list-style: none; padding: 0; margin: 0 0 32px;
  flex: 1;
}
.lp-price-list li {
  font-size: 14px; line-height: 1.7;
  color: var(--graphite);
  padding: 4px 0;
}
.lp-price-foot {
  text-align: center;
  font-size: 13px; color: var(--graphite-soft);
  margin-top: 24px;
}
.lp-price-foot a { color: var(--cobalt); text-decoration: none; font-weight: 600; }

/* ============================================================
   QUOTES / TESTIMONIALS
   ============================================================ */
.lp-quote-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.lp-quote-text {
  font-size: 15px; line-height: 1.65;
  color: var(--graphite);
  margin: 0 0 20px;
  font-style: italic;
}
.lp-quote-by { display: flex; align-items: center; gap: 12px; }
.lp-quote-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cobalt-pale);
  color: var(--cobalt-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.lp-quote-by strong { display: block; font-size: 14px; color: var(--graphite); }
.lp-quote-by span { font-size: 12px; color: var(--graphite-soft); }

/* ============================================================
   CTA
   ============================================================ */
.lp-cta {
  background: linear-gradient(135deg, var(--graphite) 0%, var(--cobalt-deep) 100%);
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(183, 154, 75, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(49, 87, 213, 0.4) 0%, transparent 60%);
  pointer-events: none;
}
.lp-cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.lp-cta-h2 { color: var(--white); }
.lp-cta-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin: 0 0 32px;
}
.lp-cta-actions { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.lp-cta .lp-btn-primary {
  background: var(--gold);
  color: var(--graphite);
}
.lp-cta .lp-btn-primary:hover { background: #C9AC5E; }
.lp-cta .lp-btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.lp-cta .lp-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }
.lp-cta-meta { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.lp-cta-meta a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.lp-footer {
  background: var(--white);
  border-top: 1px solid var(--border-soft);
  padding: 56px 32px 24px;
}
.lp-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 3fr;
  gap: 56px;
}
.lp-footer-brand { display: flex; gap: 14px; }
.lp-footer-mark { width: 32px; height: 32px; flex-shrink: 0; }
.lp-footer-brand strong {
  font-size: 16px; font-weight: 700;
  color: var(--graphite); display: block; margin-bottom: 4px;
}
.lp-footer-brand p {
  margin: 0; font-size: 13px; color: var(--graphite-soft);
}
.lp-footer-by { margin-top: 4px !important; font-size: 12px !important; }
.lp-footer-cols {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.lp-footer-cols h4 {
  font-size: 12px; font-weight: 700;
  color: var(--graphite);
  margin: 0 0 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.lp-footer-cols a {
  display: block;
  font-size: 13px;
  color: var(--graphite-soft);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
}
.lp-footer-cols a:hover { color: var(--cobalt); }
.lp-footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--graphite-soft);
}

/* ============================================================
   RTL support
   ============================================================ */
html[dir="rtl"] body.landing-page { direction: rtl; text-align: right; }
html[dir="rtl"] .lp-h1-accent { background: linear-gradient(135deg, var(--gold) 0%, var(--cobalt) 100%); -webkit-background-clip: text; }
html[dir="rtl"] .lp-hero-meta { flex-direction: row-reverse; }
html[dir="rtl"] .lp-nav-inner { flex-direction: row-reverse; }
html[dir="rtl"] .lp-nav-links { margin-left: 0; margin-right: 24px; }
html[dir="rtl"] .lp-footer-inner { direction: rtl; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .lp-h1 { font-size: 48px; }
  .lp-h2 { font-size: 36px; }
  .lp-feature-grid, .lp-module-grid, .lp-showcase, .lp-pricing-grid, .lp-quote-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-footer-inner { grid-template-columns: 1fr; }
  .lp-footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .lp-h1 { font-size: 38px; }
  .lp-h2 { font-size: 28px; }
  .lp-section { padding: 64px 20px; }
  .lp-hero { padding: 48px 20px 64px; }
  .lp-feature-grid, .lp-module-grid, .lp-showcase, .lp-pricing-grid, .lp-quote-grid { grid-template-columns: 1fr; }
  .lp-nav-links { display: none; }
  .lp-nav-inner { padding: 12px 20px; }
  .lp-hero-cta { flex-direction: column; }
  .lp-hero-cta .lp-btn { width: 100%; }
  .lp-trust-logos { gap: 20px; }
  .lp-trust-logo strong { font-size: 16px; }
  .lp-footer-cols { grid-template-columns: 1fr 1fr; }
  .lp-footer-bottom { flex-direction: column; }
  .lp-cta-actions { flex-direction: column; }
  .lp-cta-actions .lp-btn { width: 100%; }
  .lp-pricing-grid { gap: 28px; }
  .lp-price-featured { order: -1; }
}
