:root {
    --bg-color: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --card-bg: #ffffff;
    --detijd-accent: #f2d4c5;
    --lecho-accent: #e6b0aa;
    --correction-color: #ef4444; 
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    overflow: hidden; 
}

.container {
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

/* --- INTRO SECTION --- */

.intro {
    margin-bottom: 3.5rem; /* Increased spacing between intro and cards */
}

.intro h1 {
    font-size: 3.5rem;
    font-weight: 800;
    /* Added significant margin to clear the floating 'AI' text below */
    margin-bottom: 2.5rem; 
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    /* No margin bottom needed as .intro handles the gap to cards */
    margin-bottom: 0; 
    position: relative;
    display: inline-block;
}

.correction-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 0.2rem;
}

.original-text {
    position: relative;
    z-index: 1;
}

/* Strikethrough Line */
.original-text::after {
    content: '';
    position: absolute;
    left: 0;
    top: 55%; 
    width: 0%; 
    height: 3px; 
    background-color: var(--correction-color);
    transform: rotate(-2deg);
    border-radius: 2px;
    opacity: 0.9;
    
    animation: strikeThrough 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

/* 'AI' Correction text */
.new-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--correction-color);
    position: absolute;
    /* This negative top value pulls it up. 
       The margin-bottom on h1 (2.5rem) compensates for this. */
    top: -1em; 
    left: 50%;
    transform: translateX(-50%) scale(0); 
    font-size: 1.2em; 
    white-space: nowrap;
    z-index: 2;
    letter-spacing: -0.03em;
    
    animation: popUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

/* --- KEYFRAMES --- */

@keyframes strikeThrough {
    to { width: 105%; left: -2.5%; } 
}

@keyframes popUp {
    to { transform: translateX(-50%) rotate(-5deg) scale(1); opacity: 1; }
}

/* --- CARD GRID (Unchanged) --- */

.card-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.brand-card {
    background: var(--card-bg);
    border-radius: 24px;
    width: 280px;
    height: 320px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.brand-card:hover .logo-wrapper img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.brand-card:hover .label {
    color: var(--text-primary);
}

#btn-detijd:hover { border-bottom: 6px solid var(--detijd-accent); }
#btn-lecho:hover { border-bottom: 6px solid var(--lecho-accent); }

@media (max-width: 650px) {
    .card-grid {
        flex-direction: column;
        align-items: center;
    }
    .brand-card {
        width: 100%;
        max-width: 320px;
        height: 250px;
    }
    .intro h1 {
        font-size: 2.5rem;
    }
    .tagline {
        font-size: 1.2rem;
    }
}
