/* X Prime Consulting — premium marketing landing page.
   Palette: gold/navy luxury system (locked in 2026-08-31, supersedes the old X-prime.json blue
   palette — see the project's design-direction memory). Hero keeps its animated node mesh,
   recolored into a dark navy instrument panel with brightened gold nodes/lines for visibility.
   Auto light/dark, with dark mode tied to the brand navy family rather than a generic near-black. */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,500&family=IBM+Plex+Mono:wght@400;500&family=Amiri:wght@400;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600&display=swap');

:root{
  --bg-base:#F9FAFB; --bg-surface:#FFFFFF; --bg-elevated:#F1F3F6;
  --text-primary:#111827; --text-secondary:#4B5563; --text-muted:#8892A0;
  --brand-navy:#0B132B; --brand-navy-light:#1C2541;
  --brand-gold:#B8863A; --brand-gold-bright:#E8B454; --brand-gold-hot:#F6D48A;
  --ink-text:#F4EEE1; --ink-text-soft:#C9BFA8;
  --line:#E5E7EB; --line-strong:#D1D5DB;

  --font-display:'Cinzel', Georgia, serif;
  --font-body:'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:'IBM Plex Mono', ui-monospace, monospace;

  --container-max: 72rem;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --pad-y: clamp(3.5rem, 3rem + 3vw, 6rem);

  --shadow-lift: 0 1rem 2.5rem -1.25rem rgba(11, 19, 43, 0.12);
  --shadow-panel: 0 2rem 5rem -2rem rgba(11, 19, 43, 0.35);
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    /* tied to the brand navy family, not a generic near-black */
    --bg-base:#0A0E1C; --bg-surface:#121A2E; --bg-elevated:#1A2440;
    --text-primary:#F1ECE0; --text-secondary:#A9AFC2; --text-muted:#6D7690;
    --line:#26304C; --line-strong:#333F60;
    --shadow-lift: 0 1rem 2.5rem -1.25rem rgba(0,0,0,0.5);
    --shadow-panel: 0 2rem 5rem -2rem rgba(0,0,0,0.6);
  }
}
:root[data-theme="dark"]{
  --bg-base:#0A0E1C; --bg-surface:#121A2E; --bg-elevated:#1A2440;
  --text-primary:#F1ECE0; --text-secondary:#A9AFC2; --text-muted:#6D7690;
  --line:#26304C; --line-strong:#333F60;
  --shadow-lift: 0 1rem 2.5rem -1.25rem rgba(0,0,0,0.5);
  --shadow-panel: 0 2rem 5rem -2rem rgba(0,0,0,0.6);
}

[dir="rtl"]{
  --font-display:'Amiri', 'Cinzel', serif;
  --font-body:'IBM Plex Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; } }

body{
  background:var(--bg-base); color:var(--text-primary);
  font-family:var(--font-body); line-height:1.6; -webkit-font-smoothing:antialiased;
}
a{ color:inherit; }
img,svg{ max-width:100%; }

::selection{ background:var(--brand-gold); color:var(--brand-navy); }
:focus-visible{ outline:2px solid var(--brand-gold); outline-offset:3px; }

h1,h2,h3{ font-family:var(--font-display); font-weight:600; line-height:1.1; }

/* ===== structural scaffolding ===== */
.container{ max-width:var(--container-max); margin-left:auto; margin-right:auto; padding-left:var(--pad-x); padding-right:var(--pad-x); }
.stack{ display:flex; flex-direction:column; gap:clamp(2rem, 1.6rem + 2vw, 3rem); }

/* ===== header ===== */
.site-header{
  position:sticky; top:0; z-index:20;
  background:color-mix(in srgb, var(--bg-base) 88%, transparent);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; padding-top:1.1rem; padding-bottom:1.1rem; }
.brand{ display:flex; align-items:center; text-decoration:none; color:var(--text-primary); }
.brand-mark-img{ block-size:2.5rem; inline-size:auto; }
.header-controls{ display:flex; align-items:center; gap:0.6rem; }
.lang-switch{ display:flex; gap:0.4rem; font-family:var(--font-mono); font-size:0.78rem; }
.lang-switch a{ text-decoration:none; padding:0.35rem 0.7rem; border:1px solid var(--line); border-radius:2px; color:var(--text-secondary); }
.lang-switch a[aria-current="true"]{ background:var(--brand-navy); color:var(--ink-text); border-color:var(--brand-navy); }
.theme-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  padding:0.45rem 0.7rem; border:1px solid var(--line); border-radius:2px;
  background:transparent; color:var(--text-primary); cursor:pointer;
}
.theme-toggle:hover{ border-color:var(--brand-gold); }

