/* Public website. Colors come from theme.css variables only. */
body.ws { background: var(--dw-body-bg); font-size: 15px; }
.ws a { text-decoration: none; }
.ws-container { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.text-muted-2 { color: var(--dw-muted) !important; }
.theme-dark-hide { } [data-bs-theme="dark"] .theme-dark-hide { display: none; }
[data-bs-theme="light"] .theme-light-hide, :root:not([data-bs-theme="dark"]) .theme-light-hide { display: none; }

/* ---------- nav ---------- */
.ws-nav { position: sticky; top: 0; z-index: 1030; background: var(--dw-card-bg); border-bottom: 1px solid var(--dw-card-border); transition: box-shadow .2s; }
.ws-nav.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.ws-nav-inner { display: flex; align-items: center; gap: 1rem; height: 66px; }
.ws-brand { font-size: 1.3rem; color: var(--bs-body-color); white-space: nowrap; }
.ws-brand i { color: var(--dw-primary); }
.ws-brand b { color: var(--dw-primary); }
.ws-menu { display: flex; align-items: center; gap: .1rem; flex: 1; }
.ws-link { display: inline-flex; align-items: center; gap: .25rem; padding: .5rem .6rem; color: var(--bs-body-color); font-weight: 500; font-size: .92rem; border-radius: 6px; white-space: nowrap; }
.ws-link .bi-chevron-down { font-size: .65rem; opacity: .6; }
.ws-link:hover, .ws-item:hover > .ws-link { color: var(--dw-primary); background: rgba(var(--dw-primary-rgb), .06); }
.ws-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.ws-theme { color: var(--bs-body-color); }
.ws-item { position: relative; }
.ws-burger { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; color: var(--bs-body-color); }

.ws-mega, .ws-drop { position: absolute; top: 100%; left: 0; background: var(--dw-card-bg); border: 1px solid var(--dw-card-border); border-radius: 12px;
    box-shadow: 0 18px 48px rgba(16,24,40,.14); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; z-index: 10; }
.ws-item:hover > .ws-mega, .ws-item:hover > .ws-drop, .ws-item:focus-within > .ws-mega, .ws-item:focus-within > .ws-drop { opacity: 1; visibility: visible; transform: none; }
.ws-mega { width: 820px; display: grid; grid-template-columns: 1fr 1fr; padding: .75rem; gap: .75rem; }
.ws-mega-entry, .ws-drop a { display: flex; gap: .75rem; padding: .6rem .7rem; border-radius: 8px; color: var(--bs-body-color); }
.ws-mega-entry i:first-child, .ws-drop a > i { font-size: 1.25rem; color: var(--dw-primary); background: rgba(var(--dw-primary-rgb), .1); width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 8px; }
.ws-mega-entry b, .ws-drop b { display: block; font-size: .9rem; font-weight: 600; }
.ws-mega-entry small, .ws-drop small { display: block; color: var(--dw-muted); font-size: .78rem; line-height: 1.35; }
.ws-mega-entry:hover, .ws-mega-entry.active, .ws-drop a:hover { background: rgba(var(--dw-primary-rgb), .07); }
.ws-soon { font-style: normal; font-size: .65rem; font-weight: 600; background: rgba(var(--dw-primary-rgb), .12); color: var(--dw-primary); padding: 1px 6px; border-radius: 10px; margin-left: 6px; vertical-align: 2px; }
.ws-mega-preview { background: rgba(var(--dw-primary-rgb), .05); border-radius: 10px; padding: 1.1rem; position: relative; }
.ws-pv { display: none; animation: wsFade .25s ease; }
.ws-pv.active { display: block; }
.ws-pv-title { font-weight: 700; font-size: 1rem; margin-bottom: .4rem; } .ws-pv-title i { color: var(--dw-primary); }
.ws-pv p { font-size: .84rem; color: var(--dw-muted); margin-bottom: .6rem; }
.ws-pv ul { list-style: none; padding: 0; font-size: .84rem; margin-bottom: .6rem; } .ws-pv li i { color: var(--dw-success); }
.ws-pv-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: .6rem; }
.ws-pv-chips span { font-size: .72rem; border: 1px solid var(--dw-card-border); background: var(--dw-card-bg); border-radius: 12px; padding: 2px 8px; }
.ws-more { font-weight: 600; font-size: .85rem; }
.ws-drop { width: 360px; padding: .5rem; }
.ws-lock { font-size: .7rem; color: var(--dw-muted); margin-left: 4px; }
@keyframes wsFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 1199.98px) {
    .ws-burger { display: block; }
    .ws-menu { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--dw-card-bg); flex-direction: column; align-items: stretch; padding: 1rem; border-bottom: 1px solid var(--dw-card-border); max-height: calc(100vh - 66px); overflow: auto; }
    .ws-menu-open .ws-menu { display: flex; }
    .ws-mega, .ws-drop { position: static; width: auto; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; grid-template-columns: 1fr; }
    .ws-item.open > .ws-mega, .ws-item.open > .ws-drop { display: grid; }
    .ws-mega-preview { display: none; }
    .ws-actions { margin: .5rem 0 0; }
}

