/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F5EFE6;
  --bg-alt: #EDE4D3;
  --fg: #1A1008;
  --fg-muted: #7A6A58;
  --accent: #6B1F3A;
  --gold: #C9A84C;
  --gold-light: #F0D98A;
  --success: #4A7C59;
  --warning: #C17A24;
  --font-head: 'Sora', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Sora', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 230, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 31, 58, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.nav-wordmark { letter-spacing: 0.03em; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 48px 100px;
  min-height: 85vh;
  position: relative;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-geo {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.hero-geo-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -100px;
}

.hero-geo-2 {
  width: 400px; height: 400px;
  background: var(--gold);
  bottom: -100px; right: 200px;
}

.hero-geo-3 {
  width: 300px; height: 300px;
  background: var(--accent);
  bottom: 0; left: -150px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.headline-arabic {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(48px, 6vw, 80px);
  color: var(--accent);
  letter-spacing: 0;
  margin-bottom: 8px;
}

.hero-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat { display: flex; flex-direction: column; }

.stat-number {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
  font-family: var(--font-head);
}

.stat-divider {
  width: 1px; height: 36px;
  background: var(--gold);
  opacity: 0.4;
}

/* === HERO VISUAL === */
.hero-visual {
  position: relative;
  z-index: 1;
}

.compliance-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 40px rgba(107, 31, 58, 0.10), 0 1px 4px rgba(0,0,0,0.05);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.compliance-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}

.compliance-card:hover { transform: translateX(4px); border-color: rgba(201, 168, 76, 0.3); }

.card-1 { transform: translateX(0); }
.card-2 { transform: translateX(8px); }
.card-3 { transform: translateX(4px); }
.card-4 { transform: translateX(16px); }

.card-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.card-body { display: flex; flex-direction: column; gap: 3px; }

.card-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.card-status {
  font-size: 12px;
  font-weight: 500;
}

.status-ok { color: var(--success); }
.status-warning { color: var(--warning); font-weight: 600; }

.ai-pulse {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  margin-top: 4px;
  background: var(--accent);
  border-radius: 8px;
  color: white;
}

.pulse-ring {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.5);
  animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.6; }
}

.pulse-dot { display: flex; align-items: center; }

.pulse-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* === PROBLEM === */
.problem { padding: 100px 48px; background: var(--bg-alt); }

.problem-inner { max-width: 1100px; margin: 0 auto; }

.problem-header { margin-bottom: 64px; }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.problem-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.problem-card {
  padding: 32px;
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.problem-num {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: rgba(107, 31, 58, 0.12);
  line-height: 1;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.problem-card p { font-size: 15px; color: var(--fg-muted); line-height: 1.65; }

.problem-callout {
  padding: 32px 40px;
  background: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.problem-callout blockquote {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  color: white;
  line-height: 1.5;
}

.callout-source {
  font-size: 12px;
  color: var(--gold-light);
  white-space: nowrap;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
}

/* === FEATURES === */
.features { padding: 100px 48px; background: var(--bg); }

.features-inner { max-width: 1100px; margin: 0 auto; }

.features-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 64px;
  line-height: 1.2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-item {
  padding: 28px;
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, 0.18);
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(107, 31, 58, 0.08);
}

.feature-icon { margin-bottom: 20px; }

.feature-item h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.feature-item p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* === HOW === */
.how { padding: 100px 48px; background: var(--bg-alt); }

.how-inner { max-width: 900px; margin: 0 auto; }

.how-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 64px;
}

.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  padding: 32px 0;
  position: relative;
}

.step-num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: rgba(107, 31, 58, 0.2);
  line-height: 1;
  padding-top: 4px;
}

.step-content h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.step-content p { font-size: 15px; color: var(--fg-muted); line-height: 1.65; max-width: 600px; }

.step-line {
  position: absolute;
  left: 22px;
  top: 92px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(201, 168, 76, 0.4), rgba(201, 168, 76, 0));
}

.step-last .step-line { display: none; }

/* === MANIFESTO === */
.manifesto { padding: 100px 48px; background: var(--accent); }

.manifesto-inner { max-width: 900px; margin: 0 auto; }

.manifesto-quote p {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 400;
  color: white;
  line-height: 1.6;
  margin-bottom: 20px;
}

.manifesto-quote p:last-child { color: var(--gold-light); font-weight: 500; }

.manifesto-vision {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
}

.vision-label {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.vision-text {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: white;
  line-height: 1.5;
}

/* === CLOSING === */
.closing {
  padding: 100px 48px 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.closing-inner { max-width: 900px; margin: 0 auto; position: relative; }

.closing-geo {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(107, 31, 58, 0.05);
  right: -100px; top: -80px;
  pointer-events: none;
}

.closing-content { position: relative; z-index: 1; }

.closing h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 28px;
}

.closing p {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 600px;
}

.closing-stamp {
  margin-top: 56px;
  opacity: 0.7;
}

/* === FOOTER === */
.footer { padding: 40px 48px; border-top: 1px solid rgba(107, 31, 58, 0.08); }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand { display: flex; flex-direction: column; gap: 6px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  padding-left: 36px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--fg-muted);
}

.footer-divider { color: var(--gold); opacity: 0.5; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .navbar { padding: 16px 24px; }
  .nav-links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 80px;
    gap: 48px;
  }

  .hero-visual { order: -1; }
  .compliance-card-stack { padding: 20px; }

  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  .problem, .features, .how, .manifesto, .closing {
    padding: 64px 24px;
  }

  .problem-callout { flex-direction: column; gap: 16px; }

  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { display: none; }
  .card-2, .card-3, .card-4 { transform: none; }
  .manifesto-quote blockquote { font-size: 16px; }
}