@font-face {
  font-family: "Frutiger LT Arabic";
  src: url("../assets/fonts/FrutigerLTArabic65Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #1e1e1e;
  --text: #ffffff;
  --muted: #bcbcbc;
  --dim: #7b7b7b;
  --blue: #2980b9;
  --border: rgba(255, 255, 255, 0.08);
  --faq-border: rgba(255, 255, 255, 0.2);
  --max: 1100px;
  --page-pad: 50px;
  --section-pad: clamp(76px, 7.5vw, 90px);
  --font-en: Avenir, "Avenir Next", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ar-heading: "Frutiger LT Arabic", "SF Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
  --font-ar-body: "SF Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
}

[dir="rtl"] body {
  font-family: var(--font-ar-body);
}

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

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

p,
h1,
h2,
h3 {
  margin: 0;
}

.container {
  width: min(100% - (var(--page-pad) * 2), var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 550px;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 20px;
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(7px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.brand img {
  width: 41px;
  height: 41px;
  border-radius: 10px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  font-size: 16px;
  line-height: 23px;
  letter-spacing: -0.01em;
}

.nav-actions [lang="ar"] {
  font-family: var(--font-ar-heading);
  font-weight: 700;
  letter-spacing: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 10px;
  background: #fff;
  color: #1e1e1e;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

.button-small {
  min-height: 42px;
}

.hero,
.section {
  overflow: clip;
  padding-block: var(--section-pad);
}

.hero-top {
  min-height: 848px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(30, 30, 30, 0.28), rgba(30, 30, 30, 0.04)),
    url("../assets/images/hero-bg.png") center / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero-copy {
  display: grid;
  gap: 29px;
}

.hero h1,
.hero h2 {
  max-width: 620px;
  font-size: clamp(64px, 7.5vw, 90px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.065em;
}

[dir="rtl"] .hero h1,
[dir="rtl"] .hero h2 {
  font-family: var(--font-ar-heading);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.hero p,
.center-section p,
.social-section p {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 31px;
  letter-spacing: -0.036em;
}

[dir="rtl"] .hero p,
[dir="rtl"] .center-section p,
[dir="rtl"] .social-section p {
  font-family: var(--font-ar-body);
  font-size: 22px;
  font-weight: 400;
  line-height: 31px;
  letter-spacing: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 552px);
  max-height: 668px;
  object-fit: contain;
}

.cta-row,
.cta-stack {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-stack {
  flex-direction: column;
  justify-content: center;
}

.user-count {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  color: #fff;
  direction: ltr;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.user-count-label {
  unicode-bidi: isolate;
}

.ar-count {
  direction: rtl;
}

.user-count img {
  width: 20px;
  height: 42px;
  flex: 0 0 auto;
}

.user-count img:last-child {
  transform: scaleX(-1);
}

.centered {
  margin-inline: auto;
}

.center-section {
  min-height: 790px;
  display: grid;
  place-items: center;
  text-align: center;
}

.glow-blue {
  background:
    radial-gradient(ellipse 993px 654px at 50% 17%, rgba(41, 128, 185, 0.8), rgba(41, 128, 185, 0) 100%),
    var(--bg);
}

.kaaba-icon {
  width: 212px;
  margin-inline: auto;
  margin-block-end: 50px;
}

.section-title,
.center-section h2,
.social-section h2,
.faq-section h2 {
  max-width: 590px;
  margin-inline: auto;
  font-size: clamp(42px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.06em;
  text-align: center;
}

[dir="rtl"] .section-title,
[dir="rtl"] .center-section h2,
[dir="rtl"] .social-section h2,
[dir="rtl"] .faq-section h2 {
  font-family: var(--font-ar-heading);
  font-size: 54px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: 0;
}

.center-section .button {
  margin-block-start: 50px;
}

.devices-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.devices-section .container,
.product-section .container {
  display: grid;
  justify-items: center;
  gap: 40px;
}

.device-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.device-card {
  min-height: 538px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #1e1e1e;
  text-align: center;
}

.device-card img {
  height: 300px;
  width: auto;
  object-fit: contain;
}

.device-card h3 {
  margin-block-start: 29px;
  font-size: 26px;
  font-weight: 800;
  line-height: 60px;
  letter-spacing: -0.04em;
}

.device-card p,
.feature-grid p {
  color: #fff;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: -0.01em;
}

[dir="rtl"] .device-card h3,
[dir="rtl"] .device-card p,
[dir="rtl"] .feature-grid p {
  letter-spacing: 0;
}

[dir="rtl"] .nav-actions,
[dir="rtl"] .button,
[dir="rtl"] .user-count {
  font-family: var(--font-ar-body);
  font-weight: 500;
  letter-spacing: 0;
}

[dir="rtl"] .brand {
  font-family: var(--font-ar-heading);
  font-weight: 700;
  letter-spacing: 0;
}

[dir="rtl"] .center-section h2 + p {
  margin-block-start: 20px;
}

[dir="rtl"] .device-card h3 {
  font-family: var(--font-ar-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 60px;
}

[dir="rtl"] .feature-grid h3,
[dir="rtl"] summary {
  font-family: var(--font-ar-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

[dir="rtl"] .device-card p,
[dir="rtl"] .feature-grid p,
[dir="rtl"] details p {
  font-family: var(--font-ar-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
}

[dir="rtl"] .footer-brand,
[dir="rtl"] .footer-links {
  font-family: var(--font-ar-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

[dir="rtl"] .footer-links h2 {
  font-family: var(--font-ar-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.product-section {
  background: linear-gradient(180deg, var(--blue) 0%, rgba(41, 128, 185, 0) 100%);
}

.product-image {
  width: min(100%, 1100px);
  max-height: 947px;
  object-fit: contain;
}

.feature-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-grid article {
  min-height: 225px;
  padding-block: 40px;
}

.feature-grid img {
  width: 24px;
  height: 24px;
  margin-block-end: 10px;
}

.feature-grid h3 {
  margin-block-end: 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.031em;
}

.social-section {
  min-height: 850px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 993px 703px at 50% 17%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 100%),
    var(--bg);
}

.social-section .container.narrow {
  max-width: 842px;
}

.badges {
  width: min(100%, 843px);
  height: auto;
  max-width: 100%;
  display: block;
  margin-inline: auto;
  margin-block-end: 40px;
}

.social-section h2 {
  max-width: 540px;
  margin-block: 20px;
}

.social-section p {
  max-width: 535px;
  margin-inline: auto;
}

.faq-section {
  background:
    linear-gradient(rgba(30, 30, 30, 0.1), rgba(30, 30, 30, 0.1)),
    url("../assets/images/faq-bg.png") center / cover no-repeat;
}

.faq-section .section-title {
  margin-block-end: 50px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 0 50px;
}

details {
  border-block-end: 1px solid var(--faq-border);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 85px;
  padding-block: 25px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.031em;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: #fff;
  mask: url("../assets/images/icon-plus.svg") center / contain no-repeat;
  transition: transform 160ms ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  padding-block: 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 23px;
}

.hero-cta {
  background: linear-gradient(180deg, rgba(41, 128, 185, 0) 0%, var(--blue) 100%);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 90px var(--page-pad);
}

.footer-brand {
  width: min(100%, 300px);
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.footer-brand .brand {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 48px;
  color: var(--dim);
  font-size: 14px;
  white-space: nowrap;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 20px;
}

.footer-links h2 {
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 900px) {
  .hero h1,
  .hero h2 {
    font-size: 90px;
  }

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

  .hero-top .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  }

  .hero-top h1 {
    grid-column: 1 / -1;
  }

  .hero-top .hero-copy {
    display: contents;
  }

  .hero-top .hero-copy p,
  .hero-top .cta-row {
    grid-column: 1;
  }

  .hero-top .hero-visual {
    grid-column: 2;
    grid-row: 2 / 6;
  }

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

  .device-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 339px);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 80px;
  }

  .product-image {
    max-height: 626px;
  }

  .footer-links {
    gap: 38px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 50px;
    --section-pad: 90px;
  }

  .site-header {
    width: 100%;
    gap: 12px;
  }

  .nav-actions {
    gap: 12px;
    font-size: 14px;
  }

  .hero-top {
    min-height: auto;
    background-position: center top;
  }

  .hero-top .hero-grid,
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-top .hero-copy {
    display: grid;
    gap: 24px;
  }

  .hero-top .hero-visual,
  .hero-top h1,
  .hero-top .hero-copy p,
  .hero-top .cta-row {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-top .hero-visual {
    order: -1;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(50px, 13vw, 60px);
    line-height: 1;
    letter-spacing: -0.06em;
  }

  [dir="rtl"] .hero h1,
  [dir="rtl"] .hero h2 {
    font-family: var(--font-ar-heading);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
  }

  .hero p,
  .center-section p,
  .social-section p {
    font-size: 22px;
    line-height: 31px;
  }

  .hero-visual img {
    width: 100%;
    max-height: 668px;
  }

  .cta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .center-section {
    min-height: auto;
  }

  .section-title,
  .center-section h2,
  .social-section h2,
  .faq-section h2 {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  [dir="rtl"] .section-title,
  [dir="rtl"] .center-section h2,
  [dir="rtl"] .social-section h2,
  [dir="rtl"] .faq-section h2 {
    font-family: var(--font-ar-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .kaaba-icon {
    margin-block-end: 50px;
  }

  .device-cards,
  .feature-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .device-card,
  .device-card:last-child {
    width: 100%;
    min-height: 509px;
    padding: 40px;
  }

  .device-card img {
    height: 300px;
  }

  .feature-grid {
    gap: 0;
  }

  .feature-grid article {
    min-height: 166px;
    padding-block: 10px 30px;
  }

  .product-image {
    max-height: 291px;
  }

  .social-section {
    min-height: auto;
  }

  .social-section .container.narrow {
    width: 100%;
    max-width: none;
    overflow: hidden;
  }

  .social-section h2,
  .social-section p {
    box-sizing: border-box;
    width: calc(100% - (var(--page-pad) * 2));
    max-width: 535px;
    margin-inline: auto;
  }

  .badges {
    width: min(calc(100% - (var(--page-pad) * 2)), 843px);
    margin-inline: auto;
  }

  .faq-section .section-title {
    margin-block-end: 50px;
  }

  .site-footer {
    flex-direction: column;
    padding-block: 90px;
  }
}

@media (max-width: 430px) {
  :root {
    --page-pad: clamp(32px, 11.6vw, 50px);
  }

  .hero,
  .section {
    padding-block: 70px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand {
    font-size: 14px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav-actions {
    gap: 8px;
    font-size: 13px;
  }

  .button {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 14px;
  }
}
