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

:root {
    --primary-blue: #2563EB;
    --success-green: #10B981;
    --danger-red: #DC2626;
    --warning-yellow: #F59E0B;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
}

/* Security Alert Overlay */
.security-alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(220, 38, 38, 0.98);
    z-index: 10000;
    overflow-y: auto;
    animation: alertPulse 2s ease-in-out infinite;
}

.security-alert-overlay.active {
    display: block;
}

@keyframes alertPulse {
    0%, 100% { background: rgba(220, 38, 38, 0.98); }
    50% { background: rgba(239, 68, 68, 0.98); }
}

.alert-content {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    color: white;
}

.alert-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.alert-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.alert-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.alert-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

.credentials-box {
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
}

.credential-item {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    animation: credentialReveal 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes credentialReveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.credential-label {
    font-weight: bold;
    color: #FBBF24;
    margin-bottom: 0.5rem;
}

.credential-value {
    color: white;
    word-break: break-all;
    font-size: 0.95rem;
}

.damage-assessment {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.damage-list {
    list-style: none;
    margin: 1rem 0;
}

.damage-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    animation: damageItemReveal 0.5s ease-out forwards;
    opacity: 0;
}

.damage-list li:nth-child(1) { animation-delay: 0.1s; }
.damage-list li:nth-child(2) { animation-delay: 0.2s; }
.damage-list li:nth-child(3) { animation-delay: 0.3s; }
.damage-list li:nth-child(4) { animation-delay: 0.4s; }
.damage-list li:nth-child(5) { animation-delay: 0.5s; }
.damage-list li:nth-child(6) { animation-delay: 0.6s; }

@keyframes damageItemReveal {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.damage-list li:before {
    content: "✗ ";
    color: #FCA5A5;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Success Banner */
.success-banner {
    display: none;
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.success-banner.active {
    display: block;
}

.success-banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--gray-600);
    font-size: 1.2rem;
}

.hero {
    background: linear-gradient(135deg, var(--primary-blue), #1D4ED8);
    color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

.section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section h2 {
    color: var(--gray-900);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-blue);
}

.section h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.incident-card {
    background: var(--gray-50);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--danger-red);
}

.incident-card h4 {
    color: var(--danger-red);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.incident-meta {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.incident-meta strong {
    color: var(--gray-900);
}

.defense-box {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-blue);
}

.defense-box h3 {
    color: var(--primary-blue);
    margin-top: 0;
}

.defense-list {
    list-style: none;
    margin: 1rem 0;
}

.defense-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 4px;
}

.defense-list li:before {
    content: "✓ ";
    color: var(--success-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

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

.link-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--gray-100);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.link-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.link-card h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

footer {
    background: var(--gray-900);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .alert-title { font-size: 2rem; }
    .alert-subtitle { font-size: 1.2rem; }
    h1 { font-size: 2rem; }
    .hero h2 { font-size: 2rem; }
    .links-grid { grid-template-columns: 1fr; }
}