/* HLO landing — MesueTech light flourishing identity */
:root {
  --bg: #f3faf6;
  --bg-soft: #e8f5ee;
  --surface: #ffffff;
  --surface-2: #eef7f2;
  --border: rgba(18, 55, 40, 0.1);
  --text: #12251c;
  --text-2: #2d4638;
  --muted: #5a7264;
  --accent: #0f9a6a;
  --accent-deep: #0a7a54;
  --accent-2: #1e88c7;
  --sun: #f0a03a;
  --ok: #1fad6b;
  --danger: #d94a4a;
  --warn: #d89a2a;
  --shadow: 0 18px 40px rgba(18, 55, 40, 0.08);
  --radius: 16px;
  --font-display: "Cairo", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: clip;
}
a { color: var(--accent-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-2); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--surface-2);
  padding: .08em .35em;
  border-radius: 6px;
}

.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 12% -8%, rgba(15, 154, 106, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 45% at 96% 8%, rgba(30, 136, 199, 0.11), transparent 50%),
    linear-gradient(180deg, #f7fcf9 0%, var(--bg) 40%, #eef8f3 100%);
}

.top, main, .foot { position: relative; z-index: 1; }
.top {
  position: sticky; top: 0; z-index: 50;
  background: #f3faf6;
  border-bottom: 1px solid var(--border);
}
.top-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .85rem clamp(1rem, 4vw, 1.5rem);
  display: flex; align-items: center; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  color: inherit; min-width: 0;
}
.brand-glyph { flex-shrink: 0; line-height: 0; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 800;
}
.brand-copy small { font-size: .68rem; color: var(--muted); font-weight: 500; }

.nav {
  display: flex; align-items: center; gap: .15rem;
  flex: 1; margin-inline: .5rem;
}
.nav a {
  padding: .45rem .75rem; border-radius: 10px;
  font-size: .86rem; font-weight: 600; color: var(--muted);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .78rem 1.25rem; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55rem 1rem; font-size: .86rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; box-shadow: 0 10px 24px rgba(15, 154, 106, 0.28);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-2);
}
.btn.disabled { opacity: .55; pointer-events: none; }

main { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 1.5rem) 3.5rem; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  min-height: min(78vh, 640px);
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700; font-size: .85rem;
  color: var(--accent-deep);
  letter-spacing: .02em;
  margin-bottom: .75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  font-weight: 900; line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.grad {
  background: linear-gradient(120deg, var(--accent-deep), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { color: var(--text-2); font-size: 1.05rem; max-width: 36rem; margin-bottom: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .9rem; }
.version-line { color: var(--muted); font-size: .9rem; }

.hero-stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 380px;
}
.hero-art { width: min(100%, 380px); height: auto; filter: drop-shadow(var(--shadow)); }
.pulse-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(15, 154, 106, 0.25);
  animation: pulse 3.6s ease-out infinite;
}
.pulse-ring.r1 { width: 220px; height: 220px; }
.pulse-ring.r2 { width: 300px; height: 300px; animation-delay: 1.1s; border-color: rgba(30, 136, 199, 0.2); }

.bubble { animation: floatY 4.5s ease-in-out infinite; }
.bubble.b2 { animation-delay: .6s; }
.bubble.b3 { animation-delay: 1.2s; }
.waves .w1 { animation: ripple 2.4s ease-out infinite; transform-origin: center; }
.waves .w2 { animation: ripple 2.4s ease-out infinite .4s; }
.waves .w3 { animation: ripple 2.4s ease-out infinite .8s; }
.phone { animation: phoneIn .9s cubic-bezier(.2,.8,.2,1) both; }

