:root {
  --navy: #0f1b2d;
  --navy-light: #1a2940;
  --gold: #d4a94c;
  --gold-light: #e8c97a;
  --text: #e8e8e8;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --bg-light: #f8f6f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  color: var(--text);
  background: var(--navy);
  line-height: 1.7;
}

[dir="ltr"] body { font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif; }

/* Language toggle */
.lang-toggle {
  position: fixed; top: 1rem; left: 1rem; z-index: 100;
  display: flex; gap: 0.5rem;
}
[dir="ltr"] .lang-toggle { left: auto; right: 1rem; }

.lang-toggle button {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted); padding: 0.3rem 0.8rem; border-radius: 4px;
  cursor: pointer; font-size: 0.8rem; transition: all 0.2s;
}
.lang-toggle button.active {
  background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 600;
}

/* Hero */
.hero {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.logo { font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; color: var(--white); letter-spacing: -1px; }
.gold { color: var(--gold); }
.tagline { font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--gold-light); margin-top: 1rem; }
.subtitle { font-size: clamp(0.9rem, 2vw, 1.1rem); color: var(--text-muted); margin-top: 0.5rem; max-width: 600px; margin-inline: auto; }

/* Sections */
section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
h2 { font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 1.5rem; text-align: center; }

/* Vision */
.vision { text-align: center; }
.vision p { color: var(--text-muted); max-width: 700px; margin: 0 auto 2rem; font-size: 1.1rem; }
.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.pillar {
  background: var(--navy-light); border: 1px solid rgba(212,169,76,0.3);
  padding: 1rem 1.5rem; border-radius: 8px; font-size: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.pillar-icon { color: var(--gold); font-size: 0.7rem; }

/* Module cards */
.module-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.module-card {
  background: var(--navy-light); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 2rem; text-align: center; position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.module-card:hover { transform: translateY(-4px); border-color: rgba(212,169,76,0.4); }
.module-card.ready { border-color: var(--gold); }
.module-badge {
  position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.8rem; border-radius: 12px;
}
.module-icon { font-size: 2rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.gold-icon { color: var(--gold); }
.module-card h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 0.5rem; font-family: 'Inter', sans-serif; }
.module-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.module-btn {
  display: inline-block; background: var(--gold); color: var(--navy);
  padding: 0.7rem 1.5rem; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; transition: background 0.2s;
}
.module-btn:hover { background: var(--gold-light); }
.module-btn.secondary { background: rgba(255,255,255,0.1); color: var(--text); border: 1px solid rgba(255,255,255,0.2); }
.module-btn.secondary:hover { background: rgba(255,255,255,0.2); }
.module-soon { color: var(--text-muted); font-style: italic; font-size: 0.9rem; }

/* Workflow */
.workflow { background: var(--bg-light); color: #1a1a1a; border-radius: 16px; margin-top: 2rem; }
.workflow h2 { color: var(--navy); }
.workflow-table { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wf-col { display: flex; flex-direction: column; gap: 0.5rem; }
.wf-header { font-weight: 700; font-size: 1.1rem; padding: 0.8rem; text-align: center; background: var(--navy); color: var(--white); border-radius: 8px; }
.gold-col .wf-header { background: var(--gold); color: var(--navy); }
.wf-item { padding: 0.8rem; background: rgba(0,0,0,0.04); border-radius: 6px; font-size: 0.95rem; text-align: center; }
.gold-col .wf-item { background: rgba(212,169,76,0.12); font-weight: 500; }

/* Sovereignty */
.sov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.sov-item { background: var(--navy-light); padding: 1.5rem; border-radius: 10px; border-right: 3px solid var(--gold); }
[dir="ltr"] .sov-item { border-right: none; border-left: 3px solid var(--gold); }
.sov-item strong { color: var(--white); }
.sov-item span { color: var(--text-muted); font-size: 0.9rem; }

/* Footer */
footer { text-align: center; padding: 3rem 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-brand { font-size: 1.5rem; font-weight: 700; color: var(--white); }
footer p:last-child { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }

/* Responsive */
@media (max-width: 640px) {
  .workflow-table { grid-template-columns: 1fr; }
  .pillars { flex-direction: column; align-items: center; }
}
