/* Public home and sign-in page (UIX-01): product overview, screenshots and the sign-in card. */
.dv-home {
    --dv-home-hero-a: #0b3f6b;
    --dv-home-hero-b: #0f6cbd;
    --dv-home-hero-c: #2886de;
    background: var(--dv-canvas);
    color: var(--bs-body-color);
    scroll-behavior: smooth;
}

.dv-home h2 { font-weight: 650; letter-spacing: -.01em; }
.dv-home h3 { font-size: 1.05rem; font-weight: 650; margin: .75rem 0 .35rem; }

/* ---------- top bar ---------- */
.dv-home-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .75rem clamp(1rem, 4vw, 3.5rem);
    background: rgba(11, 63, 107, .92);
    backdrop-filter: blur(8px);
    color: #fff;
}

.dv-home-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 650; font-size: 1.1rem; text-decoration: none; }
.dv-home-brand img { background: #fff; border-radius: 7px; padding: 3px; }
.dv-home-brand:hover { color: #fff; }
.dv-home-nav nav { display: flex; gap: 1.25rem; margin-left: auto; }
.dv-home-nav nav + .dv-home-try { margin-left: 0; }
.dv-home-nav nav a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .95rem; }
.dv-home-nav nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- hero with the sign-in card ---------- */
.dv-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3.5rem) 7rem;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(255, 255, 255, .14), transparent 60%),
        linear-gradient(135deg, var(--dv-home-hero-a) 0%, var(--dv-home-hero-b) 60%, var(--dv-home-hero-c) 100%);
    color: #fff;
}

.dv-home-eyebrow { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .85rem; font-weight: 600; }
.dv-home-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 750; line-height: 1.05; letter-spacing: -.02em; margin: 1.1rem 0 1rem; }
.dv-home-lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .88); max-width: 40rem; }

.dv-home-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.5rem 0 2rem; list-style: none; }
.dv-home-chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .95rem; }

.dv-home-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; max-width: 44rem; }
.dv-home-facts div { border-left: 3px solid rgba(255, 255, 255, .45); padding-left: .75rem; }
.dv-home-facts dt { font-weight: 650; }
.dv-home-facts dd { margin: .2rem 0 0; font-size: .88rem; color: rgba(255, 255, 255, .8); }

.dv-home-signin {
    scroll-margin-top: 5rem;
    background: var(--dv-surface);
    color: var(--bs-body-color);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.dv-home-sso { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .6rem 1rem; font-weight: 600; }
.dv-home-sso .bi { font-size: 1.1rem; }

/* ---------- product screenshot under the hero ---------- */
.dv-home-showcase { padding: 0 clamp(1rem, 4vw, 3.5rem); margin-top: -5rem; }
.dv-home-frame {
    max-width: 72rem;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dv-surface);
    box-shadow: 0 30px 70px rgba(15, 40, 70, .28);
    border: 1px solid rgba(0, 0, 0, .08);
}
.dv-home-frame-bar { display: flex; gap: 6px; padding: .55rem .8rem; background: #e9eef4; }
.dv-home-frame-bar span { width: 11px; height: 11px; border-radius: 50%; background: #f25f57; }
.dv-home-frame-bar span:nth-child(2) { background: #f5bd2f; }
.dv-home-frame-bar span:nth-child(3) { background: #2ac840; }
.dv-home-frame img { display: block; width: 100%; height: auto; }

/* ---------- sections ---------- */
.dv-home-section { padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 3.5rem); scroll-margin-top: 3.5rem; }
.dv-home-alt { background: var(--dv-surface); }
.dv-home-heading { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.dv-home-heading h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.dv-home-heading p { color: var(--bs-secondary-color); font-size: 1.05rem; margin: 0; }

.dv-home-features, .dv-home-deploy { display: grid; gap: 1.25rem; max-width: 76rem; margin: 0 auto; }
.dv-home-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dv-home-deploy { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dv-home-features article, .dv-home-deploy article {
    background: var(--dv-surface);
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    padding: 1.4rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.dv-home-alt .dv-home-deploy article { background: var(--dv-canvas); }
.dv-home-features article:hover, .dv-home-deploy article:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 40, 70, .12); }
.dv-home-features i, .dv-home-deploy i {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 10px;
    background: var(--dv-brand-subtle);
    color: var(--dv-brand-fg);
    font-size: 1.3rem;
}
.dv-home-features p, .dv-home-deploy p { color: var(--bs-secondary-color); font-size: .93rem; margin: 0; }

/* ---------- how it works ---------- */
.dv-home-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; max-width: 76rem; margin: 0 auto; padding: 0; list-style: none; counter-reset: step; }
.dv-home-steps li { position: relative; text-align: center; padding: 0 .5rem; counter-increment: step; }
.dv-home-steps li > span {
    display: inline-grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dv-home-hero-b), var(--dv-home-hero-c));
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 108, 189, .3);
}
.dv-home-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.8rem;
    left: calc(50% + 2.3rem);
    right: calc(-50% + 2.3rem);
    border-top: 2px dashed var(--bs-border-color);
}
.dv-home-steps h3::before { content: counter(step) ". "; color: var(--dv-brand-fg); }
.dv-home-steps p { color: var(--bs-secondary-color); font-size: .9rem; margin: 0; }

