/* ========================================
   Bewegen in kaart - Landing Page Styles
   ======================================== */

/* CSS Variables - Datamensen Color Scheme */
:root {
    --color-aubergine: #2d1b4e;
    --color-aubergine-light: #4a3168;
    --color-accent: #7c3aed;
    --color-accent-light: #a78bfa;
    --color-magenta: #e91e8c;
    --color-bg-warm: #faf8f5;
    --color-bg-white: #ffffff;
    --color-text: #1f1f1f;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-magenta);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--color-magenta);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Section Title */
.section-title {
    font-size: 2.25rem;
    color: var(--color-aubergine);
    text-align: center;
    margin-bottom: 3rem;
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.btn-login {
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9375rem;
}

.btn-login:hover {
    background: white;
    color: var(--color-aubergine);
}

.login-icon {
    display: none;
    font-size: 1.25rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--color-aubergine) 0%, var(--color-aubergine-light) 100%);
    color: white;
    padding: 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.hero .btn-primary:hover {
    background: var(--color-magenta);
    color: white;
}

/* Hero Visual / Map Illustration */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-illustration {
    position: relative;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.map-illustration::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Neighborhood areas (wijken) - organic SVG */
.map-wijken {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wijk {
    stroke: none;
}

.wijk-1 { fill: rgba(255, 255, 255, 0.04); }
.wijk-2 { fill: rgba(167, 139, 250, 0.08); }
.wijk-3 { fill: rgba(124, 58, 237, 0.12); }
.wijk-4 { fill: rgba(255, 255, 255, 0.02); }

.wijk-border {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5;
}

.wijk-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wijk-label {
    position: absolute;
    font-size: 0.5625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-1 { top: 15%; left: 10%; }
.label-2 { top: 15%; right: 12%; }
.label-3 { bottom: 22%; left: 10%; color: rgba(167, 139, 250, 0.6); }
.label-4 { bottom: 22%; right: 12%; }

/* Paths (fiets/wandel paden) */
.map-paths {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.path-fiets {
    fill: none;
    stroke: rgba(34, 197, 94, 0.6);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 8 4;
    animation: dash 20s linear infinite;
}

.path-wandel {
    fill: none;
    stroke: rgba(251, 191, 36, 0.5);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 4 6;
}

@keyframes dash {
    to { stroke-dashoffset: -120; }
}

/* Facility markers */
.map-marker {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    animation: markerPulse 3s ease-in-out infinite;
    border: 2px solid rgba(255,255,255,0.3);
}

.map-marker .material-symbols-rounded {
    font-size: 18px;
    line-height: 1;
}

.marker-sport {
    background: var(--color-accent);
    color: white;
}

.marker-play {
    background: #f59e0b;
    color: white;
}

.marker-note {
    background: #ec4899;
    color: white;
}

/* Marker popup */
.marker-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    pointer-events: none;
}

.marker-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: white;
}

.popup-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-aubergine);
    margin-bottom: 3px;
}

.popup-text {
    font-size: 0.625rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.marker-1 { top: 20%; left: 22%; animation-delay: 0s; }
.marker-2 { top: 52%; left: 42%; animation-delay: 0.5s; }
.marker-3 { top: 30%; left: 55%; animation-delay: 1s; }
.marker-4 { top: 62%; left: 25%; animation-delay: 1.5s; }
.marker-5 { top: 38%; left: 78%; animation-delay: 2s; }
.marker-6 { top: 68%; left: 52%; animation-delay: 2.5s; }

@keyframes markerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Data overlay panel */
.map-stats {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--color-aubergine);
    width: 52px;
    flex-shrink: 0;
}

.stat-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    animation: fillGrow 2s ease-out forwards;
}

.stat-fill-alt {
    background: #22c55e;
}

@keyframes fillGrow {
    from { width: 0 !important; }
}

.stat-value {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-aubergine);
    width: 28px;
    text-align: right;
}

/* Legend */
.map-legend {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.5625rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-sport {
    background: var(--color-accent);
}

.dot-play {
    background: #f59e0b;
}

.dot-note {
    background: #ec4899;
}

.legend-line {
    width: 12px;
    height: 3px;
    border-radius: 2px;
}

.line-fiets {
    background: #22c55e;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 6rem 0;
    background: var(--color-bg-warm);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-aubergine) 100%);
    color: white;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.feature-icon-eu {
    background: #003399;
}

.feature-card h3 {
    font-size: 1.375rem;
    color: var(--color-aubergine);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========================================
   Screenshots Section
   ======================================== */
.screenshots {
    padding: 6rem 0;
    background: white;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.screenshot-card {
    background: var(--color-bg-warm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.screenshot-image {
    position: relative;
    overflow: hidden;
    background: var(--color-aubergine);
}

.screenshot-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top left;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-card:hover .screenshot-image img {
    transform: scale(1.02);
}

.screenshot-caption {
    padding: 1.5rem;
}

.screenshot-caption h3 {
    font-size: 1.125rem;
    color: var(--color-aubergine);
    margin-bottom: 0.5rem;
}

.screenshot-caption p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    padding: 6rem 0;
    background: white;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-accent);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: 1.25rem;
    color: var(--color-aubergine);
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.step-connector {
    flex: 0 0 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    margin-top: 2.5rem;
}

/* ========================================
   Data Sources Section
   ======================================== */
.data-sources {
    padding: 6rem 0;
    background: var(--color-aubergine);
    color: white;
}

.data-sources .section-title {
    color: white;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.data-item:hover {
    background: rgba(233, 30, 140, 0.2);
    transform: translateY(-2px);
}

.data-icon {
    font-size: 2rem;
}

.data-item span:last-child {
    font-size: 0.9375rem;
    text-align: center;
    opacity: 0.9;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-bg-warm) 0%, white 100%);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--color-aubergine);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 2rem auto;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-aubergine);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-magenta);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
}

.contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

.cta-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-top: 1.5rem;
}

.cta-email a {
    font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 2rem 0;
    background: var(--color-aubergine);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.footer strong {
    color: white;
}

.footer-eu {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--color-aubergine);
    font-weight: 500;
}

.eu-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .map-illustration {
        width: 340px;
        height: 340px;
    }

    .map-stats {
        padding: 10px 12px;
        min-width: 120px;
    }

    .stat-label {
        width: 44px;
        font-size: 0.5625rem;
    }

    .stat-value {
        font-size: 0.5625rem;
    }

    .map-marker {
        width: 26px;
        height: 26px;
    }

    .map-marker .material-symbols-rounded {
        font-size: 14px;
    }

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

    .screenshots-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .screenshot-image img {
        height: 280px;
    }

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        flex: 0 0 40px;
        margin: 0;
        background: linear-gradient(180deg, var(--color-accent), var(--color-accent-light));
    }

    .cta h2 {
        font-size: 1.75rem;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
    }

    .btn-login {
        width: auto;
        padding: 0.5rem;
    }

    .login-text {
        display: none;
    }

    .login-icon {
        display: block;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .data-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .data-item {
        padding: 1rem;
    }

    .data-icon {
        font-size: 1.5rem;
    }

    .data-item span:last-child {
        font-size: 0.8125rem;
    }
}
