/* ThreatGrade Design System */
:root {
    --bg: #08080c;
    --surface: #0f0f15;
    --card: #16161f;
    --card-hover: #1c1c28;
    --border: #252530;
    --border-light: #353545;
    --text: #ffffff;
    --text-secondary: #e0e0e5;
    --muted: #7a7a8c;
    --purple: #a855f7;
    --purple-dark: #7c3aed;
    --pink: #ec4899;
    --cyan: #06b6d4;
    --green: #10b981;
    --yellow: #f59e0b;
    --red: #ef4444;
    --gradient: linear-gradient(135deg, var(--purple), var(--pink));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--purple);
    background: rgba(168, 85, 247, 0.1);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 12px;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-light);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-green { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.badge-yellow { background: rgba(245, 158, 11, 0.15); color: var(--yellow); }
.badge-red { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: var(--purple); }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(8, 8, 12, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.nav.scrolled { border-color: var(--border); }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img { width: 32px; height: 32px; }
.nav-logo span { font-weight: 700; font-size: 1.1rem; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    padding: 10px 20px;
    background: var(--gradient);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: white !important;
}

.nav-cta:hover { 
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.mobile-menu.active { display: flex; }
.mobile-menu a { color: var(--text); font-weight: 500; }

/* Footer */
footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--purple); }

.footer-copy {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
