/*
 * ComplyGuide Landing Pages - Award-Winning Design System
 * Clean. Professional. European.
 * 
 * Design Principles:
 * - Generous whitespace
 * - Strong typographic hierarchy
 * - Subtle color accents
 * - High contrast for accessibility
 * - Mobile-first responsive
 */

/* ========================================
   CSS Variables - Design Tokens
   ======================================== */
:root {
    /* Colors - Warmer, more inviting palette */
    --cg-black: #1a1a2e;
    --cg-gray-950: #1f1f33;
    --cg-gray-900: #2d2d44;
    --cg-gray-800: #3d3d5c;
    --cg-gray-700: #4a4a6a;
    --cg-gray-600: #6b6b8a;
    --cg-gray-500: #8b8ba8;
    --cg-gray-400: #a8a8c0;
    --cg-gray-300: #d0d0e0;
    --cg-gray-200: #e8e8f0;
    --cg-gray-100: #f4f4f8;
    --cg-gray-50: #fafafc;
    --cg-white: #ffffff;
    
    /* Brand colors - Professional blue with warm accents */
    --cg-primary: #2563eb;
    --cg-primary-light: #3b82f6;
    --cg-primary-dark: #1d4ed8;
    --cg-accent: #0ea5e9;
    --cg-accent-warm: #f59e0b;
    
    /* Sector colors */
    --cg-sector-gemeente: #ea580c;
    --cg-sector-overheid: #2563eb;
    --cg-sector-zorg: #059669;
    --cg-sector-vitaal: #6366f1;
    --cg-sector-mkb: #8b5cf6;
    
    /* Semantic colors */
    --cg-success: #10b981;
    --cg-warning: #f59e0b;
    --cg-error: #ef4444;
    
    /* Typography scale - fluid */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Fluid type scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
    --text-hero: clamp(2.5rem, 1.5rem + 5vw, 4.5rem);
    
    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;
    --space-section: clamp(5rem, 8vw, 10rem);
    
    /* Layout */
    --container-max: 1280px;
    --container-narrow: 960px;
    --container-prose: 720px;
    
    /* Borders & Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows - subtle */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   Base Reset & Typography
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.landing-page {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--cg-gray-900);
    background: var(--cg-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--cg-black);
}

.text-hero {
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.text-display {
    font-size: var(--text-4xl);
    font-weight: 600;
    line-height: 1.1;
}

.text-title {
    font-size: var(--text-3xl);
    font-weight: 600;
}

.text-subtitle {
    font-size: var(--text-xl);
    color: var(--cg-gray-600);
    font-weight: 400;
    line-height: 1.5;
}

.text-body {
    font-size: var(--text-base);
    color: var(--cg-gray-600);
    line-height: 1.7;
}

.text-small {
    font-size: var(--text-sm);
    color: var(--cg-gray-500);
}

.text-mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* ========================================
   Layout Components
   ======================================== */
.container-landing {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.container-prose {
    max-width: var(--container-prose);
}

.section {
    padding: var(--space-section) 0;
}

.section-dark {
    background: var(--cg-gray-950);
    color: var(--cg-white);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: var(--cg-white);
}

.section-dark .text-subtitle,
.section-dark .text-body {
    color: var(--cg-gray-400);
}

.section-light {
    background: var(--cg-gray-50);
}

/* ========================================
   Navigation
   ======================================== */
.nav-landing {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.nav-landing.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cg-gray-200);
}

.nav-landing.nav-dark:not(.scrolled) {
    color: var(--cg-white);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--text-xl);
    color: inherit;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.nav-dark:not(.scrolled) .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
    border-radius: var(--radius-xl);
}

.btn-primary {
    background: var(--cg-primary);
    color: var(--cg-white);
}

.btn-primary:hover {
    background: var(--cg-primary-dark);
    transform: translateY(-1px);
}

.btn-white {
    background: var(--cg-white);
    color: var(--cg-black);
}

.btn-white:hover {
    background: var(--cg-gray-100);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--cg-gray-700);
    border: 1px solid var(--cg-gray-300);
}

.btn-outline:hover {
    border-color: var(--cg-gray-400);
    background: var(--cg-gray-50);
}

.btn-ghost {
    background: transparent;
    color: inherit;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-accent {
    background: var(--cg-accent);
    color: var(--cg-white);
}

.btn-accent:hover {
    background: var(--cg-accent-dark);
    transform: translateY(-1px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--space-24);
    padding-bottom: var(--space-16);
    position: relative;
}

.hero-dark {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85), rgba(248, 250, 252, 0.75)), url('/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--cg-black);
}

.hero-dark h1, .hero-dark .text-hero {
    color: var(--cg-black);
}

.hero-dark .text-subtitle, .hero-dark p {
    color: var(--cg-gray-600);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
    color: var(--cg-gray-300);
}

.hero-title {
    max-width: 900px;
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    max-width: 640px;
    margin-bottom: var(--space-10);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 70%;
    background: linear-gradient(135deg, var(--cg-gray-800) 0%, var(--cg-gray-900) 100%);
    border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
    opacity: 0.5;
}

/* ========================================
   Feature Cards
   ======================================== */
.card {
    background: var(--cg-white);
    border: 1px solid var(--cg-gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--cg-gray-300);
    box-shadow: var(--shadow-lg);
}

.card-dark {
    background: var(--cg-gray-900);
    border-color: var(--cg-gray-800);
}

.card-dark:hover {
    border-color: var(--cg-gray-700);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cg-gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
    font-size: 1.5rem;
}

.card-dark .card-icon {
    background: var(--cg-gray-800);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.card-description {
    color: var(--cg-gray-600);
    line-height: 1.6;
}

.card-dark .card-description {
    color: var(--cg-gray-400);
}

/* ========================================
   Grid Layouts
   ======================================== */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ========================================
   Stats Section
   ======================================== */
.stat {
    text-align: center;
    padding: var(--space-8);
}

.stat-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--cg-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Testimonials / Trust
   ======================================== */
.trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-12);
    opacity: 0.6;
}

.trust-logos img {
    height: 32px;
    width: auto;
    filter: grayscale(100%);
    transition: all var(--transition-base);
}

.trust-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    text-align: center;
    padding: var(--space-section) 0;
}

.cta-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.cta-subtitle {
    font-size: var(--text-lg);
    color: var(--cg-gray-500);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Footer
   ======================================== */
.footer-landing {
    background: var(--cg-gray-950);
    color: var(--cg-gray-400);
    padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

.footer-brand {
    color: var(--cg-white);
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.footer-brand-logo img {
    height: 28px;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: var(--text-sm);
    line-height: 1.6;
    max-width: 320px;
}

.footer-title {
    color: var(--cg-white);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-link {
    display: block;
    padding: var(--space-2) 0;
    color: var(--cg-gray-400);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--cg-white);
}

.footer-bottom {
    border-top: 1px solid var(--cg-gray-800);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-sm);
}

.footer-badges {
    display: flex;
    gap: var(--space-3);
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--cg-gray-800);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in-down { animation: fadeInDown 0.6s ease-out forwards; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.w-full { width: 100%; }
.max-w-prose { max-width: var(--container-prose); }

.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Mobile Navigation
   ======================================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: var(--space-2);
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--cg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-4);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .nav-link {
        font-size: var(--text-xl);
        padding: var(--space-4);
    }
}

/* ========================================
   Language Selector
   ======================================== */
.lang-select {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--cg-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: inherit;
    cursor: pointer;
}

.nav-dark:not(.scrolled) .lang-select {
    border-color: rgba(255, 255, 255, 0.2);
}