@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800&family=DM+Sans:wght@500;600;700&display=swap');

:root {
  --ink: #121a3b;
  --muted: #66708a;
  --blue: #1259f7;
  --orange: #ff6a19;
  --peach: #ffbc8a;
  --cream: #fffaf5;
  --line: #e7e9f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Alexandria", system-ui, sans-serif;
  overflow-x: hidden;
}

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

/* =========================
   Header
========================= */

.site-header {
  height: 82px;
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -1px;
}

.brand img,
.footer-brand img {
  border-radius: 13px;
}

.site-header nav {
  display: flex;
  gap: 31px;
  font-size: 13px;
  font-weight: 600;
}

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

.site-header nav a:hover {
  color: var(--blue);
}

.header-download {
  background: var(--ink);
  color: white;
  border-radius: 99px;
  padding: 12px 17px;
  font-size: 12px;
  font-weight: 700;
}

.header-download span {
  margin-inline-start: 6px;
  color: var(--peach);
  font-size: 17px;
}

.language-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 700 11px "Alexandria", sans-serif;
  border-radius: 99px;
  padding: 9px 13px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.language-toggle:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}

/* =========================
   Hero
========================= */

.hero {
  min-height: 650px;
  max-width: 1240px;
  margin: auto;
  padding: 63px 28px 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px #ffe1cd;
}

.hero h1,
.section-heading h2,
.how-copy h2,
.final-cta h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.22;
  letter-spacing: -0.065em;
  margin: 20px 0;
}

.hero h1 em,
.how-copy em,
.final-cta em {
  font-style: normal;
  color: var(--blue);
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 10px;
  background: #ffd2b5;
  right: 0;
  bottom: 2px;
  z-index: -1;
  border-radius: 20px;
}