/* ===== hero — dark navy instrument panel, brightened gold node mesh ===== */
.hero{
  position:relative; isolation:isolate; overflow:hidden;
  margin:2rem var(--pad-x) 3rem; border-radius:14px;
  background:radial-gradient(120% 140% at 15% 15%, var(--brand-navy-light) 0%, var(--brand-navy) 55%, #05070F 100%);
  box-shadow:var(--shadow-panel);
  min-block-size:min(32rem, 76vh);
  display:flex; align-items:center;
}
.hero-mesh-wrap{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.hero-mesh{ inline-size:100%; block-size:100%; display:block; }
.hero-content{ position:relative; z-index:1; max-width:36rem; padding:clamp(2.5rem, 5vw, 4.5rem); }
.hero-tag{ display:block; font-family:var(--font-mono); font-size:0.72rem; letter-spacing:0.22em; text-transform:uppercase; color:var(--brand-gold-hot); margin-bottom:1.1rem; }
.hero h1{ color:var(--ink-text); font-size:clamp(2.2rem, 1.9rem + 2vw, 3.4rem); line-height:1.12; text-wrap:balance; }
.hero .subhead{ font-family:var(--font-body); font-style:italic; font-weight:500; color:var(--brand-gold-hot); font-size:clamp(1rem, 0.92rem + 0.4vw, 1.2rem); margin-top:0.8rem; }
[dir="rtl"] .hero .subhead{ font-style:normal; }
.hero p.lede{ color:var(--ink-text-soft); font-size:1rem; line-height:1.65; margin-top:1.1rem; max-width:28rem; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:1rem; margin-top:2rem; }
@media (max-width:40rem){ .hero{ min-block-size:28rem; } .hero-content{ padding:2.25rem 1.5rem; } }

/* ===== buttons ===== */
.btn{
  display:inline-flex; align-items:center; gap:0.5rem;
  font-family:var(--font-body); font-weight:600; font-size:0.9rem; letter-spacing:0.02em;
  padding:0.9rem 1.6rem; border-radius:3px; text-decoration:none; border:1.5px solid transparent;
  transition:transform 180ms cubic-bezier(.16,1,.3,1), box-shadow 180ms ease-out, border-color 180ms ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn--seal{ background:linear-gradient(135deg, var(--brand-gold-bright), var(--brand-gold)); color:#1A1204; box-shadow:0 0.6rem 1.6rem -0.5rem rgba(232,180,84,0.45); }
.btn--seal:hover{ box-shadow:0 0.9rem 2.2rem -0.6rem rgba(232,180,84,0.6); }
.btn--ghost{ border-color:rgba(244,238,225,0.35); color:var(--ink-text); }
.btn--ghost:hover{ border-color:var(--brand-gold-hot); }
.svg-icon{ width:1.1rem; height:1.1rem; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* ===== section rhythm ===== */
.section{ position:relative; isolation:isolate; padding-top:var(--pad-y); padding-bottom:var(--pad-y); background:var(--bg-base); border-top:1px solid var(--line); }
.section--elevated{ background:var(--bg-elevated); }
.section--ink{ background:var(--brand-navy); color:var(--ink-text); border-top-color:rgba(244,238,225,0.12); }
.eyebrow{ font-family:var(--font-mono); font-size:0.72rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--brand-gold); display:block; margin-bottom:0.9rem; }
.section--ink .eyebrow{ color:var(--brand-gold-hot); }
.section-head h2{ font-size:clamp(1.7rem, 1.5rem + 1.3vw, 2.5rem); text-wrap:balance; }
.section-head p{ color:var(--text-secondary); font-size:1.02rem; max-width:38rem; margin-top:0.9rem; }
.section--ink .section-head p{ color:var(--ink-text-soft); }

/* ===== social proof ===== */
.proof-strip{ display:flex; flex-wrap:wrap; align-items:center; gap:0.75rem 1.75rem; font-family:var(--font-mono); font-size:0.85rem; color:var(--text-secondary); }
.proof-strip strong{ color:var(--text-primary); font-weight:700; }
.proof-strip .partner-credit{ display:inline-flex; align-items:center; gap:0.6rem; }
.partner-mark{ block-size:1.6rem; inline-size:auto; display:block; color:var(--text-primary); }

.value-grid, .testi-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(16rem,1fr)); gap:1.5rem; }
.value-card, .testi{
  background:var(--bg-surface); border:1px solid var(--line); border-radius:10px; padding:1.75rem;
  box-shadow:var(--shadow-lift); display:flex; flex-direction:column; justify-content:space-between;
}
.testi p{ font-size:1.02rem; line-height:1.55; }
.testi p::before{ content:'\201C'; color:var(--brand-gold); }
.testi p::after{ content:'\201D'; color:var(--brand-gold); }
.testi cite{ display:block; margin-top:1rem; font-family:var(--font-mono); font-style:normal; font-size:0.8rem; color:var(--text-muted); }

/* ===== problem ===== */
.problem-grid{ display:grid; grid-template-columns:1.1fr 1fr; gap:3rem; align-items:start; }
.problem-grid > div{ display:flex; flex-direction:column; gap:1.25rem; }
.problem-grid p{ margin:0; font-size:1.05rem; color:var(--ink-text-soft); max-width:32rem; }
.pain-list{ list-style:none; display:flex; flex-direction:column; gap:1.1rem; }
.pain-list li{ display:flex; gap:0.9rem; padding-bottom:1.1rem; border-bottom:1px solid rgba(244,238,225,0.14); font-size:0.98rem; color:var(--ink-text-soft); }
.pain-list li:last-child{ border-bottom:none; }
.pain-list .mark{ font-family:var(--font-mono); color:var(--brand-gold-hot); flex:none; }
@media (max-width:52rem){ .problem-grid{ grid-template-columns:1fr; } }

/* ===== how it works ===== */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid var(--line-strong); list-style:none; }
.step{ padding:1.75rem 1.5rem 1.75rem 0; border-right:1px solid var(--line-strong); }
.step:last-child{ border-right:none; }
.step .n{ font-family:var(--font-display); font-size:2.1rem; color:var(--brand-gold); line-height:1; display:block; }
.step h3{ font-size:1.05rem; margin:0.9rem 0 0.5rem; }
.step p{ margin:0; font-size:0.92rem; color:var(--text-secondary); }
@media (max-width:56rem){
  .steps{ grid-template-columns:1fr; }
  .step{ border-right:none; border-bottom:1px solid var(--line-strong); padding:1.5rem 0; }
  .step:last-child{ border-bottom:none; }
}

/* ===== industries ===== */
.industry-wall{ display:flex; flex-wrap:wrap; gap:0.75rem; }
.industry-tag{
  font-family:var(--font-display); font-size:clamp(1rem,0.94rem+0.4vw,1.2rem);
  padding:0.6rem 1.25rem; border-radius:999px; color:var(--text-primary);
  background:color-mix(in srgb, var(--brand-gold) 16%, var(--bg-surface));
  border:1px solid color-mix(in srgb, var(--brand-gold) 30%, transparent);
}

/* ===== team / partners ===== */
.cert-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(16rem,1fr)); gap:1.75rem; }
.cert-card{ padding:2rem; border-radius:8px; background:var(--bg-surface); border:1px solid var(--line); box-shadow:var(--shadow-lift); }
.cert-card h4{ font-family:var(--font-display); font-size:1.4rem; font-weight:600; margin-bottom:0.4rem; }
.cert-title{ margin:0; font-size:0.95rem; color:var(--text-secondary); font-style:italic; }
[dir="rtl"] .cert-title{ font-style:normal; }

