:root {
  --primary: #27639c;
  --secondary: #3cb0df;
  --light-blue: #e9f3fa;
  --bg: #f4f9fd;
  --black: #020617;
  --dark-gray: #5a5a5a;
  --gray: #b7b7b7;
  --light-gray: #f0f0f0;
  --white: #fff;
  --shadow: 0 20px 48px rgba(2, 6, 23, 0.12);
  --gutter: max(80px, calc((100% - 1280px) / 2));
}

/* Local stand-in shown while the web font loads */
@font-face { font-family: "IBM Plex Sans Arabic Fallback"; src: local("Arial"); }

* { box-sizing: border-box; margin: 0; }
body { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans Arabic Fallback", sans-serif; color: var(--black); background: var(--white); line-height: normal; }
img { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 16px; border: 1.5px solid transparent; transition: filter .15s, background .15s; }
.btn:hover { filter: brightness(0.95); }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--secondary); border-color: var(--secondary); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 44px; height: 44px; border-radius: 12px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text b { font-size: 22px; font-weight: 800; color: var(--primary); }
.logo-text small { font-size: 12px; color: var(--dark-gray); }
.logo.dark b { color: var(--white); }
.logo.dark small { color: rgba(255, 255, 255, .8); }

/* Navbar */
.navbar { height: 80px; padding: 20px var(--gutter); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--light-gray); background: var(--white); }
.nav-links { display: flex; gap: 36px; font-size: 16px; font-weight: 500; }
.nav-links a:hover { color: var(--secondary); }
.nav-links .active { color: var(--secondary); font-weight: 700; }
.navbar { position: relative; z-index: 10; }
.nav-stores { display: flex; gap: 10px; }
.store-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--black); display: grid; place-items: center; transition: translate .2s var(--ease), box-shadow .2s var(--ease); }
.store-icon img { width: 22px; height: 22px; }
.store-icon:hover { translate: 0 -2px; box-shadow: 0 8px 20px rgba(2, 6, 23, .2); }

/* Hamburger: middle line is the span, outer lines are its pseudo-elements; morphs into an X */
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--light-blue); cursor: pointer; place-items: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--primary); transition: transform .25s var(--ease), background .2s; }
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.navbar.open .menu-toggle span { background: transparent; }
.navbar.open .menu-toggle span::before { transform: rotate(45deg); }
.navbar.open .menu-toggle span::after { transform: rotate(-45deg); }

/* Hero */
.hero { display: flex; align-items: center; gap: 64px; padding: 72px var(--gutter) 96px; background: linear-gradient(to bottom, var(--light-blue), var(--white)); overflow: hidden; }
.hero-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px; background: var(--white); border: 1px solid var(--light-blue); color: var(--primary); font-weight: 700; font-size: 14px; }
.pill img { width: 16px; height: 16px; }
.hero h1 { font-size: 64px; font-weight: 900; line-height: 1.18; }
.hero h1 span { color: var(--secondary); }
.hero-lead { font-size: 20px; line-height: 1.7; color: var(--dark-gray); max-width: 560px; }
.trust { display: flex; align-items: center; gap: 16px; }
.trust p { font-size: 15px; font-weight: 500; color: var(--dark-gray); margin-top: 2px; }
.avatars { display: flex; }
.avatars img { width: 44px; height: 44px; border-radius: 50%; position: relative; }
.avatars img + img { margin-inline-start: -12px; }

.stars { display: flex; gap: 4px; }
.stars i { width: 20px; height: 20px; background: url(assets/star.svg) center / contain no-repeat; }
.stars.sm { gap: 2px; }
.stars.sm i { width: 16px; height: 16px; background-image: url(assets/star-sm.svg); }

/* Hero visual: absolute positions taken straight from the 600x580 Figma frame */
.hero-visual { position: relative; width: 600px; height: 580px; flex-shrink: 0; }
.accent { position: absolute; left: 470px; top: -40px; width: 160px; height: 160px; }
.main-photo { position: absolute; left: 60px; top: 0; width: 520px; height: 560px; border-radius: 36px; object-fit: cover; }
.float { position: absolute; background: var(--white); box-shadow: var(--shadow); display: flex; align-items: center; }
.float b { font-size: 16px; font-weight: 700; display: block; }
.float span { font-size: 13px; color: var(--dark-gray); }
.float-listing { left: 0; top: 360px; padding: 14px; gap: 14px; border-radius: 20px; }
.float-listing > img { width: 84px; height: 72px; border-radius: 14px; object-fit: cover; }
.float-listing > div { display: flex; flex-direction: column; gap: 4px; }
.loc { display: flex; align-items: center; gap: 4px; }
.loc img { width: 14px; height: 14px; }
.price { color: var(--primary); font-weight: 800 !important; }
.float-verified { left: 330px; top: 40px; padding: 14px 18px; gap: 12px; border-radius: 18px; }
.float-verified > div { display: flex; flex-direction: column; gap: 2px; }
.icon-box { width: 44px; height: 44px; border-radius: 12px; background: var(--light-blue); display: grid; place-items: center; flex-shrink: 0; }
.icon-box img { width: 24px; height: 24px; }
.float-chat { left: 380px; top: 500px; padding: 12px 16px; gap: 10px; background: var(--primary); color: var(--white); font-size: 15px; font-weight: 500; border-radius: 18px 18px 4px 18px; }
.float-chat img { width: 20px; height: 20px; }

/* Sections */
.section { padding: 112px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 56px; }
.section.tinted { background: var(--bg); }
.section-head { text-align: center; display: flex; flex-direction: column; gap: 12px; }
.section-head h2 { font-size: 44px; font-weight: 800; }
.section-head p { font-size: 18px; color: var(--dark-gray); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }

.step { background: var(--bg); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.grid-3:has(.step) { gap: 32px; }
.num { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--white); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.num.alt { background: var(--secondary); }
.step h3 { font-size: 24px; }
.step p { font-size: 16px; line-height: 1.65; color: var(--dark-gray); }

.card { background: var(--white); border: 1px solid var(--light-gray); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.feature { gap: 16px; }
.icon-box.lg { width: 56px; height: 56px; border-radius: 16px; }
.icon-box.lg img { width: 28px; height: 28px; }
.feature h3 { font-size: 22px; }
.feature p { font-size: 16px; line-height: 1.6; color: var(--dark-gray); }

.stats { background: var(--primary); color: var(--white); padding: 72px var(--gutter); display: flex; justify-content: space-between; text-align: center; }
.stats div { display: flex; flex-direction: column; gap: 6px; }
.stats b { font-size: 52px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats span { font-size: 18px; color: rgba(255, 255, 255, .8); }

.testimonial { gap: 20px; }
.testimonial blockquote { font-size: 17px; line-height: 1.7; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; }
.testimonial figcaption span { display: flex; flex-direction: column; gap: 2px; }
.testimonial figcaption b { font-size: 16px; }
.testimonial figcaption small { font-size: 14px; color: var(--gray); }

.cta-wrap { padding-top: 0; }
.cta { width: 100%; background: var(--light-blue); border: 1px solid rgba(60, 176, 223, .25); border-radius: 40px; padding: 80px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta h2 { font-size: 48px; font-weight: 800; }
.cta p { font-size: 19px; color: var(--dark-gray); }
.cta .row { justify-content: center; }

.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 12px; background: var(--black); color: var(--white); }
.store img { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; }
.store small { font-size: 11px; color: rgba(255, 255, 255, .75); }
.store b { font-size: 18px; font-weight: 700; }

/* Footer */
.footer { background: var(--black); color: var(--white); padding: 72px var(--gutter) 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-brand { width: 380px; display: flex; flex-direction: column; gap: 20px; }
.footer-brand p { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .7); }
.footer nav { display: flex; flex-direction: column; gap: 14px; }
.footer h4 { font-size: 17px; }
.footer nav a { font-size: 15px; color: rgba(255, 255, 255, .65); }
.footer nav a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 48px; display: flex; justify-content: space-between; font-size: 14px; color: rgba(255, 255, 255, .55); }

/* Motion — corporate personality: one signature curve, durations 200 / 600 / 700ms */
:root { --ease: cubic-bezier(0.2, 0, 0, 1); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.94); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes breathe { 50% { transform: scale(1.12); } }

/* Hero entrance: copy cascades in, photo lands, floating cards pop then drift */
.hero-copy > * { animation: rise .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
.hero-copy > :nth-child(5) { animation-delay: 320ms; }
.main-photo { animation: pop .8s var(--ease) .1s both; }
.accent { animation: pop .8s var(--ease) .2s both, breathe 8s ease-in-out 1s infinite; }
.float-verified { animation: pop .5s var(--ease) .5s both, bob 6s ease-in-out 1.2s infinite; }
.float-listing { animation: pop .5s var(--ease) .65s both, bob 7s ease-in-out 1.6s infinite; }
.float-chat { animation: pop .5s var(--ease) .8s both, bob 5.5s ease-in-out 2s infinite; }

/* Hover: buttons and cards lift; `translate` is separate from the reveal's `transform` */
.btn, .store { transition: translate .2s var(--ease), box-shadow .2s var(--ease), filter .15s; }
.btn:hover, .store:hover { translate: 0 -2px; box-shadow: 0 8px 20px rgba(39, 99, 156, .18); }
.btn:active, .store:active { translate: 0; transition-duration: .1s; }
.card, .step { transition: translate .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover, .step:hover { translate: 0 -4px; box-shadow: var(--shadow); }
.icon-box.lg img { transition: transform .25s var(--ease); }
.feature:hover .icon-box.lg img { transform: scale(1.12) rotate(-6deg); }

/* Scroll reveal (class added by JS, so no-JS visitors still see everything) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease) calc(var(--i, 0) * 80ms), transform .6s var(--ease) calc(var(--i, 0) * 80ms),
    translate .25s var(--ease), box-shadow .25s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1200px) {
  .nav-links { gap: 20px; }
  .hero { flex-direction: column; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy .row, .trust { justify-content: center; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .menu-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--white); border-bottom: 1px solid var(--light-gray); box-shadow: 0 16px 32px rgba(2, 6, 23, .08);
    opacity: 0; visibility: hidden; translate: 0 -8px;
    transition: opacity .2s var(--ease), translate .25s var(--ease), visibility 0s .25s;
  }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--light-gray); }
  .nav-links a:last-child { border-bottom: 0; }
  .navbar.open .nav-links { opacity: 1; visibility: visible; translate: 0; transition-delay: 0s; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { flex-wrap: wrap; gap: 32px; justify-content: space-around; }
  .footer-top { flex-wrap: wrap; }
  .footer-brand { width: 100%; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .btn { padding: 12px 20px; }
  .hero { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  /* scale the fixed-coordinate visual instead of re-laying it out */
  .hero-visual { zoom: 0.55; }
  .section { padding-block: 72px; gap: 40px; }
  .section-head h2, .cta h2 { font-size: 30px; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats div { width: 40%; }
  .stats b { font-size: 36px; }
  .cta { padding: 40px 20px; border-radius: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