.hero p,
.section-heading p,
.how-copy p,
.final-cta p {
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
  max-width: 500px;
  margin: 0;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.play-button {
  display: inline-flex;
  direction: ltr;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  border-radius: 15px;
  padding: 9px 17px 10px;
  box-shadow: 0 12px 26px #1259f73b;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.play-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 28px #1259f752;
}

.play-button svg {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
}

.play-button span {
  display: grid;
  gap: 1px;
  font-family: "DM Sans", sans-serif;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.play-button small {
  font-family: "Alexandria", sans-serif;
  font-size: 8px;
  font-weight: 500;
}

.app-store {
  background: #151b2c;
  box-shadow: 0 12px 26px #151b2c30;
}

.app-store:hover {
  box-shadow: 0 15px 28px #151b2c42;
}

.text-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.text-link b {
  font-size: 18px;
  color: var(--orange);
  margin-inline-start: 6px;
}

.mini-trust {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}

.mini-trust strong {
  color: var(--ink);
}

.avatars {
  display: flex;
  direction: ltr;
}

.avatars i {
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: #ffd5bc;
  font-style: normal;
  font-size: 12px;
  margin-inline-start: -8px;
}

/* =========================
   Hero Visual
========================= */

.hero-visual {
  height: 550px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffbd8e, #ffd5b6);
  transform: rotate(-7deg);
  box-shadow: 20px 20px 0 #fff0e5;
}

.phone {
  position: relative;
  border: 8px solid #141728;
  border-radius: 37px;
  background: #141728;
  overflow: hidden;
  box-shadow: 0 30px 45px #22274a42;
  line-height: 0;
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-phone {
  z-index: 1;
  width: 257px;
  height: 493px;
  transform: rotate(5deg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.orb-one {
  background: var(--blue);
  width: 75px;
  height: 75px;
  right: 10%;
  top: 15%;
}

.orb-two {
  border: 16px solid var(--orange);
  width: 70px;
  height: 70px;
  left: 8%;
  bottom: 18%;
}

.scribble {
  position: absolute;
  z-index: 2;
  right: 6%;
  bottom: 18%;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  transform: rotate(-11deg);
}

.floating-note {
  z-index: 3;
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 12px 26px #4d568128;
}

.note-one {
  right: 1%;
  top: 36%;
  color: var(--blue);
  transform: rotate(5deg);
}

.note-one span {
  color: var(--orange);
  font-size: 15px;
}

.note-two {
  left: 2%;
  bottom: 11%;
  transform: rotate(-7deg);
}

/* =========================
   Proof
========================= */

.proof {
  max-width: 1140px;
  margin: 18px auto 80px;
  padding: 23px 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.proof > div + div {
  border-inline-start: 1px solid var(--line);
}

.proof strong {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 23px;
}

.proof strong span {
  color: #ffad16;
}

.proof small {
  font-size: 10px;
  color: var(--muted);
}

/* =========================
   Sections
========================= */

.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 95px 28px;
}

.features-section {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 75px;
}

.section-heading h2,
.how-copy h2,
.final-cta h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 12px 0 15px;
}

.section-heading p {
  max-width: 500px;
}

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

.feature-card {
  background: #fff;
  border: 1px solid #edf0f6;
  border-radius: 19px;
  padding: 25px;
  min-height: 190px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 17px 30px #26356d12;
}

.feature-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 23px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  margin-bottom: 18px;
}

.blue {
  color: var(--blue);
  background: #e9efff;
}

.orange {
  color: var(--orange);
  background: #fff0e5;
}

.purple {
  color: #7548da;
  background: #f0ebff;
}

.pink {
  color: #ea407c;
  background: #ffe9f1;
}

.feature-card h3 {
  font-size: 15px;
  margin: 0 0 9px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

/* =========================
   How It Works
========================= */

.how-section {
  max-width: none;
  background: #f1f5ff;
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
  padding-inline: max(7vw, 28px);
}

.how-copy .play-button {
  margin-top: 26px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 19px;
  padding: 22px 0;
  border-bottom: 1px solid #dce3f2;
}

.steps li:last-child {
  border: none;
}

.steps span {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
}

.steps h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.how-phone .phone {
  height: 377px;
  width: 208px;
  transform: rotate(-5deg);
}

/* =========================
   Screens
========================= */

.screens-section {
  padding: 100px 0 120px;
}

.section-heading.centered {
  width: 100%;
  text-align: center;
}

.section-heading.centered .section-kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.section-heading.centered h2 {
  text-align: center;
  margin: 12px auto 15px;
  max-width: 760px;
  line-height: 1.3;
}

.section-heading.centered p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.screens-section .section-heading h2 {
  font-family: "Alexandria", system-ui, sans-serif;
}

[dir="ltr"] .screens-section .section-heading h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.screen-rail {
  display: flex;
  gap: 18px;
  margin-top: 45px;
  overflow-x: auto;
  padding: 10px max(28px, calc((100vw - 1120px) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.screen-rail::-webkit-scrollbar {
  display: none;
}

.screen {
  margin: 0;
  flex: 0 0 215px;
  border-radius: 27px;
  overflow: hidden;
  box-shadow: 0 17px 35px #15205122;
  scroll-snap-align: center;
  line-height: 0;
  border: 5px solid #1c1c26;
}

.screen img {
  width: 100%;
  height: 382px;
  object-fit: cover;
}

/* =========================
   Final CTA
========================= */

.final-cta {
  max-width: 1140px;
  margin: 0 auto 80px;
  background: linear-gradient(118deg, #0d3dcd, #145bf8);
  border-radius: 30px;
  min-height: 426px;
  padding: 55px 75px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}

.final-cta::before,
.final-cta::after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  width: 450px;
  height: 450px;
  left: -180px;
  bottom: -230px;
}

.final-cta::after {
  width: 270px;
  height: 270px;
  left: auto;
  right: -80px;
  top: -100px;
}

.cta-copy {
  position: relative;
  z-index: 1;
}

.cta-copy > img {
  border-radius: 20px;
  margin-bottom: 12px;
}

.cta-copy .section-kicker {
  color: #cddcff;
}

.final-cta h2 {
  color: #fff;
}

.final-cta h2 em {
  color: #ffd0ad;
}

.final-cta p {
  color: #dde6ff;
}

.final-cta .store-buttons {
  margin-top: 25px;
}

.final-cta .play-button {
  background: #fff;
  color: var(--blue);
  box-shadow: none;
}

.final-cta .app-store {
  background: #151b2c;
  color: #fff;
}

.cta-visual {
  position: absolute;
  left: 120px;
  bottom: -75px;
  z-index: 1;
}

.cta-visual .phone {
  width: 222px;
  height: 420px;
  transform: rotate(8deg);
  border-width: 7px;
}

/* =========================
   Footer
========================= */

footer {
  max-width: 1140px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 30px 0 45px;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 25px;
  align-items: center;
}

footer p,
footer small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 10px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--blue);
}

footer small {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* =========================
   Mobile Download
========================= */

.mobile-download {
  display: none;
}

/* =========================
   Animations
========================= */

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

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

/* =========================
   LTR
========================= */

[dir="ltr"] .hero h1,
[dir="ltr"] .how-copy,
[dir="ltr"] .cta-copy {
  text-align: left;
}

[dir="ltr"] .section-heading:not(.centered) {
  text-align: left;
}

[dir="ltr"] .proof > div + div {
  border-inline-start: 1px solid var(--line);
}

[dir="ltr"] .cta-visual {
  left: auto;
  right: 120px;
}

[dir="ltr"] .floating-note.note-one {
  right: auto;
  left: 1%;
}

[dir="ltr"] .floating-note.note-two {
  left: auto;
  right: 2%;
}

[dir="ltr"] .orb-one {
  right: auto;
  left: 10%;
}

[dir="ltr"] .orb-two {
  left: auto;
  right: 8%;
}

[dir="ltr"] .scribble {
  right: auto;
  left: 6%;
}

/*
  Important:
  .section-heading.centered must stay centered
  in both Arabic and English.
*/

[dir="rtl"] .section-heading.centered,
[dir="ltr"] .section-heading.centered {
  text-align: center;
}

/* =========================
   Mobile
========================= */

@media (max-width: 800px) {
  .site-header {
    height: 70px;
    padding: 0 18px;
  }

  .site-header nav,
  .header-download {
    display: none;
  }

  .hero {
    padding: 42px 21px 36px;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
  }

  .eyebrow {
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 56px);
    margin: 16px 0;
  }

  .hero p {
    font-size: 13px;
    margin: auto;
  }

  .hero-actions {
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-direction: column;
  }

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

  .mini-trust {
    justify-content: center;
    margin-top: 25px;
  }

  .hero-visual {
    height: 410px;
    order: -1;
  }

  .hero-visual::before {
    width: 330px;
    height: 330px;
  }

  .hero-phone {
    width: 194px;
    height: 374px;
  }

  .orb-one {
    right: 5%;
    top: 12%;
    width: 48px;
    height: 48px;
  }

  .orb-two {
    width: 50px;
    height: 50px;
    border-width: 11px;
    left: 8%;
    bottom: 10%;
  }

  .note-one {
    right: 0;
    top: 31%;
  }

  .note-two {
    left: 0;
    bottom: 6%;
  }

  .scribble {
    right: 3%;
    bottom: 13%;
  }

  .proof {
    margin: 0 18px 30px;
    padding: 17px 7px;
    border-radius: 15px;
  }

  .proof strong {
    font-size: 17px;
  }

  .proof small {
    font-size: 8px;
  }

  .section {
    padding: 65px 21px;
  }

  .features-section {
    display: block;
  }

  .section-heading p {
    font-size: 13px;
  }

  .feature-grid {
    margin-top: 27px;
    gap: 10px;
  }

  .feature-card {
    padding: 18px;
    min-height: 170px;
  }

  .feature-card h3 {
    font-size: 13px;
  }

  .feature-card p {
    font-size: 10px;
  }

  .how-section {
    display: block;
    padding: 65px 21px;
  }

  .steps {
    margin-top: 30px;
  }

  .how-phone {
    display: none;
  }

  .screens-section {
    padding: 70px 0;
  }

  .section-heading.centered h2 {
    max-width: 90%;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.35;
  }

  [dir="ltr"] .screens-section .section-heading h2 {
    letter-spacing: -0.035em;
  }

  .screen-rail {
    padding: 10px 20px;
    gap: 13px;
    margin-top: 28px;
  }

  .screen {
    flex-basis: 185px;
  }

  .screen img {
    height: 330px;
  }

  .final-cta {
    margin: 0 18px 90px;
    padding: 37px 28px;
    min-height: 500px;
    align-items: flex-start;
    border-radius: 24px;
  }

  .final-cta h2 {
    font-size: 33px;
  }

  .final-cta p {
    font-size: 12px;
    max-width: 245px;
  }

  .final-cta .store-buttons {
    max-width: 250px;
  }

  .final-cta .store-buttons .play-button {
    width: 100%;
    justify-content: center;
  }

  .cta-visual {
    left: -1px;
    bottom: -138px;
  }

  .cta-visual .phone {
    width: 167px;
    height: 320px;
  }

  [dir="ltr"] .cta-visual {
    right: -1px;
    left: auto;
  }

  .footer-brand,
  footer p,
  .footer-links,
  footer small {
    margin-inline: 20px;
  }

  footer {
    display: block;
    padding: 28px 0 105px;
  }

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

  .footer-links {
    margin-top: 18px;
    gap: 14px;
    flex-wrap: wrap;
  }

  footer small {
    display: block;
    margin-top: 24px;
  }

  .mobile-download {
    display: block;
    position: fixed;
    z-index: 20;
    bottom: 14px;
    right: 14px;
    left: 14px;
  }

  .mobile-download .play-button {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .mobile-download .play-button span {
    display: block;
  }

  .mobile-download .play-button small {
    display: none;
  }

  .language-toggle {
    margin-inline-start: auto;
  }
}

/* =========================
   Reduced Motion
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .play-button,
  .feature-card,
  .language-toggle {
    transition: none;
  }
}