:root {
    --ink: #101419;
    --paper: #f7f9fb;
    --muted: #a8b1bd;
    --line: rgba(255, 255, 255, 0.16);
    --graphite: #17202a;
    --cyan: #11b7c8;
    --amber: #e7a93f;
    --white: #ffffff;
    --black: #000000;
    --panel: #0d1117;
    --glass: rgba(13, 17, 23, 0.56);
    --glass-strong: rgba(13, 17, 23, 0.72);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
    --green-glow: #62ff8e;
    --green-glow-soft: rgba(98, 255, 142, 0.32);
    --green-glow-strong: rgba(98, 255, 142, 0.72);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--white);
    background:
        linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.76)),
        url("../img/logo_wuds_transparente.png") center / contain fixed no-repeat,
        var(--black);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(16, 20, 25, 0.88);
    backdrop-filter: blur(16px);
}

.navbar {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cyan), #2e6f7a);
    font-weight: 800;
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    color: #4f8d61;
    font-size: 1rem;
    animation: brandGlow 1.9s ease-in-out infinite;
}

.brand-text small,
.nav-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a:hover {
    color: var(--white);
}

@keyframes brandGlow {
    0%,
    100% {
        color: #4f8d61;
        text-shadow: 0 0 2px rgba(79, 141, 97, 0.25);
    }

    50% {
        color: #8fffad;
        text-shadow:
            0 0 7px rgba(143, 255, 173, 0.75),
            0 0 18px rgba(48, 255, 115, 0.56);
    }
}

@keyframes greenBloom {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.08);
    }

    48% {
        opacity: 0.86;
    }

    100% {
        opacity: 0.34;
        transform: translate(-50%, -50%) scale(2.85);
    }
}

@keyframes greenPulse {
    0%,
    100% {
        opacity: 0.48;
        box-shadow:
            inset 0 0 22px rgba(98, 255, 142, 0.20),
            0 0 18px rgba(98, 255, 142, 0.20);
    }

    50% {
        opacity: 1;
        box-shadow:
            inset 0 0 34px rgba(98, 255, 142, 0.36),
            0 0 34px rgba(98, 255, 142, 0.44),
            0 0 72px rgba(98, 255, 142, 0.22);
    }
}

@keyframes greenBorderPulse {
    0%,
    100% {
        border-color: rgba(98, 255, 142, 0.38);
    }

    50% {
        border-color: rgba(98, 255, 142, 0.86);
    }
}

.hero-text,
.button,
.metrics a,
.split > div:first-child,
.contact-inner > div:first-child,
.muted .section-inner > .eyebrow,
.muted .section-inner > h2,
.service-card,
.solution-card,
.process article,
.process-step,
.contact-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.hero-text::before,
.button::before,
.metrics a::before,
.split > div:first-child::before,
.contact-inner > div:first-child::before,
.muted .section-inner > .eyebrow::before,
.muted .section-inner > h2::before,
.service-card::before,
.solution-card::before,
.process article::before,
.process-step::before,
.contact-panel::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(98, 255, 142, 0.62) 0%, rgba(98, 255, 142, 0.26) 34%, rgba(98, 255, 142, 0) 70%);
    filter: blur(8px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.08);
    pointer-events: none;
}

.hero-text::after,
.button::after,
.metrics a::after,
.split > div:first-child::after,
.contact-inner > div:first-child::after,
.muted .section-inner > .eyebrow::after,
.muted .section-inner > h2::after,
.service-card::after,
.solution-card::after,
.process article::after,
.process-step::after,
.contact-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    border: 1px solid rgba(98, 255, 142, 0.44);
    opacity: 0;
    pointer-events: none;
}

.hero-text:hover,
.hero-text:focus-within,
.button:hover,
.button:focus-visible,
.metrics a:hover,
.metrics a:focus-within,
.split > div:first-child:hover,
.split > div:first-child:focus-within,
.contact-inner > div:first-child:hover,
.contact-inner > div:first-child:focus-within,
.muted .section-inner > .eyebrow:hover,
.muted .section-inner > h2:hover,
.service-card:hover,
.service-card:focus-within,
.solution-card:hover,
.solution-card:focus-within,
.process article:hover,
.process article:focus-within,
.process-step:hover,
.process-step:focus-within,
.contact-panel:hover,
.contact-panel:focus-within {
    border-color: var(--green-glow-strong);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 26px rgba(98, 255, 142, 0.28),
        0 20px 54px rgba(0, 0, 0, 0.36);
    animation: greenBorderPulse 1.6s ease-in-out infinite;
}

