:root {
  --indigo: #5b5ef4;
  --indigo-soft: #eef0ff;
  --violet: #7c3aed;
  --text-main: #0f172a;
  --text-sub: #64748b;
  --border: #e8eaf2;
  --card-bg: rgba(255, 255, 255, 0.88);
  --white: #ffffff;
  --bg: #f7f8fc;
  --bg-2: #f3f5fb;
  --success: #22c55e;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 16px 44px rgba(91, 94, 244, 0.12);
  --shadow-lg: 0 28px 80px rgba(91, 94, 244, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top center, rgba(91, 94, 244, 0.07), transparent 30%),
    linear-gradient(180deg, #fafbff 0%, #f7f8fc 50%, #f5f7fd 100%);
  color: #1e293b;
  overflow-x: hidden;
}

[data-lang="ar"] * {
  font-family: 'Tajawal', sans-serif;
}

[data-lang="en"] *,
[data-lang="de"] * {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

[data-lang="en"],
[data-lang="de"] {
  direction: ltr;
}

[data-lang="ar"] {
  direction: rtl;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

nav {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 234, 242, 0.8);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.03);
}

.hero-section {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(91, 94, 244, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 85% 40%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #fbfcff 0%, #f7f8fc 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 90%);
}

.grad-text {
  background: linear-gradient(135deg, #5b5ef4 0%, #7c3aed 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232, 234, 242, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(199, 201, 253, 0.95);
}

.card-accent {
  border: 1.5px solid rgba(91, 94, 244, 0.35);
  box-shadow: 0 20px 60px rgba(91, 94, 244, 0.16);
  position: relative;
}

.card-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(91, 94, 244, 0.5), rgba(124, 58, 237, 0.35));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.badge {
  background: rgba(91, 94, 244, 0.08);
  color: var(--indigo);
  border: 1px solid rgba(91, 94, 244, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.btn-primary,
.btn-outline {
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #5b5ef4, #7c3aed);
  color: #fff;
  box-shadow: 0 12px 30px rgba(91, 94, 244, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(91, 94, 244, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.72);
  color: var(--indigo);
  border: 1.5px solid rgba(91, 94, 244, 0.22);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--indigo-soft);
  border-color: rgba(91, 94, 244, 0.35);
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand-name {
  font-weight: 800;
  font-size: 1.08rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.brand-dot,
.brand-dot-text {
  color: #5b5ef4;
  font-weight: 700;
}

.text-muted {
  color: #64748b;
}

.text-soft {
  color: #94a3b8;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 100%),
    #f7f8fc;
}

.hero-stats-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 700px;
}

.hero-stat-item {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(232, 234, 242, 0.9);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.step-icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.step-num {
  position: absolute;
  top: -8px;
  inset-inline-end: -8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(15,23,42,0.18);
}

.connector-line {
  background: linear-gradient(90deg, transparent, #c7c9fd 25%, #c7c9fd 75%, transparent);
  top: 38px;
  left: 17%;
  right: 17%;
}

.widget-header {
  background: linear-gradient(135deg, #5b5ef4, #7c3aed);
  border-radius: 24px 24px 0 0;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.widget-header::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
}

.widget-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-icon {
  width: 22px;
  height: 22px;
  color: #fff;
}

.widget-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.widget-status {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.bubble-bot {
  background: #f3f5ff;
  border: 1px solid rgba(91, 94, 244, 0.08);
  border-radius: 0 16px 16px 16px;
  color: #1e293b;
  font-size: 0.85rem;
  line-height: 1.65;
}

[data-lang="en"] .bubble-bot,
[data-lang="de"] .bubble-bot {
  border-radius: 16px 16px 16px 0;
}

.bubble-user {
  background: linear-gradient(135deg, #5b5ef4, #7c3aed);
  border-radius: 16px 0 16px 16px;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.65;
  box-shadow: 0 10px 22px rgba(91, 94, 244, 0.18);
}

[data-lang="en"] .bubble-user,
[data-lang="de"] .bubble-user {
  border-radius: 0 16px 16px 16px;
}

.typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #9ca3af;
  border-radius: 50%;
  animation: tdot 1.4s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes tdot {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-anim {
  animation: float 5s ease-in-out infinite;
}

.demo-chat {
  padding: 18px;
  height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #fbfcff, #f7f8fc);
}

.demo-input-wrap {
  padding: 14px;
  border-top: 1px solid #e8eaf2;
  background: rgba(255, 255, 255, 0.9);
}

.demo-input {
  flex: 1;
  border: 1px solid #e8eaf2;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.84rem;
  outline: none;
  color: #1e293b;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.demo-input:focus {
  border-color: #5b5ef4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 94, 244, 0.08);
}

.demo-send-btn {
  padding: 10px 14px;
  border-radius: 12px;
}

.send-icon {
  width: 16px;
  height: 16px;
}

.demo-powered {
  text-align: center;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 8px;
}

.card-hero-shadow {
  box-shadow: var(--shadow-lg);
}

.code-pill {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.16);
  overflow-x: auto;
}

.code-label {
  color: #9ca3af;
  font-size: 0.7rem;
  margin-bottom: 8px;
}

.code-p1 { color: #818cf8; }
.code-p2 { color: #34d399; }
.code-p3 { color: #e2e8f0; }
.code-p4 { color: #fbbf24; }

.trusted-strip {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 234, 242, 0.8);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.trusted-title {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 20px;
}

.trusted-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.logo-text {
  font-weight: 800;
  font-size: 0.9rem;
  color: #64748b;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 14px 12px;
  background: rgba(247, 248, 252, 0.85);
  border: 1px solid rgba(232,234,242,0.9);
  border-radius: 16px;
}

.social-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.social-stat-card {
  background: linear-gradient(180deg, #ffffff, #f8faff);
  border: 1px solid rgba(232,234,242,0.9);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.social-stat-value {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--indigo);
  margin-bottom: 6px;
}

.social-stat-label {
  font-size: 0.8rem;
  color: #64748b;
}

.pricing-card {
  padding: 30px 28px;
}

.pricing-badge-wrap {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
}

.plan-badge {
  background: linear-gradient(135deg, #5b5ef4, #7c3aed);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 0 10px 24px rgba(91, 94, 244, 0.22);
}

.plan-title {
  font-weight: 800;
  font-size: 1.08rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.price-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 8px;
}

.price-main {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-period {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.pricing-trial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef7ff;
  color: #2563eb;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

.plan-desc,
.feature-text,
.footer-copy,
.faq-answer-text,
.stat-label {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.8;
}

.feature-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.plan-list,
.faq-list,
.footer-list {
  display: flex;
  flex-direction: column;
}

.plan-list {
  gap: 10px;
  margin-bottom: 24px;
}

.plan-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.check-icon {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 4px;
}

.plan-cta {
  padding: 13px;
}

.faq-item {
  border-radius: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 12px;
  text-align: start;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 320px;
}

.faq-question {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.faq-icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--indigo);
}

.faq-item.open {
  border-color: #c7c9fd !important;
  box-shadow: 0 16px 40px rgba(91, 94, 244, 0.08);
}

.faq-answer-text {
  padding: 0 20px 18px;
  line-height: 1.9;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.divider {
  border-top: 1px solid var(--border);
}

.lang-switch-wrap {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(232,234,242,0.9);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.lang-btn {
  border-radius: 9px;
  padding: 6px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  transition: all 0.18s ease;
}

.lang-btn:hover {
  color: var(--indigo);
  background: var(--indigo-soft);
}

.lang-btn.active {
  color: var(--indigo);
  background: var(--indigo-soft);
}

.fi-indigo  { background:#eef0ff; color:#5b5ef4; }
.fi-violet  { background:#f5f0ff; color:#7c3aed; }
.fi-blue    { background:#eff6ff; color:#3b82f6; }
.fi-emerald { background:#f0fdf4; color:#10b981; }
.fi-orange  { background:#fff7ed; color:#f97316; }
.fi-rose    { background:#fff1f2; color:#f43f5e; }

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon {
  width: 24px;
  height: 24px;
}

.stat-num {
  font-weight: 800;
  font-size: 2rem;
  color: var(--indigo);
  line-height: 1;
  letter-spacing: -0.04em;
}

.logo-mark {
  background: linear-gradient(135deg, #5b5ef4, #7c3aed);
  border-radius: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 22px rgba(91, 94, 244, 0.2);
}

.cta-banner {
  background: linear-gradient(135deg, #5b5ef4, #7c3aed);
  border-radius: 30px;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(91, 94, 244, 0.24);
}

.cta-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.cta-circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -80px;
}

.cta-circle-2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: -40px;
  background: rgba(255, 255, 255, 0.04);
}

.cta-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-text {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 28px;
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-white,
.cta-btn-glass {
  border-radius: 14px;
  padding: 13px 28px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.cta-btn-white {
  background: #fff;
  color: #5b5ef4;
  font-weight: 700;
}

.cta-btn-glass {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.cta-btn-white:hover,
.cta-btn-glass:hover {
  transform: translateY(-2px);
}

.cta-btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
}

.cta-note {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.77rem;
  margin-top: 16px;
}

.footer-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.footer-list {
  gap: 10px;
}

.footer-link {
  font-size: 0.84rem;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #5b5ef4;
}

.footer-copy {
  max-width: 280px;
}

.copyright {
  font-size: 0.78rem;
  color: #94a3b8;
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f3f5;
}

::-webkit-scrollbar-thumb {
  background: #c7c9fd;
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .trusted-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .social-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.7rem;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-stats-wrap {
    grid-template-columns: 1fr;
  }

  .trusted-logos,
  .social-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner {
    padding: 42px 24px;
  }

  .pricing-card {
    padding: 24px 20px;
  }

  .demo-chat {
    height: 220px;
  }
}

@media (max-width: 520px) {
  .trusted-logos,
  .social-stats-grid {
    grid-template-columns: 1fr;
  }

  .code-pill {
    font-size: 0.68rem;
  }

  .widget-header {
    padding: 16px;
  }
}