/* --- Home Main Container --- */
.home-main {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: clamp(40px, 8vw, 80px) var(--grid-gutter);
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 8vw, 80px);
    align-items: center;
    margin-bottom: clamp(60px, 10vw, 100px);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-blue {
    color: var(--color-primary);
}

.hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: #5b656f;
    /* Readable dark grey */
    margin-bottom: 40px;
}

/* Hero Search Bar */
.hero-search {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: var(--radius-four);
    padding: 8px 8px 8px clamp(5px, 1.3vw, 24px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #EAEAEA;
    width: 100%;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 14px;
    background: transparent;
}

.btn-secondary {
    background: #c5d7ff;
    color: #3b5bdb;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-four);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #b3caff;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #ffffff;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    z-index: 1;
    box-shadow: -19px -9px 43px 7px #0059ff3d;
}

.icon-box {
    width: clamp(90px, 12vw, 110px);
    height: clamp(90px, 12vw, 110px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Material Icon & Text styling */
.icon-filled {
    font-size: 40px;
    font-variation-settings: 'FILL' 1, 'wght' 700;
}

.text-icon {
    font-weight: 800;
    font-size: 36px;
    letter-spacing: -2px;
}

/* Specific Box Colors perfectly matching Figma */
.box-blue {
    background: #0059FF;
    color: #ffffff;
}

.box-light-blue {
    background: #E6F0FF;
    color: #0059FF;
}

.box-purple {
    background: #EAE4FF;
    color: #5C3BBF;
}

.box-gray {
    background: #E2E2E2;
    color: #8B3A7B;
}

/* --- Utilities Section --- */
.utilities-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.utilities-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
}

.filter-pills {
    display: flex;
    gap: 12px;
}

.pill {
    background: #EAEAEA;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.pill.active {
    background: var(--color-primary);
    color: white;
}

.utilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Cards */
.tool-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.tool-card:hover {
    border-color: rgba(0, 89, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 89, 255, 0.08);
}

.tool-card::after {
    display: none;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
}

.bg-light-blue {
    background: #E6F0FF;
}

.text-blue {
    color: #0059FF;
}

.bg-light-purple {
    background: #F0E6FF;
}

.text-purple {
    color: #6B4EE6;
}

.bg-light-gray {
    background: #F0F0F0;
}

.text-dark {
    color: #333;
}

.bg-light-pink {
    background: #FFE6F0;
}

.text-pink {
    color: #D6336C;
}

.tool-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.tool-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* --- Desktop Layout --- */
@media (min-width: 1024px) {
    .hero-section {
        flex-direction: row;
        justify-content: space-between;
    }

    .utilities-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .utilities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Infinite Animations for Hero Visual --- */

/* 1. Create the animation rules */
@keyframes floatGrid {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); } /* Moves up slightly */
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); } /* Gets slightly bigger and brighter */
    100% { opacity: 0.7; transform: scale(1); }
}

/* 2. Apply the animations to your existing elements */
.visual-grid {
    /* Keep all your existing styles, just add this line: */
    animation: floatGrid 6s ease-in-out infinite;
}

.visual-grid-glow {
    /* Keep all your existing styles, just add this line: */
    animation: pulseGlow 8s ease-in-out infinite;
}