:root {
  --bg: #0a0f1e;
  --surface: #0f1627;
  --text: #e9f2ff;
  --muted: #b9c7e6;
  --primary: #7c3aed;
  --primary-contrast: #ffffff;
  --accent: #06b6d4;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2,6,23,.35);
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: radial-gradient(800px 300px at 10% -100px, rgba(124,58,237,.18), transparent),
              radial-gradient(700px 260px at 100% 0, rgba(6,182,212,.12), transparent),
              var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

body {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

.hero-media { position: relative; }
.hero-media img { border-radius: 18px; aspect-ratio: 16/10; object-fit: cover; box-shadow: var(--shadow); }
.hero-media::after { content:""; position: absolute; inset:0; background: linear-gradient(45deg, rgba(124,58,237,.2), rgba(6,182,212,.12)); pointer-events:none; border-radius: 18px; }

a {
  color: var(--text);
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.narrow {
  width: min(900px, 92%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18,24,38,.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.logo {
  font-weight: 800;
  letter-spacing: .2px;
}

.main-nav {
  display: none;
  gap: 18px;
}

.main-nav a {
  opacity: .9;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-switch button {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--primary);
  border-color: var(--primary);
}

.section {
  padding-block: 72px;
}

.hero {
  padding-block: 96px;
  background: radial-gradient(1200px 500px at 20% -120px, rgba(124,58,237,.28), transparent),
              radial-gradient(900px 360px at 90% -60px, rgba(6,182,212,.18), transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.1;
  margin: 0 0 12px 0;
  background: linear-gradient(90deg, #93c5fd, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
}

.hero-ctas {
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, var(--primary));
  color: var(--primary-contrast);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(124,58,237,.25);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(124,58,237,.25); border-color: rgba(124,58,237,.35); }
.service-icon { width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(6,182,212,.12)); color: #a78bfa; }
.service-icon svg { width: 22px; height: 22px; }
.plan-icon { width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(6,182,212,.12)); color: #22d3ee; }
.plan-icon svg { width: 22px; height: 22px; }

.card h3 { margin: 0 0 10px 0; }
.card p { color: var(--muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plan {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(124,58,237,.28); border-color: rgba(124,58,237,.35); }

.plan-header { display: flex; align-items: baseline; justify-content: space-between; }
.price { font-weight: 700; }
.muted { color: var(--muted); }
.features { margin: 16px 0; padding: 0; list-style: none; }
.features li { padding-block: 6px; border-bottom: 1px dashed rgba(255,255,255,.08); }

.portfolio-item {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.portfolio-item { transition: transform .2s ease, box-shadow .2s ease; }
.portfolio-item:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(2,6,23,.45); }
.portfolio-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .3s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item .content { padding: 14px; }
.portfolio-item h3 { margin: 0 0 6px 0; }
.portfolio-item p { color: var(--muted); }

.testimonial-slider { position: relative; overflow: hidden; }
.track { display: flex; border-radius: var(--radius); transition: transform .4s ease; will-change: transform; }
.testimonial { flex: 0 0 100%; }
.testimonial { padding: 24px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(124,58,237,.25); box-shadow: var(--shadow); }
.slider-controls { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }

#testimonials-track { direction: ltr; }

.faq-item { border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.faq-q { padding: 14px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-a { padding: 0 14px 14px 14px; color: var(--muted); display: none; }
.faq-item.open .faq-a { display: block; }

.form-row { display: grid; gap: 8px; margin-bottom: 14px; }
input, select, textarea { width: 100%; background: #0f1523; color: var(--text); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 10px 12px; }
.form-actions { margin-top: 12px; }
.form-status { margin-top: 8px; color: var(--accent); }

.contact { padding-block: 72px; }
.section-header { text-align: center; margin-bottom: 26px; }
.section-title { background: linear-gradient(90deg, #93c5fd, #a78bfa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 8px 0; }
.section-subtitle { color: var(--muted); }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.contact-item:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(2,6,23,.45); border-color: rgba(124,58,237,.35); }
.contact-icon { width: 56px; height: 56px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(6,182,212,.12)); color: #22d3ee; font-size: 24px; }
.contact-details h3 { margin: 0; }
.contact-details a { color: var(--text); opacity: .9; }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; box-shadow: 0 12px 24px rgba(18,140,126,.35); z-index: 50; }
.whatsapp-float:hover { transform: translateY(-2px); filter: brightness(1.05); }
.whatsapp-float svg { width: 26px; height: 26px; }

.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; }

.site-footer { border-top: 1px solid rgba(255,255,255,.08); padding-block: 24px; background: rgba(18,24,38,.7); }
.footer-inner { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.copyright { margin-top: 12px; color: var(--muted); }
.social { display: flex; gap: 12px; }

h2 { font-size: clamp(22px, 2.8vw, 32px); margin: 0 0 18px 0; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .header-inner { flex-direction: row-reverse; }
html[dir="rtl"] .main-nav a { text-align: start; }
html[dir="rtl"] .plan-header { flex-direction: row-reverse; }
html[dir="rtl"] .faq-q { flex-direction: row-reverse; }