.partner-logo-block{ inline-size:min(100%,12rem); block-size:auto; color:var(--text-primary); }
.chip-row{ display:flex; flex-wrap:wrap; gap:0.65rem; }
.chip{ font-family:var(--font-mono); font-size:0.82rem; background:var(--bg-surface); border:1px solid var(--line); border-radius:2px; padding:0.5rem 0.9rem; box-shadow:var(--shadow-lift); }

/* ===== market focus — a compact row of offices, Cairo as the marked hub ===== */
.office-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:var(--line-strong); border:1px solid var(--line-strong); border-radius:8px; overflow:hidden; }
.office{ background:var(--bg-surface); padding:1.5rem 1.25rem; text-align:center; }
.office-tag{ display:block; font-family:var(--font-mono); font-size:0.68rem; letter-spacing:0.16em; text-transform:uppercase; color:var(--brand-gold); margin-bottom:0.5rem; }
.office h3{ font-size:1.05rem; font-weight:600; }
.office p{ margin-top:0.2rem; font-size:0.85rem; color:var(--text-secondary); }
.office--hub{ background:color-mix(in srgb, var(--brand-gold) 12%, var(--bg-surface)); }
@media (max-width:48rem){ .office-grid{ grid-template-columns:repeat(2,1fr); } .office--hub{ grid-column:1 / -1; } }

