:root {
  --bg: #020617;
  --bg-alt: #0b1120;
  --card: rgba(13, 25, 48, 0.8);
  --card-border: rgba(148, 163, 184, 0.35);
  --primary: #7c3aed;
  --primary-strong: #5b21b6;
  --secondary: #06b6d4;
  --accent: #22d3ee;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --success: #2dd4bf;
  font-family: 'Readex Pro', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.25), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.25), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: inherit;
  line-height: 1.7;
  direction: rtl;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

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

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.hero {
  padding: 2.5rem 0 4rem;
}

.orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.4;
}

.orb-one {
  top: -80px;
  inset-inline-start: -120px;
  background: var(--primary);
}

.orb-two {
  bottom: 0;
  inset-inline-end: -100px;
  background: var(--secondary);
}

.top-nav {
  position: sticky;
  top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px);
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-mark {
  width: 64px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 25px rgba(34, 211, 238, 0.25));
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.logo .latin {
  font-size: 1.1rem;
  text-transform: uppercase;
}

.logo .lang-en.latin {
  background: linear-gradient(120deg, #5ff3ff, #27d6f2, #15b4d6);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 0.14em;
}

.logo .lang-ar.latin {
  background: linear-gradient(120deg, #5ff3ff, #27d6f2, #15b4d6);
  -webkit-background-clip: text;
  color: transparent;
}

.logo .brand-title {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-switch {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch.active {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: white;
}

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

.whatsapp-link {
  color: var(--success);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-whatsapp {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero h1 .lang {
  display: block;
}

.hero h1 .lang-ar {
  background: linear-gradient(120deg, #5ff3ff, #27d6f2, #15b4d6);
  -webkit-background-clip: text;
  color: transparent;
}

.hero h1 .lang-en {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  background: linear-gradient(120deg, #5ff3ff, #27d6f2, #15b4d6);
  -webkit-background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  max-width: 52ch;
  text-align: right;
  direction: rtl;
}

body[data-lang='en'] .lead {
  text-align: left;
  direction: ltr;
  margin-right: auto;
  margin-left: 0;
}

.lead .lang-en {
  text-align: left;
  direction: ltr;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 1rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.35);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn.is-busy {
  opacity: 0.6;
  cursor: not-allowed;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
  color: var(--muted);
}

.signal .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 15px var(--success);
}

.hero-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 40px 80px rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(30px);
}

.glow-panel {
  position: relative;
  overflow: hidden;
}

.glow-panel::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(34, 211, 238, 0.35),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

.glow-panel:hover::before {
  opacity: 1;
}

.glow-panel > * {
  position: relative;
  z-index: 1;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.hero-card li {
  color: var(--muted);
}

main section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin: 0.4rem 0 0.6rem;
}

.section-header p {
  color: var(--muted);
}

.services .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.8rem;
  border-radius: 1.2rem;
  background: rgba(8, 15, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.15), transparent);
  pointer-events: none;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.highlights {
  background: var(--bg-alt);
}

.highlights .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.highlight {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 13, 25, 0.6);
}

.highlight .value {
  font-size: 2rem;
  font-weight: 700;
}

.highlight .label {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
}

.modules .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.module-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.module-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
  color: var(--muted);
}

.module-card p {
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.chips span {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
}

.inquiry-form {
  padding: 2.5rem;
  border-radius: 1.8rem;
  background: rgba(8, 13, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  backdrop-filter: blur(30px);
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 60%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-glow.active {
  opacity: 0.6;
}

.label-text {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-weight: 600;
}

.label-text .label-copy {
  display: flex;
  flex-direction: column;
}

.required-indicator {
  color: #f87171;
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 0.15rem;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.inquiry-form select {
  appearance: none;
  background-color: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1.2em), calc(100% - 15px) calc(1.2em);
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.inquiry-form select option {
  background-color: var(--bg-alt);
  color: var(--text);
}

.inquiry-form textarea {
  resize: vertical;
}

.inquiry-form .full,
.hint,
.form-actions {
  grid-column: 1 / -1;
}

.hint {
  color: var(--muted);
  margin: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.5rem;
  font-weight: 600;
  color: var(--muted);
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: #f87171;
}

.contact .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.contact-details {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 13, 26, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: right;
}

.contact-details a {
  color: var(--text);
  font-weight: 600;
}

.contact-details .phone-link {
  direction: ltr;
  text-align: left;
}

.contact-details .whatsapp-link {
  align-self: flex-start;
  direction: ltr;
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.contact-details p {
  margin: 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem 0;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.foot-links {
  display: flex;
  gap: 1.2rem;
}

.foot-links a {
  color: var(--text);
  font-weight: 500;
}

.lang {
  display: block;
}

.lang-ar {
  text-align: right;
  direction: rtl;
}

.lang-en {
  text-align: left;
  direction: ltr;
}

body[data-lang='ar'] .lang-en {
  display: none;
}

body[data-lang='en'] .lang-ar {
  display: none;
}

body[data-lang='en'] .whatsapp-link {
  direction: ltr;
}

[data-animate] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 680px) {
  .top-nav {
    flex-direction: column;
    gap: 1rem;
    border-radius: 1.5rem;
  }

  .hero-cta,
  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
