/* ═══════════════════════════════════════════════════════════════
   MUSA ARRADI — Shared Design System
   styles.css
═══════════════════════════════════════════════════════════════ */

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Design Tokens ────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:           #f8f9fb;
  --surface:      #ffffff;
  --border:       #e5e8ee;
  --border-soft:  #edf0f5;
  --ink:          #0d1117;
  --ink-2:        #374151;
  --muted:        #6b7280;
  --accent:       #1a56db;
  --accent-dark:  #0e3992;
  --accent-soft:  #eff4ff;
  --accent-mid:   #c7d9f9;
  --pill-bg:      #f1f5f9;
  --pill-border:  #dde3eb;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:    0 2px 6px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.07);
  --shadow-lg:    0 6px 12px rgba(0,0,0,.07), 0 16px 40px rgba(0,0,0,.10);

  /* Radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;

  /* Typography */
  --font:  'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w: 900px;

  /* Transition */
  --ease:  cubic-bezier(.4, 0, .2, 1);
  --t:     0.22s;
}

/* ─── Base ─────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar           { width: 5px; }
::-webkit-scrollbar-track     { background: transparent; }
::-webkit-scrollbar-thumb     { background: #d1d5db; border-radius: 99px; }

/* ─── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  background: rgba(248,249,251,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t) var(--ease);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.07); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.025em;
}

.nav-logo span {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  margin-left: 6px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}

.nav-links a:hover { color: var(--ink); background: var(--border-soft); }
.nav-links a.active { color: var(--ink); font-weight: 600; }

.nav-links .nav-cta a {
  background: var(--ink);
  color: #fff;
  padding: 7px 14px;
  font-weight: 600;
}
.nav-links .nav-cta a:hover {
  background: #1d2330;
  color: #fff;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  display: block;
  transition: all var(--t) var(--ease);
}

/* ─── Section Primitives ────────────────────────────────────── */
section { padding: 88px 0; }

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.12;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15.5px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}

.section-header { margin-bottom: 48px; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
              background var(--t) var(--ease), border-color var(--t) var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  font-family: var(--font);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: #1d2330;
  box-shadow: 0 6px 22px rgba(0,0,0,.2);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: #bdc6d2;
  background: #f4f6f9;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 22px rgba(26,86,219,.28);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-mid);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* Contact section buttons (dark bg) */
.btn-light {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.btn-light:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-1px);
}
.btn-white {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn-white:hover {
  background: #f0f2f5;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  transform: translateY(-1px);
}

/* ─── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d5dce6;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), transform var(--t) var(--ease);
  cursor: default;
}
.pill:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: background var(--t) var(--ease);
}
.pill:hover .pill-dot { background: rgba(255,255,255,.55); }

/* Mini tech pills (inside cards) */
.tech-pill {
  display: inline-block;
  padding: 3px 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-dark);
}

/* ─── Badge / Eyebrow ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 13px;
  border-radius: 99px;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Fade-in Animation ─────────────────────────────────────── */
.fi {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.fi.visible { opacity: 1; transform: translateY(0); }
.fi[data-delay="1"] { transition-delay: .08s; }
.fi[data-delay="2"] { transition-delay: .16s; }
.fi[data-delay="3"] { transition-delay: .24s; }
.fi[data-delay="4"] { transition-delay: .32s; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding: 28px 24px;
  text-align: center;
}
.site-footer p {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.site-footer a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
.site-footer a:hover { color: rgba(255,255,255,.8); }

/* ─── Page Header (inner pages) ─────────────────────────────── */
.page-header {
  padding: 120px 0 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-header .badge { margin-bottom: 16px; }
.page-header h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-header p {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
}

/* ─── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 72px 24px;
  color: var(--muted);
}
.empty-state-icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: .5;
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty-state p { font-size: 14px; line-height: 1.6; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .section-header { margin-bottom: 36px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(248,249,251,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 4px;
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; width: 100%; }
  .hamburger { display: flex; }

  .page-header { padding: 100px 0 48px; }
}

/* ─── SEO Systems Section ───────────────────────────────────── */
#seo-system { background: var(--surface); }
#seo-system .section-header { text-align: center; margin-bottom: 64px; }
#seo-system .section-subtitle { margin: 0 auto; }

.seo-system__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}
.seo-system__intro p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

.seo-system__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 80px;
}

.seo-system__card {
  padding: 36px 30px;
}

.seo-system__step {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.8;
  letter-spacing: 0.12em;
}

.seo-system__card h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 12px;
}

.seo-system__card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.seo-system__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
  align-items: start;
}

.seo-system__block h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.15;
}

.seo-system__block p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.seo-system__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seo-system__list li {
  font-size: 14.8px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  font-weight: 500;
}

.seo-system__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent);
  font-weight: 900;
}

.seo-system__stack {
  padding-top: 56px;
  border-top: 1px solid var(--border-soft);
}

.seo-system__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .seo-system__intro,
  .seo-system__grid,
  .seo-system__split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
