/* ============================================
   KORPO — Dutch Business Intelligence
   Global Stylesheet
   ============================================ */

:root {
    --bg: #09090f;
    --bg-elevated: #0f0f18;
    --bg-card: #13131e;
    --bg-card-hover: #181828;
    --text: #e4e4ef;
    --text-muted: #7c7c96;
    --text-dim: #55556a;
    --accent: #4f7df7;
    --accent-hover: #6b93ff;
    --accent-light: #8db5ff;
    --accent-bg: rgba(79,125,247,0.08);
    --accent-border: rgba(79,125,247,0.2);
    --border: #1c1c2e;
    --border-light: #252540;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --max-w: 1120px;
    --max-w-narrow: 760px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}
a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: var(--max-w-narrow); }

/* ============ NAV ============ */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(9,9,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.15rem; font-weight: 800; color: var(--text);
    letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-logo .logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 900; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--accent-bg); }
.nav-links a.active { color: var(--accent-light); background: var(--accent-bg); }
.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    box-shadow: 0 2px 12px rgba(79,125,247,0.25);
}
.nav-cta:hover { box-shadow: 0 4px 20px rgba(79,125,247,0.35); transform: translateY(-1px); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--bg-elevated);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; width: 100%; border-radius: var(--radius-sm); }
}

/* ============ HERO ============ */
.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(ellipse, rgba(79,125,247,0.07) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-bg);
    color: var(--accent-light);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--accent-border);
    margin-bottom: 28px;
}
.hero-badge .dot {
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 .highlight { 
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(79,125,247,0.3);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 28px rgba(79,125,247,0.4); }
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-ghost {
    background: var(--accent-bg);
    color: var(--accent-light);
    border: 1px solid var(--accent-border);
}
.btn-ghost:hover { background: rgba(79,125,247,0.15); }
.cta-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-elevated); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
}
.section-header .overline {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ============ CARDS ============ */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}
.card:hover { border-color: rgba(79,125,247,0.3); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.card-link { display: block; color: var(--text) !important; }
.card-link:hover { color: #fff !important; }
.card .tag {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent-light);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 12px;
}

/* ============ COMPANY CARDS ============ */
.company-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.company-card:hover { border-color: rgba(79,125,247,0.3); transform: translateY(-2px); }
.company-card .company-name {
    font-size: 1.05rem; font-weight: 700; color: var(--text);
}
.company-card .company-name a { color: var(--text) !important; }
.company-card .company-name a:hover { color: var(--accent-light) !important; }
.company-card .company-meta {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.company-card .meta-item {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.82rem; color: var(--text-muted);
}
.company-card .meta-item .icon { opacity: 0.6; }
.company-card .company-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    padding-top: 12px; border-top: 1px solid var(--border);
}
.company-card .stat-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.company-card .stat-value { font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* ============ STATS ROW ============ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 48px 0;
}
.stat {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.stat-number {
    font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ============ PRICING ============ */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 60px rgba(79,125,247,0.08), 0 0 0 1px var(--accent);
}
.pricing-card .plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pricing-card .plan-name {
    font-size: 1.2rem; font-weight: 700; margin-bottom: 4px;
}
.pricing-card .plan-desc {
    color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px;
}
.pricing-card .price {
    font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em;
}
.pricing-card .price .currency { font-size: 1.2rem; vertical-align: top; line-height: 2; }
.pricing-card .price .period { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.pricing-card .price-note {
    color: var(--text-dim); font-size: 0.8rem; margin: 8px 0 24px;
}
.pricing-card ul {
    list-style: none; text-align: left;
    margin-bottom: 28px;
}
.pricing-card li {
    padding: 7px 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    display: flex; align-items: flex-start; gap: 8px;
}
.pricing-card li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ============ BLOG ============ */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.blog-card:hover { border-color: rgba(79,125,247,0.3); transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card .blog-thumb {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-bg), rgba(168,85,247,0.08));
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
}
.blog-card .blog-body { padding: 24px; }
.blog-card .blog-category {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent); margin-bottom: 8px;
}
.blog-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.blog-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.blog-card .blog-meta {
    display: flex; gap: 16px; margin-top: 14px;
    font-size: 0.78rem; color: var(--text-dim);
}

/* Blog article layout */
.article { padding: 48px 0 100px; }
.article-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.article-header .category {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--accent); margin-bottom: 16px;
}
.article-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 16px; line-height: 1.2;
}
.article-header .article-meta {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    color: var(--text-muted); font-size: 0.85rem;
}
.article-content { font-size: 1.05rem; line-height: 1.8; }
.article-content h2 {
    font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px;
    letter-spacing: -0.01em;
}
.article-content h3 {
    font-size: 1.2rem; font-weight: 600; margin: 32px 0 12px;
}
.article-content p { margin-bottom: 20px; color: var(--text-muted); }
.article-content strong { color: var(--text); }
.article-content ul, .article-content ol {
    margin: 16px 0; padding-left: 24px;
    color: var(--text-muted);
}
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--accent-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
}
.article-content code {
    background: var(--accent-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--accent-light);
}

