/* مدهوش — Service landing pages (bots / wordpress / mcp / cli)
   Built on tokens.css. Theme-aware (light/dark), RTL. Marker: mh-landing-v1 */

.lp-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  height: 64px; padding-inline: clamp(16px, 4vw, 48px);
  background: var(--bg-overlay); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.lp-brand { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 800; font-size: var(--text-md); color: var(--fg); }
.lp-brand img { width: 30px; height: 30px; border-radius: var(--r-sm); }
.lp-nav-actions { display: flex; align-items: center; gap: var(--s-2); }
.lp-theme { width: 40px; height: 40px; border-radius: var(--r-full); display: grid; place-items: center; color: var(--fg-muted); border: 1px solid var(--border); transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.lp-theme:hover { color: var(--fg); border-color: var(--border-strong); background: var(--bg-raised); }
.lp-theme svg { width: 18px; height: 18px; }
@media (max-width: 540px) { .lp-nav-actions .lp-home { display: none; } }

/* HERO */
.lp-hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(78vh, 640px); display: flex; align-items: center; }
.lp-hero .fi-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.02); }
.lp-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, color-mix(in oklch, black 90%, transparent) 6%, color-mix(in oklch, black 64%, transparent) 45%, color-mix(in oklch, black 48%, transparent)); }
.lp-hero-inner { padding-block: clamp(48px, 9vw, 104px); max-width: 760px; }
.lp-hero h1 { color: #fff; font-size: clamp(2rem, 5.5vw, var(--text-5xl)); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: var(--s-4) 0 var(--s-4); }
.lp-hero h1 em { font-style: normal; color: var(--sig-soft); }
.lp-hero-sub { color: color-mix(in oklch, white 86%, transparent); font-size: clamp(var(--text-base), 2.2vw, var(--text-lg)); line-height: 1.75; max-width: 60ch; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.lp-hero .chip.accent { background: color-mix(in oklch, var(--sig) 22%, transparent); color: #fff; border-color: color-mix(in oklch, white 30%, transparent); backdrop-filter: blur(8px); }
.lp-hero .chip.accent svg { width: 14px; height: 14px; }

/* SECTIONS */
.lp-section { padding-block: clamp(48px, 8vw, 96px); }
.lp-section.alt { background: color-mix(in oklch, var(--bg-surface) 70%, transparent); border-block: 1px solid var(--border); }
.lp-section-head { max-width: 680px; margin-bottom: var(--s-10); }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); font-weight: 700; color: var(--accent); letter-spacing: 0.02em; margin-bottom: var(--s-3); }
.lp-eyebrow .dot { width: 7px; height: 7px; border-radius: var(--r-full); background: var(--accent); }
.lp-section h2 { font-size: clamp(1.5rem, 3.6vw, var(--text-3xl)); font-weight: 800; line-height: 1.2; letter-spacing: -0.018em; color: var(--fg); }
.lp-section h2 em { font-style: normal; color: var(--accent); }
.lp-section-head p { margin-top: var(--s-3); color: var(--fg-muted); font-size: var(--text-md); line-height: 1.8; }

/* FEATURE GRID */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 860px) { .lp-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-features { grid-template-columns: 1fr; } }
.lp-feature { padding: var(--s-6); border-radius: var(--r-lg); background: var(--bg-surface); border: 1px solid var(--border); transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease-out); }
.lp-feature:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.lp-feature-ic { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--accent); background: color-mix(in oklch, var(--accent) 14%, transparent); border: 1px solid color-mix(in oklch, var(--accent) 26%, transparent); margin-bottom: var(--s-4); }
.lp-feature-ic svg { width: 22px; height: 22px; }
.lp-feature h3 { font-size: var(--text-md); font-weight: 700; color: var(--fg); margin-bottom: var(--s-2); }
.lp-feature p { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.75; }

