/* =====================================================================================
   dInventory public landing page - Views/Home/Index.cshtml + Views/Shared/_LandingLayout.cshtml.
   2026-10-14 rewrite (explicit user request: "landing page is broken and has color issues on
   mobile - make it more clean and simple"): fewer sections, one navy accent (the app's own
   primary), white / light-grey sections only, no floating chips, no sticky bar, no animations.
   Fonts: Hind Siliguri (Bangla) + Plus Jakarta Sans (English), loaded in _LandingLayout.
   Every class is prefixed ld- so nothing here leaks into the app's own pages.
   ===================================================================================== */
:root {
    --ld-primary: #1f4e79;
    --ld-primary-dark: #163a5c;
    --ld-primary-soft: #eaf0f6;
    --ld-ink: #101828;
    --ld-text: #344054;
    --ld-muted: #667085;
    --ld-border: #e4e7ec;
    --ld-soft: #f6f8fb;
    --ld-green: #12b76a;
    --ld-green-soft: #e7f8f0;
    --ld-red: #f04438;
    --ld-amber: #f79009;
    --ld-wa: #25d366;
    --ld-radius: 14px;
    --ld-shadow: 0 10px 30px -12px rgba(16, 24, 40, .18), 0 2px 6px -2px rgba(16, 24, 40, .06);
    --ld-font-bn: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
    --ld-font-en: "Plus Jakarta Sans", "Segoe UI", Roboto, system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

.ld-body {
    margin: 0;
    font-family: var(--ld-font-bn);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ld-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.ld-body h1, .ld-body h2, .ld-body h3 { color: var(--ld-ink); font-weight: 700; margin: 0; }
.ld-body p { margin: 0; }
.ld-body a { text-decoration: none; }
.ld-en { font-family: var(--ld-font-en); }

.ld-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ld-section { padding: 72px 0; }
.ld-section--soft { background: var(--ld-soft); }

.ld-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.ld-h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; }
.ld-sub { margin-top: .6rem; color: var(--ld-muted); font-size: 1.05rem; }

/* ---- buttons ---- */
.ld-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--ld-font-bn); font-weight: 600; font-size: 1rem; line-height: 1.2;
    padding: .78rem 1.35rem; border-radius: 10px; border: 1.5px solid transparent;
    transition: background-color .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.ld-btn--primary { background: var(--ld-primary); color: #fff; }
.ld-btn--primary:hover, .ld-btn--primary:focus-visible { background: var(--ld-primary-dark); color: #fff; }
.ld-btn--outline { background: #fff; color: var(--ld-primary); border-color: #c9d6e3; }
.ld-btn--outline:hover, .ld-btn--outline:focus-visible { border-color: var(--ld-primary); color: var(--ld-primary-dark); }
.ld-btn--white { background: #fff; color: var(--ld-ink); }
.ld-btn--white:hover, .ld-btn--white:focus-visible { background: #f1f4f8; color: var(--ld-ink); }
.ld-btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.ld-btn--line:hover, .ld-btn--line:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.ld-btn--sm { padding: .5rem .95rem; font-size: .92rem; }
.ld-btn .bi-whatsapp { color: var(--ld-wa); }
.ld-btn:focus-visible { outline: 3px solid rgba(31, 78, 121, .35); outline-offset: 2px; }

/* ---- nav ---- */
.ld-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ld-border);
}
.ld-nav-row { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.ld-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--ld-font-en); font-size: 1.2rem; font-weight: 700; color: var(--ld-ink); }
.ld-brand img { width: 30px; height: 30px; object-fit: contain; }
.ld-brand b { color: var(--ld-primary); font-weight: 800; }
.ld-nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0 auto 0 1rem; padding: 0; }
.ld-nav-links a { color: var(--ld-text); font-weight: 500; font-size: .98rem; }
.ld-nav-links a:hover { color: var(--ld-primary); }
.ld-nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.ld-nav-login { color: var(--ld-ink); font-weight: 600; font-family: var(--ld-font-en); }
.ld-nav-login:hover { color: var(--ld-primary); }
.ld-nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--ld-border); border-radius: 10px; background: #fff; color: var(--ld-ink); font-size: 1.3rem; }
.ld-nav-mobile { display: none; border-top: 1px solid var(--ld-border); background: #fff; padding: .5rem 20px 1rem; }
.ld-nav-mobile a { display: block; padding: .65rem 0; color: var(--ld-ink); font-weight: 500; border-bottom: 1px solid #f2f4f7; }
.ld-nav-mobile .ld-btn { display: flex; width: 100%; margin-top: .9rem; border-bottom: 0; color: #fff; }

/* ---- hero ---- */
.ld-hero { padding: 64px 0 56px; background: linear-gradient(180deg, #f4f7fb 0%, #fff 100%); }
.ld-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.ld-pill {
    display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.1rem;
    font-size: .9rem; font-weight: 600; color: var(--ld-primary);
    background: var(--ld-primary-soft); border-radius: 999px; padding: .3rem .85rem;
}
.ld-h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.22; letter-spacing: -.01em; }
.ld-h1 span { color: var(--ld-primary); }
.ld-hero-text { margin-top: 1.1rem; font-size: 1.12rem; color: var(--ld-muted); max-width: 34rem; }
.ld-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.ld-checks { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1.4rem 0 0; padding: 0; list-style: none; font-size: .95rem; color: var(--ld-text); }
.ld-checks li { display: inline-flex; align-items: center; gap: .4rem; }
.ld-checks .bi { color: var(--ld-green); }

/* ---- dashboard mockup (Views/Shared/_LandingDashboardMockup.cshtml, hero variant) ---- */
.ld-mock { background: #fff; border: 1px solid var(--ld-border); border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); overflow: hidden; font-family: var(--ld-font-en); }
.ld-mock-bar { display: flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border-bottom: 1px solid var(--ld-border); background: #fbfcfd; }
.ld-mock-bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ld-mock-url { flex: 1; margin-left: .4rem; height: 22px; border-radius: 6px; background: #eef1f5; font-size: .68rem; color: var(--ld-muted); display: flex; align-items: center; padding: 0 .6rem; }
.ld-mock-body { display: grid; grid-template-columns: 120px 1fr; }
.ld-mock-side { background: #1c2b3a; color: #b9c6d3; padding: .75rem .55rem; font-size: .72rem; }
.ld-mock-logo { color: #fff; font-weight: 800; font-size: .85rem; padding: .15rem .45rem .75rem; display: flex; align-items: center; gap: .35rem; }
.ld-mock-logo i { color: #7fb3e6; }
.ld-mock-nav { padding: .34rem .5rem; border-radius: 6px; display: flex; align-items: center; gap: .4rem; margin-bottom: 2px; }
.ld-mock-nav.active { background: rgba(255, 255, 255, .1); color: #fff; }
.ld-mock-main { padding: .85rem; background: #f6f8fb; min-width: 0; }
.ld-mock-title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; }
.ld-mock-title b { font-size: .85rem; color: var(--ld-ink); }
.ld-mock-title span { font-size: .66rem; color: var(--ld-muted); background: #fff; border: 1px solid var(--ld-border); border-radius: 6px; padding: .15rem .45rem; font-family: var(--ld-font-bn); white-space: nowrap; }
.ld-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.ld-kpi { background: #fff; border: 1px solid var(--ld-border); border-radius: 9px; padding: .5rem .6rem; position: relative; overflow: hidden; min-width: 0; }
.ld-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--k, var(--ld-primary)); }
.ld-kpi small { display: block; font-size: .62rem; color: var(--ld-muted); font-family: var(--ld-font-bn); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-kpi b { display: block; font-size: .84rem; color: var(--ld-ink); margin-top: .1rem; white-space: nowrap; }
.ld-kpi em { font-style: normal; font-size: .6rem; color: var(--ld-green); }
.ld-kpi em.down { color: var(--ld-red); }
.ld-kpi--green { --k: var(--ld-green); }
.ld-kpi--red { --k: var(--ld-red); }
.ld-kpi--amber { --k: var(--ld-amber); }
.ld-kpi--navy { --k: var(--ld-primary); }
.ld-mock-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem; }
.ld-mock-card { background: #fff; border: 1px solid var(--ld-border); border-radius: 9px; padding: .55rem .65rem; min-width: 0; }
.ld-mock-card h6 { font-size: .68rem; font-weight: 700; color: var(--ld-text); margin: 0 0 .4rem; display: flex; justify-content: space-between; align-items: center; }
.ld-mock-card h6 span { font-weight: 500; color: var(--ld-muted); font-size: .6rem; }
.ld-mock-chart { display: flex; flex-direction: column; }
.ld-mock-chart svg { width: 100%; flex: 1; min-height: 86px; display: block; }
.ld-mock-table { width: 100%; border-collapse: collapse; font-size: .6rem; }
.ld-mock-table th { text-align: left; color: var(--ld-muted); font-weight: 600; padding: .12rem .15rem; border-bottom: 1px solid var(--ld-border); }
.ld-mock-table td { padding: .2rem .15rem; border-bottom: 1px solid #f1f3f6; color: var(--ld-text); white-space: nowrap; }
.ld-mock-table .r { text-align: right; }
.ld-mock-table .paid { color: var(--ld-green); font-weight: 600; }
.ld-mock-table .due { color: var(--ld-red); font-weight: 600; }
.ld-low div { display: flex; justify-content: space-between; gap: .5rem; font-size: .62rem; padding: .18rem 0; border-bottom: 1px dashed #eef1f5; }
.ld-low div:last-child { border-bottom: 0; }
.ld-low b { color: var(--ld-red); font-weight: 700; }

/* ---- customers / proof ---- */
.ld-proof { padding: 40px 0; border-bottom: 1px solid var(--ld-border); }
.ld-proof-title { text-align: center; color: var(--ld-muted); font-size: .98rem; margin-bottom: 1.25rem; }
.ld-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ld-logo { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem .5rem .5rem; border: 1px solid var(--ld-border); border-radius: 12px; background: #fff; }
.ld-logo img { width: 40px; height: 40px; object-fit: cover; border-radius: 9px; }
.ld-logo b { display: block; font-size: .9rem; color: var(--ld-ink); line-height: 1.2; }
.ld-logo small { display: block; font-size: .76rem; color: var(--ld-muted); line-height: 1.2; }
.ld-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.ld-stat { text-align: center; padding: .9rem .5rem; background: var(--ld-soft); border-radius: 12px; }
.ld-stat b { display: block; font-family: var(--ld-font-en); font-size: 1.5rem; color: var(--ld-primary); line-height: 1.2; }
.ld-stat span { font-size: .9rem; color: var(--ld-muted); }

/* ---- features ---- */
.ld-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ld-feature { background: #fff; border: 1px solid var(--ld-border); border-radius: var(--ld-radius); padding: 1.4rem; }
.ld-feature-icon { width: 44px; height: 44px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--ld-primary-soft); color: var(--ld-primary); font-size: 1.25rem; margin-bottom: .9rem; }
.ld-feature h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.ld-feature h3 .ld-en { font-weight: 700; }
.ld-feature p { color: var(--ld-muted); font-size: .97rem; }

/* ---- business types ---- */
.ld-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; padding: 0; list-style: none; }
.ld-types li { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--ld-border); font-weight: 500; color: var(--ld-ink); }
.ld-types .bi { color: var(--ld-primary); }

/* ---- testimonials ---- */
.ld-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ld-quote { background: #fff; border: 1px solid var(--ld-border); border-radius: var(--ld-radius); padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.ld-quote p { color: var(--ld-text); }
.ld-stars { color: #f5a524; font-size: .85rem; letter-spacing: 1px; }
.ld-quote-by { display: flex; align-items: center; gap: .65rem; margin-top: auto; }
.ld-av { width: 38px; height: 38px; border-radius: 50%; background: var(--ld-primary-soft); color: var(--ld-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--ld-font-en); }
.ld-quote-by b { display: block; color: var(--ld-ink); font-size: .95rem; line-height: 1.2; }
.ld-quote-by small { color: var(--ld-muted); font-size: .82rem; }

/* ---- steps ---- */
.ld-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: ld-step; }
.ld-step { position: relative; padding: 1.4rem 1.4rem 1.4rem 4.2rem; background: #fff; border: 1px solid var(--ld-border); border-radius: var(--ld-radius); }
.ld-step::before {
    counter-increment: ld-step; content: counter(ld-step);
    position: absolute; left: 1.4rem; top: 1.4rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
    background: var(--ld-primary); color: #fff; font-family: var(--ld-font-en); font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.ld-step h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.ld-step p { color: var(--ld-muted); font-size: .95rem; }

/* ---- final call to action ---- */
.ld-cta { background: var(--ld-primary); color: #fff; border-radius: 20px; padding: 48px 40px; text-align: center; }
.ld-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3; }
.ld-cta p { color: #d6e2ee; margin-top: .6rem; font-size: 1.05rem; }
.ld-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.6rem; }
.ld-cta small { display: block; margin-top: 1.1rem; color: #b9cde0; font-size: .9rem; }
.ld-cta small a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---- admin "home" content page ---- */
.ld-content { padding: 48px 0; }

/* ---- footer ---- */
.ld-footer { border-top: 1px solid var(--ld-border); padding: 28px 0; font-size: .93rem; color: var(--ld-muted); }
.ld-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.ld-footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.ld-footer-links a { color: var(--ld-text); font-weight: 500; }
.ld-footer-links a:hover { color: var(--ld-primary); }
.ld-footer-links .bi { margin-right: .3rem; }
.ld-footer-links .bi-whatsapp { color: var(--ld-wa); }

/* ---- responsive ---- */
@media (max-width: 991.98px) {
    .ld-nav-links { display: none; }
    .ld-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .ld-hero-copy { text-align: center; }
    .ld-hero-text { margin-left: auto; margin-right: auto; }
    .ld-hero-cta, .ld-checks { justify-content: center; }
    .ld-features { grid-template-columns: repeat(2, 1fr); }
    .ld-quotes, .ld-steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .ld-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .ld-nav-cta { display: none; }
    .ld-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .ld-nav.open .ld-nav-mobile { display: block; }
    .ld-section { padding: 52px 0; }
    .ld-hero { padding: 40px 0 44px; }
    .ld-head { margin-bottom: 28px; }
    .ld-mock-body { grid-template-columns: 1fr; }
    .ld-mock-side { display: none; }
    .ld-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ld-mock-row { grid-template-columns: 1fr; }
    .ld-mock-row .ld-mock-card:not(.ld-mock-chart) { display: none; }
    .ld-cta { padding: 36px 20px; border-radius: 16px; }
}

@media (max-width: 575.98px) {
    .ld-container { padding: 0 16px; }
    .ld-hero-cta .ld-btn, .ld-cta-actions .ld-btn { width: 100%; }
    .ld-features { grid-template-columns: 1fr; gap: 12px; }
    .ld-feature { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; padding: 1rem; }
    .ld-feature-icon { grid-row: span 2; margin-bottom: 0; width: 40px; height: 40px; font-size: 1.1rem; }
    .ld-feature h3 { font-size: 1.02rem; margin-bottom: .1rem; }
    .ld-feature p { font-size: .93rem; }
    .ld-logo { flex: 1 1 calc(50% - 7px); padding-right: .5rem; min-width: 0; }
    .ld-logo b, .ld-logo small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ld-logo > div { min-width: 0; }
    .ld-step { padding: 1.2rem 1.2rem 1.2rem 3.8rem; }
    .ld-step::before { left: 1.1rem; top: 1.2rem; }
    .ld-footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
