:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f1f5f9;
    --text-muted: #cbd5e1;
    --border-color: rgba(37, 99, 235, 0.2);
}

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

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.hero {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #93c5fd;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.scanner-form {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.input-group {
    flex: 1;
    display: flex;
    gap: 1rem;
}

.scanner-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.05rem;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-light);
    transition: all 0.3s;
}

.scanner-input::placeholder {
    color: rgba(203, 213, 225, 0.5);
}

.scanner-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
}

.btn-scan {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-4px);
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-icon {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(37, 99, 235, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Results Styling */
.scan-results-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.results-header {
    margin-bottom: 3rem;
}

.results-header h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.result-meta {
    display: flex;
    gap: 3rem;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
}

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

.score-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.score-circle {
    text-align: center;
}

.score-value {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-label {
    font-size: 1rem;
    color: var(--text-muted);
}

.severity-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.severity-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    color: white;
    border: 1px solid transparent;
}

.severity-card.critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.severity-card.high {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

.severity-card.medium {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(30, 64, 175, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.severity-card.low {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.severity-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.severity-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.vulnerabilities-section {
    margin-bottom: 4rem;
}

.vuln-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vuln-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.vuln-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateX(10px);
}

.vuln-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.vuln-type {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
}

.vuln-severity {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.vuln-severity.severity-critical {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.vuln-severity.severity-high {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.vuln-severity.severity-medium {
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

.vuln-severity.severity-low {
    background: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

.vuln-details {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.vuln-details p {
    margin: 0.75rem 0;
}

.vuln-details code {
    background: rgba(15, 23, 42, 0.5);
    color: #93c5fd;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    word-break: break-all;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.scan-container {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 2rem;
}

.scan-header {
    margin-bottom: 2rem;
}

.scan-header h2 {
    font-size: 1.8rem;
    color: var(--text-light);
}

.scan-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text-muted);
}

.progress-section {
    margin-bottom: 2rem;
}

.progress-bar-container {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), #3B82F6);
    height: 100%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.progress-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.scan-logs {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
}

.log-entry {
    padding: 0.25rem 0;
    color: var(--text-muted);
}

.log-time {
    color: var(--primary);
    font-weight: 600;
    margin-right: 0.75rem;
}

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

.animate-spin {
    animation: spin 0.8s linear infinite;
}

@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .severity-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .scanner-form {
        flex-direction: column;
        padding: 1.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .scanner-input {
        width: 100%;
    }

    .severity-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .severity-cards {
        grid-template-columns: 1fr;
    }

    .result-meta {
        flex-direction: column;
        gap: 1rem;
    }
}