.service-card:hover,
.service-card:focus-within,
.solution-card:hover,
.solution-card:focus-within,
.process article:hover,
.process article:focus-within,
.process-step:hover,
.process-step:focus-within,
.button:hover,
.button:focus-visible {
    transform: translateY(-3px);
}

.hero-text:hover::before,
.hero-text:focus-within::before,
.button:hover::before,
.button:focus-visible::before,
.metrics a:hover::before,
.metrics a:focus-within::before,
.split > div:first-child:hover::before,
.split > div:first-child:focus-within::before,
.contact-inner > div:first-child:hover::before,
.contact-inner > div:first-child:focus-within::before,
.muted .section-inner > .eyebrow:hover::before,
.muted .section-inner > h2:hover::before,
.service-card:hover::before,
.service-card:focus-within::before,
.solution-card:hover::before,
.solution-card:focus-within::before,
.process article:hover::before,
.process article:focus-within::before,
.process-step:hover::before,
.process-step:focus-within::before,
.contact-panel:hover::before,
.contact-panel:focus-within::before {
    animation: greenBloom 720ms ease-out forwards;
}

.hero-text:hover::after,
.hero-text:focus-within::after,
.button:hover::after,
.button:focus-visible::after,
.metrics a:hover::after,
.metrics a:focus-within::after,
.split > div:first-child:hover::after,
.split > div:first-child:focus-within::after,
.contact-inner > div:first-child:hover::after,
.contact-inner > div:first-child:focus-within::after,
.muted .section-inner > .eyebrow:hover::after,
.muted .section-inner > h2:hover::after,
.service-card:hover::after,
.service-card:focus-within::after,
.solution-card:hover::after,
.solution-card:focus-within::after,
.process article:hover::after,
.process article:focus-within::after,
.process-step:hover::after,
.process-step:focus-within::after,
.contact-panel:hover::after,
.contact-panel:focus-within::after {
    animation: greenPulse 1.45s ease-in-out 720ms infinite;
}

.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    overflow: clip;
    color: var(--white);
    background: transparent;
}

.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 82px 0 110px;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
    gap: 54px;
    align-items: center;
}

.hero-text {
    min-width: 0;
    padding: 34px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        var(--glass);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        var(--glass-shadow);
}

.hero-video {
    display: block;
    width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(2.55rem, 6vw, 5.35rem);
    line-height: 0.98;
}

.hero-copy {
    max-width: 620px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
}

.button.primary {
    color: #071014;
    background: var(--cyan);
}

.button.secondary {
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--white);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section {
    padding: 86px 0;
}

.intro {
    padding: 22px 0;
    background: transparent;
}

.section-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.metrics a {
    display: block;
    min-height: 112px;
    padding: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025)),
        var(--glass);
    backdrop-filter: blur(12px) saturate(135%);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
}

.metrics strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.metrics span,
.service-card p,
.process p,
.section p {
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.45fr);
    gap: 54px;
    align-items: start;
}

.split > div:first-child,
.contact-inner > div:first-child {
    padding: 28px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        var(--glass);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        var(--glass-shadow);
}

.muted .section-inner > .eyebrow,
.muted .section-inner > h2 {
    width: fit-content;
    max-width: min(720px, 100%);
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        var(--glass);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 14px 32px rgba(0, 0, 0, 0.24);
}

.muted .section-inner > h2 {
    margin-bottom: 0;
}

h2 {
    max-width: 720px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

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

.service-card {
    min-height: 218px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
        var(--glass-strong);
    backdrop-filter: blur(12px) saturate(135%);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 16px 34px rgba(0, 0, 0, 0.24);
}

.service-card span {
    display: inline-block;
    margin-bottom: 34px;
    color: var(--amber);
    font-weight: 800;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.28rem;
}

.solutions-hero {
    padding-bottom: 34px;
}

.solutions-heading {
    max-width: 940px;
}

.solutions-heading h1 {
    max-width: 920px;
    margin-bottom: 22px;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 1;
}

.solutions-heading p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.08rem;
}

.solutions-section {
    padding-top: 32px;
}

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

.solution-card {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(17, 183, 200, 0.035)),
        var(--glass-strong);
    backdrop-filter: blur(12px) saturate(135%);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 16px 38px rgba(0, 0, 0, 0.24);
}

.solution-card::before,
.solution-card::after {
    z-index: 0;
}

