:root {
  color-scheme: light;
  --ink: #171a1f;
  --muted: #58616f;
  --line: #dce3ed;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --green: #0a7a4b;
  --teal: #047481;
  --gold: #b7791f;
  --red: #b42318;
  --blue: #1d4ed8;
  --shadow: 0 10px 28px rgba(23, 26, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav a,
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  color: var(--muted);
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  color: var(--green);
  background: #e8f5ee;
  border-color: #bde4cd;
}

.hero {
  display: grid;
  gap: 22px;
  padding: 28px 16px 22px;
  background:
    linear-gradient(120deg, rgba(10, 122, 75, 0.12), rgba(4, 116, 129, 0.08)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.hero-grid,
.content-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(30px, 8vw, 58px);
}

h2 {
  font-size: clamp(22px, 6vw, 34px);
}

h3 {
  font-size: 18px;
}

p {
  margin: 10px 0 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.trust-strip div,
.stat,
.card,
.panel,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trust-strip div {
  min-height: 64px;
  padding: 10px;
}

.trust-strip strong,
.stat strong {
  display: block;
  font-size: 18px;
}

.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  padding: 12px;
  background: #101820;
  border-radius: 26px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.screen {
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
}

.app-head {
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.app-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  color: var(--green);
  background: #e8f5ee;
  border: 1px solid #bde4cd;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

main section {
  padding: 28px 16px;
}

.content-grid {
  display: grid;
  gap: 18px;
}

.cards {
  display: grid;
  gap: 12px;
}

.card,
.panel {
  padding: 16px;
}

.stats {
  display: grid;
  gap: 10px;
}

.stat {
  padding: 14px;
}

.list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.list li + li {
  margin-top: 7px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: #eef4f8;
}

.risk {
  color: var(--red);
  font-weight: 800;
}

.ok {
  color: var(--green);
  font-weight: 800;
}

.footer {
  padding: 26px 16px 82px;
  color: #dce3ed;
  background: #171a1f;
}

.footer .content-grid {
  gap: 8px;
}

.footer a,
.footer p {
  color: #dce3ed;
}

.bottom-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

.rtl {
  direction: rtl;
  font-family: Tahoma, Arial, sans-serif;
}

.rtl th,
.rtl td {
  text-align: right;
}

@media (min-width: 760px) {
  .topbar {
    padding: 12px 28px;
  }

  .hero {
    padding: 54px 28px 44px;
  }

  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
  }

  main section {
    padding: 42px 28px;
  }

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

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .bottom-cta {
    display: none;
  }

  .footer {
    padding-bottom: 32px;
  }
}

@media (max-width: 430px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .nav {
    width: 100%;
  }
}
