:root {
    --ld-font: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    --ld-text: #0f172a;
    --ld-muted: #64748b;
    --ld-border: #e2e8f0;
    --ld-bg: #f8fafc;
    --ld-card: #fff;
    --ld-primary: #1d4ed8;
    --ld-primary-hover: #1e40af;
    --ld-accent: #0ea5e9;
    --ld-radius: 12px;
    --ld-shadow: 0 4px 24px rgb(15 23 42 / 8%);
    --ld-max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--ld-font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ld-text);
    background: var(--ld-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--ld-primary); text-decoration: none; }
a:hover { color: var(--ld-primary-hover); }
img { max-width: 100%; height: auto; }
.ld-main { flex: 1; }
.ld-container { max-width: var(--ld-max); margin: 0 auto; padding: 0 1rem; }
.ld-container--narrow { max-width: 720px; }

/* Hub header */
.ld-top {
    position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--ld-border);
    padding-top: env(safe-area-inset-top, 0);
}
.ld-demo-banner {
    display: flex; align-items: flex-start; gap: .5rem;
    padding: .5rem max(1rem, env(safe-area-inset-left)) .5rem max(1rem, env(safe-area-inset-right));
    font-size: .75rem; line-height: 1.45; color: #92400e; background: #fffbeb;
    border-bottom: 1px solid #fde68a; text-align: left;
}
.ld-demo-banner i { color: #d97706; margin-top: .1rem; flex-shrink: 0; }
.ld-demo-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .6rem;
    padding: .4rem 1rem; font-size: .72rem; color: var(--ld-muted); background: #f1f5f9;
    border-bottom: 1px solid var(--ld-border); text-align: center;
}
.ld-demo-strip-text { flex: 1 1 100%; }
.ld-demo-strip-actions { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .6rem; }
.ld-demo-strip a { font-weight: 600; white-space: nowrap; }
.ld-strip-cta { color: var(--ld-primary) !important; animation: ld-pulse-ring 2.5s ease-out infinite; padding: 2px 8px; border-radius: 6px; }
.ld-top-inner {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .65rem max(1rem, env(safe-area-inset-left)) .65rem max(1rem, env(safe-area-inset-right));
    max-width: var(--ld-max); margin: 0 auto;
    position: relative; z-index: 102;
}
.ld-top-actions { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.ld-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--ld-text); min-width: 0; flex: 1 1 auto; }
.ld-brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-brand-icon {
    width: 2rem; height: 2rem; border-radius: 8px; background: linear-gradient(135deg, var(--ld-primary), var(--ld-accent));
    color: #fff; display: flex; align-items: center; justify-content: center;
}