@keyframes pulse {
  0% { transform: scale(.85); opacity: .7; }
  100% { transform: scale(1.25); opacity: 0; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ripple {
  0% { opacity: .55; }
  100% { opacity: 0; }
}
@keyframes phoneIn {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.section { padding: clamp(2.2rem, 5vw, 3.5rem) 0; }
.section-head { max-width: 38rem; margin-bottom: 1.75rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 800; margin-bottom: .45rem;
}
.section-head p { color: var(--muted); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cap {
  padding: 1.25rem 1.15rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid transparent;
  transition: background .25s, border-color .25s, transform .25s;
}
.cap:hover {
  background: rgba(255,255,255,.65);
  border-color: var(--border);
  transform: translateY(-3px);
}
.cap-icon { font-size: 1.6rem; display: block; margin-bottom: .55rem; }
.cap h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 800; margin-bottom: .35rem;
}
.cap p { color: var(--text-2); font-size: .92rem; }

.steps {
  list-style: none; counter-reset: step;
  display: grid; gap: 1rem;
}
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border-inline-start: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(15,154,106,.06), transparent 70%);
}
.steps li::before {
  content: counter(step);
  width: 2rem; height: 2rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .9rem;
  grid-row: span 2;
}
.steps strong {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 800;
}
.steps span { color: var(--muted); font-size: .94rem; grid-column: 2; }

.download-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(30,136,199,.1), transparent 50%),
    linear-gradient(160deg, #fff, #f0faf5);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.download-panel h2 {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 800; margin-bottom: .5rem;
}
.download-panel > div > p { color: var(--text-2); margin-bottom: .55rem; }
.install-hint { color: var(--muted) !important; font-size: .9rem; }

.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.store {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1rem .9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: inherit;
  min-height: 140px;
  transition: border-color .2s, transform .2s;
}
.store.active:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.store.soon { opacity: .72; }
.store-label { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.store strong { font-family: var(--font-display); font-size: 1.05rem; }
.store-meta { color: var(--muted); font-size: .82rem; flex: 1; }
.store-cta {
  margin-top: .4rem;
  font-size: .82rem; font-weight: 700; color: var(--accent-deep);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
}
.status-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}
.status-item .dot {
  width: 11px; height: 11px; border-radius: 50%;
  margin-top: .4rem; flex-shrink: 0;
  background: #cbd5d0;
  box-shadow: 0 0 0 4px rgba(203, 213, 208, .35);
}
.status-item.ok .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 173, 107, .2); }
.status-item.bad .dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(217, 74, 74, .18); }
.status-item.warn .dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(216, 154, 42, .18); }
.status-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 800;
}
.status-text { color: var(--muted); font-size: .86rem; }
.status-foot { margin-top: 1rem; color: var(--muted); font-size: .85rem; }