/* ---------- screenshots ---------- */
.dv-home-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; max-width: 76rem; margin: 0 auto; }
.dv-home-shot {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--dv-surface);
    color: inherit;
    cursor: zoom-in;
    transition: transform .15s ease, box-shadow .15s ease;
}
.dv-home-shot:hover, .dv-home-shot:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 40, 70, .16); }
.dv-home-shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--bs-border-color); }
.dv-home-shot-title { font-weight: 650; padding: .75rem .9rem .15rem; }
.dv-home-shot-text { color: var(--bs-secondary-color); font-size: .88rem; padding: 0 .9rem .9rem; }

.dv-home-lightbox { width: min(96vw, 110rem); max-height: 94vh; padding: 0; border: 0; border-radius: 10px; background: #111; overflow: visible; }
.dv-home-lightbox::backdrop { background: rgba(5, 15, 30, .82); }
.dv-home-lightbox figure { margin: 0; }
.dv-home-lightbox img { display: block; width: 100%; max-height: calc(94vh - 3rem); object-fit: contain; border-radius: 10px 10px 0 0; background: #fff; }
.dv-home-lightbox figcaption { color: #eee; padding: .7rem 1rem; font-size: .95rem; }
.dv-home-lb-btn { position: absolute; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.dv-home-lb-btn.prev { left: -1.3rem; top: 45%; }
.dv-home-lb-btn.next { right: -1.3rem; top: 45%; }
.dv-home-lb-btn.close { right: -1.3rem; top: -1.3rem; }

/* ---------- DocView OmniRead ---------- */
.dv-home-omniread { background: linear-gradient(160deg, #0b2540 0%, #0b3f6b 55%, #0f548c 100%); color: #fff; }
.dv-home-omniread h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 1rem 0 .75rem; }
.dv-home-omniread .dv-home-lead { color: rgba(255, 255, 255, .85); }
.dv-home-omni-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; max-width: 76rem; margin: 0 auto; }
.dv-home-omni-grid .dv-home-frame { width: 100%; }
.dv-home-omni-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.dv-home-omni-list li { display: flex; gap: .85rem; }
.dv-home-omni-list i { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 1.15rem; }
.dv-home-omni-list strong { display: block; }
.dv-home-omni-list span { color: rgba(255, 255, 255, .78); font-size: .93rem; }
.dv-home-omni-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 76rem; margin: 2.5rem auto 0; }
.dv-home-omni-facts div { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); }
.dv-home-omni-facts strong { font-size: 1.05rem; }
.dv-home-omni-facts span { color: rgba(255, 255, 255, .78); font-size: .9rem; }
.dv-home-omni-uses { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 76rem; margin: 1.75rem auto 0; font-size: .9rem; }
.dv-home-omni-uses span:not(.text-body-secondary) { padding: .3rem .75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); }
.dv-home-omni-uses .text-body-secondary { color: rgba(255, 255, 255, .7) !important; align-self: center; }

/* ---------- demo sign-up (DEM-01) ---------- */
.dv-demo-hero { padding-bottom: clamp(2rem, 5vw, 4.5rem); min-height: calc(100vh - 3.4rem); }
.dv-demo-points { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .55rem; font-size: 1.02rem; }
.dv-demo-points i { color: #7ee2a8; margin-right: .4rem; }
.dv-demo-note { color: rgba(255, 255, 255, .75); max-width: 38rem; }
.dv-demo-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dv-demo-message { grid-column: 1 / -1; justify-self: center; max-width: 32rem; width: 100%; text-align: center; }

/* ---------- footer ---------- */
.dv-home-footer { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 2rem clamp(1rem, 4vw, 3.5rem); background: #0b2540; color: rgba(255, 255, 255, .8); font-size: .88rem; }
.dv-home-footer a { color: #fff; }
/* The DevSoft logo has its own white background: shown as it is, on a small white card. */
.dv-home-footer .dv-brand-logo { display: inline-flex; padding: .35rem .6rem; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.dv-home-footer .dv-brand-logo img { display: block; height: 40px; width: auto; }

@media (max-width: 1100px) {
    .dv-home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dv-home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
    .dv-home-steps li::after { display: none; }
}

@media (max-width: 900px) {
    .dv-home-omni-grid { grid-template-columns: 1fr; }
    .dv-home-omni-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dv-home-nav nav { display: none; }
    .dv-home-nav .btn { margin-left: auto; }
    .dv-home-hero { grid-template-columns: 1fr; padding-bottom: 6rem; }
    .dv-home-facts, .dv-home-deploy { grid-template-columns: 1fr; }
    .dv-home-lb-btn.prev, .dv-home-lb-btn.next { display: none; }
    .dv-home-lb-btn.close { right: .5rem; top: .5rem; }
}

@media (max-width: 600px) {
    .dv-home-features, .dv-home-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .dv-home { scroll-behavior: auto; }
    .dv-home-features article, .dv-home-deploy article, .dv-home-shot { transition: none; }
}
