/* Landing Page Styles */
.landing-hero {
    text-align: center;
    padding: 40px 20px 20px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

/* Subtle radial glow behind the hero */
.landing-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--accent-primary) 8%, transparent) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.landing-hero h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.landing-divider {
    width: 60px;
    height: 2px;
    margin: 24px auto 0;
    border-radius: 1px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.landing-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    animation: divider-shimmer 3s ease-in-out infinite;
}

@keyframes divider-shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    padding: 24px 30px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card entrance animation */
@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 28px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: card-enter 0.4s ease both;
}

.tool-card:nth-child(1)  { animation-delay: 0.03s; }
.tool-card:nth-child(2)  { animation-delay: 0.06s; }
.tool-card:nth-child(3)  { animation-delay: 0.09s; }
.tool-card:nth-child(4)  { animation-delay: 0.12s; }
.tool-card:nth-child(5)  { animation-delay: 0.15s; }
.tool-card:nth-child(6)  { animation-delay: 0.18s; }
.tool-card:nth-child(7)  { animation-delay: 0.21s; }
.tool-card:nth-child(8)  { animation-delay: 0.24s; }
.tool-card:nth-child(9)  { animation-delay: 0.27s; }
.tool-card:nth-child(10) { animation-delay: 0.30s; }

/* Accent top-border that fades in on hover */
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 10px 10px 0 0;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--accent-primary) 25%, transparent),
                0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.tool-card .card-icon {
    font-size: 1.6rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: color-mix(in srgb, var(--accent-primary) 10%, var(--bg-tertiary));
    transition: background-color 0.3s ease, transform 0.25s ease;
}

.tool-card:hover .card-icon {
    background-color: color-mix(in srgb, var(--accent-primary) 18%, var(--bg-tertiary));
    transform: scale(1.08);
}

.tool-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tool-card .card-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

@media (max-width: 768px) {
    .tool-cards {
        padding: 15px;
        gap: 15px;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .landing-hero {
        padding: 24px 15px 12px;
    }

    .landing-hero h1 {
        font-size: 1.5rem;
    }

    .landing-hero::before {
        width: 300px;
        height: 200px;
    }

    .landing-divider {
        margin-top: 16px;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .tool-card {
        animation: none;
    }

    .landing-divider::after {
        animation: none;
    }
}