/* ---------- sections ---------- */
.ws-section { padding: 5rem 0; }
.ws-section.alt { background: var(--dw-card-bg); border-top: 1px solid var(--dw-card-border); border-bottom: 1px solid var(--dw-card-border); }
.ws-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dw-primary); background: rgba(var(--dw-primary-rgb), .1); padding: 4px 10px; border-radius: 20px; margin-bottom: .8rem; }
.ws-h2 { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .75rem; }
.ws-lead { font-size: 1.08rem; color: var(--dw-muted); max-width: 720px; }
.ws-center { text-align: center; } .ws-center .ws-lead { margin-left: auto; margin-right: auto; }
.ws-card { background: var(--dw-card-bg); border: 1px solid var(--dw-card-border); border-radius: 14px; padding: 1.5rem; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.ws-card { color: inherit; display: block; }
.ws-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16,24,40,.08); border-color: rgba(var(--dw-primary-rgb), .35); }
.ws-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; color: var(--dw-primary); background: rgba(var(--dw-primary-rgb), .1); margin-bottom: 1rem; }
.ws-card h3 { font-size: 1.08rem; font-weight: 650; margin-bottom: .4rem; }
.ws-card p { color: var(--dw-muted); font-size: .92rem; margin-bottom: 0; }
.ws-metric { font-size: 2rem; font-weight: 800; color: var(--dw-primary); line-height: 1.1; }
.ws-metric-label { font-size: .85rem; color: var(--dw-muted); }
.ws-check { list-style: none; padding: 0; } .ws-check li { padding: .3rem 0 .3rem 1.6rem; position: relative; }
.ws-check li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: 0; color: var(--dw-success); font-weight: 700; }
.ws-chip { display: inline-block; font-size: .8rem; border: 1px solid var(--dw-card-border); background: var(--dw-card-bg); border-radius: 20px; padding: 4px 12px; margin: 0 6px 6px 0; }
.ws-badge-soon { font-size: .72rem; font-weight: 700; background: var(--dw-warning); color: #3a2c00; border-radius: 20px; padding: 2px 10px; }

/* page hero (inner pages) */
.ws-page-hero { background: var(--dw-band-bg); color: #fff; padding: 4rem 0 3.5rem; position: relative; overflow: hidden; }
.ws-page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.14), transparent 40%), radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 35%); pointer-events: none; }
.ws-page-hero h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; }
.ws-page-hero p { font-size: 1.12rem; opacity: .9; max-width: 720px; }
.ws-page-hero .ws-eyebrow { background: rgba(255,255,255,.18); color: #fff; }
.ws-crumbs { font-size: .82rem; opacity: .8; margin-bottom: .8rem; } .ws-crumbs a { color: #fff; }

/* ---------- home hero ---------- */
.ws-hero { padding: 4.5rem 0 4rem; background: linear-gradient(180deg, rgba(var(--dw-primary-rgb), .08), transparent 70%); overflow: hidden; }
.ws-hero h1 { font-size: 3.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.ws-hero h1 span { color: var(--dw-primary); }
.ws-hero .ws-lead { font-size: 1.15rem; }
.ws-trust { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .85rem; color: var(--dw-muted); margin-top: 1.4rem; }
.ws-trust i { color: var(--dw-success); }

/* animated product mock */
.hero-anim { position: relative; background: var(--dw-card-bg); border: 1px solid var(--dw-card-border); border-radius: 16px; box-shadow: 0 30px 70px rgba(16,24,40,.16); overflow: hidden; }
.ha-bar { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; border-bottom: 1px solid var(--dw-card-border); background: var(--dw-table-head); font-size: .78rem; color: var(--dw-muted); }
.ha-bar span.d { width: 10px; height: 10px; border-radius: 50%; background: var(--dw-card-border); }
.ha-bar span.d:nth-child(1) { background: #f44236; } .ha-bar span.d:nth-child(2) { background: #f4c22b; } .ha-bar span.d:nth-child(3) { background: #2ca87f; }
.ha-body { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 1rem; min-height: 380px; }
.ha-pdf { position: relative; background: var(--dw-pdf-bg); border-radius: 10px; padding: .6rem; overflow: hidden; }
.ha-page { background: var(--dw-card-bg); border-radius: 4px; height: 44px; margin-bottom: 6px; position: relative; padding: 6px; transition: box-shadow .3s; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ha-page::before, .ha-page::after { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--dw-card-border); margin-bottom: 5px; width: 80%; }
.ha-page::after { width: 55%; }
.ha-page.done { box-shadow: inset 3px 0 0 var(--dw-primary), 0 1px 2px rgba(0,0,0,.08); }
.ha-scan { position: absolute; left: 0; right: 0; height: 36px; top: -40px; background: linear-gradient(180deg, transparent, rgba(var(--dw-primary-rgb), .35), transparent); }
.ha-scan.run { animation: haScan 1.6s linear infinite; }
@keyframes haScan { from { top: -40px; } to { top: 100%; } }
.ha-right { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.ha-table { border: 1px solid var(--dw-card-border); border-radius: 10px; overflow: hidden; font-size: .78rem; }
.ha-th, .ha-row { display: grid; grid-template-columns: 1fr 64px 50px; gap: 6px; padding: .38rem .6rem; align-items: center; }
.ha-th { background: var(--dw-table-head); font-weight: 600; color: var(--dw-muted); }
.ha-row { opacity: 0; transform: translateX(14px); transition: all .35s ease; border-top: 1px solid var(--dw-card-border); }
.ha-row.show { opacity: 1; transform: none; }
.ha-row.active { background: var(--dw-row-active); }
.ha-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-conf { font-size: .7rem; font-weight: 700; color: var(--dw-success); background: rgba(44,168,127,.12); border-radius: 10px; text-align: center; padding: 1px 0; }
.ha-conf.low { color: #b88a00; background: rgba(244,194,43,.18); }
.ha-json { font-family: Consolas, monospace; font-size: .76rem; background: var(--dw-code-bg); border: 1px solid var(--dw-card-border); border-radius: 10px; padding: .6rem .75rem; opacity: 0; transform: translateY(10px); transition: all .35s; }
.ha-json.show { opacity: 1; transform: none; }
.ha-field { opacity: 0; transition: opacity .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-field.show { opacity: 1; }
.ha-field .k { color: var(--dw-primary); } .ha-field .v { color: var(--dw-success); }
.ha-status { display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-top: 1px solid var(--dw-card-border); font-size: .8rem; color: var(--dw-muted); }
.ha-status .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--dw-primary); animation: haPulse 1.2s infinite; }
@keyframes haPulse { 50% { opacity: .25; } }
.ha-float { position: absolute; background: var(--dw-card-bg); border: 1px solid var(--dw-card-border); border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.14); padding: .5rem .75rem; font-size: .78rem; animation: haFloat 4s ease-in-out infinite; }
.ha-float i { color: var(--dw-success); }
@keyframes haFloat { 50% { transform: translateY(-8px); } }

/* logos / industries strip */
.ws-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.8rem; color: var(--dw-muted); font-weight: 600; }
.ws-strip a { color: var(--dw-muted); } .ws-strip a:hover { color: var(--dw-primary); } .ws-strip i { margin-right: .35rem; }

/* steps */
.ws-steps { counter-reset: s; }
.ws-step { position: relative; padding-left: 3.2rem; margin-bottom: 1.4rem; }
.ws-step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--dw-primary); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* image placeholders */
.ph { position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, rgba(var(--dw-primary-rgb), .16), rgba(var(--dw-primary-rgb), .04)); border: 1px solid var(--dw-card-border); aspect-ratio: 16 / 10; }
.ph::before { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--dw-primary); font-weight: 600; font-size: .85rem; opacity: .75; }
.ph::after { content: "\F42A"; font-family: bootstrap-icons; position: absolute; top: 38%; left: 50%; transform: translate(-50%, -100%); font-size: 2rem; color: var(--dw-primary); opacity: .35; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph img.ph-empty { opacity: 0; }
.ph.ph-loaded::before, .ph.ph-loaded::after { display: none; }
.ph.tall { aspect-ratio: 4 / 3; } .ph.wide { aspect-ratio: 21 / 9; } .ph.sq { aspect-ratio: 1; }

/* app mockups */
.mock { background: var(--dw-card-bg); border: 1px solid var(--dw-card-border); border-radius: 14px; box-shadow: 0 20px 50px rgba(16,24,40,.12); overflow: hidden; font-size: .8rem; }
.mock-bar { padding: .5rem .8rem; background: var(--dw-table-head); border-bottom: 1px solid var(--dw-card-border); color: var(--dw-muted); display: flex; gap: 6px; align-items: center; }
.mock-bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--dw-card-border); }
.mock table { width: 100%; } .mock td, .mock th { padding: .4rem .7rem; border-top: 1px solid var(--dw-card-border); }
.mock th { color: var(--dw-muted); font-weight: 600; background: var(--dw-table-head); border-top: 0; }
.mock pre { margin: 0; padding: .8rem; background: var(--dw-code-bg); font-size: .76rem; }

