/* ============================================================
   ElhassanSolutions Landing — PAB Edition
   Tokens: #FFFFFF bg, #010B13 fg, #FFFFFF surface, #1560BD primary, #B8C9E8 border, IBM Plex
   ============================================================ */
.landing {
  font-family: var(--font-sans, "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif);
  background: var(--background, #FFFFFF);
  color: var(--foreground, #010B13);
  margin: 0;
  overflow-x: hidden;
}
.landing a { text-decoration: none; }
.landing * { box-sizing: border-box; }

/* Navbar — PAB surface + border, h-16, rounded-none */
.lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--surface, #FFFFFF);
  border-bottom: 1px solid var(--border, #B8C9E8);
}
.lp-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-brand { display: flex; align-items: center; gap: 12px; }
.lp-brand-logo {
  width: 32px; height: 32px;
  background: var(--primary, #1560BD);
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  border: 1px solid var(--border, #B8C9E8);
  font-weight: 700; font-size: 0.85rem; letter-spacing: -0.02em;
}
.lp-brand-logo svg { width: 18px; height: 18px; }
.lp-brand-name { font-size: 1.1rem; font-weight: 700; color: var(--foreground, #010B13); margin: 0; letter-spacing: -0.02em; }
.lp-nav-links { display: none; align-items: center; gap: 24px; }
.lp-nav-links a { font-size: 0.8125rem; font-weight: 500; color: var(--muted-foreground, #010B13); transition: color .15s; text-transform: uppercase; letter-spacing: 0.06em; }
.lp-nav-links a:hover { color: var(--primary, #1560BD); }
@media (min-width: 900px) { .lp-nav-links { display: flex; } }
.lp-nav-actions { display: flex; align-items: center; gap: 8px; }

/* Language switch — h-8, rounded-none */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--background, #FFFFFF);
  border: 1px solid var(--border, #B8C9E8);
  color: var(--foreground, #010B13);
  font-weight: 600;
  font-size: 0.75rem;
  height: 32px;
  padding: 0 12px;
  border-radius: 0;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.lang-switch:hover { border-color: var(--primary, #1560BD); color: var(--primary, #1560BD); background: var(--primary-muted, #E5EEF9); }
.lang-switch:active { background: var(--primary-muted); }

.btn-try {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary, #1560BD);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  height: 32px;
  padding: 0 14px;
  border-radius: 0;
  border: 1px solid var(--primary, #1560BD);
  cursor: pointer;
  transition: background .15s;
  font-variant-numeric: tabular-nums;
}
.btn-try:hover { background: #0F4A94; border-color: #0F4A94; }
.btn-try:active { background: #0F4A94; }
.btn-try svg { width: 15px; height: 15px; }

/* Hero — PAB spacing, mono numbers */
.lp-hero {
  padding: 100px 16px 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  background: var(--background, #FFFFFF);
}
@media (min-width: 900px) {
  .lp-hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 120px; }
}
.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-muted, #E5EEF9);
  color: var(--primary, #1560BD);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 0;
  margin-bottom: 16px;
  border: 1px solid var(--primary, #1560BD);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.lp-hero-badge svg { width: 12px; height: 12px; }
.lp-hero h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--foreground, #010B13);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.lp-hero h1 span.accent { color: var(--primary, #1560BD); }
@media (min-width: 640px) { .lp-hero h1 { font-size: 2.8rem; } }
.lp-hero p {
  font-size: 0.95rem;
  color: var(--muted-foreground, #010B13);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 520px;
}
.lp-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-try-lg {
  height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--primary, #1560BD);
}
.btn-plain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary, #1560BD);
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border, #B8C9E8);
  background: var(--background, #FFFFFF);
  border-radius: 0;
}
.btn-plain:hover { background: var(--surface, #FFFFFF); }
.btn-plain svg { width: 15px; height: 15px; }
.lp-hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border, #B8C9E8);
  padding-top: 16px;
}
.lp-hero-stat .v { font-size: 1.25rem; font-weight: 700; color: var(--foreground, #010B13); font-family: var(--font-mono, "Roboto Mono", monospace); }
.lp-hero-stat .l { font-size: 0.68rem; color: var(--muted-foreground, #010B13); text-transform: uppercase; letter-spacing: 0.06em; }

/* Hero mockup — PAB card: white, border, rounded-none */
.lp-hero-visual { position: relative; }
.lp-mockup {
  background: #fff;
  border: 1px solid var(--border, #B8C9E8);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.lp-mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--surface, #FFFFFF);
  border-bottom: 1px solid var(--border, #B8C9E8);
}
.lp-mockup-bar span { width: 10px; height: 10px; border-radius: 0; border: 1px solid var(--border, #B8C9E8); }
.lp-mockup-body { padding: 16px; background: #fff; }
.lp-mockup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.lp-mockup-stat {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #B8C9E8);
  border-radius: 0;
  padding: 12px;
}
.lp-mockup-stat .v { font-size: 1rem; font-weight: 700; color: var(--foreground, #010B13); font-family: var(--font-mono, "Roboto Mono", monospace); }
.lp-mockup-stat .l { font-size: 0.68rem; color: var(--muted-foreground, #010B13); text-transform: uppercase; letter-spacing: 0.06em; }
.lp-mockup-chart { height: 100px; background: var(--surface, #FFFFFF); border: 1px solid var(--border, #B8C9E8); border-radius: 0; display: flex; align-items: flex-end; gap: 4px; padding: 8px; }
.lp-mockup-chart div { flex: 1; background: var(--primary, #1560BD); border-radius: 0; min-height: 8px; }
.lp-mockup-chart div:nth-child(2n){ background:#5D9DE3; }
.lp-mockup-chart div:nth-child(3n){ background:#010B13; }

/* Sections */
.lp-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
  border-top: 1px solid transparent;
}
.lp-section-alt { background: var(--surface, #FFFFFF); border-top: 1px solid var(--border, #B8C9E8); border-bottom: 1px solid var(--border, #B8C9E8); }
.lp-section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.lp-section-head h2 { font-size: 1.5rem; font-weight: 700; color: var(--foreground, #010B13); margin: 0 0 8px; letter-spacing: -0.02em; }
.lp-section-head p { font-size: 0.875rem; color: var(--muted-foreground, #010B13); margin: 0; line-height: 1.6; }

/* Feature cards — PAB: border, rounded-none, surface hover */
.lp-features { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .lp-features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .lp-features { grid-template-columns: repeat(3, 1fr); } }
.lp-feature {
  background: #fff;
  border: 1px solid var(--border, #B8C9E8);
  border-radius: 0;
  padding: 16px;
  transition: background .15s;
}
.lp-feature:hover { background: var(--surface, #FFFFFF); }
.lp-feature-featured {
  grid-column: 1 / -1;
  border: 2px solid var(--primary, #1560BD);
  background: #F0F6FF;
  position: relative;
  padding-top: 20px;
}
.lp-feature-featured:hover { background: #E6EFFC; }
.lp-feature-badge {
  position: absolute;
  top: -12px;
  inset-inline-start: 16px;
  background: var(--primary, #1560BD);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.lp-feature-featured h3 { font-size: 1.1rem; }
.lp-feature-icon {
  width: 32px; height: 32px;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 12px;
  border: 1px solid var(--border, #B8C9E8);
}
.lp-feature-icon svg { width: 16px; height: 16px; }
.lp-gradient-blue { background: #1560BD; }
.lp-gradient-indigo { background: #010B13; }
.lp-gradient-green { background: #0F4A94; }
.lp-gradient-amber { background: #072A7C; }
.lp-gradient-cyan { background: #4A90E2; }
.lp-gradient-purple { background: #000000; }
.lp-gradient-rose { background: #1A3A5A; }
.lp-gradient-slate { background: #FFFFFF; color: #010B13 !important; border: 1px solid #010B13; }
.lp-feature h3 { font-size: 0.95rem; font-weight: 700; color: var(--foreground, #010B13); margin: 0 0 6px; }
.lp-feature p { font-size: 0.8125rem; color: var(--muted-foreground, #010B13); margin: 0; line-height: 1.5; }

/* Demo section — PAB: border, rounded-none, surface */
.lp-demo-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #B8C9E8);
  border-radius: 0;
  padding: 16px;
  color: var(--foreground, #010B13);
}
@media (min-width: 900px) { .lp-demo-panel { grid-template-columns: 1fr 1fr; align-items: center; padding: 24px; } }
.lp-demo-left h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; color: var(--foreground, #010B13); }
.lp-demo-left p { color: var(--muted-foreground, #010B13); line-height: 1.6; margin: 0 0 16px; font-size: 0.875rem; }
.lp-demo-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-demo-list li { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--foreground, #010B13); }
.lp-demo-list svg { width: 14px; height: 14px; color: var(--success, #1560BD); flex-shrink: 0; }
.lp-demo-card {
  background: #fff;
  border: 1px solid var(--border, #B8C9E8);
  border-radius: 0;
  padding: 16px;
}
.lp-demo-card h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 12px; color: var(--foreground, #010B13); }
.lp-demo-cred { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--border, #B8C9E8); background: var(--surface, #FFFFFF); margin-bottom: 8px; }
.lp-demo-cred .role-dot { width: 6px; height: 6px; border-radius: 0; flex-shrink: 0; }
.lp-demo-cred .role { font-weight: 600; font-size: 0.8125rem; }
.lp-demo-cred .email { font-size: 0.68rem; color: var(--muted-foreground, #010B13); font-family: var(--font-mono, "Roboto Mono", monospace); }
.lp-demo-note {
  margin-top: 12px;
  font-size: 0.68rem;
  color: var(--muted-foreground, #010B13);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.lp-demo-note svg { width: 14px; height: 14px; color: var(--success, #1560BD); }

/* CTA */
.lp-cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
  border: 1px solid var(--border, #B8C9E8);
  background: #fff;
}
.lp-cta h2 { font-size: 1.5rem; font-weight: 700; color: var(--foreground, #010B13); margin: 0 0 8px; letter-spacing: -0.02em; }
.lp-cta p { color: var(--muted-foreground, #010B13); font-size: 0.875rem; margin: 0 0 16px; }

/* Developer section — PAB card */
.lp-dev {
  background: #fff;
  border: 1px solid var(--border, #B8C9E8);
  border-radius: 0;
  padding: 24px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.lp-dev .dev-avatar {
  width: 48px; height: 48px;
  border-radius: 0;
  background: var(--primary, #1560BD);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  border: 1px solid var(--border, #B8C9E8);
  font-family: var(--font-mono, "Roboto Mono", monospace);
}
.lp-dev .dev-name { font-size: 1rem; font-weight: 700; color: var(--foreground, #010B13); margin: 0 0 4px; }
.lp-dev .dev-role { color: var(--muted-foreground, #010B13); font-size: 0.68rem; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.lp-dev .btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #010B13;
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  height: 32px;
  padding: 0 14px;
  border-radius: 0;
  border: 1px solid #010B13;
  transition: background .15s;
}
.lp-dev .btn-github:hover { background: #1B1B1B; }
.lp-dev .btn-github:active { background: #323232; }
.lp-dev .btn-github svg { width: 15px; height: 15px; }
.lp-dev .btn-phone { background: var(--primary, #1560BD); border-color: var(--primary, #1560BD); }
.lp-dev .btn-phone:hover { background: #0F4A94; }
.lp-dev .btn-email { background: #FFFFFF; color: #010B13; border-color: #010B13; }
.lp-dev .btn-email:hover { background: #F0F6FF; }
.lp-dev .btn-whatsapp { background: #1560BD; border-color: #1560BD; color: #FFFFFF; }
.lp-dev .btn-whatsapp:hover { background: #0F4A94; }
.lp-dev .dev-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lp-dev .dev-contact-line { margin: 12px 0 0; font-size: 0.85rem; }
.lp-dev .dev-contact-line a { color: var(--primary, #1560BD); text-decoration: none; font-family: monospace; }
.lp-dev .dev-contact-line a:hover { text-decoration: underline; }

/* Services contact strip — directly under services grid */
.lp-services-contact {
  background: #fff;
  border: 1px solid var(--border, #B8C9E8);
  border-radius: 0;
  padding: 24px;
  text-align: center;
  max-width: 720px;
  margin: 24px auto 0;
}
.lp-services-contact h3 { font-size: 1rem; font-weight: 700; color: var(--foreground, #010B13); margin: 0 0 6px; }
.lp-services-contact p { font-size: 0.875rem; color: var(--muted-foreground, #010B13); margin: 0 0 16px; }
.lp-services-contact .dev-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lp-services-contact .lp-contact-methods { display: grid; grid-template-columns: 1fr; gap: 12px; text-align: start; }
@media (min-width: 640px) { .lp-services-contact .lp-contact-methods { grid-template-columns: repeat(3, 1fr); } }
.lp-services-contact .lp-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid var(--border, #B8C9E8);
  border-radius: 8px;
  padding: 20px 12px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.lp-services-contact .lp-contact-card:hover { border-color: var(--primary, #1560BD); transform: translateY(-2px); }
.lp-services-contact .lp-contact-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary, #1560BD);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.lp-services-contact .lp-contact-icon svg { width: 22px; height: 22px; }
.lp-services-contact .lp-contact-label { font-size: 0.9rem; font-weight: 700; color: var(--foreground, #010B13); }
.lp-services-contact .lp-contact-value { font-size: 0.8rem; color: var(--muted-foreground, #010B13); font-family: monospace; }
.lp-dev .dev-qr { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border, #B8C9E8); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lp-dev .dev-qr img { border: 1px solid var(--border, #B8C9E8); border-radius: 0; padding: 8px; background: #fff; }
.lp-dev .dev-qr p { margin: 0; font-size: 0.68rem; color: var(--muted-foreground, #010B13); font-family: var(--font-mono, "Roboto Mono", monospace); }

/* Footer — PAB surface */
.lp-footer {
  border-top: 1px solid var(--border, #B8C9E8);
  background: var(--surface, #FFFFFF);
  padding: 24px 16px;
  text-align: center;
  color: var(--muted-foreground, #010B13);
  font-size: 0.75rem;
  font-family: var(--font-mono, "Roboto Mono", monospace);
}
.lp-footer .lp-brand { justify-content: center; margin-bottom: 12px; }
.lp-footer .lp-brand-name { font-size: 0.95rem; color: var(--foreground, #010B13); font-family: var(--font-sans); }

.lp-animate { animation: lpFadeUp .4s ease-out both; }
@keyframes lpFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .lp-demo-list { grid-template-columns: 1fr; }
  .lp-hero-stats { gap: 16px; }
}

.landing[dir="rtl"] { font-family: var(--font-sans, "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif); }
.landing[dir="rtl"] .lp-hero h1,
.landing[dir="rtl"] .lp-feature h3,
.landing[dir="rtl"] .lp-section-head h2,
.landing[dir="rtl"] .lp-demo-left h2,
.landing[dir="rtl"] .lp-demo-card h3,
.landing[dir="rtl"] .lp-cta h2,
.landing[dir="rtl"] .lp-dev .dev-name,
.landing[dir="rtl"] .lp-services-contact h3,
.landing[dir="rtl"] .btn-try,
.landing[dir="rtl"] .lang-switch,
.landing[dir="rtl"] .btn-github { font-family: var(--font-sans); }
.landing[dir="rtl"] .lp-hero h1 { line-height: 1.3; }
.landing[dir="rtl"] .btn-plain svg,
.landing[dir="rtl"] .lp-hero-actions .btn-plain svg { transform: rotate(180deg); }
.landing[dir="rtl"] .lp-hero h1 span.accent { color: var(--primary, #1560BD); }
.landing[dir="rtl"] .lp-hero h1 span:not(.accent) { color: var(--foreground, #010B13); }
.landing[dir="rtl"] .lp-hero,
.landing[dir="rtl"] .lp-feature,
.landing[dir="rtl"] .lp-demo-left,
.landing[dir="rtl"] .lp-demo-card,
.landing[dir="rtl"] .lp-cta,
.landing[dir="rtl"] .lp-dev { text-align: right; }
.landing[dir="rtl"] .lp-services-contact { text-align: center; }
.landing[dir="rtl"] .lp-hero p { margin-left: auto; }

@media (max-width: 640px) {
  .lp-nav-actions { gap: 6px; }
  .landing .lang-switch { font-size: 0.68rem; padding: 0 8px; height: 28px; }
  .landing .btn-try:not(.btn-try-lg) { height: 28px; padding: 0 10px; font-size: 0.75rem; }
}