.solution-card > * {
    position: relative;
    z-index: 1;
}

.solution-card::before {
    opacity: 0;
}

.solution-card .solution-visual {
    display: none;
}

.solution-card-site,
.solution-card-ai,
.solution-card-automation,
.solution-card-custom {
    background:
        var(--solution-art) right 20px bottom 18px / min(46%, 210px) auto no-repeat,
        linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(17, 183, 200, 0.035)),
        var(--glass-strong);
}

.solution-card-site {
    --solution-art: url("../img/solutions/site.svg");
}

.solution-card-ai {
    --solution-art: url("../img/solutions/ai.svg");
}

.solution-card-automation {
    --solution-art: url("../img/solutions/automation.svg");
}

.solution-card-custom {
    --solution-art: url("../img/solutions/custom.svg");
    background-size: min(32%, 250px) auto, auto, auto;
}

.solution-card-wide {
    min-height: auto;
    grid-column: 1 / -1;
}

.solution-index {
    color: var(--amber);
    font-weight: 800;
}

.solution-card h2 {
    margin-bottom: 0;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    line-height: 1.08;
}

.solution-copy {
    display: grid;
    gap: 12px;
}

.solution-copy p,
.solution-card li,
.solution-details p {
    color: var(--muted);
}

.solution-copy strong {
    color: rgba(255, 255, 255, 0.88);
}

.solution-card ul {
    display: grid;
    gap: 10px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.solution-card li {
    position: relative;
    padding-left: 18px;
}

.solution-card li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(17, 183, 200, 0.58);
}

.solution-details {
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.solution-details summary {
    cursor: pointer;
    padding: 16px 18px;
    color: var(--white);
    font-weight: 800;
}

.solution-details div {
    display: grid;
    gap: 12px;
    padding: 0 18px 18px;
}

.solution-details p {
    margin-bottom: 0;
}

.muted {
    background: transparent;
}

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.process article,
.process-step {
    display: block;
    min-height: 100%;
    padding: 22px;
    border-top: 3px solid var(--cyan);
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    border-left: 1px solid var(--glass-border);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        var(--glass-strong);
    backdrop-filter: blur(12px) saturate(135%);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 16px 34px rgba(0, 0, 0, 0.22);
}

.process-step {
    cursor: pointer;
}

.process strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.contact {
    color: var(--white);
    background: transparent;
}

.contact .eyebrow,
.contact a {
    color: var(--cyan);
}

.contact-heading-link {
    color: var(--white);
}

.contact-proposal-link {
    display: inline-block;
}

.contact p {
    color: rgba(255, 255, 255, 0.72);
}

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: center;
}

.contact-panel {
    display: grid;
    gap: 10px;
    padding: 28px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025)),
        var(--glass);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        var(--glass-shadow);
}

.contact-panel span,
.contact-panel-label {
    color: rgba(255, 255, 255, 0.62);
}

.contact-panel-label {
    width: fit-content;
}

.contact-panel strong {
    font-size: 1.28rem;
}

.process-video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.92);
}

.process-video-modal.is-visible {
    display: flex;
}

.process-video-frame {
    width: min(1120px, 100%);
    max-height: calc(100vh - 56px);
}

.process-video {
    display: block;
    width: 100%;
    max-height: calc(100vh - 56px);
    object-fit: contain;
    background: var(--black);
}

@media (max-width: 820px) {
    .navbar {
        min-height: 68px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 64px 0 74px;
    }

    .hero-video {
        max-height: none;
    }

    .metrics,
    .split,
    .service-grid,
    .solutions-grid,
    .process,
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .solution-card,
    .solution-card-wide {
        min-height: auto;
        grid-column: auto;
    }

    .section {
        padding: 62px 0;
    }

    .intro {
        padding: 16px 0;
    }

    .contact-panel {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .brand-text small {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .button {
        width: 100%;
    }
}
/* agora é o codigo do will */

.titulow {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
}

.diagnostic-shell {
    min-height: calc(100vh - 72px);
    padding-top: 54px;
    background:
        linear-gradient(rgba(17, 183, 200, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 183, 200, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 18% 12%, rgba(98, 255, 142, 0.16), transparent 28%),
        radial-gradient(circle at 88% 24%, rgba(17, 183, 200, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(5, 14, 20, 0.76), rgba(12, 18, 28, 0.84));
    background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.diagnostic-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.28fr);
    gap: 28px;
    align-items: start;
}

.diagnostic-aside,
.diagnostic-panel {
    border: 1px solid rgba(17, 183, 200, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(17, 183, 200, 0.035)),
        var(--glass-strong);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(98, 255, 142, 0.06),
        0 22px 70px rgba(17, 183, 200, 0.10),
        var(--glass-shadow);
}

.diagnostic-aside {
    position: sticky;
    top: 96px;
    padding: 28px;
}

.diagnostic-aside h1 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.03;
}

.diagnostic-signal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 10px 12px;
    border: 1px solid rgba(98, 255, 142, 0.26);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(98, 255, 142, 0.08);
}

.diagnostic-signal span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green-glow);
    box-shadow: 0 0 18px rgba(98, 255, 142, 0.85);
}

