/* ==========================================================================
   YOYO! Messenger — marketing landing page
   Direction: deep ink atmosphere + YOYO yellow accent (not generic purple SaaS).
   Fonts: Cairo (display, bilingual AR/EN) + Manrope (body).
   ========================================================================== */

:root {
  --ink-950: #08050e;
  --ink-900: #120a1f;
  --ink-800: #1c1130;
  --ink-700: #2a1a45;
  --purple-500: #6b3fa8;
  --purple-400: #8b5fc8;
  --yellow: #ffcc00;
  --yellow-soft: #ffe27a;
  --paper: #f8f4ff;
  --muted: #b6a7d6;
  --muted-dim: #8577a6;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.05);
  --card-strong: rgba(255, 255, 255, 0.09);
  --shadow-yellow: 0 10px 30px rgba(255, 204, 0, 0.22);
  --font-display: "Cairo", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.landing-page {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink-950);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body.landing-page * {
  user-select: auto;
}

.lp-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

img, svg {
  max-width: 100%;
}

a {
  color: inherit;
}

/* ---------------------------------- Nav --------------------------------- */

.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(8, 5, 14, 0.72), rgba(8, 5, 14, 0));
  transition: background 0.25s ease;
}

.lp-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
}

.lp-nav-brand svg {
  width: 30px;
  height: 30px;
}

.lp-nav-brand span {
  color: var(--yellow);
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.lp-btn:active {
  transform: translateY(1px) scale(0.99);
}

.lp-btn-yellow {
  background: linear-gradient(180deg, #ffe27a, var(--yellow) 60%, #f0bf00);
  color: #201200;
  box-shadow: var(--shadow-yellow);
}

.lp-btn-yellow:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255, 204, 0, 0.32);
}

.lp-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--paper);
}

.lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lp-btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

.lp-nav-link-device {
  border-color: rgba(255, 204, 0, 0.24);
}

.lp-btn[disabled],
.lp-btn.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* --------------------------------- Hero ---------------------------------- */

.lp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 12% -8%, rgba(139, 95, 200, 0.55), transparent 60%),
    radial-gradient(760px 640px at 108% 6%, rgba(255, 204, 0, 0.13), transparent 55%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 65%);
}

.lp-hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background: radial-gradient(closest-side, rgba(107, 63, 168, 0.35), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  animation: lp-drift 18s ease-in-out infinite alternate;
}

@keyframes lp-drift {
  0% { transform: translate3d(-2%, 0, 0) scale(1); }
  100% { transform: translate3d(3%, 3%, 0) scale(1.08); }
}

.lp-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.lp-hero-copy {
  opacity: 0;
  transform: translateY(18px);
  animation: lp-fade-up 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.lp-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.lp-hero-brand svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.lp-hero-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.01em;
}

.lp-hero-wordmark span {
  color: var(--yellow);
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--yellow-soft);
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.lp-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.lp-h1 em {
  font-style: normal;
  color: var(--yellow);
}

.lp-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 12px;
}

.lp-sub-ar {
  direction: rtl;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted-dim);
  max-width: 46ch;
  margin: 0 0 34px;
}

.lp-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.lp-cta-group .lp-btn {
  padding: 15px 26px;
  font-size: 15px;
}

.lp-cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted-dim);
}

.lp-cta-note strong {
  color: var(--paper);
}

/* Hero visual — single integrated illustration, no floating badge cards */
.lp-hero-visual {
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  animation: lp-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
  display: flex;
  justify-content: center;
}

.lp-hero-visual svg {
  width: min(430px, 100%);
  height: auto;
  overflow: visible;
}

.lp-illus-bubble-main {
  animation: lp-float 6s ease-in-out infinite;
  transform-origin: center;
}

.lp-illus-bubble-secondary {
  animation: lp-float 6s ease-in-out infinite 0.4s reverse;
  transform-origin: center;
}

.lp-illus-dot {
  animation: lp-pulse 2.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes lp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

@keyframes lp-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------- Sections -------------------------------- */

.lp-section {
  position: relative;
  padding: 96px 0;
  background: var(--ink-950);
}

.lp-section-alt {
  background: linear-gradient(180deg, var(--ink-950), var(--ink-900));
}

.lp-section-head {
  max-width: 640px;
  margin: 0 0 52px;
}

.lp-kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.lp-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 38px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.lp-section-head p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
  max-width: 56ch;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Features grid */
.lp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.lp-feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lp-feature:hover {
  transform: translateY(-4px);
  background: var(--card-strong);
  border-color: rgba(255, 204, 0, 0.3);
}

.lp-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255, 204, 0, 0.18), rgba(107, 63, 168, 0.28));
  margin-bottom: 18px;
  color: var(--yellow);
}

