:root {
    --bg: #0a0e17;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --nordic: #3b82f6;
    --secondary: #22c55e;
    --traditional: #ef4444;
    --emerging: #f59e0b;
    --border: #1e293b;
    --radius: 12px;
}

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

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

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

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

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

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
    text-decoration: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 32px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat {
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

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

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

/* Abstract */
.abstract {
    padding: 80px 24px;
    border-bottom: 1px solid var(--border);
}

.abstract h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.abstract p {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 900px;
    line-height: 1.8;
}

/* Sections */
section {
    padding: 80px 24px;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Findings */
.findings { background: var(--bg); }

.findings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.finding-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.2s;
}

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

.finding-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.finding-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.finding-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Table */
.tco-table-section {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(59, 130, 246, 0.03) 100%);
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 32px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th {
    text-align: left;
    padding: 14px 16px;
    background: var(--bg-card);
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

tr:hover td { background: rgba(59, 130, 246, 0.03); }

td:first-child { font-family: 'Inter', sans-serif; font-weight: 500; }
td:nth-child(2) { font-family: 'Inter', sans-serif; color: var(--text-dim); font-size: 0.8rem; }

.tier-nordic td:first-child { border-left: 3px solid var(--nordic); }
.tier-secondary td:first-child { border-left: 3px solid var(--secondary); }
.tier-traditional td:first-child { border-left: 3px solid var(--traditional); }
.tier-emerging td:first-child { border-left: 3px solid var(--emerging); }

.positive { color: var(--secondary); }
.warning { color: var(--emerging); }
.danger { color: var(--traditional); }

/* Data */
.data-grid, .resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.data-card, .resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.data-card:hover, .resource-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.data-card h3, .resource-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.data-card p, .resource-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Methodology */
.method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.method-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.method-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.method-card code {
    display: block;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 6px;
    padding: 10px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    overflow-x: auto;
}

/* Hardware */
.hw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.hw-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.hw-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.hw-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.hw-specs span {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 4px;
    padding: 3px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
}

.hw-impact {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Footer */
footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-sub {
    font-size: 0.8rem;
    margin-top: 8px;
    color: #4a5568;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .findings-grid, .method-grid, .data-grid, .resource-grid { grid-template-columns: 1fr; }
    .hw-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
}
