/* =========================================
   CMS DETECTOR
========================================= */

.cms-page {
    color: #f7f9fc;
}

.cms-main {
    width: 100%;
    padding: 44px 18px 0;
}

.cms-app {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
}


/* HEADER */

.cms-tool-header {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "icon title"
        "icon subtitle"
        "icon intro";
    column-gap: 18px;
    align-items: start;
    margin-bottom: 28px;
}

.cms-tool-icon {
    grid-area: icon;
    box-sizing: border-box;
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(88,166,255,.26);
    border-radius: 20px;
    background: rgba(88,166,255,.08);
    color: #58a6ff;
}

.cms-tool-icon svg {
    width: 42px;
    height: 42px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cms-title {
    grid-area: title;
    margin: 1px 0 0;
    color: #fff;
    font-size: 31px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: .2px;
}

.cms-subtitle {
    grid-area: subtitle;
    margin-top: 4px;
    color: #b3c0d1;
    font-size: 16px;
    line-height: 1.4;
}

.cms-intro {
    grid-area: intro;
    margin-top: 9px;
    color: #8fa1b8;
    font-size: 16px;
    line-height: 1.5;
}


/* FORM */

.cms-form {
    padding: 24px 28px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: rgba(255,255,255,.06);
    box-shadow: 0 22px 65px rgba(0,0,0,.20);
}

.cms-label {
    display: block;
    margin-bottom: 10px;
    color: #b7c2d2;
    font-size: 14px;
    font-weight: 700;
}

.cms-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px;
}

.cms-input {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 15px;
    outline: none;
    background: rgba(5,15,27,.78);
    color: #fff;
    font-size: 17px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.cms-input::placeholder {
    color: #647892;
}

.cms-input:focus {
    border-color: rgba(88,166,255,.60);
    background: rgba(5,15,27,.92);
    box-shadow: 0 0 0 3px rgba(88,166,255,.08);
}

.cms-input.is-error {
    border-color: rgba(255,105,105,.62);
    box-shadow: 0 0 0 3px rgba(255,105,105,.07);
}

.cms-submit {
    min-width: 158px;
    height: 58px;
    padding: 0 24px;
    border: 1px solid rgba(88,166,255,.52);
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(88,166,255,.25), rgba(88,166,255,.14));
    color: #f7faff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease, background .16s ease;
}

.cms-submit:hover {
    background: linear-gradient(180deg, rgba(88,166,255,.33), rgba(88,166,255,.20));
}

.cms-submit:active {
    transform: scale(.985);
}

.cms-submit:disabled {
    opacity: .58;
    cursor: wait;
}

.cms-help {
    margin-top: 11px;
    color: #788ba4;
    font-size: 13px;
    line-height: 1.5;
}

.cms-error {
    display: none;
    margin-top: 13px;
    color: #ff9b9b;
    font-size: 14px;
    line-height: 1.45;
}

.cms-error.is-visible {
    display: block;
}


/* LOADING */

.cms-loading {
    display: none;
    padding: 23px 0 3px;
    color: #9db0c7;
    font-size: 14px;
    text-align: center;
}

.cms-loading.is-visible {
    display: block;
}

.cms-loading-dot::before {
    content: "";
    width: 9px;
    height: 9px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 50%;
    background: #58a6ff;
    box-shadow: 0 0 0 0 rgba(88,166,255,.42);
    animation: cms-pulse 1.35s infinite;
}

@keyframes cms-pulse {
    0% { box-shadow: 0 0 0 0 rgba(88,166,255,.40); }
    70% { box-shadow: 0 0 0 8px rgba(88,166,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(88,166,255,0); }
}


/* RESULTS */

.cms-results {
    display: none;
    margin-top: 22px;
}

.cms-results.is-visible {
    display: block;
}

.cms-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    margin-bottom: 13px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: rgba(255,255,255,.055);
}

.cms-result-site {
    min-width: 0;
}

.cms-result-label {
    margin-bottom: 5px;
    color: #7e90a8;
    font-size: 13px;
}

.cms-result-url {
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
}

.cms-status {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.cms-status--detected {
    border-color: rgba(69,211,151,.28);
    background: rgba(69,211,151,.09);
    color: #8ee7c0;
}

.cms-status--neutral {
    background: rgba(255,255,255,.045);
    color: #a9b7c9;
}


/* PRIMARY PLATFORM */

.cms-primary {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 18px;
    padding: 23px;
    border: 1px solid rgba(88,166,255,.25);
    border-radius: 19px;
    background: linear-gradient(135deg, rgba(88,166,255,.10), rgba(255,255,255,.045));
}

.cms-primary--empty {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.045);
}

.cms-primary-icon {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(88,166,255,.32);
    border-radius: 18px;
    background: rgba(88,166,255,.10);
    color: #68b0ff;
    font-size: 28px;
    font-weight: 600;
}

.cms-primary--empty .cms-primary-icon {
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    color: #889bb2;
}

.cms-primary-content {
    min-width: 0;
}

.cms-primary-eyebrow {
    margin-bottom: 4px;
    color: #7890ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.cms-primary-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    color: #fff;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 600;
}

.cms-primary-version {
    color: #8da2ba;
    font-size: 13px;
    font-weight: 500;
}