.lp-feature-icon svg {
  width: 24px;
  height: 24px;
}

.lp-feature h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.lp-feature p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Downloads */
.lp-downloads-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.lp-download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: var(--paper);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lp-download-card.is-primary {
  background: linear-gradient(160deg, rgba(255, 204, 0, 0.14), rgba(107, 63, 168, 0.22));
  border-color: rgba(255, 204, 0, 0.4);
}

a.lp-download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 204, 0, 0.5);
}

.lp-download-badge {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #201200;
  background: var(--yellow);
  padding: 4px 10px;
  border-radius: 999px;
}

.lp-download-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
}

.lp-download-icon svg {
  width: 24px;
  height: 24px;
}

.lp-download-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0;
}

.lp-download-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.lp-download-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--yellow);
}

.lp-download-card.is-soon {
  opacity: 0.62;
  cursor: default;
}

.lp-download-card.is-soon .lp-download-cta {
  color: var(--muted);
}

.lp-more-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--muted-dim);
}

.lp-more-downloads a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-more-downloads a:hover {
  color: var(--paper);
}

/* PWA install strip */
.lp-pwa-strip {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
}

.lp-pwa-strip-text h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 6px;
}

.lp-pwa-strip-text p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 52ch;
}

.lp-pwa-strip-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lp-pwa-ios-hint {
  display: none;
  font-size: 13px;
  color: var(--muted);
  max-width: 30ch;
}

/* Footer */
.lp-footer {
  padding: 56px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--ink-950);
}

.lp-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}

.lp-footer-brand svg {
  width: 28px;
  height: 28px;
}

.lp-footer-brand span {
  color: var(--yellow);
}

.lp-footer-tagline {
  font-size: 13px;
  color: var(--muted-dim);
  margin-top: 8px;
  max-width: 32ch;
}

.lp-footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.lp-footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
  margin: 0 0 12px;
}

.lp-footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 10px;
}

.lp-footer-col a:hover {
  color: var(--paper);
}

.lp-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted-dim);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ------------------------------- Responsive ------------------------------- */

@media (max-width: 980px) {
  .lp-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .lp-hero-brand,
  .lp-cta-group,
  .lp-eyebrow {
    justify-content: center;
  }

  .lp-sub,
  .lp-sub-ar {
    margin-left: auto;
    margin-right: auto;
  }

  .lp-hero-visual {
    order: -1;
  }

  .lp-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-downloads-grid {
    grid-template-columns: 1fr;
  }

  .lp-section-head {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .lp-container {
    padding: 0 18px;
  }

  .lp-nav {
    padding: 14px 18px;
    padding-top: max(14px, env(safe-area-inset-top, 0px));
  }

  .lp-nav-actions .lp-btn-ghost {
    display: none;
  }

  .lp-nav-actions .lp-nav-link-device {
    display: inline-flex;
  }

  .lp-hero {
    padding: 104px 0 56px;
  }

  .lp-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-cta-group .lp-btn {
    width: 100%;
  }

  .lp-features {
    grid-template-columns: 1fr;
  }

  .lp-section {
    padding: 64px 0;
  }

  .lp-pwa-strip {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .lp-pwa-strip-actions {
    justify-content: center;
  }

  .lp-footer-top {
    flex-direction: column;
  }

  .lp-footer-links {
    gap: 28px;
  }

  .lp-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-glow,
  .lp-illus-bubble-main,
  .lp-illus-bubble-secondary,
  .lp-illus-dot,
  .lp-hero-copy,
  .lp-hero-visual {
    animation: none !important;
  }

  .lp-hero-copy,
  .lp-hero-visual {
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Desktop browser: hide web Sign In, show Windows EXE instead */
.lp-desktop-download-cta {
  display: none;
}

html.yoyo-desktop-browser .lp-signin-cta {
  display: none !important;
}

html.yoyo-desktop-browser .lp-desktop-download-cta {
  display: inline-flex;
}

html.yoyo-desktop-browser .lp-more-downloads .lp-signin-cta {
  display: none !important;
}