/* Lang dropdown */
.ld-lang-dd { position: relative; }
.ld-lang-btn {
    display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .65rem;
    border: 1px solid var(--ld-border); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 600; font-size: .82rem;
}
.ld-lang-menu {
    position: absolute; top: calc(100% + 6px); right: 0; min-width: 10rem;
    list-style: none; margin: 0; padding: .35rem; background: #fff; border: 1px solid var(--ld-border);
    border-radius: 10px; box-shadow: var(--ld-shadow); z-index: 200;
}
.ld-lang-menu[hidden] { display: none !important; }
.ld-lang-menu a { display: block; padding: .45rem .55rem; border-radius: 6px; color: var(--ld-text); }
.ld-lang-menu a.active, .ld-lang-menu a:hover { background: #eff6ff; color: var(--ld-primary); font-weight: 600; }

/* Hub */
.ld-hub-hero { padding: 2.5rem 0 1.5rem; text-align: center; }
.ld-hub-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 99px; background: #eff6ff; color: var(--ld-primary); font-size: .78rem; font-weight: 700; }
.ld-hub-hero h1 { font-size: clamp(1.6rem, 4vw, 2.35rem); margin: .75rem 0; }
.ld-hub-lead { color: var(--ld-muted); max-width: 40rem; margin: 0 auto .5rem; }
.ld-hub-hint { font-size: .85rem; color: var(--ld-muted); }
.ld-template-gallery { padding: 1rem 0 3rem; }
.ld-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.ld-template-card { background: var(--ld-card); border: 1px solid var(--ld-border); border-radius: var(--ld-radius); overflow: hidden; box-shadow: var(--ld-shadow); }
.ld-template-preview { display: block; height: 140px; text-decoration: none; }
.ld-preview-mock {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    color: #fff; font-weight: 700; text-align: center; padding: 1rem;
}
.ld-preview-icon { font-size: 1.75rem; }
.ld-preview-title { font-size: .72rem; opacity: .9; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-preview-01 { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.ld-preview-02 { background: linear-gradient(135deg, #ea580c, #f97316); }
.ld-preview-03 { background: linear-gradient(135deg, #15803d, #22c55e); }
.ld-preview-04 { background: linear-gradient(135deg, #0f172a, #334155); }
.ld-preview-05 { background: linear-gradient(135deg, #f8fafc, #cbd5e1); color: #0f172a; }
.ld-preview-06 { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.ld-preview-07 { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.ld-preview-08 { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.ld-preview-09 { background: linear-gradient(135deg, #ca8a04, #facc15); color: #422006; }
.ld-preview-10 { background: linear-gradient(135deg, #334155, #64748b); }
.ld-template-meta { padding: 1rem; }
.ld-template-meta h2 { margin: 0 0 .25rem; font-size: 1rem; }
.ld-template-num { color: var(--ld-muted); font-weight: 700; }
.ld-template-meta p { margin: 0 0 .75rem; font-size: .78rem; color: var(--ld-muted); text-transform: capitalize; }
.ld-template-biz { font-weight: 600; color: var(--ld-text) !important; text-transform: none !important; }

.ld-template-crosslinks { padding: 2rem 0 3rem; text-align: center; }
.ld-template-crosslinks h2 { margin: 0 0 .5rem; font-size: clamp(1.25rem, 3vw, 1.65rem); }
.ld-crosslinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .75rem;
    margin-top: 1.25rem;
    text-align: left;
}
.ld-crosslink-card {
    display: flex; flex-direction: column; gap: .2rem;
    padding: .85rem 1rem;
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    background: var(--ld-card);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ld-crosslink-card:hover { border-color: var(--ld-primary); box-shadow: var(--ld-shadow); transform: translateY(-2px); }
.ld-crosslink-num { font-size: .72rem; font-weight: 700; color: var(--ld-muted); }
.ld-crosslink-card strong { font-size: .88rem; }
.ld-crosslink-card span:last-child { font-size: .78rem; color: var(--ld-muted); }
.ld-crosslinks-grid--compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.ld-landing-crosslinks { padding: 2rem 0 1rem; border-top: 1px solid var(--ld-border); margin-top: 2rem; }
.ld-landing-crosslinks h3 { margin: 0 0 .35rem; font-size: 1.05rem; text-align: center; }
.ld-crosslinks-lead { text-align: center; color: var(--ld-muted); font-size: .85rem; margin: 0 0 1rem; }

/* Motion */
@keyframes ld-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(12px, -18px) scale(1.05); } }
@keyframes ld-pulse-ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes ld-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes ld-gradient-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes ld-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ld-mock-glow { 0%, 100% { box-shadow: 0 0 0 rgba(29, 78, 216, 0); } 50% { box-shadow: 0 0 28px rgba(29, 78, 216, .25); } }

.ld-reveal { opacity: 0; transform: translateY(20px); }
.ld-reveal--in { animation: ld-fade-up .7s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0s) forwards; }

@media (prefers-reduced-motion: reduce) {
    .ld-reveal { opacity: 1; transform: none; }
    .ld-orb, .ld-btn-pulse::after, .ld-sticky-admin-pulse { animation: none !important; }
}

/* Selling hub */
.ld-sell-hero { padding: 3.5rem 0 2.5rem; text-align: center; background: linear-gradient(180deg, #eff6ff 0%, var(--ld-bg) 70%); position: relative; overflow: hidden; }
.ld-sell-hero--fx { background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 40%, var(--ld-bg) 85%); }
.ld-hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ld-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: ld-float 14s ease-in-out infinite; }
.ld-orb-1 { width: 280px; height: 280px; background: #3b82f6; top: -80px; left: 10%; animation-delay: 0s; }
.ld-orb-2 { width: 220px; height: 220px; background: #10b981; top: 20%; right: 5%; animation-delay: -4s; }
.ld-orb-3 { width: 180px; height: 180px; background: #8b5cf6; bottom: -40px; left: 40%; animation-delay: -7s; }
.ld-sell-hero .ld-container { position: relative; z-index: 1; }
.ld-badge-glow { box-shadow: 0 0 24px rgba(29, 78, 216, .15); }
.ld-title-gradient {
    font-size: clamp(1.85rem, 5vw, 2.85rem);
    background: linear-gradient(120deg, #1e3a8a, #1d4ed8, #0ea5e9, #1e3a8a);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: ld-gradient-flow 6s ease infinite;
}
.ld-hub-sub { font-size: 1.05rem; color: var(--ld-text); max-width: 42rem; margin: 0 auto .75rem; font-weight: 600; }
.ld-lead-glow { font-size: 1.05rem; }
.ld-sell-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.5rem; }
.ld-btn-lg { padding: .85rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.ld-btn-pulse { position: relative; overflow: visible; }
.ld-btn-pulse::after {
    content: ''; position: absolute; inset: -4px; border-radius: inherit;
    border: 2px solid var(--ld-primary); animation: ld-pulse-ring 2s ease-out infinite; pointer-events: none;
}
.ld-btn-shine { position: relative; overflow: hidden; }
.ld-btn-shine::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%);
    transform: translateX(-100%); transition: transform .6s;
}
.ld-btn-shine:hover::before { transform: translateX(100%); }
.ld-demo-creds { font-size: .82rem; color: var(--ld-muted); margin-top: 1.25rem; }
.ld-creds-box {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border-radius: 10px; background: rgba(255,255,255,.8);
    border: 1px dashed var(--ld-border); backdrop-filter: blur(6px);
}
.ld-creds-arrow { color: var(--ld-primary); font-weight: 700; }

.ld-sticky-admin {
    position: fixed; bottom: 20px; right: 20px; z-index: 200;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.15rem; border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9); color: #fff;
    font-weight: 800; font-size: .88rem; text-decoration: none;
    box-shadow: 0 8px 32px rgba(29, 78, 216, .45);
    transform: translateY(120%); opacity: 0; transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s;
}
.ld-sticky-admin--show { transform: translateY(0); opacity: 1; }
.ld-sticky-admin:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(29, 78, 216, .5); }
.ld-sticky-admin-pulse {
    position: absolute; inset: -3px; border-radius: inherit; border: 2px solid #fff;
    animation: ld-pulse-ring 2.5s ease-out infinite; pointer-events: none;
}
.ld-header-cta { margin-right: 8px; box-shadow: 0 4px 14px rgba(29, 78, 216, .35); }

.ld-sell-stats { padding: 1rem 0 2rem; }
.ld-stats-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.ld-stat-pill {
    text-align: center; padding: 1rem 1.5rem; min-width: 120px;
    background: var(--ld-card); border: 1px solid var(--ld-border); border-radius: 14px;
    box-shadow: var(--ld-shadow); transition: transform .25s, box-shadow .25s;
}
.ld-stat-pill:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,23,42,.1); }
.ld-stat-pill strong { display: block; font-size: 1.75rem; color: var(--ld-primary); line-height: 1.1; }
.ld-stat-pill span { font-size: .78rem; color: var(--ld-muted); font-weight: 600; }

.ld-admin-showcase { padding: 3rem 0; background: #fff; border-block: 1px solid var(--ld-border); }
.ld-admin-showcase-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .ld-admin-showcase-grid { grid-template-columns: 1fr 1fr; } }
.ld-section-eyebrow { font-size: .78rem; font-weight: 800; color: var(--ld-primary); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; }
.ld-admin-showcase-copy h2 { margin: 0 0 .75rem; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.ld-admin-showcase-copy > p { color: var(--ld-muted); margin: 0 0 1.25rem; line-height: 1.6; }
.ld-fx-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ld-fx-list li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .65rem; font-size: .9rem; }
.ld-fx-list i { color: var(--ld-primary); margin-top: .15rem; }
.ld-admin-mock-window {
    border-radius: 14px; overflow: hidden; border: 1px solid var(--ld-border);
    box-shadow: 0 20px 50px rgba(15,23,42,.12); animation: ld-mock-glow 4s ease-in-out infinite;
}
.ld-admin-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0f172a; color: #94a3b8; font-size: 11px; }
.ld-admin-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.ld-admin-mock-bar span:first-child { background: #ef4444; }
.ld-admin-mock-bar span:nth-child(2) { background: #eab308; }
.ld-admin-mock-bar span:nth-child(3) { background: #22c55e; }
.ld-admin-mock-bar em { margin-left: auto; font-style: normal; }
.ld-admin-mock-body { display: flex; min-height: 220px; background: #f1f5f9; }
.ld-mock-sidebar { width: 28%; padding: 12px 8px; background: #fff; border-right: 1px solid var(--ld-border); }
.ld-mock-nav { height: 28px; border-radius: 6px; background: #e2e8f0; margin-bottom: 8px; }
.ld-mock-nav--on { background: linear-gradient(90deg, #10b981, #34d399); }
.ld-mock-nav--ai { background: linear-gradient(90deg, #8b5cf6, #a78bfa); animation: ld-shimmer 3s linear infinite; background-size: 200% 100%; }
.ld-mock-main { flex: 1; padding: 12px; }
.ld-mock-card { height: 72px; border-radius: 10px; background: linear-gradient(110deg, #e2e8f0 8%, #f8fafc 18%, #e2e8f0 33%); background-size: 200% 100%; animation: ld-shimmer 2.5s linear infinite; margin-bottom: 10px; }
.ld-mock-card--sm { height: 40px; width: 60%; }
.ld-mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ld-mock-tile { height: 48px; border-radius: 8px; background: #fff; border: 1px solid var(--ld-border); }
.ld-mock-caption { text-align: center; font-size: .75rem; color: var(--ld-muted); margin-top: .75rem; }
.ld-section-lead-center { text-align: center; color: var(--ld-muted); max-width: 36rem; margin: -.5rem auto 1.5rem; }
.ld-card-hover { transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s; }
.ld-card-hover:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(15,23,42,.12); }
.ld-preview-hover { transition: transform .35s; }
.ld-template-card:hover .ld-preview-hover { transform: scale(1.03); }
.ld-step-pulse { animation: ld-mock-glow 3s ease-in-out infinite; }
.ld-step-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; font-weight: 700; font-size: .88rem; }
.ld-prompt-glow { box-shadow: 0 0 0 1px #bbf7d0; }
.ld-sell-final--fx { position: relative; overflow: hidden; }
.ld-sell-final--fx::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.15), transparent 50%);
    pointer-events: none;
}
.ld-final-note { margin-top: 1rem; font-size: .82rem; opacity: .85; }
.ld-sell-features { padding: 2.5rem 0; }
.ld-sell-features h2, .ld-sell-steps h2, .ld-sell-final h2 { text-align: center; margin-bottom: 1.5rem; }
.ld-sell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.ld-sell-card { background: var(--ld-card); border: 1px solid var(--ld-border); border-radius: var(--ld-radius); padding: 1.25rem; box-shadow: var(--ld-shadow); }
.ld-sell-icon { width: 44px; height: 44px; border-radius: 10px; background: #eff6ff; color: var(--ld-primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: .75rem; }
.ld-sell-card h3 { margin: 0 0 .35rem; font-size: 1rem; }
.ld-sell-card p { margin: 0; font-size: .85rem; color: var(--ld-muted); }
.ld-sell-steps { padding: 2rem 0; background: #fff; border-block: 1px solid var(--ld-border); }
.ld-sell-steps-list { list-style: none; padding: 0; margin: 0; }
.ld-sell-steps-list li { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.ld-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--ld-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.ld-sell-prompt { margin-top: 1.5rem; padding: 1rem; background: #f0fdf4; border-radius: 10px; font-size: .88rem; color: #166534; }
.ld-hub-hero--compact { padding: 2rem 0 1rem; }
.ld-sell-final { padding: 3rem 0; text-align: center; background: linear-gradient(135deg, #1e40af, #0ea5e9); color: #fff; }
.ld-sell-final p { opacity: .9; max-width: 32rem; margin: 0 auto 1.25rem; }
.ld-sell-final .ld-btn-primary { background: #fff; color: var(--ld-primary); }

/* Ecosystem strip */
.ld-ecosystem { padding: 3rem 0; background: #0f172a; color: #e2e8f0; }
.ld-ecosystem--hub {
    margin: 0;
    border-radius: 0;
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
}
.ld-ecosystem--hub .ld-ecosystem-head { margin-bottom: 2.25rem; }
.ld-ecosystem-home-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 1.25rem;
}
.ld-ecosystem--hub .ld-btn-ghost {
    border-color: #475569;
    color: #e2e8f0;
    background: rgba(30, 41, 59, .6);
}
.ld-ecosystem--hub .ld-btn-ghost:hover {
    border-color: #38bdf8;
    color: #fff;
    background: #1e293b;
}
.ld-ecosystem-head { text-align: center; margin-bottom: 2rem; }
.ld-ecosystem-badge { display: inline-flex; gap: .4rem; padding: .35rem .75rem; border-radius: 99px; background: #1e293b; font-size: .75rem; font-weight: 700; }
.ld-ecosystem h2 { color: #fff; margin: .75rem 0 .35rem; }
.ld-ecosystem-head p { color: #94a3b8; max-width: 36rem; margin: 0 auto; }
.ld-ecosystem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.ld-ecosystem-card { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 1rem; }
.ld-ecosystem-icon { font-size: 1.25rem; color: #38bdf8; margin-bottom: .5rem; }
.ld-ecosystem-card h3 { margin: 0 0 .35rem; font-size: .95rem; color: #fff; }
.ld-ecosystem-card p { margin: 0 0 .75rem; font-size: .75rem; color: #94a3b8; line-height: 1.4; }
.ld-ecosystem-links { display: flex; gap: 6px; flex-wrap: wrap; }
.ld-ecosystem-join { text-align: center; margin-top: 1.5rem; }
.ld-ecosystem-join a { color: #38bdf8; font-weight: 700; }

/* Landing blocks */
.ld-promo-banner { background: linear-gradient(135deg, #eff6ff, #f0fdf4); text-align: center; }
.ld-promo-inner { padding: 2rem 0; }
.ld-promo-badge { display: inline-block; padding: .25rem .65rem; border-radius: 99px; background: var(--ld-primary); color: #fff; font-size: .72rem; font-weight: 700; margin-bottom: .5rem; }
.ld-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; }
.ld-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ld-partners-row { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; opacity: .85; }
.ld-partners-row img { max-height: 40px; width: auto; filter: grayscale(1); }

.ld-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .55rem 1rem; border-radius: 8px; font-weight: 700; font-size: .88rem;
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.ld-btn-primary { background: var(--ld-primary); color: #fff; }
.ld-btn-primary:hover { background: var(--ld-primary-hover); color: #fff; }
.ld-btn-ghost { background: transparent; border-color: var(--ld-border); color: var(--ld-text); }
.ld-btn-ghost:hover { border-color: var(--ld-primary); color: var(--ld-primary); }
.ld-btn-sm { padding: .4rem .75rem; font-size: .8rem; }
.ld-btn-block { width: 100%; }

.ld-footer, .ld-landing-footer {
    padding: 1.5rem 1rem; text-align: center; font-size: .82rem; color: var(--ld-muted);
    border-top: 1px solid var(--ld-border); background: #fff;
}
.ld-footer-links { margin-top: .35rem; }

/* Landing header */
.ld-landing-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--ld-header-bg, rgba(255,255,255,.92));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ld-border);
    padding-top: env(safe-area-inset-top, 0);
}
.ld-landing-header-inner {
    max-width: var(--ld-max); margin: 0 auto; padding: .65rem 1rem;
    display: flex; align-items: center; gap: .75rem; flex-wrap: nowrap;
    position: relative; z-index: 102;
}
.ld-landing-logo {
    display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--ld-text);
    flex: 1 1 auto; min-width: 0; text-decoration: none;
}
.ld-landing-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-landing-logo i { color: var(--ld-primary); flex-shrink: 0; }
.ld-landing-nav { display: none; gap: .15rem; margin-left: auto; }
.ld-landing-nav a {
    padding: .4rem .55rem; border-radius: 8px; font-weight: 600; font-size: .82rem;
    color: var(--ld-muted); text-decoration: none;
}
.ld-landing-nav a:hover { color: var(--ld-primary); background: var(--ld-primary-light, #eff6ff); }
.ld-landing-tools { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.ld-back-link {
    width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ld-border); border-radius: 8px; color: var(--ld-muted);
}
.ld-menu-btn {
    display: none; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center;
    border: 1px solid var(--ld-border); border-radius: 8px; background: #fff; cursor: pointer;
    color: var(--ld-text); flex-shrink: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ld-menu-btn[aria-expanded="true"] { background: var(--ld-primary-light, #eff6ff); border-color: var(--ld-primary); color: var(--ld-primary); }
.ld-mobile-nav {
    display: flex; flex-direction: column; padding: 0 1rem 1rem;
    border-top: 1px solid var(--ld-border); background: var(--ld-card);
    max-height: min(72vh, calc(100dvh - 3.5rem));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .12);
    position: relative; z-index: 101;
}
.ld-mobile-nav[hidden] { display: none !important; }
.ld-mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .65rem 0; margin-bottom: .15rem; position: sticky; top: 0; background: var(--ld-card); z-index: 1;
    border-bottom: 1px solid var(--ld-border);
}
.ld-mobile-nav-head span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ld-muted); }
.ld-mobile-nav-close {
    width: 2.25rem; height: 2.25rem; border: 1px solid var(--ld-border); border-radius: 8px;
    background: #fff; color: var(--ld-muted); cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center;
}
.ld-mobile-nav a {
    display: flex; align-items: center; gap: .55rem;
    padding: .8rem .15rem; min-height: 44px;
    font-weight: 600; font-size: .92rem; color: var(--ld-text);
    border-bottom: 1px solid var(--ld-border); text-decoration: none;
}
.ld-mobile-nav a:hover { color: var(--ld-primary); }
.ld-mobile-lang { padding-top: .35rem; border-top: 1px solid var(--ld-border); margin-top: .25rem; }
.ld-mobile-lang-label {
    display: block; padding: .5rem .15rem .25rem; font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em; color: var(--ld-muted);
}
.ld-mobile-lang a.is-active { color: var(--ld-primary); }
.ld-mobile-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .42);
    z-index: 100; opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.ld-mobile-backdrop[hidden] { display: block !important; visibility: hidden; }
.ld-mobile-backdrop.is-open { opacity: 1; pointer-events: auto; visibility: visible; }
body.ld-nav-open { overflow: hidden; }

/* Landing sections */
.ld-hero {
    padding: 2.5rem 0 2rem;
    background: var(--ld-hero-bg, linear-gradient(180deg, var(--ld-primary-light, #eff6ff), var(--ld-bg)));
    color: var(--ld-hero-text, var(--ld-text));
}
.ld-hero-badge {
    display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700;
    color: var(--ld-primary); margin-bottom: .75rem;
}
.ld-hero h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); line-height: 1.15; margin: 0 0 .75rem; }
.ld-hero-lead { font-size: 1.05rem; color: var(--ld-hero-muted, var(--ld-muted)); max-width: 36rem; margin: 0 0 1.25rem; }
.ld-hero-cta { display: flex; flex-wrap: wrap; gap: .65rem; }
.ld-hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.ld-hero--split .ld-hero-grid { grid-template-columns: 1fr; }
.ld-hero-visual { display: flex; justify-content: center; }
.ld-hero-card {
    width: min(220px, 100%); aspect-ratio: 1; border-radius: var(--ld-radius);
    background: var(--ld-card); box-shadow: var(--ld-shadow);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
    font-weight: 800; font-size: 1.5rem; color: var(--ld-primary);
}
.ld-stats-bar {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
    margin-top: 1.5rem; padding: 1rem; background: var(--ld-card); border-radius: var(--ld-radius);
    border: 1px solid var(--ld-border); box-shadow: var(--ld-shadow);
}
.ld-stat { text-align: center; }
.ld-stat strong { display: block; font-size: 1.35rem; color: var(--ld-primary); }
.ld-stat span { font-size: .72rem; color: var(--ld-muted); }

.ld-section { padding: 2.5rem 0; }
.ld-section--alt { background: var(--ld-section-alt, #fff); }
.ld-section--contact { background: var(--ld-contact-bg, var(--ld-primary-light, #eff6ff)); }
.ld-section h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 0 0 .5rem; text-align: center; }
.ld-section-lead { text-align: center; color: var(--ld-muted); max-width: 36rem; margin: 0 auto 1.5rem; }

.ld-course-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.ld-course-card {
    position: relative; background: var(--ld-card); border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius); padding: 1.25rem; box-shadow: var(--ld-shadow);
}
.ld-course-badge {
    position: absolute; top: .75rem; right: .75rem; font-size: .65rem; font-weight: 800;
    padding: .2rem .45rem; border-radius: 99px; background: var(--ld-primary); color: #fff;
}
.ld-course-icon {
    width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--ld-primary-light, #eff6ff);
    color: var(--ld-primary); display: flex; align-items: center; justify-content: center; margin-bottom: .75rem;
}
.ld-course-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.ld-course-card p { margin: 0 0 .75rem; font-size: .88rem; color: var(--ld-muted); }
.ld-course-price { margin-bottom: .75rem; font-size: .88rem; }
.ld-course-price strong { font-size: 1.25rem; color: var(--ld-primary); }

.ld-instructor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ld-instructor-card {
    background: var(--ld-card); border: 1px solid var(--ld-border); border-radius: var(--ld-radius);
    padding: 1rem; text-align: center;
}
.ld-avatar {
    width: 3rem; height: 3rem; margin: 0 auto .5rem; border-radius: 50%;
    background: var(--ld-primary); color: #fff; font-weight: 800;
    display: flex; align-items: center; justify-content: center; font-size: .85rem;
}
.ld-instructor-card h3 { margin: 0 0 .2rem; font-size: .95rem; }
.ld-instructor-role { margin: 0; font-size: .78rem; color: var(--ld-muted); }
.ld-instructor-years { margin: .25rem 0 0; font-size: .72rem; color: var(--ld-primary); font-weight: 600; }

.ld-faq-list { display: flex; flex-direction: column; gap: .5rem; }
.ld-faq-item {
    background: var(--ld-card); border: 1px solid var(--ld-border); border-radius: var(--ld-radius); padding: .75rem 1rem;
}
.ld-faq-item summary { cursor: pointer; font-weight: 700; }
.ld-faq-item p { margin: .5rem 0 0; color: var(--ld-muted); font-size: .9rem; }

.ld-contact-grid { display: grid; gap: 1.5rem; }
.ld-contact-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.ld-contact-list li { display: flex; gap: .65rem; margin-bottom: .65rem; font-size: .9rem; }
.ld-contact-list i { color: var(--ld-primary); width: 1rem; margin-top: .15rem; }
.ld-form {
    background: var(--ld-card); border: 1px solid var(--ld-border); border-radius: var(--ld-radius);
    padding: 1.25rem; box-shadow: var(--ld-shadow);
}
.ld-form label { display: block; margin-bottom: .75rem; font-size: .82rem; font-weight: 600; }
.ld-form input, .ld-form select {
    width: 100%; margin-top: .3rem; padding: .55rem .65rem; border: 1px solid var(--ld-border);
    border-radius: 8px; font: inherit;
}
.ld-btn-outline {
    background: transparent; color: var(--ld-primary); border: 1px solid var(--ld-primary);
}
.ld-btn-outline:hover { background: var(--ld-primary-light, rgba(59,130,246,.08)); color: var(--ld-primary); }

.ld-reviews-head {
    display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.25rem;
}
.ld-google-badge {
    display: flex; align-items: center; gap: .65rem;
    background: var(--ld-card); border: 1px solid var(--ld-border); border-radius: var(--ld-radius);
    padding: .75rem 1rem; box-shadow: var(--ld-shadow);
}
.ld-google-badge strong { font-size: 1.35rem; line-height: 1; display: block; }
.ld-google-badge span { display: block; font-size: .75rem; color: var(--ld-muted); margin-top: .15rem; }
.ld-stars { color: #fbbc04; font-size: .8rem; letter-spacing: .05em; }
.ld-stars i { margin-right: .1rem; }
.ld-reviews-grid {
    display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.ld-review-card {
    background: var(--ld-card); border: 1px solid var(--ld-border); border-radius: var(--ld-radius);
    padding: 1rem 1.1rem; box-shadow: var(--ld-shadow);
}
.ld-review-top {
    display: grid; grid-template-columns: auto 1fr auto; gap: .65rem; align-items: center;
    margin-bottom: .65rem;
}
.ld-review-avatar {
    width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--ld-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem;
}
.ld-review-date { display: block; font-size: .72rem; color: var(--ld-muted); font-weight: 500; }
.ld-review-card p { margin: 0; font-size: .88rem; color: var(--ld-muted); line-height: 1.55; }
.ld-reviews-cta { margin: 1.25rem 0 0; text-align: center; }

.ld-map-wrap { margin: 1rem 0; }
.ld-map-title { margin: 0 0 .5rem; font-size: .95rem; }
.ld-map-wrap iframe {
    width: 100%; height: 220px; border: 0; border-radius: var(--ld-radius);
    box-shadow: var(--ld-shadow);
}
.ld-map-link {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem;
    font-size: .82rem; font-weight: 600; color: var(--ld-primary); text-decoration: none;
}
.ld-map-link:hover { text-decoration: underline; }
.ld-contact-list a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.ld-hero-photo { width: 100%; max-width: 420px; border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); object-fit: cover; aspect-ratio: 4/3; }
.ld-features-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.ld-feature-card { background: var(--ld-card); border: 1px solid var(--ld-border); border-radius: var(--ld-radius); padding: 1rem; }
.ld-feature-icon { width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--ld-primary-light, #eff6ff); color: var(--ld-primary); display: flex; align-items: center; justify-content: center; margin-bottom: .5rem; }
.ld-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.ld-gallery-item { margin: 0; border-radius: var(--ld-radius); overflow: hidden; border: 1px solid var(--ld-border); }
.ld-gallery-item img { width: 100%; height: 140px; object-fit: cover; display: block; }
.ld-gallery-item figcaption { padding: .4rem .55rem; font-size: .72rem; color: var(--ld-muted); }
.ld-cta-banner { background: linear-gradient(135deg, var(--ld-primary), color-mix(in srgb, var(--ld-primary) 70%, #000)); color: #fff; }
.ld-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.ld-cta-banner h2, .ld-cta-banner p { color: #fff; }
.ld-btn-lg { padding: .75rem 1.25rem; font-size: 1rem; }
.ld-social-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: .75rem; }
.ld-social-links a { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--ld-muted); text-decoration: none; padding: .35rem .6rem; border: 1px solid var(--ld-border); border-radius: 999px; }
.ld-field-check { display: flex; align-items: flex-start; gap: .5rem; font-size: .78rem; font-weight: 500; }
.ld-field-check input { margin-top: .2rem; }
.ld-consent a { color: var(--ld-primary); }
.ld-form-call { text-align: center; margin: .5rem 0 0; font-size: .85rem; }
.ld-recaptcha { margin: .5rem 0; }

.ld-ai-widget { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90; }
.ld-ai-toggle { width: 3.25rem; height: 3.25rem; border-radius: 50%; border: none; background: var(--ld-primary); color: #fff; box-shadow: var(--ld-shadow); cursor: pointer; font-size: 1.2rem; }
.ld-ai-panel { position: absolute; right: 0; bottom: 4rem; width: min(320px, calc(100vw - 2rem)); background: var(--ld-card); border: 1px solid var(--ld-border); border-radius: 12px; box-shadow: var(--ld-shadow); overflow: hidden; }
.ld-ai-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .75rem; border-bottom: 1px solid var(--ld-border); }
.ld-ai-head button { background: none; border: none; cursor: pointer; color: var(--ld-muted); }
.ld-ai-log { max-height: 240px; overflow-y: auto; padding: .75rem; display: flex; flex-direction: column; gap: .5rem; font-size: .82rem; }
.ld-ai-msg--user { align-self: flex-end; background: var(--ld-primary-light, #eff6ff); padding: .45rem .6rem; border-radius: 10px 10px 2px 10px; max-width: 90%; }
.ld-ai-msg--bot { align-self: flex-start; background: #f1f5f9; padding: .45rem .6rem; border-radius: 10px 10px 10px 2px; max-width: 90%; }
.ld-ai-form { display: flex; gap: .35rem; padding: .5rem; border-top: 1px solid var(--ld-border); }
.ld-ai-form input { flex: 1; border: 1px solid var(--ld-border); border-radius: 8px; padding: .45rem .55rem; font: inherit; }
.ld-ai-form button { border: none; background: var(--ld-primary); color: #fff; border-radius: 8px; padding: 0 .65rem; cursor: pointer; }

.ld-form-note { margin: .65rem 0 0; font-size: .72rem; color: var(--ld-muted); text-align: center; }
.ld-form-success { padding: .75rem 1rem; border-radius: 10px; background: rgba(34,197,94,.12); color: #86efac; font-size: .9rem; margin-bottom: 1rem; }
.ld-form-error { padding: .75rem 1rem; border-radius: 10px; background: rgba(239,68,68,.12); color: #fca5a5; font-size: .9rem; margin-bottom: 1rem; }

@media (min-width: 640px) {
    .ld-stats-bar { grid-template-columns: repeat(4, 1fr); }
    .ld-course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
    .ld-reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .ld-features-grid { grid-template-columns: repeat(3, 1fr); }
    .ld-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
    .ld-landing-nav { display: flex; }
    .ld-hero--split .ld-hero-grid { grid-template-columns: 1.1fr .9fr; }
    .ld-instructor-grid { grid-template-columns: repeat(4, 1fr); }
    .ld-contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
    .ld-map-wrap iframe { height: 280px; }
    .ld-demo-strip-text { flex: 0 1 auto; }
    .ld-demo-strip { flex-wrap: nowrap; }
    .ld-hub-mobile-nav { display: none !important; }
    .ld-hub-menu-btn { display: none !important; }
}
@media (min-width: 900px) {
    .ld-course-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
    .ld-landing-header-inner,
    .ld-top-inner { padding-top: .55rem; padding-bottom: .55rem; }
    .ld-landing-header-inner { padding-left: max(.75rem, env(safe-area-inset-left)); padding-right: max(.75rem, env(safe-area-inset-right)); }
    .ld-menu-btn, .ld-hub-menu-btn { display: inline-flex; }
    .ld-lang-label { display: none; }
    .ld-lang-btn { width: 2.5rem; height: 2.5rem; padding: 0; justify-content: center; }
    .ld-lang-btn .fa-chevron-down { display: none; }
    .ld-header-cta .ld-btn-label { display: none; }
    .ld-header-cta { width: 2.5rem; height: 2.5rem; padding: 0; justify-content: center; margin-right: 0; }
    .ld-brand-text { max-width: 10.5rem; font-size: .84rem; }
    .ld-demo-strip-actions { display: none; }
    .ld-demo-strip { justify-content: flex-start; text-align: left; padding: .35rem max(.75rem, env(safe-area-inset-left)); }
    .ld-demo-strip-text { flex: 1 1 auto; font-size: .68rem; line-height: 1.35; }
    .ld-sticky-admin { left: max(1rem, env(safe-area-inset-left)); right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); justify-content: center; }
    .ld-sticky-admin span:not(.ld-sticky-admin-pulse) { font-size: .8rem; }
}
@media (max-width: 380px) {
    .ld-brand-text { max-width: 7.5rem; }
    .ld-top-actions .ld-lang-dd { display: none; }
}

.ld-page-wrap { padding: 2rem 0 3rem; }
.ld-page-inner { max-width: 720px; }
.ld-page-breadcrumb { font-size: .875rem; color: var(--ld-muted, #64748b); margin-bottom: 1.25rem; }
.ld-page-breadcrumb a { color: inherit; text-decoration: none; }
.ld-page-breadcrumb a:hover { text-decoration: underline; }
.ld-page-breadcrumb span { margin: 0 .4rem; }
.ld-page-article h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1rem; }
.ld-page-body { line-height: 1.7; color: var(--ld-text, #1e293b); }
.ld-page-back { margin-top: 2rem; font-size: .9rem; }
.ld-page-back a { color: var(--ld-primary, #2563eb); text-decoration: none; }
.ld-page-back a:hover { text-decoration: underline; }
.ld-footer-links { font-size: .85rem; flex-wrap: wrap; gap: .25rem; }