:root {
  --bg: #eef5fb;
  --surface: #ffffff;
  --surface-soft: #f5fbff;
  --text: #0d2538;
  --muted: #557085;
  --blue: #0f78c8;
  --blue-deep: #0a4f87;
  --green: #1da86f;
  --green-soft: #dff7eb;
  --line: #cfe2ef;
  --shadow: 0 20px 40px rgba(13, 37, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sora', sans-serif;
  background: linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
  color: var(--text);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 120, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 120, 200, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  top: -120px;
  right: -120px;
  background: rgba(29, 168, 111, 0.28);
}

.orb-b {
  bottom: -120px;
  left: -120px;
  background: rgba(15, 120, 200, 0.24);
}

.site-header,
.page,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1140px, calc(100% - 2rem));
  margin: 1rem auto 0;
  position: sticky;
  top: 0.8rem;
  z-index: 80;
  isolation: isolate;
  overflow: visible;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 90;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue-deep);
  background: #e8f3ff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.2rem;
  border-radius: 999px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.38rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  width: 42px;
  height: 38px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-deep);
}

.page {
  width: min(1140px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  display: grid;
  gap: 1.2rem;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1rem;
}

.hero-copy,
.hero-panel,
.section,
.cta {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.3rem, 2.3vw, 2rem);
}

.eyebrow {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
}

h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.07;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

h1 span {
  color: var(--green);
}

.hero-copy p {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 60ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.68rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 120, 200, 0.28);
}

.btn-outline {
  border: 1px solid var(--line);
  color: var(--blue-deep);
  background: var(--surface);
}

.hero-panel {
  padding: 1.1rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px var(--green-soft);
}

.kpi-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.kpi-grid article {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
}

.kpi-grid h3 {
  margin: 0 0 0.2rem;
  font-size: 1.5rem;
  color: var(--blue-deep);
}

.kpi-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding: clamp(1rem, 2vw, 1.4rem);
}

.section-head h2 {
  margin: 0.15rem 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.28rem, 2.2vw, 2rem);
}

.cards {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 1rem;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
}

.card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 0.85rem;
}

.feature-item span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--green);
  font-size: 1.1rem;
}

.feature-item h3 {
  margin: 0;
  font-size: 1rem;
}

.feature-item p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.flow {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.flow li {
  color: var(--muted);
  line-height: 1.45;
}

.cta {
  text-align: center;
  padding: 2rem 1rem;
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-family: 'Space Grotesk', sans-serif;
}

.cta p {
  margin: 0.75rem auto 1.1rem;
  max-width: 62ch;
  color: var(--muted);
}

.site-footer {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

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

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

html[dir='rtl'] body {
  font-family: 'Cairo', 'Sora', sans-serif;
}

html[dir='rtl'] .site-header,
html[dir='rtl'] .hero-copy,
html[dir='rtl'] .section,
html[dir='rtl'] .cta,
html[dir='rtl'] .site-footer {
  text-align: right;
}

html[dir='rtl'] .hero-actions {
  justify-content: flex-start;
}

html[dir='rtl'] .feature-item {
  grid-template-columns: 1fr auto;
}

html[dir='rtl'] .flow {
  padding-left: 0;
  padding-right: 1.1rem;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .cards.three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-header {
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    row-gap: 0.6rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 18px 36px rgba(13, 37, 56, 0.2);
    z-index: 100;
  }

  .site-nav.open {
    display: flex;
  }

  .cards.three {
    grid-template-columns: 1fr;
  }
}
