:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #5d6b7a;
  --line: #d8e1ea;
  --surface: #ffffff;
  --surface-strong: #f4f8fb;
  --navy: #0a3c88;
  --navy-dark: #062b61;
  --teal: #0797a8;
  --teal-dark: #057383;
  --amber: #d98a17;
  --green: #1c8c63;
  --shadow: 0 18px 50px rgba(16, 32, 51, 0.12);
  --radius: 8px;
  font-family: Inter, "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fafc;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 10px 5vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 190px;
}

.brand img {
  display: block;
  width: 220px;
  max-width: 32vw;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a,
.app-link,
.lang-toggle,
.menu-toggle {
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.main-nav a:hover,
.app-link:hover,
.lang-toggle:hover,
.menu-toggle:hover {
  color: var(--navy);
  border-color: var(--line);
  background: var(--surface-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.app-link {
  color: var(--navy);
  font-weight: 700;
}

.lang-toggle {
  min-width: 76px;
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 48px;
  padding: 64px 5vw 48px;
  background: var(--surface);
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-lede,
.section-heading p,
.split p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-lede {
  margin: 20px 0 0;
  max-width: 58ch;
}

.hero-actions,
.hero-points,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(10, 60, 136, 0.18);
}

.button.primary:hover {
  background: var(--navy-dark);
}

.button.secondary {
  color: var(--navy);
  border-color: var(--line);
  background: var(--surface);
}

.button.secondary:hover {
  border-color: var(--navy);
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #c9e3e7;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--teal-dark);
  background: #eefafb;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-visual {
  min-width: 0;
}

.product-window,
.screen-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d5dde7;
}

.window-bar span:first-child {
  background: #e46b5d;
}

.window-bar span:nth-child(2) {
  background: #e4b144;
}

.window-bar span:nth-child(3) {
  background: #43b978;
}

.window-bar strong {
  margin-inline-start: 8px;
  color: var(--ink);
}

.app-preview {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 420px;
  background: #eef3f8;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
  color: #d7e6ff;
  background: var(--navy-dark);
}

.mini-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--teal);
  font-weight: 900;
}

.app-sidebar span {
  border-radius: var(--radius);
  padding: 9px 10px;
  font-size: 0.88rem;
}

.app-sidebar span:first-of-type {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.app-content {
  min-width: 0;
  padding: 18px;
}

.app-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.app-toolbar p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.app-toolbar small {
  color: var(--muted);
}

.app-toolbar > span {
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--green);
  background: #eaf7f1;
  font-size: 0.78rem;
  font-weight: 800;
}

.metric-row,
.preview-grid,
.service-grid,
.module-grid {
  display: grid;
  gap: 14px;
}

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

.metric,
.chart-panel,
.table-panel,
.screen-stat,
.service-grid article,
.module-grid article,
.stacked-facts > div,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric {
  min-width: 0;
  padding: 14px;
}

.metric small,
.metric em {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.metric strong {
  display: block;
  margin: 4px 0;
  color: var(--navy-dark);
  font-size: 1.35rem;
}

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

.preview-grid {
  grid-template-columns: 1fr 1.35fr;
  margin-top: 14px;
}

.chart-panel,
.table-panel {
  min-height: 188px;
  padding: 14px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.bars,
.screen-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 132px;
  padding-top: 16px;
}

.bars span,
.screen-chart span {
  flex: 1;
  min-width: 10px;
  border-radius: 5px 5px 0 0;
  background: var(--teal);
}

.bars span:nth-child(even),
.screen-chart span:nth-child(even) {
  background: var(--navy);
}

.row {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.7fr;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid #e8eef4;
  color: var(--muted);
  font-size: 0.82rem;
}

.row:last-child {
  border-bottom: 0;
}

.row.head {
  color: var(--ink);
  font-weight: 900;
}

.tag {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 800;
}

.tag.good {
  color: var(--green);
  background: #eaf7f1;
}

.tag.warn {
  color: #a96100;
  background: #fff4df;
}

.tag.neutral {
  color: var(--navy);
  background: #edf4ff;
}

.section {
  padding: 72px 5vw;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-heading.compact {
  max-width: 680px;
}

.company-section,
.modules-section,
.contact-section {
  background: var(--surface-strong);
}

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

.service-grid article {
  padding: 24px;
}

.service-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--teal);
  font-weight: 900;
}

.service-grid p,
.module-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: start;
}

.stacked-facts {
  display: grid;
  gap: 12px;
}

.stacked-facts > div {
  padding: 18px;
}

.stacked-facts strong,
.stacked-facts span {
  display: block;
}

.stacked-facts strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.stacked-facts span {
  color: var(--muted);
}

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

.module-grid article {
  min-height: 178px;
  padding: 20px;
}

.module-grid article:nth-child(3n) {
  border-top: 4px solid var(--amber);
}

