/* ===========================================================
   SADEKLAB LLC — Design tokens
   Palette: pearl off-white, pearl navy, pearl crimson, gold accent
   =========================================================== */
:root {
  --pearl-white: #FAF8F2;
  --pearl-white-soft: #F1EDE2;
  --navy-deep: #080C1F;
  --navy-pearl: #131B3D;
  --navy-pearl-light: #1E2A57;
  --crimson-pearl: #9E1B32;
  --crimson-pearl-bright: #C4293F;
  --gold: #C9A227;
  --gold-bright: #E4C34D;
  --text-on-navy: #F3F1E8;
  --text-on-navy-dim: #B9C0D6;
  --text-on-white: #14192E;
  --text-on-white-dim: #545B72;
  --radius: 18px;
  --font-display: 'Space Grotesk', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-glass: 0 8px 32px rgba(8, 12, 31, 0.35);
  --border-glass: 1px solid rgba(201, 162, 39, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--pearl-white);
  color: var(--text-on-white);
  line-height: 1.7;
  overflow-x: hidden;
}

[dir="rtl"] body { font-family: 'Tajawal', var(--font-body); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}
[dir="rtl"] .eyebrow { flex-direction: row-reverse; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: 'Tajawal', var(--font-display);
  font-weight: 800;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 12, 31, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-on-navy);
}
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-on-navy);
}
[dir="rtl"] .brand-name { font-family: 'Tajawal', sans-serif; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-on-navy-dim);
  font-size: 0.92rem;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(201, 162, 39, 0.25);
}
.lang-switch a {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-on-navy-dim);
}
.lang-switch a.active { background: var(--gold); color: var(--navy-deep); font-weight: 700; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 50% -10%, var(--navy-pearl-light) 0%, var(--navy-deep) 55%, #04060f 100%);
  overflow: hidden;
}
#starfield { position: absolute; inset: 0; z-index: 0; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 140px 24px 100px;
  color: var(--text-on-navy);
}
.hero-content .eyebrow { justify-content: center; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.18;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--gold-bright); }
.hero p.lead {
  font-size: 1.08rem;
  color: var(--text-on-navy-dim);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.telemetry {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  border: var(--border-glass);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  margin: 0 auto 28px;
  width: fit-content;
}
.telemetry .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-bright);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--navy-deep); }
.btn-gold:hover { box-shadow: 0 10px 30px rgba(201,162,39,0.35); }
.btn-outline { border-color: rgba(245,243,232,0.35); color: var(--text-on-navy); }
.btn-crimson { background: linear-gradient(135deg, var(--crimson-pearl-bright), var(--crimson-pearl)); color: var(--text-on-navy); }

/* ---------- Sections (alternating navy / pearl) ---------- */
section { padding: 100px 0; position: relative; }
.section-navy { background: var(--navy-deep); color: var(--text-on-navy); }
.section-navy .section-sub { color: var(--text-on-navy-dim); }
.section-white { background: var(--pearl-white); color: var(--text-on-white); }
.section-white .section-sub { color: var(--text-on-white-dim); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.section-sub { font-size: 1.02rem; }

/* ---------- Ventures grid ---------- */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.venture-card {
  background: rgba(255,255,255,0.03);
  border: var(--border-glass);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s, border-color 0.25s;
}
.venture-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.venture-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-bright), var(--crimson-pearl));
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy-deep);
}
.venture-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--gold-bright); font-family: var(--font-mono); letter-spacing: 0.02em; }
.venture-card p { color: var(--text-on-navy-dim); font-size: 0.94rem; }

/* ---------- About / mission / vision ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.pillar-card {
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 20px;
  margin-bottom: 30px;
}
[dir="rtl"] .pillar-card { border-inline-start: 3px solid var(--gold); }
.pillar-card .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--crimson-pearl); margin-bottom: 6px; display: block; }
.pillar-card p { color: var(--text-on-white-dim); }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 20px; }
.value-item { background: var(--pearl-white-soft); border-radius: 14px; padding: 22px; }
.value-item h4 { font-size: 1.02rem; margin-bottom: 6px; color: var(--navy-pearl); }
.value-item p { font-size: 0.9rem; color: var(--text-on-white-dim); }

/* ---------- Activities ---------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.activity-chip {
  background: rgba(255,255,255,0.04);
  border: var(--border-glass);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-on-navy);
}
.activity-chip .num { display: block; font-family: var(--font-mono); color: var(--gold); font-size: 0.75rem; margin-bottom: 10px; }

/* ---------- Stats ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  border-top: var(--border-glass);
  padding-top: 44px;
}
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-bright); font-weight: 700; }
.stat .label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-navy-dim); margin-top: 6px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--pearl-white-soft);
  border-radius: var(--radius);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--text-on-white-dim); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #DCD5C4;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--text-on-white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-note { font-size: 0.82rem; color: var(--text-on-white-dim); margin-top: 14px; }

/* ---------- Contact info / footer ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-list { margin-top: 20px; }
.contact-info-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(201,162,39,0.15); }
.contact-info-list .k { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; min-width: 90px; }

.site-footer {
  background: var(--navy-deep);
  color: var(--text-on-navy-dim);
  padding: 50px 0 26px;
  font-size: 0.85rem;
}
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 30px; border-bottom: 1px solid rgba(201,162,39,0.15); margin-bottom: 24px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Careers list ---------- */
.job-card {
  background: var(--pearl-white-soft);
  border-radius: 14px;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 14px;
}
.job-card h3 { font-size: 1.05rem; color: var(--navy-pearl); margin-bottom: 4px; }
.job-card .meta { font-size: 0.85rem; color: var(--text-on-white-dim); font-family: var(--font-mono); }

/* ---------- Alerts ---------- */
.alert { border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; font-size: 0.92rem; }
.alert-success { background: #E5F3E9; color: #1E6B3A; border: 1px solid #B7DCC1; }
.alert-error { background: #FBE7E9; color: var(--crimson-pearl); border: 1px solid #F0BFC5; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .ventures-grid, .activities-grid, .form-grid, .about-grid, .contact-layout, .values-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; gap: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
