* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F7F9FC;
    color: #1A2C3E;
}

:root {
    --navy: #0A2540;
    --ice: #639FAB;
    --accent: #FF6B35;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.logo {
    font-family: 'Impact', 'Inter', sans-serif;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--ice) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
}

.cta-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
}

/* Scanner Hero */
.scanner-hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.scanner-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--navy), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.scanner-hero p {
    font-size: 1.2rem;
    color: var(--slate);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.input-group input {
    flex: 2;
    padding: 1rem 1.5rem;
    border-radius: 60px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: var(--ice);
}

.scan-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.scan-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.recent-scans {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--ice);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    margin-top: 2rem;
}

.score-card {
    background: linear-gradient(135deg, var(--navy), #1C4E5E);
    border-radius: 32px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    color: white;
}

.score-circle {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-circle span {
    font-size: 3rem;
    font-weight: 800;
}

.score-circle small {
    font-size: 0.9rem;
}

.score-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.finding-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(99,159,171,0.2);
    transition: all 0.3s;
}

.finding-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.finding-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.finding-header .icon {
    font-size: 1.8rem;
}

.finding-header h3 {
    flex: 1;
    font-size: 1.2rem;
}

.status {
    padding: 0.25rem 0.8rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status.passed { background: #D1FAE5; color: #065F46; }
.status.warning { background: #FEF3C7; color: #92400E; }
.status.failed { background: #FEE2E2; color: #991B1B; }

.finding-details {
    font-size: 0.9rem;
    color: #4B5563;
    line-height: 1.5;
}

.finding-details ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.finding-details li {
    margin: 0.3rem 0;
}

.recommendations {
    background: #FFFBEB;
    border-color: var(--warning);
}

.export-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--ice);
    padding: 0.8rem 1.8rem;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--navy);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
}

.disclaimer {
    background: #FEF3C7;
    border-left: 4px solid var(--warning);
    padding: 1rem;
    border-radius: 16px;
    margin: 2rem 0;
    font-size: 0.85rem;
}

.hidden {
    display: none;
}

footer {
    background: var(--navy);
    color: #ccdde5;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}