/* Home page layout (inline search) */

.home-hero-panel {
    padding-top: 0;
    padding-bottom: 0.5rem;
}

.home-hero-banner {
    margin: 1rem 0 0.75rem;
    width: 100%;
    line-height: 0;
}

.home-hero-banner-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.home-hero-search {
    margin: 0 0 1rem;
    width: 100%;
}

.home-hero-search-inner.header-search {
    display: block;
    width: 100%;
}

.home-hero-search-label {
    display: block;
    width: 100%;
}

.home-hero-search-inner.header-search .home-hero-search-input-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: border-color var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base);
}

.home-hero-search-inner.header-search .home-hero-search-input-wrapper:focus-within {
    border-color: var(--color-link);
    box-shadow: 0 8px 24px rgba(98, 97, 253, 0.18);
}

.home-hero-search .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    margin-right: 0.75rem;
    color: var(--color-link);
}

.home-hero-search .search-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.home-hero-search-input {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
}

.home-hero-search-shortcut {
    margin-left: auto;
    padding: 0.125rem 0.375rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-family: var(--font-family);
    line-height: 1.2;
}

.home-hero-search .search-dropdown {
    left: 0;
    right: 0;
}

.home-lower {
    padding: 0;
}

/* Home page sections grid */

.home-ecosystem {
    width: 100%;
    max-width: 60em;
    margin: 1.5rem auto 1rem;
    padding: 0;
    box-sizing: border-box;
}

@media (min-width: 100em) {
    .home-ecosystem {
        max-width: 52em;
    }
}

.home-ecosystem-inner {
    width: 100%;
    box-sizing: border-box;
}

.home-ecosystem-header {
    text-align: left;
    margin-bottom: 0.75rem;
}

.home-ecosystem-title {
    margin: 1em 0 0.5em;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-text);
}

.home-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.home-ecosystem a.home-ecosystem-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 6.5rem;
    padding: 0.875rem 0.5rem 0.75rem;
    border-radius: 1.25rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    color: var(--color-text);
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-ecosystem a.home-ecosystem-card:hover,
.home-ecosystem a.home-ecosystem-card:focus-visible {
    background: var(--color-bg);
    border-color: var(--color-link);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--color-text);
}

.home-ecosystem-card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.home-ecosystem-card-icon {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-link);
}

.home-ecosystem-card-label {
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.01em;
    hyphens: auto;
    max-width: 100%;
}

@media (max-width: 74.9375em) {
    .home-ecosystem-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 47.9375em) {
    .home-ecosystem-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.625rem;
    }

    .home-ecosystem a.home-ecosystem-card {
        min-height: 6rem;
        border-radius: 1rem;
        padding: 0.75rem 0.375rem 0.625rem;
    }
}
