/**
 * DOVERTECH Corporate Home
 * DT-WEB-002
 */

body.dovertech-home-active {
    background: var(--dt-white);
    color: var(--dt-ink);
    font-family: var(--dt-font-body);
}

body.dovertech-home-active .site-content {
    padding: 0 !important;
}

body.dovertech-home-active #content.site-content > .ast-container,
body.dovertech-home-active #content.site-content .ast-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.dovertech-home-active .entry-content {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.dt-home,
.dt-home * {
    box-sizing: border-box;
}

.dt-home {
    width: 100%;
    overflow-x: hidden;
    color: var(--dt-ink);
    font-family: var(--dt-font-body);
    background: var(--dt-white);
}

.dt-home a {
    text-decoration: none;
}

/* Local reset and Astra/Elementor collision protection */
body.dovertech-home-active .dt-home h1,
body.dovertech-home-active .dt-home h2,
body.dovertech-home-active .dt-home h3,
body.dovertech-home-active .dt-home h4,
body.dovertech-home-active .dt-home p,
body.dovertech-home-active .dt-home ul {
    margin-top: 0;
}

body.dovertech-home-active .dt-home .dt-section {
    position: relative;
    width: 100%;
}

body.dovertech-home-active .dt-home .dt-section--soft {
    background-color: var(--dt-surface) !important;
}

body.dovertech-home-active .dt-home .dt-card {
    border: 1px solid var(--dt-border) !important;
    background-color: var(--dt-white) !important;
}

body.dovertech-home-active .dt-home .dt-featured-product h3 {
    color: var(--dt-white) !important;
}

body.dovertech-home-active .dt-home a.dt-btn.dt-btn--primary {
    color: var(--dt-white) !important;
    background-color: var(--dt-action-blue) !important;
    border-color: var(--dt-action-blue) !important;
}

body.dovertech-home-active .dt-home a.dt-btn.dt-btn--secondary {
    color: var(--dt-ink) !important;
    background-color: var(--dt-white) !important;
    border-color: var(--dt-border-strong) !important;
}

body.dovertech-home-active .dt-home a.dt-btn.dt-btn--light {
    color: var(--dt-ink) !important;
    background-color: var(--dt-white) !important;
    border-color: var(--dt-white) !important;
}

body.dovertech-home-active .dt-home .dt-final {
    background-color: var(--dt-ink) !important;
}

body.dovertech-home-active .dt-home .dt-final h2 {
    color: var(--dt-white) !important;
}

body.dovertech-home-active .dt-home .dt-final p {
    color: #CBD5E1 !important;
}

.dt-shell {
    width: 100%;
    max-width: var(--dt-content-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.dt-section {
    padding: 96px 0;
}

.dt-section--soft {
    background: var(--dt-surface);
}

.dt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--dt-action-blue);
    font-family: var(--dt-font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .10em;
    line-height: 1.4;
    text-transform: uppercase;
}

.dt-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--dt-blue);
}

.dt-title {
    max-width: 760px;
    margin: 0;
    color: var(--dt-ink);
    font-family: var(--dt-font-heading);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.dt-title--section {
    max-width: 760px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
}

.dt-title span {
    color: var(--dt-blue);
}

.dt-lead {
    max-width: 690px;
    margin: 24px 0 0;
    color: var(--dt-slate);
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.65;
}

.dt-copy {
    color: var(--dt-slate);
    font-size: 16px;
    line-height: 1.75;
}

.dt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.dt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.dt-btn:hover {
    transform: translateY(-1px);
}

.dt-btn--primary {
    color: var(--dt-white);
    background: var(--dt-action-blue);
}

.dt-btn--primary:hover {
    color: var(--dt-white);
    background: #005F96;
}

.dt-btn--secondary {
    color: var(--dt-ink);
    border-color: var(--dt-border-strong);
    background: var(--dt-white);
}

.dt-btn--secondary:hover {
    color: var(--dt-action-blue);
    border-color: var(--dt-action-blue);
}

.dt-btn--light {
    color: var(--dt-ink);
    background: var(--dt-white);
}

.dt-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dt-action-blue);
    font-size: 14px;
    font-weight: 700;
}

.dt-link::after {
    content: "→";
    transition: transform .18s ease;
}

.dt-link:hover::after {
    transform: translateX(3px);
}

/* Hero */
.dt-hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    padding: 72px 0 78px;
    background:
        radial-gradient(circle at 78% 18%, rgba(0, 129, 204, .12), transparent 28%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FBFD 100%);
    border-bottom: 1px solid var(--dt-border);
}

.dt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .36;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, #000 10%, transparent 88%);
}

.dt-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    gap: 76px;
    align-items: center;
}

.dt-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.dt-hero-proof li {
    position: relative;
    padding-left: 18px;
    color: var(--dt-muted);
    font-size: 13px;
    font-weight: 600;
}