.cms-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 11px;
}

.cms-badge,
.cms-confidence {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: #9eb0c5;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.cms-badge--high,
.cms-confidence--high {
    border-color: rgba(69,211,151,.25);
    background: rgba(69,211,151,.07);
    color: #85dbb6;
}

.cms-badge--medium,
.cms-confidence--medium {
    border-color: rgba(255,191,89,.26);
    background: rgba(255,191,89,.07);
    color: #e6bf7d;
}

.cms-badge--low,
.cms-confidence--low,
.cms-badge--neutral {
    color: #98a8bb;
}

.cms-primary-description {
    margin: 12px 0 0;
    color: #9aabc0;
    font-size: 14px;
    line-height: 1.55;
}


/* SECTIONS */

.cms-section {
    margin-top: 14px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 19px;
    background: rgba(255,255,255,.045);
}

.cms-section.is-hidden {
    display: none;
}

.cms-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.cms-section-title {
    margin: 0;
    color: #f7f9fc;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.cms-section-description {
    margin-top: 5px;
    color: #7f92aa;
    font-size: 13px;
    line-height: 1.45;
}

.cms-count {
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid rgba(88,166,255,.24);
    border-radius: 9px;
    background: rgba(88,166,255,.07);
    color: #72b4fb;
    font-size: 12px;
    font-weight: 700;
}

.cms-technology-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.cms-technology {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(5,15,27,.34);
}

.cms-technology-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cms-technology-identity {
    min-width: 0;
}

.cms-technology-name {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
}

.cms-technology-category {
    margin-top: 4px;
    color: #7f92aa;
    font-size: 12px;
}

.cms-confidence {
    flex: 0 0 auto;
}

.cms-technology-version {
    margin-top: 10px;
    color: #9db0c6;
    font-size: 13px;
}


/* EVIDENCE */

.cms-evidence {
    margin-top: 13px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 11px;
}

.cms-evidence-summary {
    color: #80b9f3;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.cms-evidence-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.cms-evidence-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    color: #8396ad;
    font-size: 12px;
    line-height: 1.4;
}

.cms-evidence-source {
    color: #a4b4c7;
    font-weight: 600;
}

.cms-evidence-value {
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
}


/* TECHNICAL */

.cms-technical-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cms-technical-item {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    background: rgba(5,15,27,.28);
}

.cms-technical-label {
    margin-bottom: 5px;
    color: #71859e;
    font-size: 11px;
}

.cms-technical-value {
    overflow-wrap: anywhere;
    color: #dce5ef;
    font-size: 13px;
    line-height: 1.4;
}

.cms-technical-value--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.cms-technical-link {
    display: block;
    color: #80b9f3;
    text-decoration: none;
}

.cms-technical-link:hover {
    color: #f59a78;
}


/* RESPONSIVE */

@media (max-width: 760px) {

    .cms-main {
        padding: 30px 14px 0;
    }

    .cms-tool-header {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "icon title"
            "icon subtitle"
            "intro intro";
        column-gap: 14px;
        margin-bottom: 23px;
    }

    .cms-tool-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .cms-tool-icon svg {
        width: 30px;
        height: 30px;
    }

    .cms-title {
        margin-top: 4px;
        font-size: 25px;
        line-height: 1.15;
    }

    .cms-subtitle {
        margin-top: 3px;
        font-size: 14px;
    }

    .cms-intro {
        margin-top: 13px;
        font-size: 14px;
        line-height: 1.5;
    }

    .cms-form {
        padding: 20px;
    }

    .cms-input-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cms-submit {
        width: 100%;
    }

    .cms-result-summary {
        align-items: flex-start;
    }

    .cms-primary {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 14px;
        padding: 19px;
    }

    .cms-primary-icon {
        width: 54px;
        height: 54px;
        border-radius: 15px;
        font-size: 23px;
    }

    .cms-primary-name {
        font-size: 23px;
    }

    .cms-technology-grid {
        grid-template-columns: 1fr;
    }

    .cms-technical-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 480px) {

    .cms-main {
        padding-top: 24px;
    }

    .cms-title {
        font-size: 23px;
    }

    .cms-form,
    .cms-section {
        padding: 17px;
        border-radius: 17px;
    }

    .cms-result-summary {
        flex-direction: column;
        gap: 12px;
        padding: 17px;
    }

    .cms-primary {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .cms-primary-icon {
        width: 48px;
        height: 48px;
    }

    .cms-technology-top {
        flex-direction: column;
    }

    .cms-technical-grid {
        grid-template-columns: 1fr;
    }

    .cms-evidence-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}



/* =========================================
   CMS DETECTOR — DESKTOP SCALE V2
========================================= */

@media (min-width: 761px) {

    .cms-main {
        padding-top: 28px;
    }

    .cms-app {
        max-width: 820px;
    }

    .cms-tool-header {
        width: 100%;
        max-width: 760px;

        margin:
            0
            auto
            26px;
    }

    .cms-form {
        padding:
            22px
            23px;
    }

    .cms-input,
    .cms-submit {
        height: 54px;
    }

    .cms-primary {
        padding: 20px;
    }

    .cms-section {
        padding: 19px;
    }

    .cms-technical-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}
