/* ============================================================
   TECH ZONE — Design System (Phase 2)
   Palette: Midnight Navy / Graphite / White / Electric Cyan /
            Intelligent Blue / Teal
   Type: Inter (EN) + IBM Plex Sans Arabic (AR)
   ============================================================ */

:root {
  --navy: #0B1220;
  --graphite: #151D2D;
  --graphite-2: #1B2537;
  --white: #FFFFFF;
  --cyan: #19C6D7;
  --blue: #4169E1;
  --teal: #16A6A1;
  --ink: #E8EDF5;
  --muted: #9AA7BC;
  --line: rgba(255, 255, 255, 0.09);
  --grad: linear-gradient(100deg, var(--cyan), var(--blue) 55%, var(--teal));
  --grad-soft: linear-gradient(100deg, rgba(25,198,215,.16), rgba(65,105,225,.16) 55%, rgba(22,166,161,.16));
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Tahoma", sans-serif;
  --accent: var(--cyan);
  --accent-2: var(--blue);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }

/* Ambient glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(720px 480px at 85% -5%, rgba(65, 105, 225, 0.16), transparent 60%),
    radial-gradient(640px 420px at 8% 12%, rgba(25, 198, 215, 0.10), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(22, 166, 161, 0.08), transparent 60%);
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.18; font-weight: 800; letter-spacing: -0.015em; color: var(--white); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; }

.h-display { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.h-xl { font-size: clamp(2rem, 4.2vw, 3rem); }
.h-lg { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.h-md { font-size: 1.25rem; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 56ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0.06em; }
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-weight: 800; font-size: 1.12rem; color: var(--white); letter-spacing: 0.02em; }
.brand img { width: 40px; height: 40px; }
.brand .brand-word span { color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .18s, background .18s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.06); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
}
.lang-switch a { padding: 7px 13px; color: var(--muted); }
.lang-switch a.active { background: var(--grad); color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px; height: 42px;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(11, 18, 32, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s, border-color .16s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: var(--navy); box-shadow: 0 8px 26px rgba(25, 198, 215, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(65, 105, 225, 0.35); }
.btn-ghost { border-color: var(--line); color: var(--white); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: rgba(25,198,215,.5); background: rgba(25,198,215,.07); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(80px, 11vw, 140px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .lead { margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-tagline { font-size: 0.9rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 34px; }
html[lang="ar"] .hero-tagline { letter-spacing: .08em; }
.hero-tagline b { color: var(--cyan); font-weight: 700; }

.hero-panel {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  display: grid;
  gap: 14px;
}
.hero-panel .hp-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--graphite-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 0.98rem;
}
.hp-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.hp-dot.c { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.hp-dot.b { background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.hp-dot.t { background: var(--teal); box-shadow: 0 0 14px var(--teal); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--card-accent, var(--grad));
  opacity: .9;
}
.card:hover { transform: translateY(-4px); border-color: rgba(25,198,215,.35); box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: 0.99rem; }
.card .card-link { margin-top: auto; font-weight: 700; color: var(--accent); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
html[dir="rtl"] .card .card-link svg, html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

/* ---------- Division band ---------- */
.division-band { border-block: 1px solid var(--line); background: rgba(21,29,45,.55); }

/* ---------- Lists ---------- */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 1rem; }
.check-list li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 6px;
  background: var(--grad-soft);
  border: 1px solid rgba(25,198,215,.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319C6D7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .panel {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 3.4vw, 40px);
}

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-weight: 800;
  font-size: 1.05rem;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  flex: none;
  margin-top: 2px;
}
.step h4 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 260px at 20% 0%, rgba(25,198,215,.14), transparent 60%),
    radial-gradient(500px 260px at 80% 100%, rgba(65,105,225,.16), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .lead { margin: 16px auto 0; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Division page hero ---------- */
.div-hero { padding-block: clamp(64px, 9vw, 110px) clamp(40px, 6vw, 64px); }
.div-hero .lead { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(11,18,32,.9); padding-block: 56px 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { color: var(--white); font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
html[lang="ar"] .footer-grid h5 { letter-spacing: .03em; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted); font-size: .94rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand p { color: var(--muted); font-size: .93rem; margin-top: 14px; max-width: 34ch; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: .85rem;
}

/* ---------- Trust note ---------- */
.note {
  border: 1px dashed rgba(25,198,215,.4);
  background: rgba(25,198,215,.05);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--muted);
  font-size: .92rem;
}

/* ---------- Utilities ---------- */
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.accent-growth { --accent: var(--cyan); --accent-2: var(--blue); --card-accent: linear-gradient(90deg, var(--cyan), var(--blue)); }
.accent-global { --accent: var(--blue); --accent-2: var(--teal); --card-accent: linear-gradient(90deg, var(--blue), var(--teal)); }
.accent-ai { --accent: var(--teal); --accent-2: var(--cyan); --card-accent: linear-gradient(90deg, var(--teal), var(--cyan)); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

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