:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-alt: #edf3ff;
  --text: #081227;
  --muted: #4f607a;
  --line: #d6e2f4;
  --primary: #2962ff;
  --primary-deep: #1746be;
  --secondary: #00b8a9;
  --accent: #ff7a45;
  --accent-soft: #fff3ec;
  --shadow: 0 14px 36px rgba(16, 35, 70, 0.12);
  --shadow-strong: 0 24px 55px rgba(22, 58, 125, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, #deebff 0%, transparent 38%),
    radial-gradient(circle at 92% 9%, #dffaf7 0%, transparent 30%),
    linear-gradient(180deg, #f8fbff, #f3f8ff 45%, #f7fbff);
  min-height: 100vh;
  line-height: 1.6;
}

body.rtl {
  font-family: "Cairo", "Segoe UI", sans-serif;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(249, 252, 255, 0.84);
  border-bottom: 1px solid rgba(41, 98, 255, 0.11);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand-logo {
  width: 162px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  padding: 0.35rem;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(45, 70, 120, 0.08);
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  padding: 0.44rem 0.72rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-deep);
  background: #e8f0ff;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-toggle {
  border: 1px solid #c9d8f7;
  background: linear-gradient(140deg, #ffffff, #eff4ff);
  color: var(--primary-deep);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.header-login {
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
}

.hero {
  padding: 5.2rem 0 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 2.4rem;
  align-items: center;
}

.eyebrow {
  text-transform: none;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 800;
  background: #e8f0ff;
  border-radius: 999px;
  display: inline-block;
  padding: 0.23rem 0.62rem;
}

h1,
h2,
h3 {
  font-family: "Outfit", "Manrope", "Segoe UI", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0.4rem 0 1rem;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.95rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
}

p {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.76rem 1.14rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(140deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 12px 24px rgba(41, 98, 255, 0.34);
}

.btn-secondary {
  border: 1px solid #cfdcf8;
  color: var(--primary-deep);
  background: #fff;
}

.hero-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.15), transparent 26%),
    linear-gradient(145deg, #122a57, #2962ff 54%, #00b8a9);
  color: #fff;
  border-radius: 26px;
  padding: 1.5rem;
  box-shadow: var(--shadow-strong);
}

.hero-card .item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.9rem 0;
}

.hero-card .item:last-child {
  border-bottom: none;
}

.section {
  padding: 3.4rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(47, 109, 255, 0.08);
  border-bottom: 1px solid rgba(47, 109, 255, 0.08);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid #dbe3ef;
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  background: #fff;
  border: 1px solid #d9e6fa;
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e8f0ff;
  color: var(--primary-deep);
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.workflow-card {
  margin-top: 1.1rem;
  background: linear-gradient(145deg, #0f2348, #234da4 60%, #1f7ea9);
  border-radius: 24px;
  padding: 1.15rem;
  color: #eaf1ff;
  box-shadow: var(--shadow-strong);
}

.workflow-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(234, 241, 255, 0.22);
  padding: 0.78rem 0;
}

.workflow-row:last-child {
  border-bottom: none;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.quote-card {
  background: #fff;
  border: 1px solid #d6e3f7;
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.quote-text {
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: #112447;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.quote-meta {
  color: #496089;
  font-size: 0.92rem;
  font-weight: 700;
}

.stack-card {
  display: grid;
  gap: 0.9rem;
}

.result-mini {
  background: #fff;
  border: 1px solid #dbe6f9;
  border-radius: 18px;
  padding: 0.95rem;
}

.result-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #123173;
  line-height: 1.1;
}

.final-cta {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #12306a, #2962ff 54%, #00b8a9);
  border-radius: 30px;
  padding: 2rem 1.3rem;
  color: #eff4ff;
  box-shadow: var(--shadow-strong);
}

.final-cta h2,
.final-cta p {
  color: #eff4ff;
}

.kicker {
  display: inline-block;
  background: var(--accent-soft);
  color: #b34b1e;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 0.24rem 0.6rem;
  letter-spacing: 0.04em;
}

.metric {
  font-size: 2rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  color: var(--text);
}

.pricing-card.highlight {
  border-color: var(--primary);
  transform: translateY(-7px);
  box-shadow: 0 20px 40px rgba(41, 98, 255, 0.2);
}

.price {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
}

.list {
  list-style: none;
  margin: 0.8rem 0 1rem;
  padding: 0;
}

.list li {
  padding: 0.4rem 0;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.82rem 1rem;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: none;
  color: var(--text);
  text-align: start;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.faq-a {
  margin-top: 0.5rem;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

.contact-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 1.15rem;
}

input,
textarea {
  width: 100%;
  padding: 0.78rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 0.4rem 0 0.8rem;
  font: inherit;
}

footer {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(47, 109, 255, 0.1);
  padding: 1.1rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand .brand-logo {
  width: 136px;
}

.social-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d6e3f7;
  background: #fff;
  color: #27405f;
  font-size: 0.86rem;
  font-weight: 700;
}

.proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--secondary);
}

.hero-note {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: #5f7393;
}

.trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.95rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #edf4ff;
  border: 1px solid #cfddfb;
  font-size: 0.79rem;
  font-weight: 800;
  color: #2a4b89;
  letter-spacing: 0.05em;
}

body.rtl h1,
body.rtl h2,
body.rtl h3 {
  letter-spacing: 0;
}

.fade-in {
  animation: fadein 0.7s ease both;
}

.fade-delay-1 {
  animation-delay: 0.1s;
}

.fade-delay-2 {
  animation-delay: 0.2s;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 940px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .step-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    border-radius: 16px;
  }

  .hero {
    padding-top: 3.2rem;
  }
}
