/* Nafa3na landing. Original palette (teal = giving, saffron = asking, navy ink),
   light and airy, with a living network of help in the hero. */

body.lp {
    --ink: #13233F;
    --ink-2: #3A4A63;
    --muted: #5B6B82;
    --paper: #F7F9FC;
    --line: #DCE3EC;
    --teal: #0D7A6B;
    --teal-light: #3FB8A4;
    --teal-soft: #E3F2EF;
    --saffron: #E8A317;
    --saffron-ink: #8A5B00;
    --saffron-soft: #FDF3DC;
    --display: "El Messiri", "IBM Plex Sans Arabic", serif;
    --text: "IBM Plex Sans Arabic", system-ui, "Segoe UI", sans-serif;

    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
}
body.lp :focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.lp-wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 22px; border-radius: 999px;
    font-weight: 600; white-space: nowrap; border: 1px solid transparent;
    transition: background .2s, border-color .2s, box-shadow .2s;
}
.lp-btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }
.lp-btn-gold { background: var(--ink); color: #fff; }
.lp-btn-gold:hover { background: var(--teal); box-shadow: 0 10px 30px rgba(13, 122, 107, .28); }
.lp-btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.lp-btn-ghost:hover { border-color: var(--ink-2); }
.lp-link { color: var(--ink-2); font-weight: 500; padding: 8px 10px; }
.lp-link:hover { color: var(--ink); }

/* ---------- Header ---------- */
.lp-header { position: fixed; inset-inline: 0; top: 0; z-index: 40; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.lp-header.is-scrolled { background: rgba(247, 249, 252, .88); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
.lp-header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.lp-brand .mark { width: 40px; height: 34px; }
.lp-nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.lp-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); }
.lp-nav a:hover { color: var(--ink); background: #fff; }
.lp-header-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: max(640px, 100svh); display: grid; place-items: center;
    overflow: hidden; isolation: isolate; cursor: crosshair;
    background:
        radial-gradient(55% 45% at 12% 20%, rgba(13, 122, 107, .10), transparent 70%),
        radial-gradient(50% 45% at 90% 80%, rgba(232, 163, 23, .13), transparent 70%),
        var(--paper);
}
.sky { position: absolute; inset: 0; z-index: -2; }
.hero-veil {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(44% 40% at 50% 50%, rgba(247, 249, 252, .92), rgba(247, 249, 252, 0) 100%);
}
.hero-copy { text-align: center; padding: 120px 0 140px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-copy h1 {
    font-family: var(--display); font-weight: 700; color: var(--ink);
    font-size: clamp(2.5rem, 6.4vw, 5.25rem); line-height: 1.12;
    max-width: 16ch; margin-inline: auto; text-wrap: balance;
    animation: rise 1.2s cubic-bezier(.16, 1, .3, 1) both;
}
[dir="rtl"] .hero-copy h1 { line-height: 1.3; }
.hero-body {
    margin: 26px auto 0; max-width: 58ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.8;
    color: var(--ink-2); text-wrap: pretty; animation: rise 1.2s .15s cubic-bezier(.16, 1, .3, 1) both;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; animation: rise 1.2s .3s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-foot {
    position: absolute; inset-inline: 0; bottom: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
    font-size: .875rem; color: var(--muted); pointer-events: none; padding-inline: 24px; text-align: center;
}
.hero-hint { display: inline-flex; align-items: center; gap: 8px; transition: opacity .6s; }
.hero-hint.is-used { opacity: 0; }
.hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Sections ---------- */
.lp-section { position: relative; padding: 128px 0; }
.lp-deep { background: #fff; border-block: 1px solid var(--line); }
.lp-h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.2; max-width: 20ch; text-wrap: balance; }
[dir="rtl"] .lp-h2 { line-height: 1.35; }
.lp-lead { margin-top: 18px; font-size: 1.1875rem; line-height: 1.8; color: var(--ink-2); max-width: 56ch; }
.glass { background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.lp-deep .glass { background: var(--paper); }

/* Journey: one thread, three stops that light up in order. */
.journey { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.journey::before, .journey::after { content: ""; position: absolute; top: 15px; height: 3px; inset-inline: 15px; border-radius: 3px; }
.journey::before { background: var(--line); }
.journey::after {
    background: linear-gradient(90deg, var(--teal), var(--saffron));
    transform: scaleX(0); transform-origin: left; transition: transform 2.4s cubic-bezier(.65, 0, .35, 1);
}
[dir="rtl"] .journey::after { transform-origin: right; background: linear-gradient(270deg, var(--teal), var(--saffron)); }
.journey.is-visible::after { transform: scaleX(1); }
.stop { position: relative; }
.stop-node {
    position: relative; z-index: 1; display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
    transition: border-color .4s, box-shadow .4s;
}
.stop-node span { width: 12px; height: 12px; border-radius: 50%; background: var(--line); transition: background .4s; }
.journey.is-visible .stop-node { border-color: var(--teal); box-shadow: 0 0 0 6px var(--teal-soft); }
.journey.is-visible .stop-node span { background: var(--teal); }
.journey.is-visible .stop:nth-child(3) .stop-node { border-color: var(--saffron); box-shadow: 0 0 0 6px var(--saffron-soft); }
.journey.is-visible .stop:nth-child(3) .stop-node span { background: var(--saffron); }
.journey.is-visible .stop:nth-child(1) .stop-node, .journey.is-visible .stop:nth-child(1) .stop-node span { transition-delay: .1s; }
.journey.is-visible .stop:nth-child(2) .stop-node, .journey.is-visible .stop:nth-child(2) .stop-node span { transition-delay: 1.2s; }
.journey.is-visible .stop:nth-child(3) .stop-node, .journey.is-visible .stop:nth-child(3) .stop-node span { transition-delay: 2.3s; }
.stop-n { display: block; margin-top: 28px; font-family: var(--display); font-size: 1rem; color: var(--teal); }
.stop h3 { font-family: var(--display); font-size: 1.875rem; font-weight: 700; margin-top: 4px; }
.stop p { margin-top: 10px; color: var(--ink-2); line-height: 1.8; max-width: 34ch; }

/* Two kinds */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.kind-list { margin: 36px 0 0; display: grid; gap: 22px; }
.kind-list div { padding-inline-start: 20px; border-inline-start: 3px solid var(--teal); }
.kind-list .kind-ask { border-color: var(--saffron); }
.kind-list dt { font-family: var(--display); font-size: 1.375rem; font-weight: 600; }
.kind-give dt { color: var(--teal); }
.kind-ask dt { color: var(--saffron-ink); }
.kind-list dd { margin: 6px 0 0; color: var(--ink-2); line-height: 1.75; }
.samples { display: grid; gap: 22px; }
.sample { position: relative; padding: 24px 26px; }
.sample:first-child { transform: rotate(-1.5deg); box-shadow: 0 24px 48px rgba(19, 35, 63, .10); border-top: 4px solid var(--teal); }
.sample:last-child { transform: rotate(1.2deg); margin-inline-start: 48px; box-shadow: 0 24px 48px rgba(19, 35, 63, .10); border-top: 4px solid var(--saffron); }
.sample-tag { position: absolute; top: 16px; inset-inline-end: 18px; font-size: .75rem; color: var(--muted); }
.sample-head { display: flex; gap: 12px; align-items: center; }
.sample-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 600; }
.sample-name { font-weight: 600; }
.sample-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .8125rem; color: var(--muted); }
.sample-type { color: var(--teal); font-weight: 600; }
.sample-ask .sample-type { color: var(--saffron-ink); }
.sample-body { margin-top: 14px; font-size: 1.0625rem; line-height: 1.75; }
.sample-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--teal); font-size: .9375rem; }
.sample-ask .sample-foot { color: var(--saffron-ink); }
.sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); animation: blink 2s infinite; }