/* ===== FAQ ===== */
.faq-list{ max-width:44rem; }
.faq{ border-bottom:1px solid var(--line); }
.faq summary{ cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1.3rem 0; font-weight:600; font-size:1.02rem; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:'+'; font-family:var(--font-mono); font-weight:400; font-size:1.3rem; color:var(--brand-gold); margin-left:auto; }
.faq[open] summary::after{ content:'\2013'; }
.faq p{ margin:0 0 1.3rem; color:var(--text-secondary); font-size:0.98rem; max-width:38rem; }
.faq[open] p{ animation:sweep 200ms ease-in-out; }
@keyframes sweep{ 0%{ opacity:0; transform:translateY(-4px); } 100%{ opacity:1; transform:translateY(0); } }

/* ===== CTA / contact ===== */
.cta-block{ display:grid; grid-template-columns:1.1fr 1fr; gap:3rem; align-items:start; }
.cta-block h2{ font-size:clamp(1.9rem,1.6rem+1.6vw,2.8rem); color:var(--ink-text); }
.cta-block p.lede{ color:var(--ink-text-soft); font-size:1.02rem; margin-top:1rem; max-width:28rem; }
.contact-list{ list-style:none; margin-top:1.75rem; font-family:var(--font-mono); font-size:0.95rem; display:flex; flex-direction:column; gap:0.6rem; }
.contact-list a{ text-decoration:none; border-bottom:1px solid rgba(244,238,225,0.3); }
.social-row{ display:flex; gap:0.75rem; margin-top:1.5rem; }
.social-icon{
  display:inline-flex; align-items:center; justify-content:center;
  inline-size:2.5rem; block-size:2.5rem; border-radius:50%;
  border:1px solid rgba(244,238,225,0.3); color:var(--ink-text);
  transition:background-color 150ms ease-out, border-color 150ms ease-out;
}
.social-icon:hover{ background:var(--brand-gold); border-color:var(--brand-gold); color:#1A1204; }
.social-icon svg{ inline-size:1.1rem; block-size:1.1rem; fill:currentColor; }
.form-field{ display:flex; flex-direction:column; gap:0.4rem; margin-bottom:1.25rem; }
.form-field label{ font-family:var(--font-mono); font-size:0.78rem; letter-spacing:0.05em; text-transform:uppercase; opacity:0.85; }
.form-field input, .form-field textarea{
  background:transparent; border:1px solid rgba(244,238,225,0.3); color:var(--ink-text);
  padding:0.75rem 0.85rem; font-family:var(--font-body); font-size:0.98rem; width:100%; border-radius:2px;
}
.form-field textarea{ resize:vertical; min-block-size:6rem; }
@media (max-width:56rem){ .cta-block{ grid-template-columns:1fr; } }

.site-footer{ padding-block:2.5rem; text-align:center; font-family:var(--font-mono); font-size:0.78rem; color:var(--text-muted); }
