/* A1Obfuscator — shared site styles. Used by products/solutions/about/contact/resources. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  background: #ffffff;
  color: #0f172a;
  line-height: 1.6;
}
[dir="rtl"] body { font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }

/* ────────────────────────────────────────────────────────────────────
   Bilingual visibility — pages mark major content blocks with
   .lang-en / .lang-ar. CSS hides whichever doesn't match the active
   <html lang>. Inline swaps use [data-en]/[data-ar] handled by nav.js.
   ──────────────────────────────────────────────────────────────────── */
html[lang="ar"] .lang-en, html[lang="en"] .lang-ar { display: none !important; }
.lang-ar { direction: rtl; text-align: start; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo {
  font-size: 24px; font-weight: 800;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: #475569; text-decoration: none; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #1e3a8a; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: transform .2s, box-shadow .2s;
  cursor: pointer; border: none; font-size: 15px;
}
.btn-primary { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,58,138,0.3); }
.btn-secondary { background: white; color: #1e3a8a; border: 2px solid #1e3a8a; }
.btn-secondary:hover { background: #f0f7ff; }

.page-hero {
  padding: 80px 0 60px;
  background: radial-gradient(circle at 20% 30%, rgba(30,58,138,0.06), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(30,64,175,0.06), transparent 40%);
  text-align: center;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-bottom: 16px; }
.page-hero h1 .gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p { font-size: 18px; color: #475569; max-width: 720px; margin: 0 auto; }

section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-title p { color: #64748B; font-size: 17px; }

.category-section { padding: 56px 0; border-bottom: 1px solid #f1f5f9; }
.category-section:nth-child(even) { background: #fafbfc; }
.category-header { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.category-icon {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, rgba(30,58,138,0.1), rgba(30,64,175,0.1));
}
.category-header h2 { font-size: 28px; font-weight: 800; }
.category-header p { color: #64748B; font-size: 15px; margin-top: 4px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 24px; border-radius: 12px; background: white;
  border: 1px solid #e2e8f0; transition: all .2s;
}
.feature-card:hover {
  border-color: #1e3a8a;
  box-shadow: 0 12px 32px rgba(30,58,138,0.08);
  transform: translateY(-2px);
}
.feature-card .badge {
  display: inline-block; padding: 2px 10px; font-size: 11px;
  background: #f1f5f9; color: #475569; border-radius: 999px;
  font-family: monospace; margin-bottom: 8px;
}
.feature-card .badge.new { background: #dcfce7; color: #166534; }
.feature-card .badge.beta { background: #fef3c7; color: #854d0e; }
.feature-card h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.feature-card h3 .icon { font-size: 20px; }
.feature-card p { color: #475569; font-size: 14px; line-height: 1.6; }
.feature-card .meta { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f5f9; font-size: 12px; color: #94a3b8; }

.footer { padding: 56px 0 24px; background: #0f172a; color: white; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px;
}
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; opacity: 0.7; }
.footer ul { list-style: none; }
.footer li { padding: 4px 0; }
.footer a { color: white; opacity: 0.7; text-decoration: none; transition: opacity .2s; font-size: 14px; }
.footer a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; opacity: 0.5; font-size: 13px; }

.cta-band {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white; padding: 64px 0; text-align: center;
}
.cta-band h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta-band p { font-size: 18px; opacity: 0.9; margin-bottom: 24px; }
.cta-band .btn { background: white; color: #1e3a8a; border: none; padding: 14px 28px; }

.trust-strip {
  padding: 32px 0; background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
}
.trust-strip-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; align-items: center;
}
.trust-item { text-align: center; }
.trust-item .label { font-size: 12px; color: #64748B; text-transform: uppercase; letter-spacing: 1px; }
.trust-item .value { font-size: 22px; font-weight: 800; color: #0f172a; margin-top: 4px; }

.toc-rail {
  position: sticky; top: 80px;
  padding: 16px; background: #fafbfc; border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.toc-rail h4 { font-size: 13px; text-transform: uppercase; color: #64748B; letter-spacing: 1px; margin-bottom: 12px; }
.toc-rail ul { list-style: none; }
.toc-rail li { padding: 6px 0; }
.toc-rail a { color: #475569; text-decoration: none; font-size: 14px; transition: color .15s; }
.toc-rail a:hover { color: #1e3a8a; }

.layout-with-rail { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }

.industry-card {
  padding: 32px; border-radius: 16px; background: white;
  border: 1px solid #e2e8f0;
}
.industry-card .industry-icon { font-size: 40px; margin-bottom: 16px; }
.industry-card h3 { font-size: 22px; margin-bottom: 12px; }
.industry-card p { color: #475569; font-size: 15px; margin-bottom: 16px; }
.industry-card ul { list-style: none; }
.industry-card li { padding: 6px 0; color: #475569; font-size: 14px; display: flex; gap: 8px; }
.industry-card li::before { content: "✓"; color: #1e40af; font-weight: 700; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .layout-with-rail { grid-template-columns: 1fr; }
  .toc-rail { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