/* ——— Live pulse board ——— */
.live { padding-top: clamp(1.5rem, 3vw, 2.2rem); }
.live-shell {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.9rem);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(15,154,106,.14), transparent 55%),
    radial-gradient(ellipse 45% 50% at 100% 10%, rgba(30,136,199,.12), transparent 50%),
    linear-gradient(160deg, #ffffff 0%, #f3faf7 100%);
  border: 1px solid rgba(18,55,40,.1);
  box-shadow: 0 22px 50px rgba(18, 55, 40, 0.08);
  overflow: hidden;
}
.live-head { max-width: 36rem; margin-bottom: 1.4rem; }
.live-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-bottom: .55rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(15,154,106,.1);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 800;
}
.live-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  animation: livePulse 1.6s ease-out infinite;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-bottom: 1.2rem;
}
.kpi {
  position: relative;
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1.1rem 1.05rem 1rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(18,55,40,.08);
  box-shadow: 0 10px 28px rgba(18,55,40,.05);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
}
.kpi:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 36px rgba(18,55,40,.1);
  border-color: rgba(15,154,106,.22);
}
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }
.kpi-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .35rem;
}
.kpi-ico {
  width: 2.4rem; height: 2.4rem; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--accent-deep);
  background: linear-gradient(145deg, rgba(15,154,106,.14), rgba(30,136,199,.1));
}
.kpi-ico svg { width: 1.2rem; height: 1.2rem; }
.kpi-chip {
  font-size: .68rem; font-weight: 800;
  font-family: var(--font-display);
  padding: .2rem .5rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
}
.kpi-a .kpi-chip { background: rgba(31,173,107,.14); color: #0a7a54; }
.kpi-b .kpi-chip { background: rgba(30,136,199,.14); color: #14679a; }
.kpi-c .kpi-chip { background: rgba(15,154,106,.12); color: #0a7a54; }
.kpi-d .kpi-chip { background: rgba(240,160,58,.18); color: #9a620f; }
.kpi-e .kpi-chip { background: rgba(30,136,199,.12); color: #14679a; }
.kpi-f .kpi-chip { background: rgba(15,154,106,.12); color: #0a7a54; }

.kpi-label {
  display: block;
  font-size: .8rem; font-weight: 700; color: var(--muted);
}
.kpi-val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 900; line-height: 1.05;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: transform .2s ease, color .2s;
}
.kpi-sub {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .15rem; font-size: .78rem; color: var(--muted);
}
.kpi-bar {
  display: block; height: 4px; border-radius: 99px;
  margin-top: .7rem; background: rgba(18,55,40,.06); overflow: hidden;
}
.kpi-bar i {
  display: block; height: 100%; width: 62%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.kpi-b .kpi-bar i { width: 74%; }
.kpi-c .kpi-bar i { width: 48%; }
.kpi-d .kpi-bar i { width: 68%; }
.kpi-e .kpi-bar i { width: 96%; }
.kpi-f .kpi-bar i { width: 71%; }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(31,173,107,.55);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(31,173,107,.5); }
  70% { box-shadow: 0 0 0 8px rgba(31,173,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,173,107,0); }
}

/* notification feed */
.feed-board {
  position: relative;
  border-radius: 22px;
  padding: 1rem 1rem 1.1rem;
  background: linear-gradient(180deg, #0f2a22 0%, #15352b 55%, #123028 100%);
  color: #e8f6ef;
  overflow: hidden;
  min-height: 210px;
}
.feed-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .85rem; position: relative; z-index: 2;
}
.feed-head strong {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
}
.feed-online {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: rgba(232,246,239,.72);
}
.feed-online i {
  width: 8px; height: 8px; border-radius: 50%; background: #3ddea0;
  box-shadow: 0 0 0 0 rgba(61,222,160,.55);
  animation: livePulse 1.5s ease-out infinite;
}
.feed-stage {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: .55rem;
  min-height: 140px;
}
.notif {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .7rem; align-items: center;
  padding: .7rem .85rem;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
}
.notif.flash {
  animation: notifFlash .35s ease;
}
@keyframes notifFlash {
  from { opacity: .55; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.notif[hidden] { display: none !important; }
.notif-ico {
  width: 2.15rem; height: 2.15rem; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(61,222,160,.16);
  font-size: 1rem;
}
.notif-body { min-width: 0; }
.notif-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 700; line-height: 1.35;
  color: #fff;
}
.notif-body span {
  display: block; margin-top: .1rem;
  font-size: .75rem; color: rgba(232,246,239,.62);
}
.notif-time {
  font-size: .72rem; font-weight: 700;
  color: rgba(232,246,239,.55); white-space: nowrap;
}
.notif.type-call .notif-ico { background: rgba(30,136,199,.22); }
.notif.type-msg .notif-ico { background: rgba(15,154,106,.22); }
.notif.type-user .notif-ico { background: rgba(240,160,58,.2); }
.notif.type-server .notif-ico { background: rgba(255,255,255,.1); }

.float-bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fb {
  position: absolute;
  width: 2.1rem; height: 2.1rem; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  font-size: .95rem;
  animation: floatBubble 6.5s ease-in-out infinite;
  opacity: .55;
}
.fb1 { top: 18%; inset-inline-start: 6%; animation-delay: 0s; }
.fb2 { top: 42%; inset-inline-end: 8%; animation-delay: 1.2s; }
.fb3 { bottom: 16%; inset-inline-start: 14%; animation-delay: 2s; }
.fb4 { top: 12%; inset-inline-end: 18%; animation-delay: .6s; }
@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.08); }
}

.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  padding: .65rem clamp(1rem, 4vw, 1.5rem) calc(.65rem + env(safe-area-inset-bottom, 0));
  background: #f3faf6;
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform .28s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.sticky-cta strong {
  display: block;
  font-family: var(--font-display); font-weight: 800; font-size: .98rem;
}
.sticky-cta span { display: block; color: var(--muted); font-size: .8rem; }
body.has-sticky { padding-bottom: 4.5rem; }

.foot {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.55);
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem clamp(1rem, 4vw, 1.5rem);
  text-align: center;
}
.foot-sub { color: var(--muted); font-size: .88rem; margin-top: .25rem; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { order: -1; min-height: 300px; }
  .cap-grid, .status-grid, .store-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .download-panel { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .cap-grid, .status-grid, .store-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .top .btn-sm { display: none; }
  .sticky-cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .feed-board { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-ring, .bubble, .waves .w1, .waves .w2, .waves .w3, .phone,
  .live-badge-dot, .pulse-dot, .feed-online i, .fb, .notif.flash {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
}
