:root {
    --surface: #111827;
    --surface-soft: #172033;
    --line: rgba(148, 163, 184, .25);
    --accent: #18a999;
    --accent-2: #f2b84b;
}

[data-bs-theme="light"] {
    --surface: #ffffff;
    --surface-soft: #f3f6f8;
    --line: rgba(15, 23, 42, .14);
}

body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(24, 169, 153, .12), transparent 360px),
        var(--bs-body-bg);
}

.navbar {
    background: color-mix(in srgb, var(--bs-body-bg) 88%, transparent);
    backdrop-filter: blur(16px);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0;
}

.hero,
.report-header {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 900;
    letter-spacing: 0;
    margin: .25rem 0 .75rem;
}

.eyebrow {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
}

.search-panel {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.btn-primary {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: #128f82;
    --bs-btn-hover-border-color: #128f82;
}

.feature-tile,
.score-card,
.check-card {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
}

.feature-tile {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 1rem;
    min-height: 72px;
    font-weight: 700;
}

.feature-tile i {
    color: var(--accent);
    font-size: 1.35rem;
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.report-header h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    margin: .15rem 0;
}

.score-ring {
    width: 132px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--accent) calc(var(--score) * 1%), rgba(148, 163, 184, .2) 0);
    position: relative;
    flex: 0 0 auto;
}

.score-ring::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--surface);
}

.score-ring strong,
.score-ring span {
    position: relative;
    z-index: 1;
}

.score-ring strong {
    font-size: 2.1rem;
    line-height: 1;
}

.score-ring span {
    font-size: .75rem;
    color: var(--bs-secondary-color);
    margin-top: 2.4rem;
    position: absolute;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: .85rem;
}

.score-card {
    padding: 1rem;
}

.progress {
    height: .55rem;
    margin-top: .7rem;
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.report-accordion .accordion-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: .85rem;
}

.accordion-button {
    gap: .75rem;
    font-weight: 800;
}

.check-card {
    padding: 1rem;
    height: 100%;
}

.check-card h4 {
    font-size: 1rem;
    margin-bottom: .35rem;
}

.check-card p {
    color: var(--bs-secondary-color);
    margin-bottom: .75rem;
}

details summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 700;
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .8rem;
    margin-top: .65rem;
    max-height: 320px;
    overflow: auto;
    font-size: .82rem;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--bs-secondary-color);
    font-size: .9rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

@media (max-width: 767px) {
    .report-header,
    .footer-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .input-group-lg {
        flex-wrap: nowrap;
    }

    .input-group .btn span {
        display: none;
    }
}