/* The one number */
.metric-in { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.metric-figure { display: flex; flex-direction: column; }
.metric-old { font-size: 1.25rem; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.metric-num {
    font-family: var(--display); font-weight: 700; line-height: 1; margin-top: 12px;
    font-size: clamp(5rem, 13vw, 10.5rem); letter-spacing: -0.02em; color: var(--teal);
}
.metric-unit { margin-top: 10px; font-size: 1.125rem; color: var(--ink-2); }

/* Languages: a river of the same idea in every tongue */
.tongues-section { overflow: hidden; }
.river { margin: 64px 0 48px; display: grid; gap: 18px; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.river-row { display: flex; width: max-content; animation: river 60s linear infinite; }
.river-reverse { animation-direction: reverse; animation-duration: 75s; }
.river-track { display: flex; flex: none; }
.river-item {
    flex: none; padding-inline: 34px; font-family: var(--display); font-weight: 600;
    font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.5; white-space: nowrap; color: var(--ink); position: relative;
}
.river-item::after { content: ""; position: absolute; inset-inline-end: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--teal); }
.river-reverse .river-item { color: transparent; -webkit-text-stroke: 1px rgba(19, 35, 63, .4); }
.river-reverse .river-item::after { background: var(--saffron); }
@keyframes river { to { transform: translateX(-50%); } }
.lang-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lang-chips a { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); }
.lang-chips a:hover { border-color: var(--teal); color: var(--teal); }
.lang-chips a.is-current { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Safety */
.trust { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust li { padding: 30px 28px; }
.trust-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.trust h3 { margin-top: 20px; font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.trust p { margin-top: 8px; color: var(--ink-2); line-height: 1.75; }

/* Platforms */
.apps { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; }
.platforms { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.platforms li { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 18px; font-size: 1.125rem; font-weight: 600; }
.platforms .icon { color: var(--ink-2); }
.pill { margin-inline-start: auto; font-style: normal; font-size: .8125rem; font-weight: 500; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.pill-on { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Final call: the navy band from the original identity */
.final { position: relative; overflow: hidden; padding: 150px 0; text-align: center; isolation: isolate; background: var(--ink); color: #fff; }
.final-orb {
    position: absolute; z-index: -1; left: 50%; top: 50%; width: min(760px, 130vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 184, 164, .28) 0%, rgba(232, 163, 23, .12) 38%, rgba(19, 35, 63, 0) 68%);
    animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { scale: 1.08; opacity: .85; } }
.final-mark { width: 96px; height: 80px; margin: 0 auto 28px; }
.final h2 { font-family: var(--display); font-size: clamp(2.75rem, 7vw, 5.25rem); font-weight: 700; line-height: 1.15; }
.final p { margin: 20px auto 0; max-width: 46ch; font-size: 1.1875rem; line-height: 1.8; color: rgba(255, 255, 255, .78); }
.final .lp-btn-gold { background: var(--saffron); color: var(--ink); }
.final .lp-btn-gold:hover { background: #F4BA3E; box-shadow: 0 10px 30px rgba(232, 163, 23, .35); }
.final .lp-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.final .lp-btn-ghost:hover { border-color: #fff; }
.final :focus-visible { outline-color: var(--saffron); }

/* Footer */
.lp-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); background: #fff; }
.site-footer-landing { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 24px; padding: 0; }
.site-footer-landing .rights { grid-column: 1; margin: 0; }
.site-footer-landing .credit { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; border: 0; font-size: .9375rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .lp-nav { display: none; }
    .journey { grid-template-columns: 1fr; gap: 44px; }
    .journey::before, .journey::after { top: 15px; bottom: 15px; height: auto; width: 3px; inset-inline: 15px auto; }
    .journey::after, [dir="rtl"] .journey::after { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--teal), var(--saffron)); }
    .journey.is-visible::after { transform: scaleY(1); }
    .stop { padding-inline-start: 58px; }
    .stop-node { position: absolute; inset-inline-start: 0; top: 0; }
    .stop-n { margin-top: 0; }
    .kinds, .metric-in, .apps { grid-template-columns: 1fr; gap: 48px; }
    .trust { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .lp-wrap { width: calc(100% - 32px); }
    .lp-header-in { min-height: 64px; gap: 6px; }
    .lp-brand { font-size: 1.5rem; }
    .lp-brand .mark { width: 34px; height: 28px; }
    .lp-signin, body.lp .lang-top .lang-current { display: none; }
    .lp-header .lp-btn-gold { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
    .hero-copy { padding: 110px 0 150px; }
    .hero-foot { bottom: 22px; flex-direction: column; align-items: center; }
    .lp-section { padding: 88px 0; }
    .sample:last-child { margin-inline-start: 0; }
    .final { padding: 110px 0; }
    .site-footer-landing { grid-template-columns: 1fr; text-align: center; }
    .site-footer-landing .footer-links { justify-content: center; }
    .site-footer-landing .credit { grid-column: 1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .river-row { animation: none; }
    .journey::after { transition: none; }
}