.diagnostic-actions {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.diagnostic-panel {
    height: calc(100vh - 150px);
    min-height: 680px;
    max-height: 860px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    position: relative;
}

.diagnostic-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(17, 183, 200, 0.12), transparent 28%),
        linear-gradient(transparent 0 94%, rgba(255, 255, 255, 0.035) 95% 100%);
    background-size: auto, 100% 28px;
    opacity: 0.7;
}

.diagnostic-topbar {
    display: grid;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(17, 183, 200, 0.28);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(17, 183, 200, 0.06)),
        rgba(5, 14, 20, 0.94);
    position: relative;
    z-index: 3;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow:
        inset 0 -1px 0 rgba(98, 255, 142, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.18);
}

.progress-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.diagnostic-topbar span {
    color: rgba(255, 255, 255, 0.68);
}

.diagnostic-topbar strong {
    display: block;
}

#progressPercent {
    min-width: 54px;
    text-align: right;
    color: var(--green-glow);
}

.quality-meter {
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 12px),
        rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.quality-meter span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--green-glow), rgba(255, 201, 77, 0.95));
    box-shadow: 0 0 22px rgba(98, 255, 142, 0.42);
    transition: width 260ms ease;
}

.chat-log {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px;
    min-height: 0;
    overflow: auto;
    position: relative;
    z-index: 1;
}

.chat-message {
    width: min(88%, 620px);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.045));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.chat-message.assistant {
    justify-self: start;
    border-color: rgba(98, 255, 142, 0.18);
}

.chat-message.user {
    justify-self: end;
    border-color: rgba(17, 183, 200, 0.42);
    background: rgba(17, 183, 200, 0.14);
}

.chat-message.error {
    border-color: rgba(231, 80, 80, 0.52);
}

.chat-message p,
.chat-message ul,
.answer-chips {
    margin-bottom: 0;
}

.chat-message small {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.64);
}

.answer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.answer-chip {
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid rgba(17, 183, 200, 0.30);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(17, 183, 200, 0.11);
    font: inherit;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.answer-chip:hover,
.answer-chip:focus-visible {
    border-color: rgba(98, 255, 142, 0.72);
    background: rgba(98, 255, 142, 0.15);
    transform: translateY(-1px);
}

.answer-chip:disabled {
    cursor: default;
    opacity: 0.55;
    transform: none;
}

.chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
    border-top: 1px solid rgba(17, 183, 200, 0.22);
    background: rgba(5, 14, 20, 0.90);
    position: relative;
    z-index: 2;
}

.chat-form textarea {
    width: 100%;
    min-height: 76px;
    resize: vertical;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(17, 183, 200, 0.07), transparent),
        rgba(0, 0, 0, 0.34);
    font: inherit;
}

.chat-form textarea:focus {
    outline: 2px solid rgba(17, 183, 200, 0.42);
    outline-offset: 2px;
}

.review-panel {
    padding: 22px;
    border-top: 1px solid rgba(98, 255, 142, 0.20);
    background: rgba(5, 14, 20, 0.92);
    position: relative;
    z-index: 2;
}

.review-panel h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

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

.review-grid div {
    min-height: 76px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.review-grid span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
}

.review-grid strong {
    overflow-wrap: anywhere;
}

.status-message {
    margin: 14px 0 0;
    color: var(--muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .diagnostic-layout {
        grid-template-columns: 1fr;
    }

    .diagnostic-aside {
        position: static;
    }

    .diagnostic-panel {
        height: calc(100vh - 110px);
        max-height: none;
    }
}

@media (max-width: 620px) {
    .diagnostic-panel {
        height: calc(100vh - 88px);
        min-height: 560px;
    }

    .chat-message {
        width: 100%;
    }

    .chat-form,
    .review-grid {
        grid-template-columns: 1fr;
    }

}
