@font-face {
  font-family: "Almarai";
  src: url("fonts/Almarai-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Almarai";
  src: url("fonts/Almarai-Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --blue: #0757bf;
  --blue-deep: #073b83;
  --blue-dark: #07275f;
  --blue-soft: #eaf3ff;
  --yellow: #f4c52f;
  --green: #17a765;
  --ink: #132238;
  --muted: #5e6d82;
  --line: #dce8f6;
  --soft: #f6faff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Almarai", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

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

.site-header {
  height: 76px;
  display: grid;
  grid-template-columns: 260px 1fr 160px;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(28px, 5vw, 72px);
  color: white;
  background: linear-gradient(90deg, #07275f, #0757bf 56%, #073b83);
  box-shadow: 0 12px 28px rgba(6, 39, 96, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  direction: ltr;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand span {
  display: grid;
  line-height: 1;
}

.brand strong {
  font-size: 24px;
  letter-spacing: 1px;
}

.brand small {
  margin-top: 7px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 6px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 54px);
  font-weight: 700;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 76px;
  opacity: 0.94;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  right: 8px;
  left: 8px;
  bottom: 10px;
  height: 5px;
  border-radius: 999px;
  background: var(--yellow);
}

.whatsapp-top {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 126px;
  height: 50px;
  color: #073b35;
  background: #ffffff;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(6, 39, 96, 0.14);
}

.whatsapp-top b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: white;
  background: var(--green);
  border-radius: 50%;
}

.whatsapp-top svg,
.floating-whatsapp svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(560px, 1.14fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: clamp(24px, 4vw, 62px);
  padding: clamp(42px, 5vw, 74px) clamp(28px, 5vw, 72px) 56px;
  overflow: hidden;
  direction: ltr;
  background:
    linear-gradient(90deg, rgba(234, 243, 255, 0.82) 0%, rgba(255, 255, 255, 0.98) 44%, #ffffff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 22% 50%, rgba(7, 83, 184, 0.08), transparent 38%),
    radial-gradient(ellipse at 76% 18%, rgba(25, 168, 91, 0.05), transparent 30%);
  pointer-events: none;
}

.device-stage {
  position: relative;
  z-index: 1;
  order: 1;
  max-width: 980px;
  min-height: 470px;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  filter: drop-shadow(0 26px 36px rgba(6, 39, 96, 0.1));
}

.device-stage img {
  display: block;
  width: 128%;
  height: auto;
  margin: 0 0 0 -14%;
  border-radius: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  order: 2;
  max-width: 560px;
  margin: 0;
  text-align: right;
  direction: rtl;
}

.hero-copy h1 {
  margin: 0 0 20px;
  color: var(--blue-deep);
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.24;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 700;
  line-height: 1.7;
}

.hero-copy > strong {
  display: block;
  margin-bottom: 28px;
  color: #53657b;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
}

.download-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 236px;
  min-height: 60px;
  padding: 0 24px;
  color: white;
  border-radius: 12px;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(7, 83, 184, 0.2);
}

.download-button.windows {
  background: linear-gradient(180deg, #0d62cf, #0753b8);
}

.download-button.android {
  background: linear-gradient(180deg, #19b66b, #139457);
  box-shadow: 0 16px 30px rgba(23, 167, 101, 0.18);
}

.platform-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.windows-icon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.windows-icon i {
  display: block;
  background: currentColor;
}

.android-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.android-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 48px clamp(28px, 5vw, 72px) 72px;
  background: #ffffff;
}

.features article {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 18px 42px rgba(0, 45, 131, 0.08);
}

.features span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--green);
  font-weight: 700;
}

.features h2 {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 23px;
}

.features p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.screens-section {
  padding: 72px clamp(28px, 5vw, 72px);
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.3;
}

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

.screen-card {
  grid-column: span 2;
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(6, 39, 96, 0.08);
}

.screen-card.wide {
  grid-column: span 3;
}

.screen-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid #e4edf8;
  border-radius: 10px;
}

.screen-image-button {
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  border: 0;
  background: transparent;
}

.screen-image-button:focus-visible {
  outline: 3px solid rgba(7, 87, 191, 0.4);
  outline-offset: 4px;
  border-radius: 12px;
}

.screen-card.wide img {
  height: 310px;
}

.screen-card.mobile img,
.screen-card.receipt-card img {
  height: 430px;
  object-fit: contain;
  background: #f5f8fc;
}

.screen-card h3 {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 22px;
}

.screen-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 20px;
  background: rgba(5, 16, 34, 0.88);
}

.image-lightbox.open {
  display: grid;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
}

.lightbox-toolbar button,
.lightbox-toolbar span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
  font-weight: 700;
}

.lightbox-toolbar button {
  cursor: pointer;
}

.lightbox-toolbar span {
  min-width: 72px;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  overflow: auto;
  border-radius: 12px;
}

.lightbox-stage img {
  max-width: 94vw;
  max-height: 82vh;
  transform-origin: center center;
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.36);
}

.floating-whatsapp {
  position: fixed;
  right: auto;
  left: 44px;
  bottom: 36px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: white;
  background: #19a85b;
  border: 6px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(32, 191, 69, 0.35);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(28px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: white;
}

footer strong {
  color: var(--blue);
}

footer span {
  display: none;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 220px 1fr;
  }

  .whatsapp-top {
    display: none;
  }

  .nav-links {
    gap: 22px;
    font-size: 14px;
  }

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

  .device-stage {
    order: 1;
    max-width: 900px;
    min-height: 0;
    margin: 0 auto;
  }

  .hero-copy {
    order: 2;
    max-width: 850px;
    text-align: center;
    margin: 0 auto;
  }

  .download-buttons {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    grid-template-columns: 1fr;
    padding-block: 14px;
  }

  .brand {
    justify-self: center;
  }

  .nav-links {
    order: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-links a {
    height: 42px;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .device-stage img {
    width: 135%;
    max-width: none;
    margin-inline-start: -18%;
    margin-top: 0;
  }

  .device-stage {
    overflow: hidden;
    border-radius: 18px;
  }

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

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

  .screen-card,
  .screen-card.wide {
    grid-column: auto;
  }

  .screen-card img,
  .screen-card.wide img {
    height: 240px;
  }

  .screen-card.mobile img,
  .screen-card.receipt-card img {
    height: 360px;
  }

  .floating-whatsapp {
    left: 20px;
    bottom: 20px;
    width: 62px;
    height: 62px;
    font-size: 28px;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-inline: 16px;
  }

  .download-button {
    width: 100%;
    min-width: 0;
  }
}
