:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  --bg: #f5f7fb;
  --bg-muted: #eef1f6;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475467;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e2e8f0;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

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

.container {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 251, 0.9);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.brand__name {
  font-weight: 600;
  margin: 0;
}

.brand__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.language-switch {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--muted);
}

.language-switch__select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.25);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.hero {
  padding: 72px 0 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e0edff;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 8px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}

.hero__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  color: var(--muted);
}

.hero__stats strong {
  display: block;
  font-size: 2rem;
  color: var(--text);
}

.hero__media {
  position: relative;
}

.hero__media img {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero__card {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 16px;
  max-width: 260px;
  box-shadow: var(--shadow);
}

.section {
  padding: 72px 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
}

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

.feature-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

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

.usecase-card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  min-height: 200px;
  box-shadow: var(--shadow);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.workflow__steps {
  margin: 24px 0;
  padding-left: 20px;
}

.workflow__steps li {
  margin-bottom: 16px;
}

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

.gallery figure {
  margin: 0;
  background: var(--card);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.gallery img {
  border-radius: 16px;
}

.gallery figcaption {
  margin-top: 8px;
  text-align: center;
  font-weight: 600;
}

.cta {
  background: #101828;
  color: #fff;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta .btn--primary {
  background: #fff;
  color: #101828;
  box-shadow: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero__card {
    position: static;
    margin-top: 16px;
  }

  .hero__stats {
    gap: 16px;
  }

  .cta__inner {
    text-align: center;
  }

  .btn {
    width: 100%;
  }
}

/* RTL tweaks */
html[dir='rtl'] body {
  font-family: 'Inter', 'Cairo', system-ui, sans-serif;
}

html[dir='rtl'] .hero__stats,
html[dir='rtl'] .hero__cta,
html[dir='rtl'] .feature-grid,
html[dir='rtl'] .card-grid,
html[dir='rtl'] .workflow,
html[dir='rtl'] .gallery,
html[dir='rtl'] .footer__links {
  direction: rtl;
}