.dt-hero-proof li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dt-blue);
    transform: translateY(-50%);
}

.dt-product-window {
    position: relative;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--dt-shadow-md);
}

.dt-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 18px;
    border-bottom: 1px solid var(--dt-border);
    background: #FBFDFF;
}

.dt-window-dots {
    display: flex;
    gap: 7px;
}

.dt-window-dots i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
}

.dt-window-label {
    color: var(--dt-muted);
    font-family: var(--dt-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
}

.dt-window-body {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 400px;
}

.dt-window-nav {
    padding: 24px 16px;
    border-right: 1px solid var(--dt-border);
    background: #F8FAFC;
}

.dt-window-brand {
    margin-bottom: 24px;
    color: var(--dt-ink);
    font-family: var(--dt-font-heading);
    font-size: 16px;
    font-weight: 700;
}

.dt-window-brand span {
    color: var(--dt-blue);
}

.dt-nav-item {
    margin: 8px 0;
    padding: 9px 10px;
    border-radius: 7px;
    color: var(--dt-muted);
    font-size: 11px;
    font-weight: 700;
}

.dt-nav-item.is-active {
    color: var(--dt-action-blue);
    background: rgba(0, 129, 204, .09);
}

.dt-window-main {
    padding: 28px;
}

.dt-window-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dt-window-heading strong {
    font-family: var(--dt-font-heading);
    font-size: 21px;
}

.dt-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0B7557;
    font-size: 10px;
    font-weight: 700;
}

.dt-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dt-success);
}

.dt-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dt-metric {
    padding: 15px;
    border: 1px solid var(--dt-border);
    border-radius: 10px;
    background: var(--dt-white);
}

.dt-metric small {
    display: block;
    color: var(--dt-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dt-metric b {
    display: block;
    margin-top: 8px;
    font-family: var(--dt-font-heading);
    font-size: 20px;
}

.dt-stack {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.dt-stack-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--dt-border);
    border-radius: 10px;
    background: #FBFDFF;
}

.dt-stack-row strong {
    font-size: 12px;
}

.dt-stack-row span {
    color: var(--dt-muted);
    font-family: var(--dt-font-mono);
    font-size: 9px;
    font-weight: 600;
}

/* Cards */
.dt-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
}

.dt-section-head .dt-copy {
    max-width: 470px;
    margin: 0;
}

.dt-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dt-card {
    min-height: 235px;
    padding: 28px;
    border: 1px solid var(--dt-border);
    border-radius: var(--dt-radius-md);
    background: var(--dt-white);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

.dt-card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 34px;
    border-radius: 9px;
    color: var(--dt-action-blue);
    background: rgba(0, 129, 204, .08);
    font-family: var(--dt-font-mono);
    font-size: 12px;
    font-weight: 700;
}

.dt-card h3 {
    margin: 0 0 12px;
    color: var(--dt-ink);
    font-family: var(--dt-font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.dt-card p {
    margin: 0;
    color: var(--dt-slate);
    font-size: 15px;
    line-height: 1.7;
}

/* Software */
.dt-software-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 20px;
}

.dt-featured-product {
    position: relative;
    min-height: 460px;
    padding: 46px;
    border-radius: 18px;
    overflow: hidden;
    color: var(--dt-white);
    background:
        radial-gradient(circle at 82% 20%, rgba(0, 129, 204, .48), transparent 28%),
        #0F172A;
}

.dt-featured-product::after {
    content: "V";
    position: absolute;
    right: -20px;
    bottom: -120px;
    color: rgba(255,255,255,.035);
    font-family: var(--dt-font-heading);
    font-size: 430px;
    font-weight: 700;
    line-height: 1;
}

.dt-product-kicker {
    position: relative;
    z-index: 1;
    margin: 0 0 26px;
    color: #7DD3FC;
    font-family: var(--dt-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.dt-featured-product h3 {
    position: relative;
    z-index: 1;
    max-width: 570px;
    margin: 0;
    color: var(--dt-white);
    font-family: var(--dt-font-heading);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1;
}

.dt-featured-product > p:not(.dt-product-kicker) {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 24px 0 0;
    color: #CBD5E1;
    font-size: 16px;
    line-height: 1.75;
}

.dt-featured-product .dt-actions {
    position: relative;
    z-index: 1;
    margin-top: 32px;
}

.dt-product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.dt-product-mini {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    min-height: 103px;
    padding: 20px 22px;
    border: 1px solid var(--dt-border);
    border-radius: 12px;
    background: var(--dt-white);
}

.dt-product-mini:hover {
    border-color: #B8DDF2;
    box-shadow: var(--dt-shadow-sm);
}

.dt-product-mini h4 {
    margin: 0 0 5px;
    color: var(--dt-ink);
    font-family: var(--dt-font-heading);
    font-size: 18px;
    font-weight: 700;
}

.dt-product-mini p {
    margin: 0;
    color: var(--dt-muted);
    font-size: 12px;
    line-height: 1.45;
}

.dt-product-mini .dt-mini-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--dt-action-blue);
    background: var(--dt-surface);
    font-size: 16px;
}

/* Development */
.dt-dev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 78px;
    align-items: center;
}