/* STEPS */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); counter-reset: lpstep; list-style: none; }
@media (max-width: 760px) { .lp-steps { grid-template-columns: 1fr; gap: var(--s-5); } }
.lp-step { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: var(--s-6); border-radius: var(--r-lg); background: var(--bg-surface); border: 1px solid var(--border); }
.lp-step::before { counter-increment: lpstep; content: counter(lpstep, persian); width: 36px; height: 36px; border-radius: var(--r-full); display: grid; place-items: center; font-weight: 800; font-size: var(--text-md); color: var(--on-accent); background: var(--accent); margin-bottom: 4px; }
.lp-step h3 { font-size: var(--text-base); font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.lp-step p { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.75; }

/* CODE / TERMINAL */
.lp-code { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border-strong); background: var(--n1000); box-shadow: var(--elev-2); max-width: 640px; }
.lp-code-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: color-mix(in oklch, var(--n900) 70%, var(--n1000)); border-bottom: 1px solid var(--border); }
.lp-code-bar i { width: 11px; height: 11px; border-radius: var(--r-full); background: var(--n600); }
.lp-code-bar i:nth-child(1){ background:#ff5f57 } .lp-code-bar i:nth-child(2){ background:#febc2e } .lp-code-bar i:nth-child(3){ background:#28c840 }
.lp-code-bar span { margin-inline-start: auto; font-size: var(--text-xs); color: var(--n400); font-family: var(--font-mono); }
.lp-code pre { margin: 0; padding: 18px; overflow-x: auto; direction: ltr; text-align: left; }
.lp-code code { font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.85; color: var(--n100); white-space: pre; }
.lp-code .c-key { color: var(--sig-soft); } .lp-code .c-str { color: oklch(0.78 0.12 155); } .lp-code .c-mut { color: var(--n500); } .lp-code .c-cmd { color: oklch(0.78 0.13 215); }

/* CHAT MOCKUP */
.lp-chat { max-width: 460px; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); border-radius: var(--r-lg); background: var(--bg-surface); border: 1px solid var(--border); }
.lp-bubble { max-width: 82%; padding: 11px 15px; border-radius: var(--r-md); font-size: var(--text-sm); line-height: 1.7; }
.lp-bubble.user { align-self: flex-start; background: var(--accent); color: var(--on-accent); border-end-start-radius: 4px; }
.lp-bubble.bot { align-self: flex-end; background: var(--bg-raised); color: var(--fg); border: 1px solid var(--border); border-end-end-radius: 4px; }
.lp-bubble.bot .media { margin-top: 8px; height: 96px; border-radius: var(--r-sm); background: linear-gradient(135deg, color-mix(in oklch, var(--sig) 40%, var(--bg-raised)), color-mix(in oklch, var(--t-indigo) 40%, var(--bg-raised))); display: grid; place-items: center; color: #fff; }

/* SPLIT (showcase + copy) */
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 860px) { .lp-split { grid-template-columns: 1fr; } }
.lp-split .lp-copy h2 { margin-bottom: var(--s-4); }
.lp-split .lp-copy p { color: var(--fg-muted); line-height: 1.85; }
.lp-list { list-style: none; margin-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.lp-list li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--text-base); color: var(--fg); }
.lp-list svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.lp-list b { font-weight: 700; }

/* CTA BAND */
.lp-cta-band { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-block: clamp(56px, 9vw, 104px); border-radius: var(--r-xl); margin: clamp(40px, 7vw, 80px) 0; border: 1px solid var(--border-strong); }
.lp-cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 130% at 50% 0%, color-mix(in oklch, var(--sig) 20%, transparent), transparent 65%), var(--bg-surface); }
.lp-cta-band h2 { font-size: clamp(1.6rem, 4vw, var(--text-3xl)); font-weight: 800; color: var(--fg); letter-spacing: -0.02em; }
.lp-cta-band p { margin: var(--s-4) auto var(--s-8); max-width: 52ch; color: var(--fg-muted); font-size: var(--text-md); }
.lp-cta-band .lp-hero-cta { justify-content: center; margin-top: 0; }

/* FOOTER */
.lp-footer { border-top: 1px solid var(--border); padding-block: var(--s-10); }
.lp-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.lp-footer .lp-brand { font-size: var(--text-base); }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: var(--s-5); font-size: var(--text-sm); }
.lp-foot-links a { color: var(--fg-muted); transition: color var(--dur-fast) var(--ease); }
.lp-foot-links a:hover { color: var(--fg); }
.lp-copy { color: var(--fg-subtle); font-size: var(--text-xs); width: 100%; }

/* CO-BRAND LOCKUP (Madhoosh + partner) */
.svc-lock { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: var(--r-full); background: rgba(255,255,255,.96); box-shadow: 0 6px 22px rgba(0,0,0,.34); margin-bottom: var(--s-5); }
.svc-lock img { width: 25px; height: 25px; object-fit: contain; display: block; }
.svc-lock .sl-m { width: 27px; height: 27px; border-radius: 6px; }
.svc-lock .sl-x { color: #1a1a22; opacity: .4; font-weight: 800; font-size: 15px; line-height: 1; }
.svc-lock .sl-term { width: 25px; height: 25px; color: #111; }
[data-theme="dark"] .svc-lock { background: rgba(13,16,22,0.72); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 6px 22px rgba(0,0,0,0.5); }
[data-theme="dark"] .svc-lock .sl-x { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .svc-lock .sl-term { color: #fff; }
[data-theme="dark"] .svc-lock img[alt="Cursor"] { filter: invert(1) brightness(1.4); }
[data-theme="dark"] .svc-lock img[alt="وردپرس"] { filter: brightness(1.85) saturate(1.2); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
