@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  --bg: #06111f;
  --bg-soft: #0a1a2d;
  --panel: rgba(12, 28, 47, 0.72);
  --panel-solid: #0d1c30;
  --line: rgba(146, 184, 214, 0.14);
  --text: #edf6ff;
  --muted: #9db2c8;
  --accent: #3ee6c4;
  --accent-2: #7c8cff;
  --accent-soft: rgba(62, 230, 196, 0.12);
  --radius: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 50% at 85% -10%, rgba(62, 230, 196, 0.14), transparent 60%),
    radial-gradient(60% 45% at 5% 15%, rgba(124, 140, 255, 0.13), transparent 60%),
    radial-gradient(50% 40% at 50% 100%, rgba(62, 230, 196, 0.07), transparent 65%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(146, 184, 214, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 184, 214, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 75%);
  pointer-events: none;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
::selection { background: rgba(62, 230, 196, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  z-index: 100;
  background: var(--accent);
  color: #04121c;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(6, 17, 31, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(62, 230, 196, 0.18), rgba(124, 140, 255, 0.12));
  border: 1px solid rgba(62, 230, 196, 0.35);
  box-shadow: 0 0 24px rgba(62, 230, 196, 0.15);
}
.logo-mark svg { width: 24px; height: 24px; }
.logo-text strong { display: block; font-size: 1.05rem; line-height: 1.2; font-weight: 800; }
.logo-text span { display: block; font-size: 0.72rem; color: var(--muted); line-height: 1.2; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.active { box-shadow: inset 0 -2px 0 var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #22b8c9);
  color: #04121c;
  box-shadow: 0 10px 30px rgba(62, 230, 196, 0.18);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(62, 230, 196, 0.28); }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: rgba(62, 230, 196, 0.4); background: rgba(62, 230, 196, 0.07); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Shared typography ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.gradient-text {
  background: linear-gradient(90deg, var(--accent), #8ee9ff 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section { padding: 76px 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.3;
  margin: 0.6rem 0 0.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--muted); line-height: 1.9; margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

/* ===== Hero ===== */
.hero { padding: 84px 0 60px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.18;
  margin: 1rem 0 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero .lead {
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.95;
  max-width: 35rem;
  margin: 0;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }
.stats {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.stat strong { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--text); }
.stat span { font-size: 0.82rem; color: var(--muted); }

.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.orbit { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orbit::before, .orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: spin 26s linear infinite;
}
.orbit::before {
  width: 370px; height: 370px;
  border: 1px dashed rgba(62, 230, 196, 0.28);
}
.orbit::after {
  width: 278px; height: 278px;
  border: 1px solid rgba(124, 140, 255, 0.24);
  animation-direction: reverse;
  animation-duration: 18s;
}
.shield-wrap {
  position: relative;
  width: 236px;
  height: 268px;
  filter: drop-shadow(0 0 42px rgba(62, 230, 196, 0.22));
  animation: float 6s ease-in-out infinite;
}
.shield-wrap svg { width: 100%; height: 100%; }
.pulse-ring {
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 230, 196, 0.16), transparent 66%);
  animation: pulse 3.6s ease-in-out infinite;
}
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  background: rgba(10, 25, 43, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  white-space: nowrap;
}
.chip i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.chip.one { top: 12%; right: -2%; }
.chip.two { bottom: 18%; left: -4%; }
.chip.three { bottom: 2%; right: 10%; }

/* ===== Cards ===== */
.card {
  position: relative;
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 0%), rgba(62, 230, 196, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(62, 230, 196, 0.35); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--accent);
  background: rgba(62, 230, 196, 0.1);
  border: 1px solid rgba(62, 230, 196, 0.25);
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin: 0 0 0.6rem; line-height: 1.4; }
.card p { color: var(--muted); line-height: 1.85; font-size: 0.95rem; margin: 0; }
.card-number {
  position: absolute;
  top: 0.6rem; left: 1.2rem;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.link-arrow:hover { gap: 0.7rem; }

.check-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.55rem; }
.check-list li {
  position: relative;
  padding-right: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ===== Interior page hero ===== */
.page-hero { padding: 66px 0 26px; position: relative; overflow: hidden; }
.page-hero::after {
  content: '';
  position: absolute;
  top: -140px; left: 8%;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 140, 255, 0.14), transparent 65%);
  pointer-events: none;
}
.breadcrumb { font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.2; margin: 0.8rem 0; font-weight: 800; }
.page-hero p { color: var(--muted); max-width: 42rem; line-height: 1.9; margin: 0; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.step {
  padding: 1.4rem;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(62, 230, 196, 0.3);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.02rem; margin: 0 0 0.4rem; }
.step p { color: var(--muted); font-size: 0.87rem; line-height: 1.75; margin: 0; }

/* ===== CTA ===== */
.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  border-radius: 28px;
  border: 1px solid rgba(62, 230, 196, 0.22);
  background:
    linear-gradient(120deg, rgba(62, 230, 196, 0.12), rgba(124, 140, 255, 0.12)),
    var(--bg-soft);
}
.cta-band::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  left: -90px; top: -160px;
  background: radial-gradient(circle, rgba(62, 230, 196, 0.14), transparent 65%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .section-title { margin-bottom: 0.4rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1.5rem; align-items: start; }
.contact-stack { display: grid; gap: 1rem; }
.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
a.contact-card:hover { border-color: rgba(62, 230, 196, 0.4); transform: translateY(-3px); }
.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(62, 230, 196, 0.25);
}
.contact-icon svg { width: 21px; height: 21px; }
.contact-card h3 { font-size: 1rem; margin: 0 0 0.25rem; }
.contact-card p { color: var(--muted); font-size: 0.9rem; margin: 0; line-height: 1.7; }
.form-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.88rem; margin-bottom: 0.45rem; color: #cfe0f2; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field select option { background: var(--panel-solid); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #6f859c; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(62, 230, 196, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.error { display: block; min-height: 1.1rem; margin-top: 0.3rem; font-size: 0.78rem; color: #ff9a9a; }
.form-note { color: var(--muted); font-size: 0.82rem; margin: 0.8rem 0 0; }
.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(62, 230, 196, 0.1);
  border: 1px solid rgba(62, 230, 196, 0.3);
  color: var(--accent);
  font-size: 0.88rem;
}

/* ===== WhatsApp floating button ===== */
.whatsapp-float {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.04); }
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: ring 2.2s ease-out infinite;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 80px;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: rgba(4, 12, 22, 0.5);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid p { color: var(--muted); font-size: 0.9rem; max-width: 22rem; line-height: 1.8; margin: 1rem 0 0; }
.footer-grid h4 { font-size: 0.95rem; margin: 0.2rem 0 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== Reveal & motion ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { min-height: 360px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: grid; }
  .nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0; left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.6rem;
    border-radius: 16px;
    background: rgba(9, 22, 38, 0.97);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { text-align: center; }
  .header-cta { display: none; }
  .hero { padding-top: 52px; }
  .stats { gap: 1.2rem; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .section { padding: 56px 0; }
  .grid-3, .steps, .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.15rem; }
  .orbit::before { width: 300px; height: 300px; }
  .orbit::after { width: 225px; height: 225px; }
  .shield-wrap { width: 200px; height: 228px; }
  .chip { font-size: 0.7rem; padding: 0.45rem 0.6rem; }
  .chip.one { right: -1%; }
  .chip.two { left: -1%; }
  .form-card { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
