:root {
  --bg: #0b0c10;
  --bg-alt: #111319;
  --surface: #16181f;
  --surface-2: #1c1f28;
  --border: #262a35;
  --text: #f2f3f5;
  --text-dim: #9aa0ac;
  --accent: #7c5cff;
  --accent-2: #ff5c8a;
  --accent-grad: linear-gradient(135deg, #7c5cff 0%, #ff5c8a 100%);
  --radius: 18px;
  --max-w: 1180px;
  --font: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(124, 92, 255, .7); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(124, 92, 255, .08); }
.btn-small { padding: 10px 22px; font-size: 0.9rem; }
.btn-large { padding: 18px 40px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 12, 16, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline-start: auto;
  margin-inline-end: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 900px;
  background:
    radial-gradient(circle at 25% 20%, rgba(124, 92, 255, .35), transparent 55%),
    radial-gradient(circle at 75% 10%, rgba(255, 92, 138, .28), transparent 50%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
  background: rgba(124, 92, 255, .1);
  border: 1px solid rgba(124, 92, 255, .3);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero h1 .highlight {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section shared ---------- */
section { padding: 120px 0; position: relative; }
.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 56px;
  max-width: 640px;
}

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, .4);
  background: var(--surface-2);
}
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--accent-grad);
  color: #fff;
  margin-bottom: 22px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-text p { color: var(--text-dim); margin-bottom: 24px; }
.about-points li {
  position: relative;
  padding-inline-start: 26px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 500;
}
.about-points li::before {
  content: "";
  position: absolute;
  right: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-grad);
}
.about-visual {
  position: relative;
  height: 360px;
}
.orbit-card {
  position: absolute;
  padding: 20px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
}
.card-1 { top: 0; right: 10%; background: var(--accent-grad); color: #fff; border: none; }
.card-2 { top: 42%; left: 0; }
.card-3 { bottom: 0; right: 25%; }

/* ---------- Why ---------- */
.why { background: var(--bg-alt); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border);
  margin-bottom: 18px;
}
.why-item h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.why-item p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 100px 0;
}
.cta-inner {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, .25), transparent 60%);
  pointer-events: none;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
}
.cta-inner p {
  color: var(--text-dim);
  margin-bottom: 34px;
  position: relative;
}
.cta-inner .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-inner a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { height: 260px; margin-top: 20px; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(11,12,16,.98);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 90px; }
  section { padding: 80px 0; }
  .cta-inner { padding: 56px 24px; }
}