.module-grid article:nth-child(3n + 1) {
  border-top: 4px solid var(--navy);
}

.module-grid article:nth-child(3n + 2) {
  border-top: 4px solid var(--teal);
}

.shots-section {
  background: var(--surface);
}

.shot-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  background: var(--surface-strong);
}

.shot-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.shot-tab.active {
  color: #ffffff;
  background: var(--navy);
}

.shot-panel {
  display: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.shot-panel.active {
  display: grid;
}

.screen-frame {
  min-height: 330px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 11px 16px;
  color: var(--ink);
  font-weight: 900;
}

.screen-header small {
  color: var(--muted);
  font-weight: 700;
}

.screen-body {
  padding: 18px;
}

/* Real product screenshots dropped into assets/shots/ */
.shot-media {
  position: relative;
  display: block;
  margin: 0;
  min-height: 120px;
  background: #eef3f8;
}

.shot-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Friendly placeholder shown until a real screenshot file exists */
.shot-media.is-missing img {
  display: none;
}

.shot-media.is-missing {
  display: grid;
  place-items: center;
  padding: 28px 20px;
  min-height: 240px;
  color: var(--muted);
  text-align: center;
  background:
    repeating-linear-gradient(45deg, #eef3f8 0, #eef3f8 12px, #e6edf4 12px, #e6edf4 24px);
  font-weight: 700;
}

.shot-media.is-missing::after {
  content: "Drop your screenshot at " attr(data-shot-label);
  display: block;
  max-width: 240px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.phone-frame .shot-media.is-missing {
  min-height: 374px;
}

.dashboard-shot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.screen-stat {
  padding: 16px;
}

.screen-stat b,
.screen-stat span {
  display: block;
}

.screen-stat b {
  color: var(--navy);
  font-size: 1.6rem;
}

.screen-stat span {
  color: var(--muted);
}

.screen-chart {
  grid-column: 1 / -1;
  height: 170px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #f8fbfd;
}

.payroll-shot {
  display: grid;
  gap: 18px;
}

.payroll-total {
  border-radius: var(--radius);
  padding: 22px;
  color: #ffffff;
  background: var(--navy);
}

.payroll-total span,
.payroll-total strong {
  display: block;
}

.payroll-total strong {
  margin-top: 6px;
  font-size: 2rem;
}

.payroll-lines {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #f8fbfd;
}

.payroll-lines span {
  color: var(--muted);
}

.phone-frame {
  max-width: 260px;
  min-height: 430px;
  margin-inline: auto;
  border: 10px solid #172033;
  border-radius: 28px;
  background: #172033;
}

.phone-top {
  width: 88px;
  height: 6px;
  margin: 8px auto 10px;
  border-radius: 999px;
  background: #2f3b4f;
}

.phone-screen {
  min-height: 374px;
  border-radius: 18px;
  padding: 18px;
  background: #f8fbfd;
}

.phone-screen h4 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1.1rem;
}

.portal-tile {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #ffffff;
}

.portal-tile b {
  color: var(--teal-dark);
}

.phone-screen button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--teal-dark);
  font-weight: 900;
}

.customers-section {
  background: var(--surface);
}

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

.customer-stats > div {
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface-strong);
}

.customer-stats strong {
  display: block;
  color: var(--navy-dark);
  font-size: 2rem;
  line-height: 1.1;
}

.customer-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 22px;
  color: var(--navy);
  background: var(--surface-strong);
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.testimonial blockquote {
  position: relative;
  margin: 0;
  padding-top: 14px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.55;
}

.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  top: -14px;
  inset-inline-start: -4px;
  color: var(--teal);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.testimonial figcaption {
  margin-top: auto;
}

.testimonial figcaption strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.testimonial figcaption span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: start;
}

.contact-links a {
  border-bottom: 2px solid #b7dce2;
  color: var(--navy);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.contact-form label,
.contact-form span {
  display: grid;
  gap: 6px;
}

.contact-form span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(7, 151, 168, 0.18);
  border-color: var(--teal);
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: #b8b8b8;
  background: #111111;
}

.footer-wave {
  position: absolute;
  inset: 0 0 auto;
  height: 170px;
  pointer-events: none;
  background:
    radial-gradient(70% 120% at 16% -40%, rgba(255, 255, 255, 0.08) 0 54%, transparent 55%),
    radial-gradient(62% 120% at 54% -42%, rgba(255, 255, 255, 0.07) 0 55%, transparent 56%),
    radial-gradient(72% 120% at 90% -38%, rgba(255, 255, 255, 0.08) 0 54%, transparent 55%),
    #171717;
}

