:root {
  --ink: #171717;
  --muted: #6b7280;
  --line: rgba(23, 23, 23, 0.1);
  --white: #ffffff;
  --gold: #d8a336;
  --gold-dark: #966414;
  --blue: #2f80ed;
  --soft: #fff8e8;
  --shadow: 0 26px 70px rgba(28, 26, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  line-height: 1.7;
}

html[dir="ltr"] body {
  font-family: Arial, Tahoma, sans-serif;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 28px));
  min-height: 72px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 18px 55px rgba(29, 24, 15, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 35px rgba(29, 24, 15, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(216, 163, 54, 0.55);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #3f3f46;
  font-size: 15px;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--gold-dark);
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  border: 1px solid rgba(150, 100, 20, 0.22);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(29, 24, 15, 0.09);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #1f2937;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lang-toggle {
  min-height: 44px;
  padding: 0 18px;
  color: #1f2937;
  background: #fff;
  border: 1px solid rgba(150, 100, 20, 0.22);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(29, 24, 15, 0.09);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(150, 100, 20, 0.45);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #ffd66b, #d8a336);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(216, 163, 54, 0.32);
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 142px 0 90px;
  overflow: hidden;
  background: radial-gradient(circle at 14% 20%, rgba(47, 128, 237, 0.16), transparent 26%),
    linear-gradient(135deg, #fffaf0 0%, #ffffff 48%, #fff3cd 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(120deg, transparent 0 44%, rgba(216, 163, 54, 0.18) 45% 46%, transparent 47%),
    linear-gradient(145deg, transparent 0 61%, rgba(47, 128, 237, 0.12) 62% 63%, transparent 64%);
  background-size: 220px 220px, 300px 300px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: 46px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.12;
  letter-spacing: 0;
}

html[dir="ltr"] h1 {
  font-size: clamp(34px, 4vw, 54px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.2;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-text,
.section p,
.download-section p,
.footer p {
  color: var(--muted);
  font-size: 18px;
}

.english {
  direction: ltr;
  font-family: Arial, sans-serif;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-copy .store-actions {
  flex-wrap: nowrap;
  gap: 10px;
}

.hero-copy .store-button {
  width: 158px;
}

.store-button {
  width: 184px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: #000;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.store-button img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero-visual {
  position: relative;
  min-height: 580px;
}

.phone,
.screen-phone,
.download-phone {
  padding: 10px;
  background: #111;
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.phone img,
.screen-phone img,
.download-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 29px;
}

.phone {
  position: absolute;
  width: min(260px, 34vw);
  aspect-ratio: 1320 / 2868;
  transition: transform 0.45s ease;
}

.phone-front {
  z-index: 3;
  top: 10px;
  right: 28%;
  width: min(300px, 38vw);
  animation: softFloat 7s ease-in-out infinite;
}

html[dir="ltr"] .phone-front {
  right: auto;
  left: 28%;
}

.phone-back {
  z-index: 1;
  top: 72px;
  right: 4%;
  transform: rotate(8deg);
  opacity: 0.92;
}

html[dir="ltr"] .phone-back {
  right: auto;
  left: 4%;
}

.phone-side {
  z-index: 2;
  top: 90px;
  left: 4%;
  transform: rotate(-8deg);
  opacity: 0.94;
}

html[dir="ltr"] .phone-side {
  left: auto;
  right: 4%;
}

.partners-strip {
  padding: 28px 0;
  color: #fff;
  background: #171717;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
  font-weight: 800;
}

.section {
  padding: 100px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 70px;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-right: 34px;
  color: #374151;
  font-weight: 700;
}

html[dir="ltr"] .check-list li {
  padding-right: 0;
  padding-left: 34px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #6aa8ff);
  box-shadow: 0 8px 20px rgba(47, 128, 237, 0.26);
}

html[dir="ltr"] .check-list li::before {
  right: auto;
  left: 0;
}

.features {
  background: var(--soft);
}

.section-heading {
  width: min(720px, 100%);
  margin: 0 auto 44px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  min-height: 250px;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(35, 31, 23, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(216, 163, 54, 0.4);
  box-shadow: 0 28px 70px rgba(35, 31, 23, 0.14);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
}

.screenshots {
  overflow: hidden;
}

.screens-marquee {
  position: relative;
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 34px 0 58px;
  direction: ltr;
}

.screens-marquee::before,
.screens-marquee::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: min(120px, 20vw);
  pointer-events: none;
}

.screens-marquee::before {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.screens-marquee::after {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.screens-row {
  width: max-content;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  padding: 0 26px;
  animation: screenshotsTrack 34s linear infinite;
  direction: ltr;
  will-change: transform;
}

.screens-marquee:hover .screens-row {
  animation-play-state: paused;
}

.screen-phone {
  position: relative;
  flex: 0 0 clamp(172px, 15.5vw, 245px);
  aspect-ratio: 1320 / 2868;
  margin: 0;
  opacity: 1;
  filter: saturate(1);
  transform: none;
  transition: transform 0.25s ease;
}

.screen-phone:hover {
  transform: translateY(-8px);
}

.screen-dots {
  display: none;
}

.download-section {
  padding: 94px 0 0;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 0%, rgba(255, 214, 107, 0.25), transparent 28%),
    linear-gradient(135deg, #121212, #2a2114 68%, #59390b);
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: end;
  gap: 50px;
}

.download-section .eyebrow,
.download-section p {
  color: rgba(255, 255, 255, 0.78);
}

.download-phone {
  width: min(300px, 78vw);
  aspect-ratio: 1320 / 2868;
  margin: 0 auto -70px;
}

.store-button.light {
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.store-button.light img {
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.footer {
  padding: 120px 0 40px;
  background: #0f0f0f;
  color: #fff;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 36px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.74);
}

.footer-credit {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-credit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.designer-link {
  color: #ffd66b;
  font-weight: 800;
  transition: color 0.2s ease;
}

.designer-link:hover {
  color: #ffffff;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.feature-card.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.feature-card.reveal:nth-child(4) {
  transition-delay: 0.24s;
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes screenshotsTrack {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 13px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    top: 10px;
    border-radius: 28px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(216, 163, 54, 0.24);
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(29, 24, 15, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    backdrop-filter: blur(16px);
  }

  .site-header.menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
  }

  .nav a:hover {
    background: var(--soft);
  }

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

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

  .hero-copy {
    text-align: center;
  }

  .store-actions {
    justify-content: center;
  }

  .hero-copy .store-actions {
    flex-wrap: wrap;
  }

  .hero-copy .store-button {
    width: 184px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .phone {
    width: 220px;
  }

  .phone-front {
    right: 50%;
    transform: translateX(50%);
    width: 260px;
  }

  html[dir="ltr"] .phone-front {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .phone-back {
    right: 8%;
  }

  .phone-side {
    left: 8%;
  }

  .strip-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screens-row {
    justify-content: flex-start;
    gap: 18px;
    padding: 10px 18px 34px;
    animation-duration: 28s;
  }

  .screen-phone {
    flex-basis: 168px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    width: calc(100% - 20px);
    min-height: 64px;
    gap: 10px;
    padding: 8px 10px;
  }

  .brand span {
    max-width: 132px;
    white-space: normal;
    line-height: 1.25;
    font-size: 13px;
  }

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

  .header-cta {
    display: none;
  }

  .lang-toggle {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    padding: 116px 0 62px;
  }

  h1 {
    font-size: 38px;
  }

  html[dir="ltr"] h1 {
    font-size: 33px;
  }

  .hero-text,
  .section p,
  .download-section p,
  .footer p {
    font-size: 16px;
  }

  .store-button {
    width: min(100%, 255px);
  }

  .hero-visual {
    min-height: 460px;
  }

  .phone-front {
    width: 230px;
  }

  .phone-back,
  .phone-side {
    width: 178px;
    top: 112px;
  }

  .phone-back {
    right: -8px;
  }

  .phone-side {
    left: -8px;
  }

  html[dir="ltr"] .phone-back {
    left: -8px;
    right: auto;
  }

  html[dir="ltr"] .phone-side {
    right: -8px;
    left: auto;
  }

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

  .section {
    padding: 72px 0;
  }

  .feature-card {
    min-height: auto;
  }

  .footer {
    padding-top: 110px;
  }

  .footer-grid,
  .footer-links {
    flex-direction: column;
  }
}