/* ============ PROVINCE/INDUSTRY PAGE ============ */
.page-hero {
    padding: 80px 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(79,125,247,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero .overline {
    display: inline-block; color: var(--accent); font-size: 0.8rem;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 12px;
}
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============ TABLE ============ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table thead th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
}
.data-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.data-table tbody tr:hover { background: var(--accent-bg); }
.data-table tbody tr:hover td { color: var(--text); }
.data-table a { color: var(--text) !important; font-weight: 600; }
.data-table a:hover { color: var(--accent-light) !important; }

/* ============ FOOTER ============ */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; line-height: 1.7; }
.footer h4 {
    font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--text-muted) !important; font-size: 0.88rem; }
.footer li a:hover { color: var(--accent-light) !important; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-dim); font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}

/* ============ FEATURES ============ */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex; align-items: center; justify-content: center;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}
.feature-visual .visual-icon { font-size: 4rem; opacity: 0.4; }
.feature-visual::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(79,125,247,0.05) 0%, transparent 60%);
}
.feature-text .overline { color: var(--accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.feature-text h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.feature-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }

@media (max-width: 768px) {
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
    .feature-visual { min-height: 200px; }
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; color: var(--text-dim);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted) !important; }
.breadcrumb a:hover { color: var(--accent-light) !important; }
.breadcrumb .sep::after { content: '›'; margin: 0 4px; }

/* ============ CTA SECTION ============ */
.cta-section {
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(79,125,247,0.06) 0%, transparent 60%);
}
.cta-section > * { position: relative; }
.cta-section h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.cta-section p { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease-out forwards; opacity: 0; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

/* ============ RESPONSIVE HELPERS ============ */
.hide-mobile { display: block; }
.show-mobile { display: none; }
@media (max-width: 768px) { .hide-mobile { display: none; } .show-mobile { display: block; } }

/* ============ PROSE ============ */
.prose { max-width: 680px; margin: 0 auto; }
.prose p { color: var(--text-muted); margin-bottom: 18px; font-size: 0.98rem; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ============ INTERNAL LINK BOX ============ */
.link-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 40px 0;
}
.link-box {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text-muted) !important;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.link-box:hover { border-color: var(--accent-border); color: var(--accent-light) !important; transform: translateY(-1px); }
.link-box .arrow { margin-left: auto; opacity: 0.3; transition: opacity var(--transition); }
.link-box:hover .arrow { opacity: 1; }

/* ============ SITEMAP/INDEX ============ */
.index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.index-item {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--text-muted) !important;
    font-size: 0.88rem;
    transition: all var(--transition);
}
.index-item:hover { border-color: var(--accent-border); color: var(--accent-light) !important; }
.index-item strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }