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

:root {
    --bg: #0a0e17;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --border: #1e293b;
    --border-hover: #334155;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-dim: #1d4ed8;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --green: #10b981;
    --green-dim: rgba(16, 185, 129, 0.1);
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
}

.nav-icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--text-dim);
    transition: all 0.2s;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    max-width: 720px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.stat-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bob 2s ease-in-out infinite;
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    opacity: 0.4;
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Sections */
.section-label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
    color: var(--text);
}

/* About */
.about {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
}

.card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.card-body {
    padding: 20px;
    margin: 0;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-dim);
    overflow-x: auto;
}

.card-body code {
    font-family: inherit;
}

/* CVE Feature */
.cve-feature {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.cve-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.cve-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ef4444, #f97316, #ef4444);
}

.cve-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border);
}

.cve-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cve-id {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.cve-score {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.cve-severity {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ef4444;
}

.cve-header h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.cve-body {
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.cve-detail h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cve-detail p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dim);
}

.cve-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}

.cve-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cve-meta span {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .cve-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cve-header, .cve-body, .cve-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Research */
.research {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.research-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.research-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.research-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    margin-bottom: 20px;
}

.research-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.research-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.research-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.research-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.research-tags span {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    background: var(--green-dim);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* Approach */
.publications {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.approach-step {
    text-align: center;
    padding: 32px 20px;
}

.step-num {
    font-family: var(--mono);
    font-size: 32px;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.15);
    margin-bottom: 16px;
}

.approach-step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.approach-step p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dim);
}

/* Contact */
.contact {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.contact-sub {
    font-size: 16px;
    color: var(--text-dim);
    max-width: 560px;
    margin-top: -32px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    color: var(--text);
}

.contact-card svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: var(--accent);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
}

.footer-icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 23, 0.95);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

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

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

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

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

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

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

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.2s; }
.fade-in-3 { animation-delay: 0.3s; }
.fade-in-4 { animation-delay: 0.4s; }

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}