/* pricing */
.price-card { border-radius: 16px; padding: 2rem; background: var(--dw-card-bg); border: 1px solid var(--dw-card-border); text-align: center; height: 100%; }
.price-card .amt { font-size: 2.8rem; font-weight: 800; color: var(--dw-primary); }
.price-card.featured { border: 2px solid var(--dw-primary); box-shadow: 0 20px 50px rgba(var(--dw-primary-rgb), .18); }

/* blog */
.post-card .ph { border-radius: 12px 12px 0 0; border: 0; }
.post-card { padding: 0; overflow: hidden; }
.post-card .pc-body { padding: 1.2rem 1.3rem 1.4rem; }
.post-meta { font-size: .78rem; color: var(--dw-muted); }
.article { font-size: 1.05rem; line-height: 1.75; }
.article h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .8rem; }
.article h3 { font-size: 1.2rem; font-weight: 650; margin: 1.5rem 0 .6rem; }
.article li { margin-bottom: .35rem; }
.article table { font-size: .92rem; margin: 1.2rem 0 1.6rem; border: 1px solid var(--dw-card-border); }
.article th { background: var(--dw-table-head); font-weight: 600; }
.article blockquote { border-left: 4px solid var(--dw-primary); background: rgba(var(--dw-primary-rgb), .06); padding: .9rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.4rem 0; font-style: italic; }
.article blockquote p:last-child { margin-bottom: 0; }
.article a { font-weight: 500; }
.toc a { display: block; padding: .25rem 0; color: var(--dw-muted); font-size: .88rem; } .toc a:hover { color: var(--dw-primary); }

/* CTA band + footer */
.ws-cta-band { background: var(--dw-band-bg); color: #fff; padding: 3rem 0; }
.ws-cta-band h2 { font-size: 1.7rem; font-weight: 700; }
.ws-footer { background: var(--dw-card-bg); border-top: 1px solid var(--dw-card-border); padding: 3.5rem 0 1.5rem; font-size: .88rem; }
.ws-footer h6 { font-weight: 700; margin-bottom: .8rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.ws-footer a { display: block; color: var(--dw-muted); padding: .18rem 0; }
.ws-footer a:hover { color: var(--dw-primary); }
.ws-footer p { color: var(--dw-muted); }
.ws-foot-bottom { border-top: 1px solid var(--dw-card-border); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: var(--dw-muted); font-size: .82rem; }
.ws-foot-bottom a { display: inline; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .ha-scan.run, .ha-float { animation: none; } }

@media (max-width: 991.98px) {
    .ws-hero h1 { font-size: 2.3rem; } .ws-page-hero h1 { font-size: 2rem; } .ws-h2 { font-size: 1.7rem; }
    .ws-section { padding: 3.5rem 0; }
    .ha-body { grid-template-columns: 100px 1fr; }
}