.footer-main,
.footer-contact-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
  padding-inline: 5vw;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 205px;
  padding-top: 34px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.footer-brand img {
  display: block;
  width: 360px;
  max-width: min(44vw, 360px);
  height: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.store-badge {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  min-height: 58px;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  padding: 8px 14px;
  color: #171717;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.05;
}

.store-badge small {
  display: block;
  color: #555555;
  font-size: 0.52rem;
  font-weight: 800;
}

.store-icon {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.play-icon {
  clip-path: polygon(18% 7%, 88% 50%, 18% 93%);
  background: linear-gradient(135deg, #00c853 0 33%, #2196f3 34% 58%, #ffc107 59% 78%, #f44336 79%);
}

.apple-icon {
  position: relative;
  border-radius: 999px 999px 10px 10px;
  background: #111111;
}

.apple-icon::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 18px;
  width: 12px;
  height: 10px;
  border-radius: 10px 0;
  background: #111111;
  transform: rotate(-35deg);
}

.huawei-icon {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #f15257;
}

.huawei-icon::before {
  content: "H";
  font-size: 1rem;
  font-weight: 900;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 44px;
  row-gap: 28px;
  padding-top: 30px;
  padding-bottom: 50px;
  background: #151515;
}

.footer-contact {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 20px;
  min-width: 0;
}

.footer-contact p,
.footer-contact a {
  margin: 0;
  color: #b8b8b8;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
}

.footer-contact a:hover,
.legal-links a:hover {
  color: #ffffff;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #0aa7e2;
}

.contact-icon svg,
.social-links svg,
.whatsapp-float svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  background: #101010;
}

.footer-bottom p {
  margin: 0;
  color: #bdbdbd;
  font-weight: 800;
}

.social-links,
.legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  background: #343434;
  font-size: 1.55rem;
  font-weight: 900;
}

.social-links a:hover {
  background: #0aa7e2;
}

.social-links svg {
  width: 24px;
  height: 24px;
}

.legal-links {
  justify-content: flex-end;
}

.legal-links a {
  color: #bdbdbd;
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: #ffffff;
  background: #25a8ef;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
  width: 44px;
  height: 44px;
  stroke-width: 1.6;
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .app-preview,
[dir="rtl"] .preview-grid,
[dir="rtl"] .shot-panel,
[dir="rtl"] .split,
[dir="rtl"] .contact-section {
  direction: rtl;
}

[dir="rtl"] .product-window,
[dir="rtl"] .screen-frame,
[dir="rtl"] .phone-frame {
  text-align: right;
}

[dir="rtl"] .legal-links {
  justify-content: flex-start;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 28px;
}

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

  .hero-copy {
    max-width: 780px;
  }

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

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

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand img {
    width: 190px;
    max-width: 52vw;
  }

  .menu-toggle {
    display: inline-flex;
    justify-content: center;
    justify-self: end;
    border-color: var(--line);
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: stretch;
    flex-direction: column;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

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

  .main-nav a {
    width: 100%;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .service-grid,
  .split,
  .shot-panel,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding-top: 46px;
    padding-bottom: 36px;
  }

  .store-links {
    justify-content: flex-start;
  }

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

  .footer-bottom {
    grid-template-columns: 1fr;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .legal-links {
    justify-content: flex-start;
  }

  .section {
    padding: 56px 5vw;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 42px;
    gap: 30px;
  }

  .app-preview {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .metric-row,
  .preview-grid,
  .dashboard-shot,
  .module-grid,
  .customer-stats {
    grid-template-columns: 1fr;
  }

  .screen-chart {
    grid-column: auto;
  }

  .row {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 10px 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact p,
  .footer-contact a {
    font-size: 0.98rem;
  }

  .whatsapp-float {
    width: 62px;
    height: 62px;
    right: 16px;
    bottom: 16px;
  }

  [dir="rtl"] .whatsapp-float {
    left: 16px;
  }

  .whatsapp-float svg {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 460px) {
  .brand img {
    width: 165px;
  }

  .header-actions,
  .hero-actions,
  .hero-points,
  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .app-link,
  .lang-toggle,
  .button {
    width: 100%;
  }

  .store-links,
  .store-badge {
    width: 100%;
  }

  .footer-brand img {
    width: 100%;
    max-width: 310px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .payroll-total strong {
    font-size: 1.45rem;
  }
}

/* ── Screenshots appear only once they exist ─────────────────────────────────
   main.js probes assets/shots/*.png and adds has-hero-shot / has-shots to
   <html> for the images that load. Until then the preview, the "Product shots"
   section and every link to it stay hidden, so a missing file never shows a
   placeholder to visitors. Dropping the PNGs in is all it takes to bring them
   back — no code change. */
html:not(.has-hero-shot) .hero-visual,
html:not(.has-shots) #shots,
html:not(.has-shots) [data-needs-shots],
.shot-tab.is-unavailable,
.shot-panel.is-unavailable {
  display: none;
}

html:not(.has-hero-shot) .hero {
  grid-template-columns: minmax(0, 1fr);
}