.dt-dev-panel {
    padding: 38px;
    border: 1px solid var(--dt-border);
    border-radius: 16px;
    background: var(--dt-white);
    box-shadow: var(--dt-shadow-sm);
}

.dt-dev-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--dt-border);
}

.dt-dev-panel-top span {
    color: var(--dt-muted);
    font-family: var(--dt-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
}

.dt-dev-list {
    display: grid;
    gap: 0;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.dt-dev-list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    padding: 19px 0;
    border-bottom: 1px solid var(--dt-border);
    color: var(--dt-ink);
    font-size: 14px;
    font-weight: 700;
}

.dt-dev-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dt-dev-list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: var(--dt-action-blue);
    background: rgba(0,129,204,.08);
    font-family: var(--dt-font-mono);
    font-size: 10px;
    font-style: normal;
}

/* Process */
.dt-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 52px;
    border-top: 1px solid var(--dt-border);
}

.dt-process-item {
    position: relative;
    padding: 30px 28px 0 0;
}

.dt-process-item::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--dt-blue);
    box-shadow: 0 0 0 5px var(--dt-white);
}

.dt-process-item b {
    display: block;
    margin-bottom: 14px;
    color: var(--dt-action-blue);
    font-family: var(--dt-font-mono);
    font-size: 11px;
}

.dt-process-item h3 {
    margin: 0 0 10px;
    color: var(--dt-ink);
    font-family: var(--dt-font-heading);
    font-size: 19px;
    font-weight: 700;
}

.dt-process-item p {
    margin: 0;
    color: var(--dt-slate);
    font-size: 14px;
    line-height: 1.65;
}

/* Why */
.dt-value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 48px;
}

.dt-value {
    padding: 28px 30px;
    border: 1px solid var(--dt-border);
    border-radius: 12px;
    background: var(--dt-white);
}

.dt-value strong {
    display: block;
    margin-bottom: 8px;
    color: var(--dt-ink);
    font-family: var(--dt-font-heading);
    font-size: 20px;
}

.dt-value p {
    margin: 0;
    color: var(--dt-slate);
    font-size: 14px;
    line-height: 1.7;
}

/* Final CTA */
.dt-final {
    padding: 84px 0;
    background: var(--dt-ink);
}

.dt-final-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.dt-final h2 {
    max-width: 760px;
    margin: 0;
    color: var(--dt-white);
    font-family: var(--dt-font-heading);
    font-size: clamp(34px, 4.4vw, 54px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.dt-final p {
    max-width: 680px;
    margin: 18px 0 0;
    color: #CBD5E1;
    font-size: 16px;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 1050px) {
    .dt-hero-grid,
    .dt-dev-grid {
        grid-template-columns: 1fr;
    }

    .dt-hero-grid {
        gap: 48px;
    }

    .dt-product-window {
        max-width: 760px;
    }

    .dt-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dt-software-grid {
        grid-template-columns: 1fr;
    }

    .dt-product-list {
        grid-template-columns: 1fr 1fr;
    }

    .dt-process {
        grid-template-columns: 1fr 1fr;
        gap: 28px 0;
    }

    .dt-final-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .dt-shell {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .dt-section {
        padding: 76px 0;
    }

    .dt-hero {
        min-height: 0;
        padding: 68px 0 70px;
    }

    .dt-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dt-title {
        font-size: clamp(42px, 13vw, 58px);
    }

    .dt-section-head {
        display: block;
        margin-bottom: 34px;
    }

    .dt-section-head .dt-copy {
        margin-top: 18px;
    }

    .dt-card-grid,
    .dt-product-list,
    .dt-value-grid,
    .dt-process {
        grid-template-columns: 1fr;
    }

    .dt-card {
        min-height: 0;
    }

    .dt-featured-product {
        min-height: 420px;
        padding: 32px 26px;
    }

    .dt-window-body {
        grid-template-columns: 1fr;
    }

    .dt-window-nav {
        display: none;
    }

    .dt-window-main {
        padding: 20px;
    }

    .dt-metric-grid {
        grid-template-columns: 1fr;
    }

    .dt-process {
        border-top: 0;
        gap: 0;
        margin-top: 36px;
    }

    .dt-process-item {
        padding: 22px 0 22px 28px;
        border-left: 1px solid var(--dt-border);
    }

    .dt-process-item::before {
        top: 28px;
        left: -5px;
    }

    .dt-dev-panel {
        padding: 26px 22px;
    }

    .dt-final {
        padding: 68px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dt-btn,
    .dt-link::after {
        transition: none;
    }
}
