:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --primary: #1d4ed8;
    --primary-strong: #1e40af;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    background: #111827;
    color: white;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    color: white;
}

nav a {
    color: rgba(255, 255, 255, 0.84);
    margin-left: 1.5rem;
    text-decoration: none;
}

.hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 3.5vw, 4rem);
}

.hero p {
    margin: 1rem auto 0;
    max-width: 700px;
    color: var(--muted);
    line-height: 1.8;
}

.button {
    margin-top: 1.5rem;
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.upload-panel,
.section-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 14px 48px rgba(15, 23, 42, 0.08);
    margin: 2rem 0;
}

.upload-form {
    display: grid;
    gap: 1rem;
}

.upload-form input[type="file"] {
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: #f9fafb;
}

.upload-form button {
    max-width: 240px;
    border: none;
    background: var(--primary);
    color: white;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
}

.features-grid,
.stats-grid,
.results-grid {
    display: grid;
    gap: 1.5rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.results-grid {
    grid-template-columns: 1fr 320px;
}

.card,
.info-card,
.score-card,
.full-card,
.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.5rem;
}

.score-circle {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    margin: 1rem 0;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.05));
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-strong);
}

.tag-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-list li {
    padding: 0.8rem 1rem;
    background: #eef2ff;
    border-radius: 999px;
    color: #1d4ed8;
    font-weight: 600;
}

.feature-meter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.feature-meter {
    display: grid;
    gap: 0.65rem;
}

.feature-meter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.feature-meter-header span {
    color: var(--muted);
    font-weight: 600;
}

.feature-meter-header strong {
    text-align: right;
}

.meter-track {
    height: 0.7rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.meter-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d4ed8, #059669);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid var(--border);
}

.recommendation {
    margin: 0.5rem 0 0;
    font-weight: 600;
}

.site-footer {
    padding: 1.5rem 0;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 860px) {
    .results-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
